Skip to content

openspec show

Shows detailed information about a change or specification.

Terminal window
openspec show [item] [options]
ArgumentDescription
itemChange or spec name (optional - interactive if omitted)
OptionDescription
--type <type>Force type: change or spec
--jsonMachine-readable output
--deltas-onlyShow only delta specs (changes)
-r <num>Show specific requirement by index

Without arguments, shows a selection menu:

Terminal window
$ openspec show
? Select item to show:
add-user-auth (change)
update-schema (change)
cli-init (spec)
user-auth (spec)
Terminal window
$ openspec show add-user-auth
═══════════════════════════════════════════════
add-user-auth
═══════════════════════════════════════════════
PROPOSAL
────────────────────────────────────────────────
## Why
Add user authentication to secure API endpoints.
## What Changes
- Add JWT-based authentication
- Implement login/logout endpoints
TASKS
────────────────────────────────────────────────
## 1. Backend
- [x] 1.1 Add auth middleware
- [ ] 1.2 Implement login endpoint
SPEC DELTAS
────────────────────────────────────────────────
specs/user-auth/spec.md:
+ 2 added requirements
Terminal window
$ openspec show cli-init --type spec
═══════════════════════════════════════════════
cli-init
═══════════════════════════════════════════════
## Purpose
Initialize OpenSpec in a project.
## Requirements
### Requirement: Directory Creation
The command SHALL create the OpenSpec directory structure.
#### Scenario: Creating structure
- WHEN openspec init is executed
- THEN create openspec/ with required subdirectories
Terminal window
$ openspec show add-user-auth --json --deltas-only
{
"name": "add-user-auth",
"deltas": [
{
"spec": "user-auth",
"added": 2,
"modified": 0,
"removed": 0
}
]
}
Terminal window
openspec show my-change
Terminal window
openspec show auth --type spec
Terminal window
openspec show my-change --json --deltas-only | jq '.deltas'
Terminal window
openspec show cli-init --type spec -r 1
CodeMeaning
0Success
1Item not found