Skip to content
Roo Code CLI logo

Roo Code CLI cheat sheet

$ roo Roo Code Official docs

Every command, flag and slash command for roo — Roo Code's agent as a standalone terminal CLI — runs its modes (code / architect / ask / debug) without VS Code. 12+ commands, verified July 2026.

The RooCodeInc/Roo-Code repo is archived / read-only (last push 2026-05-15) — the roo binary still works but won't evolve. Interactive mode auto-approves all actions unless you pass --require-approval.

Install
# Node 20+, macOS arm64 / Linux x64. Installs to ~/.roo/cli, symlinks ~/.local/bin/roo
curl -fsSL https://raw.githubusercontent.com/RooCodeInc/Roo-Code/main/apps/cli/install.sh | sh
roo upgrade
Start & run
roo "What is this project?" -w ~/proj    # interactive TUI (auto-approves)
roo --print "Summarize this repository"  # headless: print + exit
roo "Refactor utils.ts" --require-approval
roo --provider anthropic -m anthropic/claude-opus-4.6 --mode code "…"

Key flags

FlagWhat it does
-w, --workspace <path>Workspace directory (default cwd)
-p, --printPrint and exit (non-interactive)
--output-format <fmt>text · json · stream-json (with --print)
-a, --require-approvalRequire manual approval before actions
--provider <p> / -m, --model <m>Provider / model
--mode <mode>code · architect · ask · debug
-c, --continue · --oneshotResume the latest task · exit on completion

In-session (trigger keys)

KeyWhat it does
/Slash commands (dynamic — run roo list commands)
@Insert a file / folder reference
!Switch mode
#Task history — search & resume
?Keyboard-shortcuts help
Config
# No config file — flags + env vars. Installed under ~/.roo/cli.
export OPENROUTER_API_KEY=…   # or ANTHROPIC_API_KEY / OPENAI_API_KEY / GOOGLE_API_KEY

roo list commands | modes | models | sessions
Common one-liners
roo "What is this project?" -w ~/Documents/my-project
roo --print "Summarize this repository"
roo "Refactor utils.ts" --require-approval --provider anthropic -m anthropic/claude-opus-4.6
roo list sessions

More CLI cheat sheets

Stop memorizing flags

Run Roo Code CLI — and every other agent — from one app

TheVibeFather orchestrates Roo Code CLI alongside every other coding CLI in one native macOS app. Bring the models you already pay for; keep your keys.