所有命令 · context

pm search

Search items with keyword, semantic, or hybrid retrieval. Inline field:value tokens (tag:/status:/type:/priority:) in the query are parsed as filters, e.g. 'auth tag:area:search status:open'.

Finds relevant items by keyword, semantic, or hybrid retrieval modes.

用法

pm search [options] <keywords...>

参数

<keywords…>Keyword query tokens必填

选项

--for <intent>Apply a declared context intent projection. Allowed core values: discover. Configured package and workspace intents may extend this domain.可选
--token-budget <n>Override the selected intent's maximum estimated output tokens可选
--mode <value>Search mode: keyword|semantic|hybrid (default: auto)可选
--semanticShorthand for --mode semantic可选
--hybridShorthand for --mode hybrid可选
--match-mode <value>Token match mode: and|or|exact (default: or with all-terms ranking bonus; and = hard-require every token; exact = exact phrase)可选
--min-score <value>Per-query minimum score threshold (finite number >= 0); overrides settings search.score_threshold for this query only可选
--countReturn only the count of matching items (post-filter/threshold, pre-limit); skips hit rows可选
--semantic-weight <value>Override hybrid semantic weight for this query (0..1); invalid values fall back to settings可选
--include-linkedInclude linked files, docs, and tests in the searchable corpus可选
--title-exactRequire exact normalized title match for the full query string可选
--phrase-exactRequire exact normalized phrase match in searchable text可选
--highlightEmit per-field matched-text snippets (wrapped in «…») on each hit; off by default可选
--status <value>Filter by status before query (all, open/closed/canceled aliases, or configured status id; CSV)可选
--type <value>Filter by item type可选
--tag <value>Filter by tag可选
--priority <value>Filter by priority可选
--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)可选
--updated-after <value>Filter by updated_at lower bound: ISO timestamp or signed relative (e.g. "-2h"/"-7d" for the past)可选
--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)可选
--assignee <value>Filter by assignee可选
--sprint <value>Filter by sprint可选
--release <value>Filter by release可选
--parent <value>Filter by parent item ID可选
--compactRender compact search hits (default; mutually exclusive with --full/--fields)可选
--fullRender full search hits with nested item payloads (mutually exclusive with --compact/--fields)可选
--fields <value>Render custom comma-separated search hit fields (mutually exclusive with --compact/--full). Allowed core values: acceptance_criteria|actual_result|affected_version|assignee|author|blocked_by|blocked_reason|close_reason|comments|component|confidence|created_at|customer_impact|deadline|definition_of_ready|dependencies|description|docs|environment|estimated_minutes|events|expected_result|files|fixed_version|goal|highlights|id|impact|learnings|matched_fields|notes|objective|order|outcome|parent|plan|priority|rank|regression|release|reminders|reporter|repro_steps|resolution|reviewer|risk|score|severity|sprint|status|tags|tests|title|type|updated_at|value|why_now. item.<field> aliases and configured runtime metadata fields are also accepted.可选
--format <value>Search output format override: json|ndjson|toon可选
--limit <n>Limit returned item count可选
--after <cursor>Continue after an opaque next_cursor from a previous search response可选
--has-notesShow only items that have notes可选
--has-learningsShow only items that have learnings可选
--has-filesShow only items that have linked files可选
--has-docsShow only items that have linked docs可选
--has-testsShow only items that have linked tests可选
--has-commentsShow only items that have comments可选
--has-depsShow only items that have dependencies可选
--has-bodyShow only items that have a non-empty body可选
--has-linked-commandShow only items whose linked tests carry a runnable command可选
--no-notesShow only items that have no notes可选
--no-learningsShow only items that have no learnings可选
--no-filesShow only items that have no linked files可选
--no-docsShow only items that have no linked docs可选
--no-testsShow only items that have no linked tests可选
--no-commentsShow only items that have no comments可选
--no-depsShow only items that have no dependencies可选
--empty-bodyShow only items with an empty body可选
--no-linked-commandShow only items whose linked tests carry no runnable command可选
--filter-reviewer-missingShow only items missing reviewer可选
--filter-risk-missingShow only items missing risk可选
--filter-confidence-missingShow only items missing confidence可选
--filter-sprint-missingShow only items missing sprint可选
--filter-release-missingShow only items missing release可选

示例

pm search "lock stale retry" --mode keyword --limit 10

相关命令