@enforra/cli
v0.2.0
Published
Command line tools for local Enforra setup, policy testing, and audit verification.
Readme
Enforra CLI
The Enforra CLI helps developers try the OSS SDK quickly from a local project. It can create starter policy files, run policy tests, verify local hash-chain audit logs, and check basic local setup.
No telemetry, network calls, hosted API, dashboard, auth, billing, or cloud features are included.
Install
Later, install it in your project:
npm install -D @enforra/cliFrom this monorepo, run the CLI package with pnpm filters or after building the workspace package.
Commands
enforra init
enforra test
enforra report
enforra audit verify
enforra doctorenforra init creates:
policies/enforra.yaml
policies/enforra.cases.yamlenforra test defaults to those files, and also supports:
enforra test --policy policies/starter/support-agent.yaml --cases examples/quickstart/support-refund-node/policy-cases.yaml
enforra test --traceenforra audit verify defaults to:
.enforra/audit.jsonlenforra report reads local JSONL audit logs and prints text, JSON, or markdown summaries:
enforra report --audit .enforra/audit.jsonl
enforra report --audit .enforra/audit.jsonl --format json
enforra report --audit .enforra/audit.jsonl --format markdown
enforra report --decision block