archive
Archive a completed change and update the main specifications.
openspec archive [change-name] [options]
Description
This is the final step of the workflow. It:
- Verifies that all tasks in
tasks.mdare marked complete. - Validates the change structure.
- Applies Deltas: Reads
specs/in the change folder and merges ADDED/MODIFIED/REMOVED requirements into the main files inopenspec/specs/. - Moves the change directory to
openspec/changes/archive/YYYY-MM-DD-[name]/.
Options
--yes,-y: Skip confirmation prompts (useful for CI/CD).--skip-specs: Archive the change without updating any specs (use for tooling/docs-only changes).--no-validate: Force archive even if validation fails (requires confirmation unless--yesis used).