verdict serve
Start a server that stores policies and facts in a local database.
Runs locally. Effects: start server.
Arguments and flags
Section titled “Arguments and flags”| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
--authorization-mode | string | no | No parser default | Authorization mode: proof or check; env: VERDICT_AUTHORIZATION_MODE; default: proof |
--maintained-closures | boolean | no | No parser default | Maintain all eligible recursive closures; env: VERDICT_MAINTAINED_CLOSURES; default: false |
--closure-max-edges | string | no | No parser default | Closure edge limit; env: VERDICT_MAINTAINED_CLOSURE_MAX_EDGES |
--closure-max-pairs | string | no | No parser default | Closure pair limit; env: VERDICT_MAINTAINED_CLOSURE_MAX_PAIRS |
--closure-max-work | string | no | No parser default | Closure work limit; env: VERDICT_MAINTAINED_CLOSURE_MAX_WORK |
--port | string | no | No parser default | Port to listen on (env: VERDICT_PORT, default: 4891) |
--db | string | no | No parser default | SQLite 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.
Result
Section titled “Result”{ "kind": "process", "description": "Startup messages; no single JSON result."}Standard output: Startup messages; no single JSON result.
Lifecycle: Runs until shutdown.
Exit status
Section titled “Exit status”- The process runs until shutdown; startup failures use status 1.
Argument, I/O, and other failures handled by the CLI runner use status 1.
Examples
Section titled “Examples”verdict serve --port 4891 --db ./verdict.db