Skip to content

CLI: Setup

Generated from deedglass help --json (CLI 0.15.1). Global flags and exit codes are on the CLI reference page.

See it catch a wrong row count, no questions.

Terminal window
deedglass start [--dir .] [--fast] [--json]
Flag Type Default What it does
--dir string . the directory the local stack lives in (.deedglass/ goes here)
--fast bool without Docker: print the replayed scene at once, with no pauses

Add --json for machine-readable output.

Open Deedglass in your browser, no setup.

Terminal window
deedglass app [--port 4180] [--no-open] [--stop] [--status] [--reset [--yes]] [--json]
Flag Type Default What it does
--no-open bool don’t open the browser; print the sign-in link instead
--port int 0 the port to serve on (default 4180, or a free one)
--reset bool delete the app’s data (asks first; –yes skips the question)
--status bool say whether the app is running, where, and where its data is
--stop bool stop the running app and its database (your data stays)
--yes bool with –reset: don’t ask

Add --json for machine-readable output.

Connect a tool to the local app, or list them.

Terminal window
deedglass app connect [claude-desktop|cursor|vscode|terminal|openai|scribe|database] [--json]

Add --json for machine-readable output.

Set up Deedglass in this directory.

Terminal window
deedglass init [--yes] [--dir .] [--client claude-code|claude-desktop|cursor|vscode|windsurf|sdk-python|sdk-typescript|none] [--listen 127.0.0.1:8080] [--pg-port 55432] [--policy postgres-check|postgres-safe] [--no-open] [--no-smoke] [--lockdown] [--stop] [--purge] [--trigger] [--quiet] [--json]
Flag Type Default What it does
--client string the agent client to connect: claude-code, claude-desktop, cursor, vscode, windsurf, codex, gemini, copilot, sdk-python, sdk-typescript, none (claude-code, claude-desktop, cursor, vscode, windsurf, codex, gemini, copilot, sdk-python, sdk-typescript, none)
--dir string . the directory to set up (.deedglass/ goes here)
--listen string 127.0.0.1:8080 where deedglass serve listens
--lockdown bool the strictest setup (docs/LOCKDOWN.md): lockdown: true for the local server, an ML-DSA-65 seal key beside Ed25519, postgres-safe, the agent labelled with its one connector; every write waits for a person
--no-open bool don’t open the Console
--no-smoke bool skip the three smoke actions
--owner-email string you@localhost.test the local org’s owner
--pg-port int 55432 the local Postgres port (127.0.0.1)
--policy string the starter policy to enforce: postgres-check (default for a new stack: writes run and are checked at Proven) or postgres-safe (writes wait for a person; use it in production)
--postgres string docker where Postgres runs: docker (docker)
--project string the Docker name prefix (default: from the directory)
--purge bool remove the local stack: deedglass serve, both containers, both volumes and the files in .deedglass/ (asks you to type purge unless –yes)
--quiet bool don’t print the quickstart step line
--reset-secrets bool replace the vault key and pepper (asks you to type reset; every API key stops working)
--smoke bool run the smoke actions even when nothing changed
--stop bool stop the local stack this directory runs (the data is kept)
--trigger bool on the stack init made: turn on the demo’s legacy trigger, ship order 42 (1 row reported, 301 changed), then show the undo preview
--yes bool don’t ask; run every step

Add --json for machine-readable output.

Put your own Postgres behind Deedglass.

Terminal window
deedglass connect <postgres-url> [--name <connector>] [--schema public] [--tables a,b] [--policy postgres-safe|postgres-check] [--agent <name>] [--apply] [--confirm <database>] [--dsn-host host:port] [--json]
Flag Type Default What it does
--agent string the agent to create (default: -agent)
--apply bool apply the plan
--confirm string the database name, typed exactly: required to apply to a remote database
--dsn-host string host:port the Deedglass server reaches the database at, when it differs from the URL’s
--name string the connector’s name (default: supabase, neon, or the database’s name)
--policy string postgres-safe the starter to enforce, scoped to this connector: postgres-safe (writes wait for a person) or postgres-check (writes run, checked at Proven)
--schema string public the schema the agent reads and writes
--tables string the tables the agent may write, comma-separated (default: every table in –schema)
--url-env string DATABASE_URL the environment variable holding the URL when none is given

Add --json for machine-readable output.

Add the shell guard to every coding agent.

