Skip to content
Claude Code Quick Reference

Claude Code Quick Reference

For quick lookups: common shortcuts, commands/Skills, and CLI flags in one table. Versions may differ—use your local claude /help and official docs as the source of truth.

Keyboard shortcuts

ShortcutPurpose
!<command>Run a Bash command and inject its output into context
EscInterrupt current thinking/execution
Esc EscRewind to an earlier checkpoint
Ctrl+GEdit current input in your default editor (if supported)
Ctrl+RReverse-search prompt history
Ctrl+SStash current prompt draft
Shift+TabCycle permission modes (includes Plan Mode)
Tab / EnterAccept prompt suggestions (if supported)

Common commands (built-in + Skills)

Tip: type / in Claude Code to see the full command list and filter by name. Your own Skills also show up as /skill-name.

CommandPurposeRead more
/helpShow built-in commands and help—
/initGenerate/update CLAUDE.md so Claude knows the projectContext management
/clearClear current conversation contextContext management
/compactCompact/summarize context (if supported)Hooks
/configView/change config (some settings also in .claude/settings.json)Settings reference
/permissionsView/change permissions (if supported)Settings reference
/mcpManage MCP connections/auth (if supported)MCP servers
/modelSwitch model (if supported)—
/sandboxConfigure sandbox and permission boundariesSecurity guide
/hooksConfigure Hooks (if supported)Hooks
/commitGenerate a commit message and commitGit integration
/resumeResume a previous session (if supported)Basic usage
/renameName the current session (if supported)—
/exportExport session to Markdown (if supported)—
/vimVim mode for editing prompts (if supported)—
/contextInspect context/token usage (if supported)—
/statsView usage stats (if supported)—
/usageView quota/limits (if supported)—
/statuslineConfigure statusline (if supported)Statusline
/tasksView/manage background tasks (if supported)—
/todosList TODO items (if supported)—
/themeSwitch theme (if supported)—

Common CLI flags

FlagPurpose
claude "<prompt>"Run a one-off task
claude -c / claude --continueContinue the last session
claude --resumePick and resume a previous session
claude --permission-mode <mode>Start with a permission mode (e.g. plan, acceptEdits)
claude -p "<prompt>"Headless/Print mode for scripts and CI
claude -p --append-system-prompt-file <file> "<prompt>"Append system prompt from a file (version team rules)
claude --dangerously-skip-permissionsSkip permission checks (high risk)
claude --teleportBring a remote claude.ai session local (if supported)

Common recipes (copy-paste)

# Summarize current changes
git diff | claude -p "Summarize these changes and flag potential risks"

# Read-only analysis + plan
claude --permission-mode plan -p "Analyze the auth module and propose a refactor plan"

Related pages