Installation
This guide covers all installation methods for SuperSpec.
Requirements
- Node.js: 18.0.0 or higher
- Package Manager: npm, pnpm, or yarn
- Operating System: macOS, Linux, or Windows
Installing the CLI
Using npm
bash
npm install -g @superspec/cliUsing pnpm (Recommended)
bash
pnpm add -g @superspec/cliUsing yarn
bash
yarn global add @superspec/cliVerifying Installation
bash
superspec --versionExpected output:
@superspec/cli/x.x.xInitializing a Project
Navigate to your project directory:
bash
cd your-project
superspec initOptions
bash
# English templates (default)
superspec init
# Chinese templates
superspec init --lang zh
# Specify AI assistant
superspec init --ai cursor
superspec init --ai claudeProject Structure
After initialization:
your-project/
├── .superspec/
│ ├── AGENTS.md # AI assistant instructions
│ ├── superspec.config.json # Configuration
│ ├── changes/ # Active changes
│ └── archive/ # Archived changes
├── src/ # Your source code
└── ...Updating SuperSpec
bash
# npm
npm update -g @superspec/cli
# pnpm
pnpm update -g @superspec/cli
# yarn
yarn global upgrade @superspec/cliUpdating Project Templates
bash
superspec updateThis refreshes AGENTS.md and templates without affecting your changes.
Troubleshooting
Command Not Found
If superspec command is not found:
Verify Node.js is installed:
bashnode --versionCheck global package installation path:
bashnpm config get prefixEnsure the path is in your
PATHenvironment variable.
Permission Errors
On macOS/Linux, you might need sudo:
bash
sudo npm install -g @superspec/cliOr better, configure npm to use a user directory:
bash
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATHProxy Issues
If behind a corporate proxy:
bash
npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080Next Steps
- Quick Start - Get started in 5 minutes
- Workflow Guide - Understand the development workflow