Terminal window
deedglass protect [--dry-run] [--yes] [--undo] [--client <names>] [--project] [--hook-command <cmd>] [--json]
Flag Type Default What it does
--client string only these agents, comma-separated: claude-code, cursor, codex, gemini, copilot
--dry-run bool print what would change and write nothing
--hook-command string how the hook starts deedglass (default: this binary’s path, or npx -y deedglass@ after an npx run)
--project bool also add the guard to this directory’s agent folders (.claude, .cursor, .codex, .gemini, .github)
--undo bool put back every file protect changed (with –dry-run: say what it would do)
--yes bool write without asking

Add --json for machine-readable output.

Check config, database and keys.

Terminal window
deedglass doctor [--only <ids>] [--quiet] [--json]
Flag Type Default What it does
--only string run only these checks: ids or prefixes, like db.* or seal.key,clock.skew
--quiet bool don’t print the quickstart step line

Add --json for machine-readable output.

Show what your agent setup can change.

Terminal window
deedglass scan [--dir .] [--postgres-dsn-env VAR] [--format md,html,json,sarif] [--score] [--badge] [--badge-share] [--share] [--ci] [--fail-under A|B|C|D] [--full [--no-seal]] [--json]
Flag Type Default What it does
--badge bool write .deedglass/score.json (a shields.io endpoint) and print the README line; the badge links to deedglass.com/score
--badge-share bool –badge, but the badge links to your /s share page (grade, points and counts only; anyone who reads the README can open it)
--ci bool for CI: no user configs, no colour, no mark, never a prompt
--dir string . the directory to scan
--fail-under string exit 1 when the grade is below this one: A, B, C or D (A, B, C, D)
--format string md,html report files to write: md, html, json, sarif (comma-separated) (md, html, json, sarif)
--full bool also write deedglass-full-report.html, the full scan report (Pro or the $29 report; checks the licence)
--max-files int 20000 stop the file walk after this many files
--no-seal bool with –full: don’t seal the report on your Deedglass server
--no-star bool don’t show the one-line GitHub star note (it shows at most once per machine; DEEDGLASS_NO_STAR=1 hides it for good)
--no-write bool print only; write no report files
--out-dir string . where the report files go
--postgres-dsn-env string the environment variable holding a Postgres URL to check read-only (never a URL itself)
--score bool print the score line, the small print and the deductions only
--share bool print a share link that holds the grade, counts and finding ids only
--user-configs bool true also read your user-level MCP client configs (Claude Desktop, Cursor, Windsurf) and Claude Code settings

Add --json for machine-readable output.

Try the hospital pilot on synthetic data.

Terminal window
deedglass health pilot [--region global|india] [--fhir-url <url>] [--out deedglass-pilot] [--no-files] [--console-url <url>] [--fast] [--print-review-pack] [--json]
Flag Type Default What it does
--console-url string http://127.0.0.1:8080 the Console base URL the approve link names
--fast bool print everything at once, with no pauses
--fhir-url string the base URL of your FHIR R4 sandbox (auth none, synthetic data only); scene 1 writes there
--nhcx bool simulate an NHCX claim pre-submission & consumable reconciliation workflow
--no-files bool write no files
--out string deedglass-pilot the folder for REPORT.md, IT_REVIEW_PACK.md, deeds.jsonl and keys.json
--print-review-pack bool print the hospital IT review pack (Markdown) and exit
--region string global global (the healthcare-fhir pack) or india (india-health, for ABDM and NHCX)
--scribe bool simulate an ambient AI scribe SOAP workflow (catches a silent 200 OK allergy drop)

Add --json for machine-readable output.

Watch the 301 scene offline, no Docker.

Terminal window
deedglass play [--fast] [--json]
Flag Type Default What it does
--fast bool print everything at once, with no pauses

Add --json for machine-readable output.

Run the API, the rules and the Console.

Terminal window
deedglass serve [--migrate] [--sso-config <file>] [--sso-provider <type>] [--sso-issuer <url>]
Flag Type Default What it does
--migrate bool dev only: apply pending migrations first (DEEDGLASS_MIGRATE_DATABASE_URL)
--sso-client-id string Hospital OIDC SSO client ID
--sso-client-secret string Hospital OIDC SSO client secret
--sso-config string path to hospital OIDC SSO configuration JSON (or DEEDGLASS_SSO_CONFIG)
--sso-display-name string Hospital OIDC SSO display name on sign-in screen
--sso-issuer string Hospital OIDC SSO issuer URL
--sso-mock bool Enable simulated IdP mock for air-gapped demo and testing
--sso-provider string Hospital OIDC SSO provider type: entra_id, okta, google, or generic
--sso-redirect-url string Hospital OIDC SSO redirect URI

Add --json for machine-readable output.

Apply database migrations.

