CLI commands

Every command in the ana CLI, grouped by category. Run ana --help or ana <command> --help for flags and usage.

Commands · 35Last reviewed · 2026-05-26

Getting Started

ana scan [path]

Detect stack, conventions, and patterns

Flags: --json--save-q--quick
ana init

Scan project and generate agent context

Flags: -f-y
ana setup

Enrich context with team knowledge

ana setup complete

Validate context files and finalize setup

Flags: --force
ana setup check [filename]

Validate context files for quality gates

Flags: --json
ana setup index

Build symbol index for citation verification

ana doctor

Check project health and configuration

Flags: --json

Pipeline

ana work

Start, track, and complete development tasks

ana work status

Show pipeline state for all active work items

Flags: --json--session
ana work start <slug>

Start a new work item

Flags: --force
ana work complete <slug>

Archive completed work after PR merge, optionally merging the PR first

Flags: --json--merge
ana artifact

Save pipeline outputs with hash verification

ana artifact save <type> <slug>

Commit a pipeline artifact to the correct branch

ana artifact save-all <slug>

Commit all artifacts in a plan directory atomically

ana verify

Verify contract assertions before code review

ana verify pre-check <slug>

Run contract seal verification

ana pr

Create pull request from verified build

ana pr create <slug>

Create GitHub PR from pipeline artifacts

Configuration

ana config

Read and write ana.json settings

ana config show

Show all settings

Flags: --json
ana config get <field>

Get a config field value

Flags: --json
ana config set <field> <value>

Set a config field value

ana config delete <field>

Delete a config field

Intelligence

ana proof [slug]

View proof chain entries, health, and findings

Flags: --json
ana proof context <files>

Query proof chain for context about specific files

Flags: --json
ana proof close <ids>

Close active findings with a reason

Flags: --reason <reason>--dry-run--json
ana proof promote <ids>

Promote findings to a skill rule

Flags: --skill <skill>--text <text>--section <section>--force--json
ana proof strengthen <ids>

Commit a skill file edit and mark findings as promoted

Flags: --skill <skill>--reason <reason>--force--json
ana proof audit

List active findings grouped by file

Flags: --json--full--severity <values>--entry <slug>--matrix--surface <name>--new--since <date>
ana proof health

Display proof chain health dashboard

Flags: --json--surface <name>
ana proof stale

Show findings with staleness signals from subsequent pipeline runs

Flags: --after <slug>--min-confidence <level>--json
ana learn

Manage learn sessions

ana learn end

End learn session — mark timestamp for next session

Flags: --json
ana agents

Agent dashboard — list agents, manage models

ana agents model [agent] [model]

Show or set agent model overrides

Flags: --default--all