Skip to content

CLI Commands

SuperSpec CLI provides commands for managing spec-driven development workflow.

Command Overview

Initialization & Setup

CommandDescription
initInitialize SuperSpec in project
updateRefresh agent instructions and templates

Core Workflow

CommandDescription
createCreate change and generate proposal
archiveArchive completed changes

Quality & Validation

CommandDescription
lintCheck artifact line counts
validateCross-validate artifact consistency

Search & Discovery

CommandDescription
searchFull-text search changes
statusView all change statuses

Dependency Management

CommandDescription
deps listView dependencies
deps addAdd spec dependency
deps removeRemove spec dependency

In-Context Learning

CommandDescription
syncSync git changes to context.md

Global Options

All commands support these options:

bash
superspec --version    # Show version
superspec --help       # Show help
superspec <command> --help    # Show command-specific help

Commands by Usage Frequency

Daily use:

  • create - Start new change
  • status - View status
  • sync - Sync context
  • archive - Archive change

Regular use:

  • lint - Check size limits
  • validate - Verify consistency
  • search - Search content

Occasional use:

  • init - Project initialization
  • update - Update templates
  • deps - Dependency management

Commands by Workflow Stage

Getting Started:

  1. init - Initialize project
  2. create - Create change

Development: 3. lint - Check limits 4. validate - Verify consistency 5. sync - Sync context 6. deps - Manage dependencies

Completion: 7. archive - Archive change

Exit Codes

CodeMeaning
0Success
1General error

Configuration

CLI commands read superspec.config.json. See Configuration Reference.

Released under the MIT License