Ad 320×100
Developer

Claude Code Cheat Sheet

Quick reference for Claude Code CLI — slash commands, skills, MCP, and session management

claude

Start interactive session

claude -p "prompt"

Run one prompt and exit (print mode)

claude --continue

Continue most recent conversation

claude --resume <id>

Resume session by ID

claude -r "<id>" "query"

Resume session with follow-up query

claude update

Update Claude Code

claude --ide

Connect to IDE on startup

claude --tools "Bash,Read,Edit"

Restrict built-in tools

claude --allowedTools "Bash(git:*)"

Allow specific tool patterns

claude --disallowedTools "Bash(rm:*)"

Block specific tool patterns

claude --permission-mode plan

Start in plan mode

claude --dangerously-skip-permissions

Skip permission prompts (caution)

claude --mcp-config ./mcp.json

Load MCP servers from file

claude auth login

Sign in to Anthropic account

claude auth logout

Sign out

/help

Show available commands

/exit

Exit REPL (alias: /quit)

/clear

Clear history (alias: /reset, /new)

/compact [instructions]

Summarize conversation to free context

/rewind

Rewind conversation/code (alias: /checkpoint)

/export [filename]

Export conversation to file

/copy [N]

Copy last assistant response

/cost

Show token usage (alias: /usage, /stats)

/rename [name]

Rename current session

/btw <question>

Quick side question without bloating context

/branch [name]

Fork conversation branch (alias: /fork)

/init

Generate CLAUDE.md project guide

/memory

Edit memory files and auto-memory

/context [all]

Visualize context usage

/config

Open settings (alias: /settings)

/status

Version, model, account status

/doctor

Diagnose installation

/debug [description]

Troubleshoot via debug log

/add-dir <path>

Add working directory for file access

/model [name]

Switch AI model

/effort [low|medium|high|max]

Set reasoning effort level

/plan [description]

Enter plan mode

/fast [on|off]

Toggle fast mode

/permissions

Manage tool allow/ask/deny rules

/sandbox

Toggle sandbox mode

/login

Sign in

/logout

Sign out

/diff

Interactive diff viewer

/code-review

Review diff for bugs (skill)

/review [PR]

Review pull request locally

/security-review

Security vulnerability scan

/agents

Manage subagent configurations

/tasks

List background tasks (alias: /bashes)

/background [prompt]

Detach session to background (alias: /bg)

/batch <instruction>

Parallel large-scale changes (skill)

/kill <id>

Stop background process

/mcp

Manage MCP servers and OAuth

/ide

Manage IDE integrations

/desktop

Continue in Desktop app (alias: /app)

/chrome

Configure Claude in Chrome

/skills

List available skills

/commands

List skills and commands

/hooks

View hook configurations

/plugin

Manage plugins

/reload-plugins

Reload plugins without restart

/loop [interval] [prompt]

Run prompt on schedule (skill)

/debug

Debug session via log (skill)

/claude-api

Claude API reference (skill)

/run

Launch and verify app (skill)

/verify

Verify change in running app (skill)

/resume [session]

Resume conversation (alias: /continue)

/teleport

Pull web session into terminal

/remote-control

Control from claude.ai (alias: /rc)

/terminal-setup

Configure Shift+Enter for newlines

/theme

Change color theme

/feedback

Submit feedback (alias: /bug)

/insights

Analyze session patterns

/voice [hold|tap|off]

Toggle voice dictation

/keybindings

Edit keybindings config

Based on Claude Code official docs. Commands may change between versions.

Ad 320×100