Skip to content

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.

ArgumentTypeRequiredDefaultDescription
<query>positionalyesNo parser defaultSearch intent; quote phrases containing spaces
--limitstringno5Maximum matches, a positive integer (default: 5)
--jsonbooleannofalseOutput 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.
{
"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.

  • 0: the command completed its operation.

Argument, I/O, and other failures handled by the CLI runner use status 1.

verdict search "upload policy" --json
verdict search "check permission"