CLI Reference¶
All commands are accessed via the shellsage entry point.
Installation & Setup¶
shellsage setup¶
Interactive one-command install wizard. Auto-detects your IDE and configures everything.
What it does:
- Detects installed IDEs (Claude Code, Cursor, Windsurf)
- Seeds the local SQLite database with 400+ curated translations
- Starts the background MCP server
- Registers the MCP server with your IDE
- Optionally installs Claude Code hooks
shellsage init¶
Seed the local SQLite database.
shellsage init # load 75 seed examples (default)
shellsage init --all # load the complete 400+ corpus
Translation¶
shellsage translate¶
Translate a single bash command to PowerShell.
shellsage translate "ls -la"
shellsage translate "find . -name '*.py'"
shellsage translate "grep -r 'TODO' ." --json-out
| Flag | Description |
|---|---|
--json-out | Machine-readable JSON output |
Diagnostics¶
shellsage stats¶
Show local database record counts.
shellsage replay¶
Show recent failure patterns from the local database.
Server Management¶
shellsage start¶
Start the background MCP server (HTTP/SSE on http://127.0.0.1:7842).
shellsage stop¶
Stop the background MCP server.
shellsage status¶
Show daemon and database status.
MCP Server (foreground)¶
shellsage mcp¶
Start the MCP server in the foreground.
shellsage mcp # stdio transport (for IDE stdio MCP config)
shellsage mcp --http # HTTP/SSE transport
Hooks¶
shellsage hooks install¶
Write Claude Code pre/post hook scripts to .claude/hooks/ in the current directory and print the settings snippet to add to .claude/settings.json.
Other¶
shellsage --version¶
Print the installed version.