Skip to content

CLI Reference

Auto-Generated

This page was auto-generated from specwright --help on 2026-03-05 04:52 UTC. See source script.

The Specwright CLI provides local spec management commands.

Installation

bash
# With uv (recommended)
uv tool install gv-specwright

# With pip
pip install gv-specwright

# Run without installing
uvx --from gv-specwright specwright --help

Commands

usage: specwright [-h]

specwright setup

Initialize a repository for Specwright. Creates SPECWRIGHT.yaml, the spec directory, and a starter template.

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

Options:

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

specwright login

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

bash
usage: specwright 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: $SPECWRIGHT_URL or https://specwright.gernerventures.com)

specwright logout

Log out and revoke the current session.

bash
usage: specwright logout [-h]

Options:

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

specwright auth

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

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

Arguments:

ArgumentDescription
statusShow current authentication status

Options:

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

specwright auth status

bash
usage: specwright auth status [-h]

Options:

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

specwright tasks

List actionable work items from specs. Shows sections with todo or in_progress status and their acceptance criteria.

bash
usage: specwright 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

specwright status

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

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

Options:

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

specwright start

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

bash
usage: specwright 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

specwright done

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

bash
usage: specwright 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

specwright 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: specwright 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

specwright verify

Verify acceptance criteria against the codebase using Claude. Reports which ACs are realized, partial, or not found.

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

Options:

OptionDescription
-h, --helpshow this help message and exit
--section SECTIONFilter to a single section ID

specwright audit

Audit spec statuses against the codebase using Claude. Checks off realized ACs, inserts evidence comments, and optionally runs ticket sync.

bash
usage: specwright 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

specwright plan

Generate a task plan from a spec. Outputs a structured implementation plan based on unchecked acceptance criteria.

bash
usage: specwright 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.