Skip to content

Cheat Sheet

This page condenses the Getting Started reference tables — plus a few extras — into one page. It prints reasonably cleanly via your browser’s normal Print (Cmd/Ctrl+P) if you want a paper copy.

Getting Claude running

Command Effect
claude / claude "prompt" Start a new session
claude -p "prompt" One-shot query, no session
claude -c Resume last session
claude --agent <name> Start with a specific subagent active
claude --permission-mode plan Start in Plan Mode
claude --remote "prompt" Start a remote/cloud session

In-session commands

Command Effect
/help List commands
/model Choose model
/clear Clear context, fresh session
/compact Compact context manually
/config Open settings
/context View context window usage
/usage View remaining plan usage
/init Scaffold a CLAUDE.md
/mcp Manage MCP servers
/permissions Manage tool permissions
/rewind Undo to earlier state
/memory Manage auto-memory
/remote-control Connect a local session to another device

Flags for `claude`

Flag Effect
--allowedTools "Read" "Write" Restrict to listed tools
--disallowedTools "Write" Block specific tools
--dangerously-skip-permissions Skip all permission prompts — use with real caution
--model opus Set model for this launch
--permission-mode plan Start in Plan Mode

Shortcuts inside a session

Shortcut Effect
Shift+Enter / Ctrl+J New line without submitting
Shift+Tab Cycle modes
Esc, Esc Rewind to before the last action
Option/Alt+P Switch model
Ctrl+O Toggle verbose output
Ctrl+B Move task to background
Ctrl/Cmd/Alt+V Paste text or image

Where things live on disk

Location Scope
.claude/commands/ Project commands (shared)
~/.claude/commands/ Personal commands
.claude/agents/ Subagents
.claude/skills/ Skills