CLI Quick Reference
Quick reference card for SII CLI commands and options.
Basic Commands
| Command | Description |
|---|---|
sii | Start interactive session |
sii -p "query" | Execute prompt and exit |
sii -i "query" | Execute prompt and continue |
sii --help | Show help |
sii --version | Show version |
Common Options
| Option | Short | Description |
|---|---|---|
--model <name> | -m | Select AI model |
--prompt <text> | -p | Non-interactive prompt |
--prompt-interactive <text> | -i | Interactive prompt |
--debug | -d | Enable debug mode |
--sandbox | -s | Run in sandbox |
--yolo | -y | Auto-accept all actions |
--all-files | -a | Include all files |
SDD Commands
| Command | Description |
|---|---|
sii sdd init | Initialize SDD structure |
sii sdd specify <desc> | Create feature spec |
sii sdd plan | Generate implementation plan |
sii sdd tasks | Scan available documents |
sii sdd implement | Implementation prerequisites |
Prompts Commands
| Command | Description |
|---|---|
sii prompts show | Display active prompt |
sii prompts edit | Edit prompt file |
sii prompts set --file <path> | Set prompt file |
sii prompts set --inline <text> | Set inline prompt |
sii prompts reload | Reload prompt cache |
Commands Management
| Command | Description |
|---|---|
sii commands init | Initialize commands directory |
sii commands create <name> | Create custom command |
sii commands list | List available commands |
Interactive Session
| Command | Description |
|---|---|
/help | Show help |
/new | Start new session |
/clear | Clear and start new |
/compress | Compress history |
/status | Show session info |
/exit | Exit CLI |
Environment Variables
| Variable | Description |
|---|---|
SII_OPENAI_API_KEY | OpenAI API key |
SII_OPENAI_BASE_URL | API endpoint |
SII_OPENAI_MODEL | Default model |
SII_USERNAME | SII username |
SII_PASSWORD | SII password |
EDITOR | Default editor |
Configuration Files
| File | Description |
|---|---|
~/.sii/settings.json | User settings |
./.sii/settings.json | Workspace settings |
./.sii/commands/ | Custom commands |
./.specify/templates/ | SDD templates |
Quick Examples
Start Interactive Session
bash
siiExecute Single Prompt
bash
sii -p "Explain this function"Use Custom Model
bash
sii --model gpt-4oSDD Workflow
bash
sii sdd init --with-commands
sii sdd specify Add user authentication
sii sdd plan
sii sdd implementCustom Prompt
bash
sii prompts set --inline "You are a Python expert"Remote Session
bash
sii --remote my-sessionSandbox Mode
bash
sii --sandboxSee Also
- Full CLI Reference - Complete documentation
- Configuration Guide - Configuration options
- Quickstart - Getting started
