所有命令 · context
pm list
List active items with optional lifecycle-status and project filters.
Lists active items with deterministic filtering and ordering.
用法
pm list [options]选项
| --status <value> | Filter by status (repeatable or comma-separated; matches any; all selects every status) | 可选 |
|---|---|---|
| --all | Include every lifecycle status | 可选 |
| --for <intent> | Apply a declared context intent projection. Allowed core values: triage. Configured package and workspace intents may extend this domain. | 可选 |
| --token-budget <n> | Override the selected intent's maximum estimated output tokens | 可选 |
| --type <value> | Filter by item type (repeatable or comma-separated; matches any) | 可选 |
| --tag <value> | Filter by tag (repeatable or comma-separated; matches any) | 可选 |
| --priority <value> | Filter by priority (repeatable or comma-separated; matches any) | 可选 |
| --deadline-before <value> | Filter by deadline upper bound (ISO/date string or relative) | 可选 |
| --deadline-after <value> | Filter by deadline lower bound (ISO/date string or relative) | 可选 |
| --today | Filter to items updated since local midnight today | 可选 |
| --recent | Filter to items updated in the last 7 days | 可选 |
| --updated-after <value> | Updated since ISO timestamp or signed relative (-2h/-7d for past); use last-window ISO | 可选 |
| --updated-before <value> | Filter by updated_at upper bound: ISO timestamp or signed relative (-2h/+1d) | 可选 |
| --created-after <value> | Filter by created_at lower bound: ISO timestamp or signed relative (-2h/+1d) | 可选 |
| --created-before <value> | Filter by created_at upper bound: ISO timestamp or signed relative (-2h/+1d) | 可选 |
| --ids <value> | Filter by explicit item IDs (comma-separated or repeatable) | 可选 |
| --assignee <value> | Filter by assignee | 可选 |
| --assignee-filter <value> | Filter assignee presence: assigned|unassigned | 可选 |
| --parent <value> | Filter by parent item ID | 可选 |
| --sprint <value> | Filter by sprint | 可选 |
| --release <value> | Filter by release | 可选 |
| --filter-ac-missing | Show only items missing acceptance_criteria | 可选 |
| --filter-estimates-missing | Show only items missing estimated_minutes | 可选 |
| --filter-resolution-missing | Show only terminal items missing resolution | 可选 |
| --filter-metadata-missing | Show only items missing any tracked metadata (AC, estimate, or resolution) | 可选 |
| --offset <n> | Skip the first n matching rows before limit is applied | 可选 |
| --after <cursor> | Continue after an opaque next_cursor from a previous list response | 可选 |
| --no-truncate | Return every matched row after the explicit status and field filters | 可选 |
| --include-body | Include item body in each returned list row | 可选 |
| --strict-read | Fail closed if any item document or item directory cannot be read | 可选 |
| --compact | Render compact list projection fields (mutually exclusive with --brief/--full/--fields) | 可选 |
| --brief | Ultra-compact output: id, status, type, title only (agent-optimized, mutually exclusive with --compact/--full/--fields) | 可选 |
| --full | Render full list projection fields (mutually exclusive with --compact/--brief/--fields) | 可选 |
| --fields <value> | Render custom comma-separated list fields (mutually exclusive with --compact/--brief/--full). Allowed core values: acceptance_criteria|actual_result|affected_version|assignee|author|blocked_by|blocked_reason|body|claim_principal|close_reason|closed_at|comments|completed_at|component|confidence|created_at|customer_impact|deadline|definition_of_ready|dependencies|description|design|docs|duplicate_of|environment|estimated_minutes|events|expected_result|external_ref|files|fixed_version|goal|id|impact|learnings|notes|objective|order|outcome|parent|plan_decisions|plan_discoveries|plan_harness|plan_mode|plan_resume_context|plan_scope|plan_steps|plan_validation|pm_format_version|priority|regression|release|reminders|reporter|repro_steps|resolution|reviewer|risk|severity|source_owner|source_type|sprint|status|tags|test_runs|tests|title|tree_children|tree_depth|tree_parent|tree_title|type|type_options|unblock_note|updated_at|value|why_now. item.<field> aliases and configured runtime metadata fields are also accepted. | 可选 |
| --sort <value> | Sort field: priority|deadline|updated_at|created_at|title|parent (aliases: updated, created) | 可选 |
| --order <value> | Sort order: asc|desc (requires --sort) | 可选 |
| --tree | Render rows in parent/child tree order | 可选 |
| --tree-depth <n> | Maximum recursion depth with --tree (0 keeps root rows only) | 可选 |
| --format <value> | Output render mode: csv|table (human export) or json|ndjson|toon (machine output override) | 可选 |
| --stream | Emit line-delimited JSON rows (requires --json) | 可选 |
| --has-notes | Show only items that have notes | 可选 |
| --has-learnings | Show only items that have learnings | 可选 |
| --has-files | Show only items that have linked files | 可选 |
| --has-docs | Show only items that have linked docs | 可选 |
| --has-tests | Show only items that have linked tests | 可选 |
| --has-comments | Show only items that have comments | 可选 |
| --has-deps | Show only items that have dependencies | 可选 |
| --has-body | Show only items that have a non-empty body | 可选 |
| --has-linked-command | Show only items whose linked tests carry a runnable command | 可选 |
| --no-notes | Show only items that have no notes | 可选 |
| --no-learnings | Show only items that have no learnings | 可选 |
| --no-files | Show only items that have no linked files | 可选 |
| --no-docs | Show only items that have no linked docs | 可选 |
| --no-tests | Show only items that have no linked tests | 可选 |
| --no-comments | Show only items that have no comments | 可选 |
| --no-deps | Show only items that have no dependencies | 可选 |
| --empty-body | Show only items with an empty body | 可选 |
| --no-linked-command | Show only items whose linked tests carry no runnable command | 可选 |
| --filter-reviewer-missing | Show only items missing reviewer | 可选 |
| --filter-risk-missing | Show only items missing risk | 可选 |
| --filter-confidence-missing | Show only items missing confidence | 可选 |
| --filter-sprint-missing | Show only items missing sprint | 可选 |
| --filter-release-missing | Show only items missing release | 可选 |
示例
pm list --limit 20