Skip to content

verdict serve

Start a server that stores policies and facts in a local database.

Runs locally. Effects: start server.

ArgumentTypeRequiredDefaultDescription
--authorization-modestringnoNo parser defaultAuthorization mode: proof or check; env: VERDICT_AUTHORIZATION_MODE; default: proof
--maintained-closuresbooleannoNo parser defaultMaintain all eligible recursive closures; env: VERDICT_MAINTAINED_CLOSURES; default: false
--closure-max-edgesstringnoNo parser defaultClosure edge limit; env: VERDICT_MAINTAINED_CLOSURE_MAX_EDGES
--closure-max-pairsstringnoNo parser defaultClosure pair limit; env: VERDICT_MAINTAINED_CLOSURE_MAX_PAIRS
--closure-max-workstringnoNo parser defaultClosure work limit; env: VERDICT_MAINTAINED_CLOSURE_MAX_WORK
--portstringnoNo parser defaultPort to listen on (env: VERDICT_PORT, default: 4891)
--dbstringnoNo parser defaultSQLite database path (env: VERDICT_DB_PATH, default: ”./verdict.db”)

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

Command arguments and flags; stdin is unsupported.

File input: unsupported. Standard input: unsupported.

{
"kind": "process",
"description": "Startup messages; no single JSON result."
}

Standard output: Startup messages; no single JSON result.

Lifecycle: Runs until shutdown.

  • The process runs until shutdown; startup failures use status 1.

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

verdict serve --port 4891 --db ./verdict.db