CLI Reference
Global flags
Section titled “Global flags”| Flag | Description |
|---|---|
--help | Show usage information |
--version | Print current version |
anvil audit
Section titled “anvil audit”Run a full rule audit against a target repo.
anvil audit --target ./my-repo [options]| Option | Description |
|---|---|
--target <path> | Path to the repo to audit (required) |
--output <path> | Save report to a file |
--ci | Deterministic local-only structural lint mode (skips AI synthesis) |
--ai-provider <provider> | AI provider: auto | openai | codex-cli | claude-code | gemini-cli | opencode | heuristic |
hidden alias: --no-ai | Deprecated compatibility alias for --ci |
--ai-model <model> | Model to use for synthesis (e.g., gpt-4o) |
Relative --target paths resolve from your current shell cwd.
If you arrived here from the external first-user proof docs, use the exact pinned command from that packet. The current 0.1.0-alpha.6 packet uses the public --ci spelling; --no-ai remains only as a deprecated compatibility alias.
anvil drift
Section titled “anvil drift”Detect drift in rule surfaces.
anvil drift ./my-repoChecks glob resolution, path existence, validation dates, and coverage gaps.
anvil bootstrap
Section titled “anvil bootstrap”Generate starter rule sets from tech stack analysis.
anvil bootstrap ./my-repo --output ./bootstrap-draft.mdReads package.json, tsconfig.json, and framework configs to generate tailored starter rules.
anvil mine-pr
Section titled “anvil mine-pr”Mine GitHub PR review comments for rule candidates.
anvil mine-pr owner/repoRequires GITHUB_TOKEN in the environment.
Install methods
Section titled “Install methods”# Zero-installbunx @lambdacurry/anvil <command>
# npm fallbacknpx @lambdacurry/anvil <command>
# Global installbun add -g @lambdacurry/anvilanvil <command>