Skip to content

Complete CLI Reference

Complete reference of every spechatch command, nested subcommand, flag, option, example, file, and exit code — generated directly from the live CLI parser and Unix man page definitions (spechatch man <command>).


Terminal window
spechatch [--version] [--config PATH] [--lang LOCALE] <command> [options]
Argument / Option Description
--version show program’s version number and exit
--config CONFIG Path to spechatch.project.yml (overrides SPECHATCH_CONFIG).
--lang LANG Locale for generated templates and roadmap (en-US, es-ES, it-IT, fr-FR, de-DE; overrides SPECHATCH_LOCALE and spechatch.project.yml).


Database-direct operator bootstrap and break-glass recovery commands against SPECHATCH_DATABASE_URL (requires the optional [incubator] extra). All privileged actions are recorded in the auth_audit_events table.

Terminal window
spechatch admin <init|reset-password|transfer-superuser>

One-time interactive creation of the initial superuser and human API key.

Terminal window
spechatch admin init [--username USERNAME] [--full-name FULL_NAME] [--key-name KEY_NAME]
Argument / Option Description
--username USERNAME Superuser username (default prompt).
--full-name FULL_NAME Superuser full name.
--key-name KEY_NAME Label for the initial human API key.

Reset a user’s password directly in the DB and optionally rotate their API keys.

Terminal window
spechatch admin reset-password <username> [--rotate-key] [--key-name KEY_NAME]
Argument / Option Description
username Username to reset.
--rotate-key Revoke all existing API keys for this user and mint a fresh one-time key.
--key-name KEY_NAME Label for the newly rotated API key.

Deactivate a departing superuser (revoking all keys) and promote/create a replacement.

Terminal window
spechatch admin transfer-superuser [--from FROM_USER] [--to TO_USER] [--full-name FULL_NAME] [--key-name KEY_NAME]
Argument / Option Description
--from FROM_USER (required) Departing superuser username.
--to TO_USER (required) Replacement superuser username.
--full-name FULL_NAME Full name if creating a brand-new replacement user.
--key-name KEY_NAME Label for the replacement superuser’s new API key.

Examples:

Terminal window
# Interactively create the initial superuser and print a one-time shk_* human API key.
spechatch admin init
# Reset alice's Argon2id password, revoke prior API keys, and mint a fresh shk_* key.
spechatch admin reset-password alice --rotate-key
# Demote and deactivate alice (revoking keys) and promote bob to superuser.
spechatch admin transfer-superuser --from alice --to bob

Relevant Files:

  • ~/.config/spechatch/.env — Global secret store containing SPECHATCH_DATABASE_URL.

Exit Codes: 0 Administrative operation succeeded. · 1 Missing [incubator] extra, superuser lock conflict, or database error.

See also: spechatch serve, spechatch healthcheck, spechatch secret


List or synchronize both bundled SDD agent skills and rule packs together across all targets configured in spechatch.project.yml (antigravity, cursor, claude, codex). Unmanaged user files are never overwritten unless —force is passed.

Terminal window
spechatch agents <add|catalog|list|remove|sync>

Enable one or more bundled skills and rules in spechatch.project.yml.

Terminal window
spechatch agents add <NAME...> [--sync]
Argument / Option Description
NAME Skill or rule pack name(s) to enable.
--sync Immediately render and sync the newly enabled files.

Browse available bundled skills and rules by tier.

Terminal window
spechatch agents catalog [--tier {core|methodology|tooling|custom}]
Argument / Option Description
--tier core/methodology/tooling/custom Optional tier filter (core, methodology, tooling, or custom).

Show sync status for configured skills and rules.

Terminal window
spechatch agents list

Disable one or more bundled skills and rules in spechatch.project.yml.

Terminal window
spechatch agents remove <NAME...>
Argument / Option Description
NAME Skill or rule pack name(s) to disable.

Render and sync configured skills and rules.

Terminal window
spechatch agents sync [--dry-run] [--diff] [--force]
Argument / Option Description
--dry-run Show planned actions without modifying any files.
--diff Show unified diffs without modifying any files.
--force Overwrite existing unmanaged files.

Examples:

Terminal window
# Inspect sync status (synced, drifted, missing, unmanaged) for all configured skills and rules.
spechatch agents list
# Preview unified diffs for .agents/, .cursor/, .claude/, CLAUDE.md, and AGENTS.md without writing.
spechatch agents sync --diff
# Write all managed agent skills, rules, Cursor .mdc mirrors, CLAUDE.md, and AGENTS.md.
spechatch agents sync

Relevant Files:

  • spechatch.project.yml — Defines agents.targets, agents.skills, and agents.rule_packs.
  • .agents/skills/ — Antigravity SDD skill directories.
  • .cursor/rules/ — Cursor .mdc rule mirrors.
  • CLAUDE.md / AGENTS.md — Consolidated managed instructions for Claude Code and Codex.

Exit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.

See also: spechatch skills, spechatch rules, spechatch mcp


Record an immutable human checkpoint approval for a specification phase (specify, clarify, plan, tasks, or implement) on the Incubator server. Approvals are cryptographically bound to the spec’s current content_hash and constitution_hash, and require a human API key when SPECHATCH_AUTH_ENABLED=true.

Terminal window
spechatch approve <spec_id> [--phase {specify|clarify|plan|tasks|implement}] [--comment COMMENT]
Argument / Option Description
spec_id Spec ID to approve.
--phase specify/clarify/plan/tasks/implement (required) SDD lifecycle phase being approved.
--comment COMMENT Optional reviewer note.

Examples:

Terminal window
# Approve the technical plan for spec 000012 on the Incubator.
spechatch approve 000012 --phase plan
# Record final implementation sign-off with an audit comment.
spechatch approve 000012 --phase implement --comment "Verified tests and migrations"

Exit Codes: 0 Approval checkpoint recorded. · 1 Spec not found, Incubator unreachable, or 403 Forbidden (non-human API key).

See also: spechatch revise, spechatch context, spechatch verify


Idempotently seed the Incubator server’s monotonic ID counters (highest local ID + 1) and upsert all existing local specs into the project’s live roadmap ledger. Run this once when connecting an existing local repository to an Incubator server or after offline local ID creation.

Terminal window
spechatch bootstrap

Examples:

Terminal window
# Seed counters and import all local specs into the Incubator project matching spechatch.project.yml.
spechatch bootstrap
# Bootstrap using an explicit project configuration file.
spechatch --config custom.project.yml bootstrap

Relevant Files:

  • spechatch.project.yml — Project slug and counter definitions.

Exit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.

See also: spechatch serve, spechatch roadmap, spechatch sync


Generate a deterministic Keep a Changelog Markdown document (or structured JSON) directly from completed, versioned specifications on disk. Releases are ordered by descending SemVer and grouped into Features (spec, epic), Bug Fixes (bugfix, hotfix), and Other.

