Skip to content

CLI: Policies

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

Check a policy file.

Terminal window
deedglass policy lint <file|dir|->... [--format text|json|github] [--voice] [--json]

Add --json for machine-readable output.

Format a policy file.

Terminal window
deedglass policy fmt [-w] [--check] <file|dir|->... [--json]

Add --json for machine-readable output.

Run a policy’s test cases.

Terminal window
deedglass policy test <policy.yaml|cases.yaml>... [--cases <file>] | --dir <dir> [--require-coverage] [--voice] [--run <regexp>] [--json]

Add --json for machine-readable output.

Upload a new policy version.

Terminal window
deedglass policy push <policy.yaml> [--notes "…"] [--json]

Add --json for machine-readable output.

Activate a policy version.

Terminal window
deedglass policy activate <name|pol_…> --version <n> --mode enforce|shadow --reason "…" [--yes] [--ack default_allow] | --clear --reason "…" [--json]

Add --json for machine-readable output.

Evaluate one action against a policy.

Terminal window
deedglass policy evaluate --policy <file> | --server [--policy <name> --version <n>] --tool <name> [--sql …] [--args <json>] [--input <file>] [--agent …] [--label k=v] [--user …] [--time …] [--tz …] [--usage k=v] [--explain] [--json]

Add --json for machine-readable output.

Replay past actions against a version.

Terminal window
deedglass policy replay <name|pol_…> --version <n> [--from 7d] [--to now] [--baseline recorded|vN] [--wait] [--quiet] [--json]

Add --json for machine-readable output.

Compare two policy versions.

Terminal window
deedglass policy diff <old.yaml> <new.yaml> | <policy> <vA> <vB> [--context 3] [--json]

Add --json for machine-readable output.

Install a policy pack as files.

Terminal window
deedglass policy install <pack>[@version] [--dir policies] [--from <dir|tar.gz>] [--latest] [--yes] [--json]

Add --json for machine-readable output.

List the policy packs.

Terminal window
deedglass policy packs list [--from <dir|tar.gz>] [--latest] [--json]

Add --json for machine-readable output.

Check the packs against their signed index.

Terminal window
deedglass policy packs verify [--from <dir|tar.gz>] [--latest] [--json]

Add --json for machine-readable output.

Check a shell command before an agent runs it.

Terminal window
deedglass guard shell [--client <name>] [--deny] [--no-files] [--command "<cmd>"] [--print-config] [--list] [--json]
Flag Type Default What it does
--client string claude-code the coding agent running the hook, which sets the input it reads and the answer it writes: claude-code, codex, gemini, copilot, cursor, vscode
--command string check this command and print what was found, instead of reading a hook input on stdin
--deny bool deny instead of ask: the command doesn’t run and Claude reads the reason
--list bool print the catalog: every command shape it asks about, with its source and the date it was checked
--no-files bool read only the command: no package.json scripts, shell scripts or SQL files from the working directory
--print-config bool print the hook config for –client and where it goes, instead of reading a hook input (it writes no file)

Add --json for machine-readable output.