Terminal window
deedglass migrate up [--database-url <url>] [--dry-run] [--json]
Flag Type Default What it does
--database-url string the migrator role’s Postgres URL (default DEEDGLASS_MIGRATE_DATABASE_URL)
--dry-run bool show what would be applied, and apply nothing

Add --json for machine-readable output.

Show applied and pending migrations.

Terminal window
deedglass migrate status [--database-url <url>] [--json]
Flag Type Default What it does
--database-url string the migrator role’s Postgres URL (default DEEDGLASS_MIGRATE_DATABASE_URL)

Add --json for machine-readable output.

Check applied migrations against this build.

Terminal window
deedglass migrate verify [--database-url <url>] [--json]
Flag Type Default What it does
--database-url string the migrator role’s Postgres URL (default DEEDGLASS_MIGRATE_DATABASE_URL)

Add --json for machine-readable output.

Show the effective config, secrets hidden.

Terminal window
deedglass config print [--json]

Add --json for machine-readable output.

Show lockdown and what weakens it.

Terminal window
deedglass lockdown status [--org acme] [--json]
Flag Type Default What it does
--as string the owner or admin this is done for (an email); the record names them
--countersign bool off: countersign another person’s request to turn lockdown off
--reason string why; it goes into the record

Add --json for machine-readable output.

Turn lockdown on for the org.

Terminal window
deedglass lockdown on [--org acme] [--reason "…"] [--json]
Flag Type Default What it does
--as string the owner or admin this is done for (an email); the record names them
--countersign bool off: countersign another person’s request to turn lockdown off
--reason string why; it goes into the record

Add --json for machine-readable output.

Ask for, or countersign, lockdown off.

Terminal window
deedglass lockdown off --as <email> [--countersign] [--org acme] [--reason "…"] [--json]
Flag Type Default What it does
--as string the owner or admin this is done for (an email); the record names them
--countersign bool off: countersign another person’s request to turn lockdown off
--reason string why; it goes into the record

Add --json for machine-readable output.

Release a Can’t check hold on an agent.

Terminal window
deedglass lockdown ack <act_…> --as <email> [--org acme] [--reason "…"] [--json]
Flag Type Default What it does
--as string the owner or admin this is done for (an email); the record names them
--countersign bool off: countersign another person’s request to turn lockdown off
--reason string why; it goes into the record

Add --json for machine-readable output.

Show the client and server versions.

Terminal window
deedglass version [--json] [--check [--pre]]
Flag Type Default What it does
--check bool ask GitHub’s releases API whether a newer version exists (opt-in; sends only a User-Agent)
--pre bool with –check, count prereleases too
--q bool no banner
--quiet bool no banner

Add --json for machine-readable output.

Generate a seal key.

Terminal window
deedglass keys gen [--dir <dir>] [--purpose seal|licence] [--json]
Flag Type Default What it does
--dir string directory for the key file (default .deedglass/keys)
--purpose string seal seal (a deed seal key), licence (an lk_ key that signs licence tokens, never deeds) or packs (the key that signs the policy-packs index)

Add --json for machine-readable output.

Rotate the active seal key.

Terminal window
deedglass keys rotate [--overlap 5m] [--dir <dir>] [--json]
Flag Type Default What it does
--alg string Ed25519 Ed25519 (replace the seal key) or ML-DSA-65 (add a post-quantum key beside it)
--dir string directory for the new key file (default: next to DEEDGLASS_SEAL_KEY_FILE, else .deedglass/keys)
--overlap duration 5m0s how long the old key keeps sealing (1s to 168h)

Add --json for machine-readable output.

List seal keys.

Terminal window
deedglass keys list [--server <url>] [--json]

Add --json for machine-readable output.

Turn on a licence key (none needed today).

Terminal window
deedglass licence activate <key> [--json]

Add --json for machine-readable output.

Show this machine’s licence, offline.

Terminal window
deedglass licence show [--json]

Add --json for machine-readable output.

Check the licence with Dodo now.

Terminal window
deedglass licence refresh [--json]

Add --json for machine-readable output.

Remove the licence from this machine.

Terminal window
deedglass licence deactivate [--json]

Add --json for machine-readable output.

Show the credential vault’s keys.

Terminal window
deedglass vault status [--json]

Add --json for machine-readable output.

Re-encrypt credentials with a new key.

Terminal window
deedglass vault rotate [--json]

Add --json for machine-readable output.

Print zsh completion.

Terminal window
deedglass completion zsh

Add --json for machine-readable output.

Print bash completion.

Terminal window
deedglass completion bash

Add --json for machine-readable output.

Print fish completion.

Terminal window
deedglass completion fish

Add --json for machine-readable output.