Edictum
Reference

CLI Reference

Canonical Edictum CLI surface from edictum-go.

AI Assistance

Right page if: you need the real command-line surface for Edictum today. Wrong page if: you only need the Python or TypeScript runtime API -- see the language-specific docs. For Gate workflow behavior, see https://docs.edictum.ai/docs/guides/gate. Gotcha: the canonical CLI ships from edictum-go. The Python package does not ship general-purpose validate/check/diff/test commands.

The canonical Edictum CLI lives in edictum-go.

Install it with:

go install github.com/edictum-ai/edictum-go/cmd/edictum@latest

Core Commands

CommandPurpose
edictum versionPrint the installed CLI version
edictum validate <files...>Validate YAML rulesets against schema
edictum check <files...>Evaluate one tool call against rules
edictum diff <file1> <file2> [file3...]Compare rulesets
edictum replay <bundle>Replay audit events against rules
edictum test <bundle>Run rule test cases
edictum skill scan <path>Scan a skill directory or SKILL.md for security risks

Examples

Validate a rules directory:

edictum validate ./rules

Dry-run one call:

edictum check ./rules.yaml \
  --tool Read \
  --args '{"path":"README.md"}'

Diff two policy versions:

edictum diff ./rules-v1.yaml ./rules-v2.yaml

Scan a skill collection:

edictum skill scan ./skills --threshold HIGH

edictum skill scan supports:

  • --json
  • --threshold CRITICAL|HIGH|MEDIUM
  • --structural-only
  • --verbose

Gate Commands

CommandPurpose
edictum gate initSet up Gate config, rules, and optional workflow
edictum gate install <assistant>Register a hook with a coding assistant
edictum gate uninstall <assistant>Remove a hook
edictum gate statusShow Gate config, workflow state, and pending events
edictum gate auditShow recent local audit events
edictum gate syncFlush buffered audit events to the control plane
edictum gate checkPreflight evaluation path used by hooks
edictum gate run -- <command>Execute a tool call through the full Gate runtime
edictum gate reset --stage <id>Reset the active workflow session

Key behavior:

  • gate check is the preflight hook path.
  • gate run is the full runtime path and is what enforces workflow gates.
  • gate init expects a real --rules file or directory if you want policy to load immediately.

What This Page Replaces

Older docs described a Python-packaged CLI with commands such as pip install edictum[cli], edictum validate, edictum test, and a Python Gate install path. That is stale. Use the Go CLI above for command-line workflows.

Last updated on

On this page