You have Spec Kit installed and want to upgrade to the latest version to get new features, bug fixes, or updated slash commands. This guide covers both upgrading the CLI tool and updating your project files.
| What to Upgrade | Command | When to Use |
|---|---|---|
| CLI Tool Only | uv tool install specify-cli --force --from git+https://github.com/github/spec-kit.git |
Get latest CLI features without touching project files |
| Project Files | specify init --here --force --ai <your-agent> |
Update slash commands, templates, and scripts in your project |
| Both | Run CLI upgrade, then project update | Recommended for major version updates |
The CLI tool (specify) is separate from your project files. Upgrade it to get the latest features and bug fixes.
uv tool installuv tool install specify-cli --force --from git+https://github.com/github/spec-kit.git
uvx commandsNo upgrade needed—uvx always fetches the latest version. Just run your commands as normal:
uvx --from git+https://github.com/github/spec-kit.git specify init --here --ai copilot
specify check
This shows installed tools and confirms the CLI is working.
When Spec Kit releases new features (like new slash commands or updated templates), you need to refresh your project’s Spec Kit files.
Running specify init --here --force will update:
.claude/commands/, .github/prompts/, etc.).specify/scripts/).specify/templates/).specify/memory/) - ⚠️ See warnings belowThese files are never touched by the upgrade—the template packages don’t even contain them:
specs/001-my-feature/spec.md, etc.) - CONFIRMED SAFEspecs/001-my-feature/plan.md, tasks.md, etc.) - CONFIRMED SAFEThe specs/ directory is completely excluded from template packages and will never be modified during upgrades.
Run this inside your project directory:
specify init --here --force --ai <your-agent>
Replace <your-agent> with your AI assistant. Refer to this list of Supported AI Agents
Example:
specify init --here --force --ai copilot
--force flagWithout --force, the CLI warns you and asks for confirmation:
Warning: Current directory is not empty (25 items)
Template files will be merged with existing content and may overwrite existing files
Proceed? [y/N]
With --force, it skips the confirmation and proceeds immediately.
Important: Your specs/ directory is always safe. The --force flag only affects template files (commands, scripts, templates, memory). Your feature specifications, plans, and tasks in specs/ are never included in upgrade packages and cannot be overwritten.
Known issue: specify init --here --force currently overwrites .specify/memory/constitution.md with the default template, erasing any customizations you made.
Workaround:
# 1. Back up your constitution before upgrading
cp .specify/memory/constitution.md .specify/memory/constitution-backup.md
# 2. Run the upgrade
specify init --here --force --ai copilot
# 3. Restore your customized constitution
mv .specify/memory/constitution-backup.md .specify/memory/constitution.md
Or use git to restore it:
# After upgrade, restore from git history
git restore .specify/memory/constitution.md
If you customized any templates in .specify/templates/, the upgrade will overwrite them. Back them up first:
# Back up custom templates
cp -r .specify/templates .specify/templates-backup
# After upgrade, merge your changes back manually
Some IDE-based agents (like Kilo Code, Windsurf) may show duplicate slash commands after upgrading—both old and new versions appear.
Solution: Manually delete the old command files from your agent’s folder.
Example for Kilo Code:
# Navigate to the agent's commands folder
cd .kilocode/rules/
# List files and identify duplicates
ls -la
# Delete old versions (example filenames - yours may differ)
rm speckit.specify-old.md
rm speckit.plan-v1.md
Restart your IDE to refresh the command list.
# Upgrade CLI (if using persistent install)
uv tool install specify-cli --force --from git+https://github.com/github/spec-kit.git
# Update project files to get new commands
specify init --here --force --ai copilot
# Restore your constitution if customized
git restore .specify/memory/constitution.md
# 1. Back up customizations
cp .specify/memory/constitution.md /tmp/constitution-backup.md
cp -r .specify/templates /tmp/templates-backup
# 2. Upgrade CLI
uv tool install specify-cli --force --from git+https://github.com/github/spec-kit.git
# 3. Update project
specify init --here --force --ai copilot
# 4. Restore customizations
mv /tmp/constitution-backup.md .specify/memory/constitution.md
# Manually merge template changes if needed
This happens with IDE-based agents (Kilo Code, Windsurf, Roo Code, etc.).
# Find the agent folder (example: .kilocode/rules/)
cd .kilocode/rules/
# List all files
ls -la
# Delete old command files
rm speckit.old-command-name.md
# Restart your IDE
If you initialized your project with --no-git, you can still upgrade:
# Manually back up files you customized
cp .specify/memory/constitution.md /tmp/constitution-backup.md
# Run upgrade
specify init --here --force --ai copilot --no-git
# Restore customizations
mv /tmp/constitution-backup.md .specify/memory/constitution.md
The --no-git flag skips git initialization but doesn’t affect file updates.
--no-git FlagThe --no-git flag tells Spec Kit to skip git repository initialization. This is useful when:
During initial setup:
specify init my-project --ai copilot --no-git
During upgrade:
specify init --here --force --ai copilot --no-git
--no-git does NOT do❌ Does NOT prevent file updates ❌ Does NOT skip slash command installation ❌ Does NOT affect template merging
It only skips running git init and creating the initial commit.
If you use --no-git, you’ll need to manage feature directories manually:
Set the SPECIFY_FEATURE environment variable before using planning commands:
# Bash/Zsh
export SPECIFY_FEATURE="001-my-feature"
# PowerShell
$env:SPECIFY_FEATURE = "001-my-feature"
This tells Spec Kit which feature directory to use when creating specs, plans, and tasks.
Why this matters: Without git, Spec Kit can’t detect your current branch name to determine the active feature. The environment variable provides that context manually.
Cause: Agent didn’t reload the command files.
Fix:
For CLI-based agents, verify files exist:
ls -la .claude/commands/ # Claude Code
ls -la .gemini/commands/ # Gemini
ls -la .cursor/commands/ # Cursor
CODEX_HOME environment variableFix: Restore from git or backup:
# If you committed before upgrading
git restore .specify/memory/constitution.md
# If you backed up manually
cp /tmp/constitution-backup.md .specify/memory/constitution.md
Prevention: Always commit or back up constitution.md before upgrading.
Full warning message:
Warning: Current directory is not empty (25 items)
Template files will be merged with existing content and may overwrite existing files
Do you want to continue? [y/N]
What this means:
This warning appears when you run specify init --here (or specify init .) in a directory that already has files. It’s telling you:
.claude/, .specify/, etc.), they’ll be replaced with the new versionsWhat gets overwritten:
Only Spec Kit infrastructure files:
.claude/commands/, .github/prompts/, etc.).specify/scripts/.specify/templates/.specify/memory/ (including constitution)What stays untouched:
specs/ directory (specifications, plans, tasks).git/ directory and git historyHow to respond:
y and press Enter - Proceed with the merge (recommended if upgrading)n and press Enter - Cancel the operationUse --force flag - Skip this confirmation entirely:
specify init --here --force --ai copilot
When you see this warning:
Prevention tip: Before upgrading, commit or back up your .specify/memory/constitution.md if you customized it.
Verify the installation:
# Check installed tools
uv tool list
# Should show specify-cli
# Verify path
which specify
# Should point to the uv tool installation directory
If not found, reinstall:
uv tool uninstall specify-cli
uv tool install specify-cli --from git+https://github.com/github/spec-kit.git
Short answer: No, you only run specify init once per project (or when upgrading).
Explanation:
The specify CLI tool is used for:
specify init to bootstrap Spec Kit in your projectspecify init --here --force to update templates and commandsspecify check to verify tool installationOnce you’ve run specify init, the slash commands (like /speckit.specify, /speckit.plan, etc.) are permanently installed in your project’s agent folder (.claude/, .github/prompts/, etc.). Your AI assistant reads these command files directly—no need to run specify again.
If your agent isn’t recognizing slash commands:
Verify command files exist:
# For GitHub Copilot
ls -la .github/prompts/
# For Claude
ls -la .claude/commands/
Restart your IDE/editor completely (not just reload window)
Check you’re in the correct directory where you ran specify init
For some agents, you may need to reload the workspace or clear cache
Related issue: If Copilot can’t open local files or uses PowerShell commands unexpectedly, this is typically an IDE context issue, not related to specify. Try:
Spec Kit follows semantic versioning for major releases. The CLI and project files are designed to be compatible within the same major version.
Best practice: Keep both CLI and project files in sync by upgrading both together during major version changes.
After upgrading:
/speckit.constitution or another command to verify everything works