Terminal window
spechatch changelog [--version VER] [--output PATH] [--include-unreleased] [--json]
Argument / Option Description
--version VER Render release notes for a single SemVer version (e.g. 0.39.0).
-o, --output PATH Write rendered Markdown to PATH instead of stdout (e.g. CHANGELOG.md).
--include-unreleased Include active non-done specs under an [Unreleased] section.
--json Emit structured JSON instead of Markdown.

Examples:

Terminal window
# Render the full changelog across all completed versions to stdout.
spechatch changelog
# Write the deterministic changelog to CHANGELOG.md using UTF-8 LF line endings.
spechatch changelog -o CHANGELOG.md
# Render release notes for a single SemVer version (useful for GitHub Releases).
spechatch changelog --version 0.39.0
# Emit structured JSON including active non-done specs under unreleased.
spechatch changelog --include-unreleased --json

Relevant Files:

  • spechatch.project.yml — Project paths and status definitions.
  • CHANGELOG.md — Common target when passing -o / —output.

Exit Codes: 0 Changelog generated successfully. · 1 Configuration error or requested —version has no completed specs.

See also: spechatch roadmap, spechatch verify, spechatch new


Acquire, renew, or release a soft advisory TTL lease on a specification in the Incubator so parallel developers or AI agents do not pick up the same spec simultaneously. Expired leases release automatically.

Terminal window
spechatch claim <spec_id> [--ttl TTL] [--force] [--release]
Argument / Option Description
spec_id Spec ID to claim or release.
--ttl TTL Lease TTL in seconds (default 1800).
--force Override an existing active lease.
--release Release the active lease on this spec.

Examples:

Terminal window
# Acquire or renew a 60-minute advisory lease on spec 000015.
spechatch claim 000015 --ttl 3600
# Explicitly release your active lease on spec 000015.
spechatch claim 000015 --release

Exit Codes: 0 Lease acquired, renewed, or released. · 1 Spec already leased by another actor (use —force to steal) or Incubator unreachable.

See also: spechatch context, spechatch epic, spechatch step


Generate or install zero-dependency native shell autocompletion scripts for zsh, bash, or fish derived directly from the live CLI parser. Scripts complete all top-level commands, nested subcommands, option flags, value choices (—lang, —phase, —transport, man , new ), file/directory paths, and live spec/epic IDs from specs/ with instant Tab response.

Terminal window
spechatch completion <shell> [--install] [--dir PATH]
Argument / Option Description
shell (zsh, bash, fish, powershell) Target shell (zsh, bash, or fish).
--install Install the completion script into the shell’s user completion directory.
--dir PATH Custom target directory for —install.

Examples:

Terminal window
# Activate zsh completions dynamically in the current shell (add to ~/.zshrc).
eval "$(spechatch completion zsh)"
# Install _spechatch into ~/.zsh/completions/ for fpath autoloading.
spechatch completion zsh --install
# Install bash completions into ~/.local/share/bash-completion/completions/spechatch.
spechatch completion bash --install
# Install fish completions into ~/.config/fish/completions/spechatch.fish.
spechatch completion fish --install

Relevant Files:

  • ~/.zsh/completions/_spechatch — Default zsh completion install target.
  • ~/.local/share/bash-completion/completions/spechatch — Default bash completion install target.
  • ~/.config/fish/completions/spechatch.fish — Default fish completion install target.

Exit Codes: 0 Completion script printed or installed successfully. · 1 Unsupported shell or filesystem write error during —install.

See also: spechatch man, spechatch create


Generate a starter Phase 0 constitution.md at paths.constitution_file (default specs/constitution.md) grounded in spechatch.project.yml, an optional repository scan, and the active BCP 47 locale. Resolves templates in order: —template > .spechatch/templates/constitution.md > built-in localized renderer.

Terminal window
spechatch constitute [--scan] [--template TEMPLATE] [--force]
Argument / Option Description
--scan Scan the repository to pre-populate tech stack details in constitution.md.
--template TEMPLATE Optional path to a custom constitution Markdown template file.
--force Overwrite an existing constitution file.

Examples:

Terminal window
# Scan repo languages, frameworks, and package managers and write specs/constitution.md.
spechatch constitute --scan
# Regenerate specs/constitution.md using the Italian (it-IT) starter template.
spechatch --lang it-IT constitute --force
# Render constitution.md from a custom Markdown template with {{project}} tokens.
spechatch constitute --template templates/custom-constitution.md --force

Relevant Files:

  • specs/constitution.md — Default Phase 0 engineering constitution output.
  • .spechatch/templates/constitution.md — Optional project-local constitution override.

Exit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.

See also: spechatch init, spechatch new, spechatch create


Fetch structured project orientation context from the Incubator server, including active specs, active TTL leases, regressed specs, parent epic progress, upstream depends_on specs, active siblings, and local constitution.md SHA-256 hash.

Terminal window
spechatch context [--spec SPEC_ID] [--json]
Argument / Option Description
--spec SPEC_ID Optional focus spec ID.
--json Emit JSON output.

Examples:

Terminal window
# Show project-wide active specs, active leases, and any regressed specs.
spechatch context
# Output machine-readable orientation context focused on spec 000018.
spechatch context --spec 000018 --json

Exit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.

See also: spechatch epic, spechatch claim, spechatch mcp


Scaffold high-level project documents and developer tooling outside individual specs, including architecture blueprints (‘create blueprint’) and collision-free sh-* Makefile shortcut blocks (‘create makefile’). Works even before ‘spechatch init’.

Terminal window
spechatch create <blueprint|justfile|makefile>

Create a blueprint Markdown file from a built-in or custom template.

Terminal window
spechatch create blueprint [--name NAME] [--template TEMPLATE] [--output OUTPUT] [--force]
Argument / Option Description
--name NAME (required) Blueprint title/name.
--template TEMPLATE Optional path to a custom Markdown template file.
--output OUTPUT Optional output file path (defaults to -blueprint.md).
--force Overwrite an existing blueprint file.

Generate or append a cross-platform justfile with sh-* spechatch recipes.

Terminal window
spechatch create justfile [--dir PATH] [--output PATH] [--runner CMD] [--local-only] [--append] [--force] [--dry-run]
Argument / Option Description
--dir PATH Target directory where the justfile will be created (defaults to project root).
--output PATH Output filename or path (defaults to justfile inside —dir).
--runner CMD Override spechatch command prefix (auto-detects ‘uv run spechatch’ or ‘spechatch’).
--local-only Include only standalone Local SDD recipes (omit Incubator recipes).
--append Non-destructively append or update the managed spechatch block in an existing justfile.
--force Overwrite an existing justfile completely.
--dry-run Preview the rendered justfile without writing to disk.

Generate or append a Makefile with low-typing sh-* spechatch shortcuts.

Terminal window
spechatch create makefile [--dir PATH] [--output PATH] [--runner CMD] [--local-only] [--append] [--force]
Argument / Option Description
--dir PATH Target directory where the Makefile will be created (defaults to project root).
--output PATH Output filename or path (defaults to Makefile inside —dir).
--runner CMD Override spechatch command prefix (auto-detects ‘uv run spechatch’ or ‘spechatch’).
--local-only Include only standalone Local SDD shortcuts (omit Incubator targets).
--append Non-destructively append or update the managed spechatch block in an existing Makefile.
--force Overwrite an existing Makefile completely.

