Syntax
Description
Thespec list command displays all specifications in your project. You can filter by priority, search by content, control archive visibility, and limit results.
By default, the command:
- Shows up to 50 specs
- Excludes archived specs
- Displays specs with their ID, title, priority, and file path
--grep for full-text search across spec titles and content, or use --priority to filter by priority level.Options
--priority 1Only shows specs with the specified priority:- 0 - Critical
- 1 - High
- 2 - Medium
- 3 - Low
- 4 - Lowest
--grep "authentication"Performs a full-text search across spec titles and markdown content. Case-insensitive by default.--archived true or --archived falsefalse(default) - Exclude archived specstrue- Show only archived specs- Omit to see all specs regardless of archive status
--limit 100Useful for large projects with many specs. Increase to see more results.Examples
List All Specs (Default)
Show all non-archived specs (up to 50):Expected output
Expected output
Filter by Priority
Show only critical (priority 0) specs:Expected output
Expected output
Search with Grep
Search for specs containing “auth”:Expected output
Expected output
Show Archived Specs
View only archived (deprecated) specs:Expected output
Expected output
Combine Filters
Search for high-priority specs about “security”:Expected output
Expected output
Increase Result Limit
Show up to 100 specs:No Specs Found
When no specs match your filters:Expected output
Expected output
JSON Output
Use the global--json flag for machine-readable output:
JSON output
JSON output
Common Workflows
Finding High-Priority Work
Identify critical and high-priority specs that need attention:List critical specs
List high-priority specs
Review each spec
Searching for Related Specs
Find all specs related to a topic:Search by keyword
Refine by priority
Review details
Auditing Archived Specs
Review deprecated specifications:List archived specs
Review for removal
Clean up if needed
Filtering Logic
Understanding Output
The default output format shows:Spec ID
Title
Priority
File Path
.sudocode/specs/Common Questions
Why don't I see all my specs?
Why don't I see all my specs?
spec list:- Limits to 50 results (use
--limitto increase) - Excludes archived specs (use
--archived falseto explicitly exclude, or omit to see all)
How does grep search work?
How does grep search work?
--grep option searches both:- Spec titles
- Markdown content
What's the difference between archived and deleted?
What's the difference between archived and deleted?
- Archived specs (
archived: true) are retained but hidden by default. They can be listed with--archived true. - Deleted specs are permanently removed from the database.
How do I see child specs?
How do I see child specs?
spec show to see hierarchical relationships:Performance Tips
Use specific filters
--priority or --grep instead of listing everythingIncrease limit if needed
Use JSON for scripting
Troubleshooting
Error: sudocode not initialized
Error: sudocode not initialized
.sudocode/ directory foundSolution:No specs found (but I created some)
No specs found (but I created some)
- Specs are archived:
sudocode spec list --archived false(default excludes archived) - Specs don’t match filters: Remove filters to see all
- Database not synced: Run
sudocode sync
Grep not finding expected specs
Grep not finding expected specs
- Try broader search terms
- Check spec content with
sudocode spec show SPEC-ID - Verify spelling
Related Commands
spec create
spec show
spec update
spec delete
issue list
ready
Next Steps
List your specs
Filter by priority
View spec details
Create implementation issues

