Skip to content

CLI Reference

FlagDescription
--helpShow usage information
--versionPrint current version

Run a full rule audit against a target repo.

Terminal window
anvil audit --target ./my-repo [options]
OptionDescription
--target <path>Path to the repo to audit (required)
--output <path>Save report to a file
--ciDeterministic 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-aiDeprecated 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.

Detect drift in rule surfaces.

Terminal window
anvil drift ./my-repo

Checks glob resolution, path existence, validation dates, and coverage gaps.

Generate starter rule sets from tech stack analysis.

Terminal window
anvil bootstrap ./my-repo --output ./bootstrap-draft.md

Reads package.json, tsconfig.json, and framework configs to generate tailored starter rules.

Mine GitHub PR review comments for rule candidates.

Terminal window
anvil mine-pr owner/repo

Requires GITHUB_TOKEN in the environment.

Terminal window
# Zero-install
bunx @lambdacurry/anvil <command>
# npm fallback
npx @lambdacurry/anvil <command>
# Global install
bun add -g @lambdacurry/anvil
anvil <command>