CLI Reference
Auto-Generated
This page was auto-generated from canon --help on 2026-03-18 18:07 UTC. See source script.
The Canon CLI provides local spec management commands.
Installation
# With uv (recommended)
uv tool install canonhq
# With pip
pip install canonhq
# Run without installing
uvx --from canonhq canon --helpCommands
usage: canon [-h]canon setup
Initialize a repository for Canon. Creates CANON.yaml, the spec directory, and a starter template.
usage: canon setup [-h] [--team TEAM] [--ticket-system {github,jira,linear}] [--non-interactive]Options:
| Option | Description |
|---|---|
-h, --help | show this help message and exit |
--team TEAM | Team name for CANON.yaml |
--ticket-system {github,jira,linear} | Ticket system (default: github) |
--non-interactive | Skip prompts (for CI/Actions) |
canon login
Authenticate with the Canon platform using device authorization flow or API key.
usage: canon login [-h] [--api-key API_KEY] [--server SERVER]Options:
| Option | Description |
|---|---|
-h, --help | show this help message and exit |
--api-key API_KEY | Authenticate with an API key instead of OAuth |
--server SERVER | Platform URL (default: $CANON_URL or https://canonhq.co) |
canon logout
Log out and revoke the current session.
usage: canon logout [-h]Options:
| Option | Description |
|---|---|
-h, --help | show this help message and exit |
canon auth
Authentication utilities. Use auth status to check current authentication state.
usage: canon auth [-h] {status} ...Arguments:
| Argument | Description |
|---|---|
status | Show current authentication status |
Options:
| Option | Description |
|---|---|
-h, --help | show this help message and exit |
canon auth status
usage: canon auth status [-h]Options:
| Option | Description |
|---|---|
-h, --help | show this help message and exit |
canon tasks
List actionable work items from specs. Shows sections with todo or in_progress status and their acceptance criteria.
usage: canon tasks [-h] [--status STATUS] [--spec SPEC] [--all]Options:
| Option | Description |
|---|---|
-h, --help | show this help message and exit |
--status STATUS | Filter by specific status |
--spec SPEC | Filter to a single spec file |
--all | Include done/deprecated/draft |
canon status
Show spec coverage dashboard. Displays per-spec and aggregate coverage metrics.
usage: canon status [-h] [--spec SPEC]Options:
| Option | Description |
|---|---|
-h, --help | show this help message and exit |
--spec SPEC | Show detail for a single spec file |
canon start
Mark a spec section as in_progress. Optionally creates or updates a linked GitHub Issue.
usage: canon start [-h] [--issue] section_idArguments:
| Argument | Description |
|---|---|
section_id | Section ID, number, or partial slug |
Options:
| Option | Description |
|---|---|
-h, --help | show this help message and exit |
--issue | Create/update GitHub Issue for this section |
canon done
Mark a spec section as done. Optionally closes the linked GitHub Issue.
usage: canon done [-h] [--issue] section_idArguments:
| Argument | Description |
|---|---|
section_id | Section ID, number, or partial slug |
Options:
| Option | Description |
|---|---|
-h, --help | show this help message and exit |
--issue | Update/close GitHub Issue if ticket link exists |
canon sync
Sync spec sections with the configured ticket system (GitHub Issues, Jira, or Linear). Supports forward sync (spec → tickets) and reverse sync (tickets → spec).
usage: canon sync [-h] [--reverse] [--spec SPEC] [--dry-run] [--local]Options:
| Option | Description |
|---|---|
-h, --help | show this help message and exit |
--reverse | Pull ticket statuses into spec markdown |
--spec SPEC | Filter to a single spec file |
--dry-run | Preview changes without executing |
--local | Bypass server proxy and use GITHUB_TOKEN / gh CLI directly |
canon verify
Verify acceptance criteria against the codebase using Claude. Reports which ACs are realized, partial, or not found.
usage: canon verify [-h] [--section SECTION]Options:
| Option | Description |
|---|---|
-h, --help | show this help message and exit |
--section SECTION | Filter to a single section ID |
canon audit
Audit spec statuses against the codebase using Claude. Checks off realized ACs, inserts evidence comments, and optionally runs ticket sync.
usage: canon audit [-h] [--dry-run] [--sync] [--spec SPEC] [--no-ac-updates]Options:
| Option | Description |
|---|---|
-h, --help | show this help message and exit |
--dry-run | Preview changes without writing |
--sync | Run ticket sync after audit |
--spec SPEC | Filter to a single spec file |
--no-ac-updates | Skip checking off ACs and inserting evidence |
canon plan
Generate a task plan from a spec. Outputs a structured implementation plan based on unchecked acceptance criteria.
usage: canon plan [-h] [--output OUTPUT] spec_fileArguments:
| Argument | Description |
|---|---|
spec_file | Spec file path or partial match |
Options:
| Option | Description |
|---|---|
-h, --help | show this help message and exit |
--output OUTPUT | Write plan to file instead of stdout |