Examples:

Terminal window
# Scaffold payments-platform-blueprint.md in the active locale.
spechatch create blueprint --name "Payments Platform"
# Append or idempotently update managed sh-* spechatch shortcuts in your existing Makefile.
spechatch create makefile --append
# Create makefiles/Makefile with standalone Local SDD shortcuts only.
spechatch create makefile --dir makefiles --local-only

Relevant Files:

  • .spechatch/templates/blueprint.md — Optional project-local blueprint template override.
  • Makefile — Default target for ‘spechatch create makefile’.

Exit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.

See also: spechatch init, spechatch constitute, spechatch new


Run a read-only, single-command diagnostic audit of this spechatch workspace. Checks spechatch.project.yml validity, constitution.md presence, spec & roadmap verification, managed git pre-commit hook status, agent skills/rules sync drift, secret file permissions (0600) and environment summary (without ever printing secret values), installed shell completions and man pages, and live Incubator HTTP/DB health.

Terminal window
spechatch doctor [--skip-remote] [--timeout TIMEOUT] [--strict] [--json]
Argument / Option Description
--skip-remote Skip the Incubator HTTP/DB health probe (for offline workspaces).
--timeout TIMEOUT HTTP timeout in seconds for the Incubator probe (default: 5.0).
--strict Treat warnings as failures (exit code 1).
--json Print diagnostic report as machine-readable JSON.

Examples:

Terminal window
# Run all 8 workspace diagnostic checks and print actionable hints for any warnings.
spechatch doctor
# Run offline local diagnostics and emit a machine-readable JSON report.
spechatch doctor --skip-remote --json
# Fail with exit code 1 on any warning as well as any error (ideal for CI checks).
spechatch doctor --strict

Exit Codes: 0 No errors detected (and no warnings when —strict is set). · 1 One or more errors detected (or warnings when —strict is set).

See also: spechatch verify, spechatch healthcheck, spechatch agents, spechatch install-hooks


Inspect multi-spec Epic initiatives tracked in the Incubator. Displays dynamically computed roll-up progress (done/total, active, ready, blocked, derived_status) and lists unblocked, unleased child specs ready for parallel dispatch.

Terminal window
spechatch epic <next|status>

List unblocked, unleased child specs ready next.

Terminal window
spechatch epic next <epic_id>
Argument / Option Description
epic_id Epic ID (e.g. E-0001).

Show dynamic progress roll-up for an epic.

Terminal window
spechatch epic status <epic_id>
Argument / Option Description
epic_id Epic ID (e.g. E-0001).

Examples:

Terminal window
# Display roll-up progress and derived status for epic E-0001.
spechatch epic status E-0001
# List child specs whose upstream depends_on are complete and have no active lease.
spechatch epic next E-0001

Exit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.

See also: spechatch context, spechatch claim, spechatch new


Probe Incubator server availability, version, auth mode, and live database latency (executing SELECT 1 via GET /api/spechatch/v1/health). Works against local ‘spechatch serve’, Docker containers, and remote deployments. Pass —db to ping SPECHATCH_DATABASE_URL directly without a running server (ideal for waking scale-to-zero Neon databases).

Terminal window
spechatch healthcheck [--db] [--timeout TIMEOUT] [--json]
Argument / Option Description
--db Ping SPECHATCH_DATABASE_URL directly (SELECT 1) without requiring a running server.
--timeout TIMEOUT HTTP request timeout in seconds (default: 15.0 for scale-to-zero DB wakeups).
--json Print healthcheck results as machine-readable JSON.

Examples:

Terminal window
# Probe the running Incubator server and its backing database at SPECHATCH_URL.
spechatch healthcheck
# Ping SPECHATCH_DATABASE_URL directly (SELECT 1) and emit JSON latency metrics.
spechatch healthcheck --db --json
# Allow up to 30 seconds for a sleeping serverless database to wake up.
spechatch healthcheck --timeout 30

Exit Codes: 0 Server and database (or direct database ping) responded healthy. · 1 Server unreachable, database degraded (HTTP 503), or missing [incubator] extra for —db.

See also: spechatch ping, spechatch serve, spechatch admin


Scaffold PyPI-based Docker deployment files (init) and manage Incubator users, API keys, projects, per-project RBAC memberships, and audit logs over HTTP (user, key, project, member, audit).

Terminal window
spechatch incubator <audit|init|key|member|project|user>

View recent Incubator auth & admin audit events (superuser).

Terminal window
spechatch incubator audit [--limit LIMIT] [--json]
Argument / Option Description
--limit LIMIT Maximum audit events to fetch (default: 50).
--json Emit JSON output.

Generate a PyPI-based Dockerfile and .dockerignore for self-hosting the Incubator.

Terminal window
spechatch incubator init [--path DIR] [--filename NAME] [--version VER] [--force]
Argument / Option Description
--path DIR Target directory for generated Docker files (defaults to current working directory).
--filename NAME Dockerfile name to create (default: Dockerfile; e.g. Dockerfile.spechatch).
--version VER Pin spechatch PyPI version in the Dockerfile (default: installed version; or ‘latest’).
--force Overwrite existing Dockerfile and .dockerignore if present.

Manage Incubator API keys (shk_*).

Terminal window
spechatch incubator key <create|list|revoke>

Mint a new API key (shown once).

Terminal window
spechatch incubator key create <user> [--name NAME] [--actor-type {human|agent|ci}] [--scopes SCOPES] [--expires-days EXPIRES_DAYS] [--json]
Argument / Option Description
user User ID (usr_*) or username.
--name NAME (required) Descriptive label for the API key.
--actor-type human/agent/ci Actor type (default: human; approvals require human).
--scopes SCOPES Optional comma-separated scope subset (e.g. projects:create).
--expires-days EXPIRES_DAYS Optional key expiration in days (1-365).
--json Emit JSON output.

List API keys for a user.

Terminal window
spechatch incubator key list <user> [--json]
Argument / Option Description
user User ID (usr_*) or username.
--json Emit JSON output.

Revoke an API key immediately.

Terminal window
spechatch incubator key revoke <key_id>
Argument / Option Description
key_id API key ID (key_*).

Manage per-project RBAC memberships (maintainer+/owner/superuser).

Terminal window
spechatch incubator member <add|list|remove>

Assign or update a user’s role on a project.

Terminal window
spechatch incubator member add <project> <user> [--role {owner|maintainer|developer|viewer}] [--json]
Argument / Option Description
project Project slug.
user User ID (usr_*) or username.
--role owner/maintainer/developer/viewer (required) Project-scoped role to grant.
--json Emit JSON output.

List members of a project.

Terminal window
spechatch incubator member list <project> [--json]
Argument / Option Description
project Project slug.
--json Emit JSON output.

Remove a user from a project.

Terminal window
spechatch incubator member remove <project> <user>
Argument / Option Description
project Project slug.
user User ID (usr_*) or username.

Manage Incubator projects.

