CLI: Setup
Generated from deedglass help --json (CLI 0.15.1). Global flags and exit codes are on the CLI reference page.
deedglass start
Section titled “deedglass start”See it catch a wrong row count, no questions.
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.
deedglass app
Section titled “deedglass app”Open Deedglass in your browser, no setup.
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.
deedglass app connect
Section titled “deedglass app connect”Connect a tool to the local app, or list them.
deedglass app connect [claude-desktop|cursor|vscode|terminal|openai|scribe|database] [--json]Add --json for machine-readable output.
deedglass init
Section titled “deedglass init”Set up Deedglass in this directory.
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.
deedglass connect
Section titled “deedglass connect”Put your own Postgres behind Deedglass.
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: |
|
--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.
deedglass protect
Section titled “deedglass protect”Add the shell guard to every coding agent.
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@ |
|
--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.
deedglass doctor
Section titled “deedglass doctor”Check config, database and keys.
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.
deedglass scan
Section titled “deedglass scan”Show what your agent setup can change.
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.
deedglass health pilot
Section titled “deedglass health pilot”Try the hospital pilot on synthetic data.
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.
deedglass play
Section titled “deedglass play”Watch the 301 scene offline, no Docker.
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.
deedglass serve
Section titled “deedglass serve”Run the API, the rules and the Console.
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.
deedglass migrate up
Section titled “deedglass migrate up”Apply database migrations.
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.
deedglass migrate status
Section titled “deedglass migrate status”Show applied and pending migrations.
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.
deedglass migrate verify
Section titled “deedglass migrate verify”Check applied migrations against this build.
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.
deedglass config print
Section titled “deedglass config print”Show the effective config, secrets hidden.
deedglass config print [--json]Add --json for machine-readable output.
deedglass lockdown status
Section titled “deedglass lockdown status”Show lockdown and what weakens it.
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.
deedglass lockdown on
Section titled “deedglass lockdown on”Turn lockdown on for the org.
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.
deedglass lockdown off
Section titled “deedglass lockdown off”Ask for, or countersign, lockdown off.
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.
deedglass lockdown ack
Section titled “deedglass lockdown ack”Release a Can’t check hold on an agent.
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.
deedglass version
Section titled “deedglass version”Show the client and server versions.
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.
deedglass keys gen
Section titled “deedglass keys gen”Generate a seal key.
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.
deedglass keys rotate
Section titled “deedglass keys rotate”Rotate the active seal key.
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.
deedglass keys list
Section titled “deedglass keys list”List seal keys.
deedglass keys list [--server <url>] [--json]Add --json for machine-readable output.
deedglass licence activate
Section titled “deedglass licence activate”Turn on a licence key (none needed today).
deedglass licence activate <key> [--json]Add --json for machine-readable output.
deedglass licence show
Section titled “deedglass licence show”Show this machine’s licence, offline.
deedglass licence show [--json]Add --json for machine-readable output.
deedglass licence refresh
Section titled “deedglass licence refresh”Check the licence with Dodo now.
deedglass licence refresh [--json]Add --json for machine-readable output.
deedglass licence deactivate
Section titled “deedglass licence deactivate”Remove the licence from this machine.
deedglass licence deactivate [--json]Add --json for machine-readable output.
deedglass vault status
Section titled “deedglass vault status”Show the credential vault’s keys.
deedglass vault status [--json]Add --json for machine-readable output.
deedglass vault rotate
Section titled “deedglass vault rotate”Re-encrypt credentials with a new key.
deedglass vault rotate [--json]Add --json for machine-readable output.
deedglass completion zsh
Section titled “deedglass completion zsh”Print zsh completion.
deedglass completion zshAdd --json for machine-readable output.
deedglass completion bash
Section titled “deedglass completion bash”Print bash completion.
deedglass completion bashAdd --json for machine-readable output.
deedglass completion fish
Section titled “deedglass completion fish”Print fish completion.
deedglass completion fishAdd --json for machine-readable output.