Skip to content

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

bash
# With uv (recommended)
uv tool install canonhq

# With pip
pip install canonhq

# Run without installing
uvx --from canonhq canon --help

Commands

usage: canon [-h]

canon setup

Initialize a repository for Canon. Creates CANON.yaml, the spec directory, and a starter template.

bash
usage: canon setup [-h] [--team TEAM] [--ticket-system {github,jira,linear}] [--non-interactive]

Options:

OptionDescription
-h, --helpshow this help message and exit
--team TEAMTeam name for CANON.yaml
--ticket-system {github,jira,linear}Ticket system (default: github)
--non-interactiveSkip prompts (for CI/Actions)

canon login

Authenticate with the Canon platform using device authorization flow or API key.

bash
usage: canon login [-h] [--api-key API_KEY] [--server SERVER]

Options:

OptionDescription
-h, --helpshow this help message and exit
--api-key API_KEYAuthenticate with an API key instead of OAuth
--server SERVERPlatform URL (default: $CANON_URL or https://canonhq.co)

canon logout

Log out and revoke the current session.

bash
usage: canon logout [-h]

Options:

OptionDescription
-h, --helpshow this help message and exit

canon auth

Authentication utilities. Use auth status to check current authentication state.

bash
usage: canon auth [-h] {status} ...

Arguments:

ArgumentDescription
statusShow current authentication status

Options:

OptionDescription
-h, --helpshow this help message and exit

canon auth status

bash
usage: canon auth status [-h]

Options:

OptionDescription
-h, --helpshow 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.

bash
usage: canon tasks [-h] [--status STATUS] [--spec SPEC] [--all]

Options:

OptionDescription
-h, --helpshow this help message and exit
--status STATUSFilter by specific status
--spec SPECFilter to a single spec file
--allInclude done/deprecated/draft

canon status

Show spec coverage dashboard. Displays per-spec and aggregate coverage metrics.

bash
usage: canon status [-h] [--spec SPEC]

Options:

OptionDescription
-h, --helpshow this help message and exit
--spec SPECShow detail for a single spec file

canon start

Mark a spec section as in_progress. Optionally creates or updates a linked GitHub Issue.

bash
usage: canon start [-h] [--issue] section_id

Arguments:

ArgumentDescription
section_idSection ID, number, or partial slug

Options:

OptionDescription
-h, --helpshow this help message and exit
--issueCreate/update GitHub Issue for this section

canon done

Mark a spec section as done. Optionally closes the linked GitHub Issue.

bash
usage: canon done [-h] [--issue] section_id

Arguments:

ArgumentDescription
section_idSection ID, number, or partial slug

Options:

OptionDescription
-h, --helpshow this help message and exit
--issueUpdate/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).

bash
usage: canon sync [-h] [--reverse] [--spec SPEC] [--dry-run] [--local]

Options:

OptionDescription
-h, --helpshow this help message and exit
--reversePull ticket statuses into spec markdown
--spec SPECFilter to a single spec file
--dry-runPreview changes without executing
--localBypass 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.

bash
usage: canon verify [-h] [--section SECTION]

Options:

OptionDescription
-h, --helpshow this help message and exit
--section SECTIONFilter 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.

bash
usage: canon audit [-h] [--dry-run] [--sync] [--spec SPEC] [--no-ac-updates]

Options:

OptionDescription
-h, --helpshow this help message and exit
--dry-runPreview changes without writing
--syncRun ticket sync after audit
--spec SPECFilter to a single spec file
--no-ac-updatesSkip 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.

bash
usage: canon plan [-h] [--output OUTPUT] spec_file

Arguments:

ArgumentDescription
spec_fileSpec file path or partial match

Options:

OptionDescription
-h, --helpshow this help message and exit
--output OUTPUTWrite plan to file instead of stdout

AI-native enterprise documentation platform.