Terminal window
spechatch incubator project <activate|create|deactivate|list|show|update>

Reactivate an archived project (owner/superuser).

Terminal window
spechatch incubator project activate <slug> [--json]
Argument / Option Description
slug Project slug.
--json Emit JSON output.

Create a new project (superuser).

Terminal window
spechatch incubator project create <slug> [--name NAME] [--description DESCRIPTION] [--json]
Argument / Option Description
slug Unique lowercase project slug (e.g. my-app).
--name NAME Display name (defaults to slug).
--description DESCRIPTION Optional project description.
--json Emit JSON output.

Deactivate/archive a project (owner/superuser).

Terminal window
spechatch incubator project deactivate <slug> [--json]
Argument / Option Description
slug Project slug.
--json Emit JSON output.

List accessible projects.

Terminal window
spechatch incubator project list [--json]
Argument / Option Description
--json Emit JSON output.

Show details for a project.

Terminal window
spechatch incubator project show <slug> [--json]
Argument / Option Description
slug Project slug.
--json Emit JSON output.

Update a project’s name, description, or status (owner/superuser).

Terminal window
spechatch incubator project update <slug> [--name NAME] [--description DESCRIPTION] [--active] [--inactive] [--json]
Argument / Option Description
slug Project slug.
--name NAME Updated display name.
--description DESCRIPTION Updated description.
--active Mark project active.
--inactive Mark project inactive.
--json Emit JSON output.

Manage Incubator user accounts (superuser).

Terminal window
spechatch incubator user <activate|create|deactivate|list|update>

Activate a deactivated user account.

Terminal window
spechatch incubator user activate <user> [--json]
Argument / Option Description
user User ID (usr_*) or username.
--json Emit JSON output.

Create a new user account.

Terminal window
spechatch incubator user create <username> [--full-name FULL_NAME] [--role {member|superuser}] [--password PASSWORD] [--json]
Argument / Option Description
username Unique username.
--full-name FULL_NAME Optional display name.
--role member/superuser Global user role (default: member).
--password PASSWORD Initial password (prompted securely via getpass if omitted).
--json Emit JSON output.

Deactivate a user account (blocks last active superuser).

Terminal window
spechatch incubator user deactivate <user> [--json]
Argument / Option Description
user User ID (usr_*) or username.
--json Emit JSON output.

List all user accounts.

Terminal window
spechatch incubator user list [--json]
Argument / Option Description
--json Emit JSON output.

Update a user’s profile, role, or status.

Terminal window
spechatch incubator user update <user> [--full-name FULL_NAME] [--role {member|superuser}] [--active] [--inactive] [--json]
Argument / Option Description
user User ID (usr_*) or username.
--full-name FULL_NAME Updated display name.
--role member/superuser Updated global role.
--active Mark user active.
--inactive Mark user inactive.
--json Emit JSON output.

Examples:

Terminal window
# Generate Dockerfile.spechatch alongside an existing project Dockerfile.
spechatch incubator init --filename Dockerfile.spechatch
# Create a new Incubator user account (superuser only).
spechatch incubator user create alice --role member
# Mint a one-time shk_* API key for alice.
spechatch incubator key create alice --name laptop --actor-type human
# Create a new project on the Incubator (superuser only).
spechatch incubator project create billing --name 'Billing API'
# Grant alice the developer role on the billing project.
spechatch incubator member add billing alice --role developer
# Inspect the 25 most recent auth/admin audit events (superuser only).
spechatch incubator audit --limit 25

Relevant Files:

  • Dockerfile — PyPI-based non-root container image generated by incubator init.
  • .dockerignore — Excludes VCS, virtualenvs, and local .env secrets from builds.

Exit Codes: 0 Operation succeeded. · 1 Permission denied (403), conflict (409), invalid arguments, or server unreachable.

See also: spechatch serve, spechatch admin, spechatch healthcheck


Generate spechatch.project.yml in the repository root with paths, spec kinds, monotonic counters, default BCP 47 locale, statuses, agent targets, and optional auto-detected test runners and Makefile entrypoints.

Terminal window
spechatch init [--scan] [--force] [--project PROJECT] [--lang INIT_LANG] [--auto-packs] [--packs NAMES]
Argument / Option Description
--scan Scan the repository to pre-populate project metadata, runners, and entrypoints.
--force Overwrite an existing spechatch.project.yml.
--project PROJECT Explicit project slug (defaults to scanned name or directory name).
--lang INIT_LANG Default project locale written to spechatch.project.yml (en-US, es-ES, it-IT, fr-FR, de-DE).
--auto-packs Automatically enable stack-detected Tier 2 rule packs (use with —scan).
--packs NAMES Comma-separated bundled skills or rule packs to enable in spechatch.project.yml.

Examples:

Terminal window
# Scan the repository for languages, Makefile targets, and test runners to pre-populate config.
spechatch init --scan
# Create spechatch.project.yml with project slug 'acme-api' and Italian (it-IT) templates.
spechatch init --project acme-api --lang it-IT

Relevant Files:

  • spechatch.project.yml — Primary repository configuration file.

Exit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.

See also: spechatch constitute, spechatch agents, spechatch create


Install or uninstall a managed .git/hooks/pre-commit shim (supporting both standard repositories and git worktrees) that runs ‘spechatch verify —staged’ before every commit.

Terminal window
spechatch install-hooks [--force] [--uninstall]
Argument / Option Description
--force Overwrite an existing unmanaged pre-commit hook.
--uninstall Remove the managed pre-commit hook.

Examples:

Terminal window
# Install the managed pre-commit verification hook.
spechatch install-hooks
# Remove the managed pre-commit hook cleanly.
spechatch install-hooks --uninstall

Relevant Files:

  • .git/hooks/pre-commit — Managed pre-commit hook script.

Exit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.

See also: spechatch verify, spechatch test


Dynamically render, view, or install Unix roff/troff manual pages (spechatch(1) and spechatch-(1)) derived directly from the live CLI parser and SpechatchSettings so documentation never drifts out of sync with the installed version.

Terminal window
spechatch man [COMMAND] [--raw] [--install] [--dir PATH]
Argument / Option Description
COMMAND Optional subcommand name (e.g. new, roadmap, secret). Omit for spechatch(1).
--raw Print raw roff/troff man page source to stdout instead of opening the pager.
--install Install spechatch.1 and all spechatch-.1 man pages locally.
--dir PATH Target directory for —install (defaults to ~/.local/share/man/man1).

Examples:

Terminal window
# Open the top-level spechatch(1) manual page in your system man pager.
spechatch man
# Open the dedicated manual page for 'spechatch new'.
spechatch man new
# Install spechatch.1 and all spechatch-<cmd>.1 pages into ~/.local/share/man/man1.
spechatch man --install
# Print raw roff source for spechatch-roadmap(1) to stdout.
spechatch man --raw roadmap

Relevant Files:

  • ~/.local/share/man/man1/ — Default local man page installation directory.

Exit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.

See also: spechatch init, spechatch mcp


