Skip to content

verdict fact list

Read one page of directly stored facts without evaluating policy rules.

Runs against the selected server connection. Effects: read stored facts.

ArgumentTypeRequiredDefaultDescription
--predicatestringnoNo parser defaultFilter by predicate name
--querystringnoNo parser defaultTextual predicate filter; cannot be combined with —predicate
--limitstringnoNo parser defaultResults per page (default: 100, max: 1000)
--cursorstringnoNo parser defaultPagination cursor from a previous response
--jsonbooleannofalseOutput as JSON
--endpointstringnoNo parser defaultInstance base URL, including any subpath (env: VERDICT_HOST, fallback: http://localhost:4891)
--hoststringnoNo parser defaultAlias for —endpoint
--api-keystringnoNo parser defaultAPI key (env: VERDICT_API_KEY takes precedence)
--profilestringnoNo parser defaultStored profile (env: VERDICT_PROFILE)
--localbooleannofalseUse http://localhost:4891 without stored or environment credentials

--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.

Flags only; pagination reads one page.

File input: unsupported. Standard input: unsupported.

  • query and predicate are mutually exclusive
  • limit must contain decimal digits representing an integer from 1 through 1000
{
"kind": "protobuf",
"reference": "verdict-client/proto:ListFactsResponse",
"projection": "JSON object containing facts and an optional nextCursor",
"encoding": "Default-valued fields are omitted; 64-bit integers are decimal strings",
"example": {}
}

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 fact list --predicate role --json
verdict fact list --limit 5 --cursor previous