CLI reference

Every contractor command and subcommand registered in the CLI entry point.

contractor is driven from the contractor CLI. This page lists every top-level command, its subcommands, and the flags they accept. Slash commands installed into AI providers live on the slash commands reference.

Global flags

Every command accepts these flags up front, before the subcommand:

Global state lives under ~/.contractor/ (the global config file at ~/.contractor/config.yaml, the SQLite database at ~/.contractor/contractor.db, and per-run logs under ~/.contractor/projects/<encoded-repo>/logs/). Older repos may still carry a contractor/.state/ directory; it is no longer read at runtime — contractor doctor --fix will help migrate it.

Setup

Per-repo installation and AI provider integration.

contractor repo

contractor ai

Blueprints

Create, inspect, validate, and archive blueprints.

contractor blueprint

Worktrees

contractor worktree

Profiles

Manage the per-profile Claude usage cache.

contractor profile

Execution

Run pipelines, watch the dashboard, and keep the global state DB healthy.

contractor run

Spawns a detached pipeline-shim and tails its events. The active blueprint is auto-resolved when there is exactly one in the worktree.

Exit codes: 0 on completed, 1 on failed, 130 on cancelled (SIGINT).

Dashboards and daemons

Health and maintenance

Other

Shell completions

See also