Start the native Model Context Protocol (MCP) server for AI coding agents (Antigravity, Cursor, Claude Code). Exposes spechatch://constitution, spechatch://roadmap, and spechatch://config resources plus structured local-first and Incubator tools. Requires the optional [mcp] extra.

Terminal window
spechatch mcp [--transport {stdio|streamable-http}] [--host HOST] [--port PORT]
Argument / Option Description
--transport stdio/streamable-http MCP transport mode (default: stdio).
--host HOST Bind host when using —transport streamable-http (default: 127.0.0.1).
--port PORT Bind port when using —transport streamable-http (default: 8788).

Examples:

Terminal window
# Start the MCP server over stdio (standard mode for editor mcp_config.json).
spechatch mcp
# Start the MCP server over Streamable HTTP on localhost:8788.
spechatch mcp --transport streamable-http --host 127.0.0.1 --port 8788

Relevant Files:

  • ~/.gemini/config/mcp_config.json — Antigravity global MCP server configuration.

Exit Codes: 0 MCP server exited cleanly. · 1 Optional [mcp] extra is not installed or configuration failed.

See also: spechatch agents, spechatch context, spechatch healthcheck


Scaffold a new specification (spec, epic, bugfix, hotfix, brainstorm, nice-to-have, or code-review) using configured counters, active BCP 47 locale, optional .spechatch/templates/ overrides, and SPECHATCH_AUTHOR default handle. Allocates sequential IDs locally by default, atomically via the Incubator with —remote, or collision-free DRAFT-* IDs with —offline.

Terminal window
spechatch new <kind> <title> [--epic EPIC] [--depends-on DEPENDS_ON] [--version SPEC_VERSION] [--author AUTHOR] [--offline] [--remote] [--local] [--id ID] [--no-hooks]
Argument / Option Description
kind Spec kind (e.g. spec, epic, bugfix, hotfix, brainstorm).
title Human-readable spec title.
--epic EPIC Owning epic ID (e.g. E-0001).
--depends-on DEPENDS_ON Comma-separated upstream spec IDs.
--version SPEC_VERSION Target or shipped SemVer version (e.g. 0.4.1).
--author AUTHOR Author handle (defaults to SPECHATCH_AUTHOR if set).
--offline Allocate a non-colliding DRAFT-YYYYMMDD- ID without advancing counters.
--remote Allocate the spec ID atomically from the configured incubator server.
--local Force local-only creation even when SPECHATCH_INCUBATOR_AUTO_SYNC=true.
--id ID Explicit spec ID override.
--no-hooks Skip configured before-spec and after-spec hooks.

Examples:

Terminal window
# Scaffold a multi-file spec (specification.md, plan.md, tasks.md) with the next local ID.
spechatch new spec "OAuth2 PKCE Login"
# Allocate an atomic sequential BUG-* ID from the Incubator and upsert immediately.
spechatch new bugfix "Fix null pointer in parser" --remote
# Create an offline Spanish DRAFT-* spec to reconcile later with 'spechatch sync'.
spechatch --lang es-ES new spec "Pagos con Tarjeta" --offline

Relevant Files:

  • specs/ — Default directory for scaffolded specs.
  • .spechatch/templates/ — Optional project-local Markdown template overrides.

Exit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.

See also: spechatch sync, spechatch roadmap, spechatch verify, spechatch test


Concise alias for ‘spechatch healthcheck’. Probes the running Incubator server and its backing database (SELECT 1) at SPECHATCH_URL, or pings SPECHATCH_DATABASE_URL directly when —db is passed.

Terminal window
spechatch ping [--db] [--timeout TIMEOUT] [--json]
Argument / Option Description
--db Ping SPECHATCH_DATABASE_URL directly (SELECT 1) without requiring a running server.
--timeout TIMEOUT HTTP request timeout in seconds (default: 15.0 for scale-to-zero DB wakeups).
--json Print healthcheck results as machine-readable JSON.

Examples:

Terminal window
# Check Incubator HTTP + database health and display round-trip latency.
spechatch ping
# Wake and verify a scale-to-zero database (e.g. Neon) directly without a server.
spechatch ping --db

Exit Codes: 0 Target responded healthy. · 1 Target unreachable, degraded, or missing [incubator] extra for —db.

See also: spechatch healthcheck, spechatch serve


Promote an ideation spec (‘brainstorm’ BS-* or ‘nice-to-have’ NTH-*) into a full executable ‘spec’ or ‘epic’ while preserving the source document and full audit trail. Adds promoted_from/promoted_to cross-links, appends an Origin reference to the new spec, marks the source spec complete, and syncs specs/ROADMAP.md (plus optional Incubator ID allocation and upsert with —remote).

Terminal window
spechatch promote <spec_id> [--to {spec|epic}] [--title TITLE] [--epic EPIC] [--depends-on DEPENDS_ON] [--version SPEC_VERSION] [--author AUTHOR] [--remote] [--local] [--id ID] [--force] [--no-hooks]
Argument / Option Description
spec_id Source brainstorm or nice-to-have spec ID (e.g. BS-0001, NTH-0001).
--to spec/epic Target spec kind: spec (default) or epic.
--title TITLE Optional title override for the promoted spec (defaults to source title).
--epic EPIC Owning epic ID (e.g. E-0001).
--depends-on DEPENDS_ON Comma-separated upstream spec IDs.
--version SPEC_VERSION Target SemVer version (e.g. 0.27.0).
--author AUTHOR Author handle (defaults to SPECHATCH_AUTHOR or source authors).
--remote Atomically allocate target ID from the incubator and upsert both specs.
--local Force local-only promotion even when SPECHATCH_INCUBATOR_AUTO_SYNC=true.
--id ID Explicit target spec ID override.
--force Allow re-promoting a spec that already has promoted_to set.
--no-hooks Skip configured after-spec hooks.

Examples:

Terminal window
# Promote brainstorm BS-0001 to a full multi-artifact spec and sync ROADMAP.md.
spechatch promote BS-0001 --version 0.27.0
# Promote nice-to-have NTH-0002 to an epic with atomic remote ID allocation.
spechatch promote NTH-0002 --to epic --remote
# Re-promote BS-0001 with a custom title even if previously promoted.
spechatch promote BS-0001 --title "Optional Agent Packs Phase A" --force

Exit Codes: 0 Source spec promoted and ROADMAP.md synced. · 1 Spec not found, non-promotable kind, already promoted without —force, or remote error.

See also: spechatch new, spechatch roadmap, spechatch verify


Deterministically resolve post-merge SDD conflicts in standalone or multi-branch repositories: renumbers duplicate spec IDs (keeping the earliest or —keep spec), regenerates conflicted specs/ROADMAP.md, and reports any spec files containing unresolved prose Git conflict markers without touching them.

Terminal window
spechatch resolve [--dry-run] [--keep PATH] [--json]
Argument / Option Description
--dry-run Preview planned renumbering and roadmap regeneration without writing files.
--keep PATH Spec path that should retain its original ID when resolving a duplicate (repeatable).
--json Emit machine-readable JSON resolution report.

Examples:

