verdict search
Find installed commands for a task without connecting to a server. Return up to five matches by default; use —limit to request more. Results include unavailable commands and their reasons. No matches returns an empty list and exits successfully.
Runs locally. Effects: none declared.
Arguments and flags
Section titled “Arguments and flags”| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
<query> | positional | yes | No parser default | Search intent; quote phrases containing spaces |
--limit | string | no | 5 | Maximum matches, a positive integer (default: 5) |
--json | boolean | no | false | Output as JSON |
--help (-h) shows command help without executing the command. Boolean flags support --no-<flag>. Defaults stated in descriptions may be resolved by the handler or configuration rather than the argument parser.
Required search phrase.
File input: unsupported. Standard input: unsupported.
- Search phrase must not be empty.
- limit must be a positive integer.
Result
Section titled “Result”{ "kind": "json-schema", "schema": { "type": "object", "required": [ "query", "matches" ], "additionalProperties": false, "properties": { "query": { "type": "string" }, "matches": { "type": "array", "items": { "type": "object", "required": [ "command", "score" ], "additionalProperties": false, "properties": { "command": { "type": "object", "additionalProperties": false, "required": [ "path", "aliases", "summary", "kind", "scope", "effects", "availability" ], "properties": { "path": { "type": "array", "items": { "type": "string" } }, "aliases": { "type": "array", "items": { "type": "array", "items": { "type": "string" } } }, "summary": { "type": "string" }, "kind": { "type": "string", "enum": [ "finite", "group", "raw", "process" ] }, "scope": { "type": "string", "enum": [ "local", "server" ] }, "effects": { "type": "array", "items": { "type": "string" } }, "availability": { "type": "object", "required": [ "status" ], "additionalProperties": false, "properties": { "status": { "type": "string", "enum": [ "available", "unavailable" ] }, "reason": { "type": "string", "nullable": true } } } } }, "score": { "type": "number" } } } } } }}By default, the command renders human-readable records. --json writes one JSON result to stdout. Operational failures use status 1; JSON failures contain an error object with code and message. See shared output semantics.
Exit status
Section titled “Exit status”- 0: the command completed its operation.
Argument, I/O, and other failures handled by the CLI runner use status 1.
Examples
Section titled “Examples”verdict search "upload policy" --jsonverdict search "check permission"