✻Founding-member pricing: every lesson for $19/mo. The first 3 lessons are free. Start lesson 1 →
Free reference

The Claude Code cheat sheet

86 commands, shortcuts, flags and files, searchable and printable. Bookmark it.

claudeStart an interactive session in the current folderlesson →
claude "prompt"Start a session with a first promptlesson →
claude -cContinue the most recent conversation in this folderlesson →
claude -r [name]Resume a session by name or ID, or pick from a listlesson →
claude --from-pr 1234Resume the session linked to a pull requestlesson →
/contextShow what's using the context window (/context all for detail)lesson →
/compact [focus]Summarize the conversation; add focus instructions to keep what matterslesson →
/clear [name]Start a fresh, empty conversation (optionally naming the one you leave)lesson →
/btw [question]Ask a side question that isn't added to historylesson →
/rename <name>Name the current sessionlesson →
/resumeOpen the session pickerlesson →
/branchBranch the conversation to try an alternativelesson →
/forkCopy the conversation into a background sessionlesson →
/export [file]Export the conversation to a filelesson →
/rewindRoll back code and/or conversation to a checkpointlesson →
/goal <condition>Keep working across turns until a checkable condition is metlesson →
EscInterrupt Claude; work done so far is keptlesson →
Esc EscOn an empty prompt: open the rewind menulesson →
Shift+TabCycle permission modes (Manual → Accept edits → Plan → Auto)lesson →
Ctrl+RReverse-search prompt historylesson →
Ctrl+GOpen the prompt or plan in your external editorlesson →
Ctrl+BSend running tasks to the backgroundlesson →
Ctrl+OOpen the transcript viewer
Ctrl+TShow the task checklist
Ctrl+VPaste an image (Alt+V on Windows/WSL)lesson →
Alt+PSwitch modellesson →
Shift+EnterNew line in the prompt (or \ then Enter)
?On an empty prompt: show shortcut helplesson →
/Slash commands and skillslesson →
@pathMention a file or folder to pull it into contextlesson →
@server:proto://resAttach an MCP resourcelesson →
!Shell mode: run a command and add its output to contextlesson →
ultrathinkInclude in a prompt to raise effort for one turnlesson →
/initGenerate or improve a starter CLAUDE.mdlesson →
/memoryView and edit memory files; toggle auto memorylesson →
/configOpen settingslesson →
/statusShow account, model and loaded settings sourceslesson →
/permissionsManage allow / ask / deny ruleslesson →
/sandboxConfigure OS-level sandboxing for shell commandslesson →
/modelSwitch model (opus, sonnet, haiku)lesson →
/effortSet reasoning effort: low, medium, high, xhigh, maxlesson →
/fastToggle fast modelesson →
/output-styleSwitch how responses are writtenlesson →
/statuslineSet up a custom status linelesson →
/doctorCheck your setup and suggest fixeslesson →
/usageShow usage and limits (alias /cost)lesson →
/login · /logoutSwitch accountslesson →
/hooksBrowse configured hookslesson →
/mcpManage MCP servers: status, auth, reconnectlesson →
claude mcp addAdd an MCP server (--transport http|stdio, --scope)lesson →
claude mcp listList MCP servers and their statuslesson →
/skillsManage skillslesson →
/reload-skillsPick up a newly created skills directorylesson →
/agentsGet pointers for creating subagents in .claude/agents/lesson →
/pluginDiscover, install and manage pluginslesson →
/plugin marketplace addAdd a plugin marketplacelesson →
claude --plugin-dir ./pLoad a local plugin for one sessionlesson →
/plan [task]Enter plan mode (optionally with a task)lesson →
/code-review [pr]Review the diff, a branch or a PR (--fix applies fixes)lesson →
/security-reviewReview pending changes for vulnerabilitieslesson →
/batch <change>Split a large change across parallel worktree workerslesson →
claude -w <name>Start a session in a new git worktreelesson →
/install-github-appSet up the GitHub app and Actions workflowlesson →
/loop [interval] <prompt>Repeat a prompt on an interval in this sessionlesson →
/scheduleCreate a cloud scheduled tasklesson →
claude -p "…"Run non-interactively and print the resultlesson →
--output-format jsonMachine-readable result with session_id and cost (or stream-json)lesson →
--allowedToolsPre-approve tools, e.g. "Read,Edit,Bash(pnpm test *)"lesson →
--permission-modedefault · acceptEdits · plan · auto · dontAsk · bypassPermissionslesson →
--max-turns NCap turns in print modelesson →
--max-budget-usd NCap spend in print modelesson →
--model <alias>Choose the model for the runlesson →
--resume <id>Continue a specific conversationlesson →
--bareSkip auto-discovery of local config for reproducible CIlesson →
--agent <name>Run the whole session as a custom subagentlesson →
CLAUDE.mdProject memory loaded every session (keep it under ~200 lines)lesson →
CLAUDE.local.mdPersonal project memory (gitignore it)lesson →
~/.claude/CLAUDE.mdYour memory across all projectslesson →
.claude/rules/*.mdRules, optionally path-scoped with paths frontmatterlesson →
.claude/settings.jsonShared project settings: permissions, hooks, envlesson →
.claude/settings.local.jsonPersonal project settings (gitignored)lesson →
.claude/skills/<name>/SKILL.mdA project skilllesson →
.claude/agents/<name>.mdA project subagentlesson →
.mcp.jsonProject-scoped MCP servers (shared)lesson →
.claude-plugin/plugin.jsonA plugin's manifestlesson →
.worktreeincludeGitignored files to copy into new worktreeslesson →
✓
Print it

Press Ctrl+P (or ⌘P) to print a clean copy for your desk. And inside Claude Code, /help and ? show what's available in your version.

Start lesson 1 free →