Terminal window
# Preview planned duplicate ID renumbering and roadmap regeneration.
spechatch resolve --dry-run
# Resolve duplicate ID 000005 while keeping specs/000005-search on 000005.
spechatch resolve --keep specs/000005-search

Relevant Files:

  • specs/ROADMAP.md — Regenerated cleanly when conflicted or drifted.

Exit Codes: 0 Repository is clean or all duplicate ID and roadmap conflicts were resolved. · 1 Unresolved prose Git conflict markers remain in spec files, or config error.

See also: spechatch roadmap, spechatch verify, spechatch sync


Open a new living specification revision (rev + 1) with a structured Change Delta (Added / Modified / Removed) on the Incubator, append the Change Delta section to the local spec Markdown file (unless —no-local-delta), and reopen a ‘done’ spec to ‘in_progress’.

Terminal window
spechatch revise <spec_id> [--summary SUMMARY] [--added ADDED] [--modified MODIFIED] [--removed REMOVED] [--no-local-delta]
Argument / Option Description
spec_id Spec ID to revise.
--summary SUMMARY (required) Revision summary.
--added ADDED Added requirement.
--modified MODIFIED Modified requirement.
--removed REMOVED Removed requirement.
--no-local-delta Do not append the Change Delta section to the local markdown file.

Examples:

Terminal window
# Record revision delta on the Incubator and append it to spec 000012.
spechatch revise 000012 --summary "Add rate limiting" --added "100 req/min limit"
# Record revision on the Incubator without editing local Markdown.
spechatch revise 000012 --summary "Clarify retry policy" --modified "Exponential backoff" --no-local-delta

Exit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.

See also: spechatch approve, spechatch verify, spechatch roadmap


Deterministically render or diff paths.roadmap_file (default specs/ROADMAP.md) grouped by spec kind (Epics, Specs, Bugfixes, Hotfixes, etc.) in the active BCP 47 locale. Pass —remote on ‘roadmap sync’ to also upsert all local specs into the Incubator database.

Terminal window
spechatch roadmap <diff|sync>

Check for drift between disk specs and roadmap file.

Terminal window
spechatch roadmap diff

Write deterministic roadmap file.

Terminal window
spechatch roadmap sync [--dry-run] [--remote] [--local]
Argument / Option Description
--dry-run Preview roadmap diff without writing to disk.
--remote Also upsert all local specs to the incubator database ledger.
--local Update local ROADMAP.md only, even when SPECHATCH_INCUBATOR_AUTO_SYNC=true.

Examples:

Terminal window
# Deterministically update specs/ROADMAP.md from all specs on disk.
spechatch roadmap sync
# Update specs/ROADMAP.md and upsert every spec's metadata to the Incubator.
spechatch roadmap sync --remote
# Exit 0 if specs/ROADMAP.md matches disk, or print a unified diff and exit 1.
spechatch roadmap diff

Relevant Files:

  • specs/ROADMAP.md — Deterministically generated roadmap table.

Exit Codes: 0 Roadmap synced or already up to date. · 1 Roadmap drift detected (‘diff’) or Incubator sync failed.

See also: spechatch new, spechatch verify, spechatch bootstrap


