openspec update
Updates AI tool configuration files and instruction templates to the latest version.
openspec update [path]Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
path | Project directory (default: current) |
What It Updates
Section titled “What It Updates”openspec/AGENTS.md- AI workflow instructionsAGENTS.md(root) - Handoff stub- Tool-specific slash commands
- Managed marker content
When to Use
Section titled “When to Use”Run openspec update after:
- Upgrading OpenSpec version
- Adding new AI tools to your workflow
- Syncing team configurations
Output
Section titled “Output”$ openspec update
Updating OpenSpec configuration...✓ Updated openspec/AGENTS.md✓ Updated AGENTS.md✓ Updated .claude/commands/openspec/proposal.md✓ Updated .claude/commands/openspec/apply.md✓ Updated .claude/commands/openspec/archive.md
OpenSpec configuration updated successfully.Managed Content
Section titled “Managed Content”OpenSpec manages content between markers:
<!-- OPENSPEC:START -->This content is managed by OpenSpec.Do not edit manually.<!-- OPENSPEC:END -->Content outside markers is preserved.
Examples
Section titled “Examples”Update current project
Section titled “Update current project”openspec updateUpdate specific directory
Section titled “Update specific directory”openspec update ./packages/apiAfter OpenSpec upgrade
Section titled “After OpenSpec upgrade”bun install -g @clanker-guru/openspec@latestopenspec updateExit Codes
Section titled “Exit Codes”| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Not an OpenSpec project |