Skip to content

CLI Quick Reference

Quick reference card for SII CLI commands and options.

Basic Commands

CommandDescription
siiStart interactive session
sii -p "query"Execute prompt and exit
sii -i "query"Execute prompt and continue
sii --helpShow help
sii --versionShow version

Common Options

OptionShortDescription
--model <name>-mSelect AI model
--prompt <text>-pNon-interactive prompt
--prompt-interactive <text>-iInteractive prompt
--debug-dEnable debug mode
--sandbox-sRun in sandbox
--yolo-yAuto-accept all actions
--all-files-aInclude all files

SDD Commands

CommandDescription
sii sdd initInitialize SDD structure
sii sdd specify <desc>Create feature spec
sii sdd planGenerate implementation plan
sii sdd tasksScan available documents
sii sdd implementImplementation prerequisites

Prompts Commands

CommandDescription
sii prompts showDisplay active prompt
sii prompts editEdit prompt file
sii prompts set --file <path>Set prompt file
sii prompts set --inline <text>Set inline prompt
sii prompts reloadReload prompt cache

Commands Management

CommandDescription
sii commands initInitialize commands directory
sii commands create <name>Create custom command
sii commands listList available commands

Interactive Session

CommandDescription
/helpShow help
/newStart new session
/clearClear and start new
/compressCompress history
/statusShow session info
/exitExit CLI

Environment Variables

VariableDescription
SII_OPENAI_API_KEYOpenAI API key
SII_OPENAI_BASE_URLAPI endpoint
SII_OPENAI_MODELDefault model
SII_USERNAMESII username
SII_PASSWORDSII password
EDITORDefault editor

Configuration Files

FileDescription
~/.sii/settings.jsonUser settings
./.sii/settings.jsonWorkspace settings
./.sii/commands/Custom commands
./.specify/templates/SDD templates

Quick Examples

Start Interactive Session

bash
sii

Execute Single Prompt

bash
sii -p "Explain this function"

Use Custom Model

bash
sii --model gpt-4o

SDD Workflow

bash
sii sdd init --with-commands
sii sdd specify Add user authentication
sii sdd plan
sii sdd implement

Custom Prompt

bash
sii prompts set --inline "You are a Python expert"

Remote Session

bash
sii --remote my-session

Sandbox Mode

bash
sii --sandbox

See Also

Released under the MIT License.