List or synchronize bundled SDD rule packs (spechatch-core, gitflow, quality-gate, release), canonical command entrypoint rules, Cursor .cursor/rules/*.mdc mirrors, Claude Code CLAUDE.md, and Codex AGENTS.md.

Terminal window
spechatch rules <add|catalog|list|remove|sync>

Enable one or more bundled rules in spechatch.project.yml.

Terminal window
spechatch rules add <NAME...> [--sync]
Argument / Option Description
NAME Skill or rule pack name(s) to enable.
--sync Immediately render and sync the newly enabled files.

Browse available bundled rules by tier.

Terminal window
spechatch rules catalog [--tier {core|methodology|tooling|custom}]
Argument / Option Description
--tier core/methodology/tooling/custom Optional tier filter (core, methodology, tooling, or custom).

Show sync status for configured rules.

Terminal window
spechatch rules list

Disable one or more bundled rules in spechatch.project.yml.

Terminal window
spechatch rules remove <NAME...>
Argument / Option Description
NAME Skill or rule pack name(s) to disable.

Render and sync configured rules.

Terminal window
spechatch rules sync [--dry-run] [--diff] [--force]
Argument / Option Description
--dry-run Show planned actions without modifying any files.
--diff Show unified diffs without modifying any files.
--force Overwrite existing unmanaged files.

Examples:

Terminal window
# Show sync status for all configured rule targets.
spechatch rules list
# Preview planned rule creations, updates, and Cursor deletions without writing.
spechatch rules sync --dry-run

Relevant Files:

  • .agents/rules/ — Antigravity rule files.
  • .cursor/rules/ — Mirrored Cursor .mdc rules.

Exit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.

See also: spechatch skills, spechatch agents


Manage local (.spechatch/.env) and user-global (~/.config/spechatch/.env) SPECHATCH_* configuration and secrets with chmod 0600 permissions, automatic .gitignore guards, project secret_prefix isolation, and automatic outer whitespace trimming on write.

Terminal window
spechatch secret <delete|edit|get|list|put>

Remove a secret key from the store.

Terminal window
spechatch secret delete <key> [--local] [--shared]
Argument / Option Description
key Secret key name to delete.
--local Delete from repo-local .spechatch/.env instead of ~/.config/spechatch/.env.
--shared Delete unprefixed shared SPECHATCH_ instead of using secret_prefix.

Update an existing secret key (fails if missing).

Terminal window
spechatch secret edit <key> [value] [--local] [--shared]
Argument / Option Description
key Secret key name (e.g. API_KEY or SPECHATCH_API_KEY).
value Secret value (omit to prompt).
--local Store in repo-local .spechatch/.env instead of ~/.config/spechatch/.env.
--shared Store as unprefixed shared SPECHATCH_ instead of using secret_prefix.

Display a stored secret (masked by default).

Terminal window
spechatch secret get <key> [--local] [--global] [--shared] [--reveal]
Argument / Option Description
key Secret key name.
--local Read repo-local store only.
--global Read user-global store only.
--shared Read unprefixed shared SPECHATCH_ instead of using secret_prefix.
--reveal Print plaintext value.

List stored secrets (masked by default).

Terminal window
spechatch secret list [--local] [--global] [--reveal]
Argument / Option Description
--local List repo-local store only.
--global List user-global store only.
--reveal Print plaintext values.

Create or update a secret key (prompts securely if value omitted).

Terminal window
spechatch secret put <key> [value] [--local] [--shared]
Argument / Option Description
key Secret key name (e.g. API_KEY or SPECHATCH_API_KEY).
value Secret value (omit to prompt).
--local Store in repo-local .spechatch/.env instead of ~/.config/spechatch/.env.
--shared Store as unprefixed shared SPECHATCH_ instead of using secret_prefix.

Examples:

Terminal window
# Prompt securely (masked) and save SPECHATCH_<PREFIX>_API_KEY in ~/.config/spechatch/.env.
spechatch secret put API_KEY
# Store repo-local SPECHATCH_INCUBATOR_AUTO_SYNC=true in .spechatch/.env.
spechatch secret put INCUBATOR_AUTO_SYNC true --local
# Display all stored global and local secrets with masked values (pass --reveal for plaintext).
spechatch secret list

Relevant Files:

  • ~/.config/spechatch/.env — User-global secrets store (chmod 0600).
  • .spechatch/.env — Repo-local secrets store (auto-gitignored, chmod 0600).

Exit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.

See also: spechatch admin, spechatch serve, spechatch healthcheck


Start the stateless FastAPI + SQLModel Incubator server (requires the optional [incubator] extra). Runs Alembic migrations automatically on startup against PostgreSQL/Neon, MySQL/MariaDB, or local SQLite. Refuses non-loopback binding in open mode (SPECHATCH_AUTH_ENABLED=false) unless —allow-insecure-open-mode is set.

Terminal window
spechatch serve [--host HOST] [--port PORT] [--reload] [--allow-insecure-open-mode]
Argument / Option Description
--host HOST Bind host (default 127.0.0.1).
--port PORT Bind port (default 8787).
--reload Enable auto-reload for dev.
--allow-insecure-open-mode Explicitly allow binding a non-loopback host with SPECHATCH_AUTH_ENABLED=false.

Examples:

Terminal window
# Start the authenticated Incubator server on 127.0.0.1:8787.
SPECHATCH_AUTH_ENABLED=true spechatch serve
# Bind on all interfaces for Docker or shared network access with auth enforced.
SPECHATCH_AUTH_ENABLED=true spechatch serve --host 0.0.0.0 --port 8787

Exit Codes: 0 Server shut down cleanly. · 1 Missing [incubator] extra, insecure non-loopback bind refused, or startup error.

See also: spechatch admin, spechatch healthcheck, spechatch bootstrap


List or synchronize bundled SDD agent skills (spechatch-driven-development, spechatch-context, spechatch-sync-cursor) into .agents/skills/ (Antigravity) and .claude/skills/ (when ‘claude’ is enabled in agents.targets).

Terminal window
spechatch skills <add|catalog|list|remove|sync>

Enable one or more bundled skills in spechatch.project.yml.

Terminal window
spechatch skills add <NAME...> [--sync]
Argument / Option Description
NAME Skill or rule pack name(s) to enable.
--sync Immediately render and sync the newly enabled files.

Browse available bundled skills by tier.

Terminal window
spechatch skills catalog [--tier {core|methodology|tooling|custom}]
Argument / Option Description
--tier core/methodology/tooling/custom Optional tier filter (core, methodology, tooling, or custom).

Show sync status for configured skills.

Terminal window
spechatch skills list

Disable one or more bundled skills in spechatch.project.yml.

Terminal window
spechatch skills remove <NAME...>
Argument / Option Description
NAME Skill or rule pack name(s) to disable.

Render and sync configured skills.

Terminal window
spechatch skills sync [--dry-run] [--diff] [--force]
Argument / Option Description
--dry-run Show planned actions without modifying any files.
--diff Show unified diffs without modifying any files.
--force Overwrite existing unmanaged files.

Examples:

Terminal window
# Show sync status for configured SDD skills.
spechatch skills list
# Show unified diffs for skill updates without modifying files.
spechatch skills sync --diff

Relevant Files:

  • .agents/skills/ — Antigravity SDD skill directories.
  • .claude/skills/ — Claude Code SDD skill directories (when ‘claude’ target enabled).

Exit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.

See also: spechatch rules, spechatch agents


Inspect tasks.md checkbox progress (completed vs. total tasks) for a specific spec ID and optionally push the updated progress counters to the Incubator with —remote.

Terminal window
spechatch step <spec_id> [--remote] [--local]
Argument / Option Description
spec_id Spec ID to inspect/sync.
--remote Upsert updated task counts to the incubator ledger.
--local Skip remote upsert even when SPECHATCH_INCUBATOR_AUTO_SYNC=true.

Examples:

Terminal window
# Display local tasks.md completion progress for spec 000018.
spechatch step 000018
# Report progress and upsert tasks_done/tasks_total to the Incubator.
spechatch step 000018 --remote

Exit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.

See also: spechatch roadmap, spechatch verify, spechatch claim


Reconcile offline DRAFT-* specs against the Incubator server: atomically allocates sequential IDs via deterministic Idempotency-Keys, renames draft folders/files, rewrites frontmatter id/headings and cross-references (epic_id / depends_on), upserts to /roadmap, and syncs specs/ROADMAP.md.

Terminal window
spechatch sync

Examples:

Terminal window
# Preview which local DRAFT-* specs would be reconciled without modifying files.
spechatch sync --dry-run
# Promote all offline DRAFT-* specs to sequential Incubator IDs and sync roadmap.
spechatch sync

Exit Codes: 0 Command succeeded. · 1 Configuration error, validation failure, or runtime error.

See also: spechatch new, spechatch bootstrap, spechatch roadmap


Validate spec frontmatter, required artifacts, Clarify ambiguity markers, and dead linked test paths; run configured language-agnostic test runners into JUnit XML (‘test run’); or ingest existing JUnit XML reports (‘test ingest’) to update live spec health (healthy / regressed) on the Incubator.

Terminal window
spechatch test [spec_id] [--run-linked] [--junit JUNIT] [--commit COMMIT] [--branch BRANCH] [--runner RUNNER] [--remote] [--local]
Argument / Option Description
spec_id Optional spec ID to validate (defaults to all specs).
--run-linked Also execute linked test commands declared in spec frontmatter.
--junit JUNIT JUnit XML file path or glob to ingest (use with ‘spechatch test ingest’).
--commit COMMIT Git commit SHA for JUnit ingest.
--branch BRANCH Git branch name for JUnit ingest.
--runner RUNNER Optional configured test runner name to execute (use with ‘spechatch test run’).
--remote Push JUnit attribution results to the incubator server.
--local Skip remote test ingest even when SPECHATCH_INCUBATOR_AUTO_SYNC=true.

Examples:

Terminal window
# Validate all specs under paths.specs_dir in configured enforcement mode.
spechatch test
# Execute configured tests.runners, attribute JUnit results, and ingest health to Neon.
spechatch test run --remote
# Ingest an existing CI JUnit XML report and attribute regressions to specs.
spechatch test ingest --junit report.xml --commit abc1234 --branch main --remote

Exit Codes: 0 All specs validated and all executed/ingested tests passed. · 1 Validation failure, test failure/regression, or Incubator ingest error.

See also: spechatch verify, spechatch roadmap, spechatch install-hooks


Run the complete pre-commit / CI verification gate: validates all specs, checks specs/ROADMAP.md for drift (unless —no-roadmap), optionally runs linked tests (—run-linked), and when —staged is passed detects spec-to-implementation drift (code edits to files owned by completed specs without a spec revision).

Terminal window
spechatch verify [--staged] [--run-linked] [--no-roadmap] [--json]
Argument / Option Description
--staged Inspect staged Git files for spec-to-implementation drift.
--run-linked Execute linked test commands declared in spec frontmatter.
--no-roadmap Skip roadmap drift verification.
--json Emit machine-readable JSON verification report.

Examples:

Terminal window
# Validate all specs and verify specs/ROADMAP.md is up to date.
spechatch verify
# Run staged Git drift detection and emit a structured JSON VerifyReport.
spechatch verify --staged --json

Exit Codes: 0 Verification passed (or mode=advisory emitted warnings only). · 1 One or more error findings in mode=strict.

See also: spechatch test, spechatch install-hooks, spechatch revise, spechatch roadmap


Inspect or bump the project’s version across all discovered manifests (pyproject.toml + uv.lock, package.json + package-lock.json, Cargo.toml, VERSION, and README.md Shields.io version badges). Supports Semantic Versioning (—semver, default) with optional pre-release tags (—pre) and Calendar Versioning (—calver, YYYY.MM.MICRO).

Terminal window
spechatch version [--file PATH] [--remote] [--local] [--json] <bump|show>
Argument / Option Description
--file PATH Explicit manifest path to inspect/update (repeatable; overrides auto-discovery).
--remote Query or atomically allocate the project version on the Incubator server.
--local Force local-only operation even when SPECHATCH_INCUBATOR_AUTO_SYNC=true.
--json Emit machine-readable JSON output.

Bump and synchronize version across project manifests (pyproject.toml, package.json, Cargo.toml, VERSION, README.md).

Terminal window
spechatch version bump [target] [--semver] [--calver] [--pre LABEL] [--file PATH] [--remote] [--local] [--dry-run] [--no-lock] [--json]
Argument / Option Description
target SemVer part (‘patch’, ‘minor’, ‘major’) or explicit version (e.g. ‘1.2.3’). Defaults to ‘patch’.
--semver Use Semantic Versioning (X.Y.Z; default).
--calver Use Calendar Versioning (YYYY.MM.MICRO).
--pre LABEL Create or increment a SemVer pre-release tag (e.g. ‘rc’, ‘alpha’, ‘beta’).
--file PATH Explicit manifest path to update (repeatable; overrides auto-discovery).
--remote Atomically allocate the next monotonic version on the Incubator before updating local manifests.
--local Bump locally only even when SPECHATCH_INCUBATOR_AUTO_SYNC=true.
--dry-run Preview version bump and affected files without modifying disk.
--no-lock Skip refreshing uv.lock after updating pyproject.toml.
--json Emit machine-readable JSON bump report.

Print the current project version.

Terminal window
spechatch version show [--file PATH] [--remote] [--local] [--json]
Argument / Option Description
--file PATH Explicit manifest path to inspect (repeatable).
--remote Also fetch the Incubator’s tracked version and flag local drift.
--local Skip Incubator lookup even when SPECHATCH_INCUBATOR_AUTO_SYNC=true.
--json Emit machine-readable JSON output.

Examples:

Terminal window
# Display the current project version detected from manifests.
spechatch version show
# Bump the minor SemVer version across all detected manifests and refresh uv.lock.
spechatch version bump minor
# Preview a SemVer release-candidate bump without writing files.
spechatch version bump patch --pre rc --dry-run
# Bump using Calendar Versioning (YYYY.MM.MICRO).
spechatch version bump --calver

Relevant Files:

  • pyproject.toml / uv.lock — Python package version and lockfile.
  • package.json / package-lock.json — Node/TypeScript package version.
  • Cargo.toml — Rust crate version.
  • VERSION / README.md — Plain version file and Shields.io version badge.

Exit Codes: 0 Version inspected or bumped successfully. · 1 No supported manifests found, invalid version target, or file error.

See also: spechatch changelog, spechatch roadmap, spechatch verify


Manage project-scoped actionable webhooks on the Incubator server: register endpoints with event filters and payload format presets (json, slack, discord, teams), list webhooks, toggle active state, send a signed webhook.ping test delivery, inspect recent delivery logs, or delete webhooks.

Terminal window
spechatch webhook <add|delete|deliveries|list|test|toggle|update>

Register a new project webhook.

Terminal window
spechatch webhook add <url> [--events EVENTS] [--format {json|slack|discord|teams}] [--template PATH] [--secret SECRET] [--project PROJECT]
Argument / Option Description
url Target HTTP(S) webhook URL.
--events EVENTS Comma-separated event filter (e.g. spec.regressed,spec.approved; empty = all).
--format json/slack/discord/teams Payload format preset (default: json).
--template PATH Optional local JSON or text/Markdown payload template file ({{token}} placeholders).
--secret SECRET Optional HMAC-SHA256 signing secret.
--project PROJECT Override project slug.

Delete a registered webhook.

Terminal window
spechatch webhook delete <webhook_id> [--project PROJECT]
Argument / Option Description
webhook_id Webhook ID (e.g. whk_…).
--project PROJECT Override project slug.

List recent webhook delivery logs.

Terminal window
spechatch webhook deliveries <webhook_id> [--limit LIMIT] [--project PROJECT] [--json]
Argument / Option Description
webhook_id Webhook ID (e.g. whk_…).
--limit LIMIT Max deliveries to show (1-50).
--project PROJECT Override project slug.
--json Emit JSON output.

List webhooks registered for the project.

Terminal window
spechatch webhook list [--project PROJECT] [--json]
Argument / Option Description
--project PROJECT Override project slug.
--json Emit JSON output.

Send a signed webhook.ping test delivery.

Terminal window
spechatch webhook test <webhook_id> [--project PROJECT]
Argument / Option Description
webhook_id Webhook ID (e.g. whk_…).
--project PROJECT Override project slug.

Enable or disable a webhook.

Terminal window
spechatch webhook toggle <webhook_id> [--enable] [--disable] [--project PROJECT]
Argument / Option Description
webhook_id Webhook ID (e.g. whk_…).
--enable Enable the webhook.
--disable Disable the webhook.
--project PROJECT Override project slug.

Update a webhook’s events, format, or custom payload template.

Terminal window
spechatch webhook update <webhook_id> [--events EVENTS] [--format {json|slack|discord|teams}] [--template PATH] [--clear-template] [--project PROJECT]
Argument / Option Description
webhook_id Webhook ID (e.g. whk_…).
--events EVENTS Comma-separated event filter (empty string clears filter to all events).
--format json/slack/discord/teams Change payload format preset.
--template PATH Upload a local JSON or text/Markdown payload template file.
--clear-template Remove the custom template and revert to the built-in format preset.
--project PROJECT Override project slug.

Examples:

Terminal window
# Register a Slack webhook for regression and approval alerts.
spechatch webhook add https://hooks.slack.com/services/... --events spec.regressed,spec.approved --format slack
# Send a signed webhook.ping delivery and print HTTP status and latency.
spechatch webhook test whk_0123456789abcdef
# Inspect the most recent delivery attempts persisted in the Incubator DB.
spechatch webhook deliveries whk_0123456789abcdef

Exit Codes: 0 Webhook operation succeeded. · 1 Incubator unreachable, authentication failed, or webhook not found.

See also: spechatch serve, spechatch test, spechatch approve, spechatch claim