All Claude Code Commands
Slash commands 118
Type in Claude CodeWhat it does
Everyday
/helpShows all commands.
/clear [name]Starts a fresh chat.
/compact [instructions]Shrinks the chat to free up space.
/exitQuits Claude Code.
/initCreates a CLAUDE.md for your project.
/memoryEdits your CLAUDE.md files.
/model [model]Switches the AI model.
/resume [session]Opens an old chat.
/rewindGoes back to an earlier point.
/diffShows what changed in your files.
/plan [description]Plans first, edits later.
/statusShows your version, model and account.
/usageShows your usage and limits.
Conversation and context
/btw [question]Asks a quick side question.
/branch [name]Tries a different direction from here.
/fork [prompt]Copies the chat to a background session.
/context [all]Shows what's using up space.
/autocompact [auto|<tokens>]Sets when the chat shrinks itself.
/copy [N]Copies Claude's last reply.
/export [filename]Saves the chat as a text file.
/recapSums up the session in one line.
/rename [name]Renames the session.
/goal [condition|clear]Keeps working until a goal is met.
/cd <path>Moves to another folder.
/add-dir <path>Gives access to another folder.
/focusShows only the final answer.
/insightsShows how you use Claude Code.
Models and permissions
/effort [level|auto|status]Sets how hard Claude thinks.
/fast [on|off]Turns fast mode on or off.
/advisor [model|off]Lets Claude ask a second model.
/output-style [style]Changes how replies look.
/permissionsSets what Claude can do without asking.
/sandboxTurns sandbox mode on or off.
/auto-mode-setupSets up auto mode.
/fewer-permission-promptsSkillAsks you less often.
/voice [hold|tap|off]Turns voice typing on or off.
Code review and testing
/code-review [level] [--fix] [PR]SkillChecks your code for bugs.
/review [level] [--fix] [PR]Same as /code-review.
/security-reviewChecks your changes for security issues.
/ultrareview [PR or branch]Runs a deep review in the cloud.
/autofix-pr [prompt]Fixes your pull request when checks fail.
/simplify [target]SkillCleans up your new code.
/verifySkillRuns your app to check a change works.
/runSkillOpens your app to see a change.
/run-skill-generatorSkillTeaches /run how to start your app.
/batch <instruction>SkillMakes big changes across your code.
Agents and background work
/agentsShows how to set up subagents.
/list-agentsLists agents Claude can message.
/subtask <task>Starts a helper in the background.
/background [prompt]Sends this chat to the background.
/tasksShows background work.
/stopStops a background session.
/loop [interval] [prompt]SkillRepeats a prompt on a timer.
/schedule [description]Schedules tasks in the cloud.
/deep-research <question>WorkflowResearches a topic and writes a report.
/workflowsShows running workflows.
/teleportBrings a cloud session here.
/remote-controlContinue this chat on claude.ai or your phone.
/remote-envPicks your default cloud setup.
/desktopContinues in the desktop app.
Settings and setup
/config [key=value]Opens settings.
/themeChanges the colors.
/color [color|default]Changes the prompt bar color.
/statuslineSets up the status line.
/keybindingsEdits your shortcuts.
/terminal-setupMakes Shift + Enter add a new line.
/tui [default|fullscreen]Switches the screen layout.
/scroll-speedChanges the scroll speed.
/hooksShows your hooks.
/update-config [request]SkillChanges settings in plain English.
/privacy-settingsChanges your privacy settings.
/doctorSkillFinds and fixes setup problems.
/debug [description]SkillHelps find a problem in Claude Code.
/heapdumpSaves a memory report.
/restartRestarts Claude Code.
/release-notesShows what's new.
/import [codex|gemini|cursor]Brings your setup from Codex, Gemini or Cursor.
/powerupTeaches features with quick lessons.
Connections and add-ons
/mcpManages your connected tools.
/plugin [subcommand]Installs and manages plugins.
/reload-pluginsReloads plugins.
/skillsLists your skills.
/reload-skillsReloads skills.
/skill-doctorShows which skills cost the most.
/ideConnects to your code editor.
/chromeSets up Claude in Chrome.
/claude-in-chrome [task]SkillDoes a task in your Chrome browser.
/install-github-appAdds the Claude GitHub app.
/install-slack-appAdds the Claude Slack app.
/web-setupConnects GitHub for cloud sessions.
/setup-bedrockSets up Amazon Bedrock.
/setup-vertexSets up Google Cloud.
/artifactsLists your artifacts.
/design [brief]SkillDesigns screens and pages.
/design consentGives or removes Claude Design access.
/design-loginSigns in for /design-sync.
/design-sync [hint]SkillUploads your design system.
/slides [brief]SkillMakes a slide deck.
/dataviz [request]SkillHelps with charts.
/claude-apiSkillLoads the Claude API docs.
/artifact-capabilitiesSkillShows what artifacts can do.
/artifact-diagrammingSkillHelps draw diagrams.
/plugin-authoringHelps you write a mod.
/workflow-authoringSkillHelps you write workflows.
/mobileShows a QR code for the Claude app.
Account and usage
/loginSigns in.
/logoutSigns out.
/costSame as /usage.
/statsSame as /usage.
/usage-creditsAdds usage credits.
/rate-limit-optionsShows options when you hit a limit.
/upgradeUpgrades your plan.
/passesShares a free week with friends.
/team-onboardingWrites a guide for your team.
/feedback [report]Sends feedback.
/bug [report]Reports a bug.
/radioPlays lo-fi radio.
/stickersOrders stickers.
Terminal commands 36
Type in TerminalWhat it does
Start and resume
claudeStarts Claude Code.
claude "query"Starts with your first message.
claude -p "query"Asks once and exits.
cat file | claude -p "query"Sends a file with a question.
claude -cContinues your last chat.
claude -c -p "query"Continues with one question.
claude -r "<session>" "query"Opens a chat by name or ID.
claude import [source]Brings your setup from another tool.
Install and account
claude updateUpdates Claude Code.
claude install [version]Installs a specific version.
claude doctorChecks your setup.
claude auth loginSigns in.
claude auth logoutSigns out.
claude auth statusShows if you're signed in.
claude setup-tokenMakes a token for scripts.
claude purge [path]Deletes a project's history.
Background sessions
claude agentsShows background sessions.
claude attach <id|name>Opens a background session.
claude logs <id|name>Shows a session's output.
claude stop <id>Stops a background session.
claude respawn <id>Restarts a background session.
claude rm <id>Removes a background session.
claude daemon statusShows the background helper's status.
claude daemon logsShows the background helper's log.
claude daemon runRuns the background helper here.
claude daemon stop --anyStops the background helper.
Tools and add-ons
claude mcpManages MCP servers.
claude mcp login <name>Signs in to an MCP server.
claude mcp logout <name>Signs out of an MCP server.
claude pluginManages plugins.
claude auto-mode defaultsShows the auto mode rules.
claude auto-mode resetResets auto mode.
claude ultrareview [target]Runs a deep code review.
claude remote-controlUse Claude Code from claude.ai or your phone.
For admins
claude gatewayStarts a company gateway (admins).
claude self-hosted-runnerRuns cloud sessions on your own servers.
Flags 78
Add after claudeWhat it does
Everyday
--continue, -cContinues your last chat.
--resume, -rOpens an old chat.
--print, -pPrints the answer and exits.
--modelPicks the model.
--effortSets how hard Claude thinks.
--permission-modeStarts in a permission mode.
--name, -nNames the session.
--add-dirGives access to more folders.
--version, -vShows the version.
--worktree, -wWorks in a separate copy of your code.
--bg, --backgroundRuns in the background.
--safe-modeStarts with all add-ons off.
Permissions and tools
--allowedTools, --allowed-toolsTools Claude can use without asking.
--disallowedTools, --disallowed-toolsTools Claude can't use.
--toolsLimits the built-in tools.
--dangerously-skip-permissionsSkips all permission prompts. Be careful.
--allow-dangerously-skip-permissionsAdds skip-permissions to Shift + Tab.
--permission-promptsSets who answers prompts in print mode.
--permission-prompt-toolUses a tool to answer prompts.
--restrictedStarts in restricted mode.
--disable-slash-commandsTurns off all commands and skills.
--bareStarts fast with nothing extra loaded.
Models and output
--fallback-modelBackup model if the main one is busy.
--advisor <model>Turns on the advisor.
--autocompact <auto|tokens>Sets when the chat shrinks itself.
--output-formatOutput as text or JSON.
--input-formatInput as text or JSON.
--json-schemaReturns JSON in your format.
--max-turnsLimits how many steps Claude takes.
--max-budget-usdStops at a spending limit.
--include-partial-messagesStreams partial replies.
--include-hook-eventsIncludes hook events in the output.
--forward-subagent-textIncludes subagent text in the output.
--prompt-suggestionsSuggests your next prompt.
--replay-user-messagesEchoes your messages back.
--verboseShows full details.
--ax-screen-readerScreen-reader friendly output.
--betasTurns on API beta features.
System prompt
--system-promptReplaces the system prompt.
--system-prompt-fileReplaces the system prompt from a file.
--append-system-promptAdds to the system prompt.
--append-system-prompt-fileAdds a file to the system prompt.
--append-subagent-system-promptAdds to every subagent's prompt.
--append-subagent-system-prompt-fileAdds a file to every subagent's prompt.
--system-prompt-snapshotRebuilds the prompt every time.
--exclude-dynamic-system-prompt-sectionsKeeps personal details out of the system prompt.
Agents and sessions
--agentUses a specific agent.
--agentsAdds custom subagents.
--teammate-modeSets how teammates show up.
--fork-sessionResumes as a new session.
--session-idUses a specific session ID.
--no-session-persistenceDoesn't save the session.
--from-prShows sessions for a pull request.
--execRuns a command in the background.
--tmuxOpens a tmux session.
--cloudStarts a cloud session.
--teleportBrings a cloud session here.
--environment <id>Uses your own cloud environment.
--ref <branch>Starts from a branch.
--remote-control, --rcLets you control it from your phone or web.
--remote-control-session-name-prefixPrefix for Remote Control names.
--desktopOpens the desktop app instead.
Settings and add-ons
--settingsLoads settings from a file.
--setting-sourcesPicks which settings to load.
--mcp-configLoads MCP servers.
--strict-mcp-configUses only the MCP servers you pass.
--plugin-dirLoads a plugin from a folder.
--plugin-urlLoads a plugin from a link.
--channelsListens for MCP notifications.
--dangerously-load-development-channelsAllows unapproved channels.
--chromeTurns on Claude in Chrome.
--no-chromeTurns off Claude in Chrome.
--ideConnects to your editor on start.
--initRuns setup hooks first.
--init-onlyRuns setup hooks and exits.
--maintenanceRuns maintenance hooks first.
--debugTurns on debug mode.
--debug-file <path>Saves debug logs to a file.
Keyboard shortcuts 42
Press in Claude CodeWhat it does
General
EscStops Claude.
Esc EscClears your text, or goes back.
Shift + TabSwitches permission modes.
Ctrl + CStops, or quits if pressed twice.
Ctrl + DQuits (press twice).
Up / Down arrowsBrings back what you typed before.
TabAccepts a suggestion.
Ctrl + RSearches what you typed before.
Ctrl + OShows the full transcript.
Ctrl + TShows the task list.
Ctrl + BSends tasks to the background.
Ctrl + SSaves your prompt for later.
Ctrl + GWrites your prompt in an editor.
Ctrl + VPastes an image.
Ctrl + LRedraws the screen.
Ctrl + ZPauses Claude Code.
Ctrl + EnterSends queued messages now.
Ctrl + X Ctrl + KStops all background helpers.
Left / Right arrowsMoves between tabs.
Option + PSwitches the model.
Option + TTurns thinking on or off.
Option + OTurns fast mode on or off.
Typing
Ctrl + AJumps to the start of the line.
Ctrl + EJumps to the end of the line.
Ctrl + KDeletes to the end of the line.
Ctrl + UDeletes to the start of the line.
Ctrl + WDeletes the last word.
Ctrl + YPastes what you deleted.
Alt + YCycles through deleted text.
Alt + BMoves back a word.
Alt + FMoves forward a word.
Alt + DDeletes the next word.
Ctrl + _Undoes your last edit.
New lines
Shift + EnterNew line.
\ + EnterNew line, in any terminal.
Ctrl + JNew line, in any terminal.
Option + EnterNew line (Option set as Meta).
Typed at the start
/Shows commands.
!Runs a Terminal command.
@Mentions a file.
:Adds an emoji.
?Shows shortcuts.
Plugin commands 26
Type in Claude Code, once installedWhat it does
commit-commands
Install:
/plugin install commit-commands@claude-plugins-official/commit-commands:commitCommits your changes.
/commit-commands:commit-push-prCommits, pushes and opens a pull request.
/commit-commands:clean_goneDeletes old local branches.
feature-dev
Install:
/plugin install feature-dev@claude-plugins-official/feature-dev:feature-dev [description]Builds a feature step by step.
code-review
Install:
/plugin install code-review@claude-plugins-official/code-review:code-reviewReviews a pull request.
pr-review-toolkit
Install:
/plugin install pr-review-toolkit@claude-plugins-official/pr-review-toolkit:review-pr [aspects]Reviews a pull request in depth.
hookify
Install:
/plugin install hookify@claude-plugins-official/hookify:hookify [behavior]Stops Claude doing something again.
/hookify:listLists your rules.
/hookify:configureTurns rules on or off.
/hookify:helpShows hookify help.
claude-md-management
Install:
/plugin install claude-md-management@claude-plugins-official/claude-md-management:revise-claude-mdSaves today's learnings to CLAUDE.md.
/claude-md-management:claude-md-improverImproves your CLAUDE.md.
claude-code-setup
Install:
/plugin install claude-code-setup@claude-plugins-official/claude-code-setup:claude-automation-recommenderSuggests automations for your code.
claude-security
Install:
/plugin install claude-security@claude-plugins-official/claude-security:claude-securityScans your code for security issues.
code-modernization
Install:
/plugin install code-modernization@claude-plugins-official/code-modernization:modernizeModernizes old code.
ralph-loop
Install:
/plugin install ralph-loop@claude-plugins-official/ralph-loop:ralph-loop "PROMPT"Keeps Claude working until it's done.
/ralph-loop:cancel-ralphStops the loop.
frontend-design
Install:
/plugin install frontend-design@claude-plugins-official/frontend-design:frontend-designBetter-looking frontend design.
skill-creator
Install:
/plugin install skill-creator@claude-plugins-official/skill-creator:skill-creatorCreates and tests skills.
playground
Install:
/plugin install playground@claude-plugins-official/playground:playgroundMakes an interactive HTML playground.
session-report
Install:
/plugin install session-report@claude-plugins-official/session-report:session-reportReports your token use.
receipts
Install:
/plugin install receipts@claude-plugins-official/receipts:receiptsReports what you've done with Claude Code.
project-artifact
Install:
/plugin install project-artifact@claude-plugins-official/project-artifact:project-artifactPublishes a project status page.
mcp-server-dev
Install:
/plugin install mcp-server-dev@claude-plugins-official/mcp-server-dev:build-mcp-serverBuilds an MCP server.
plugin-dev
Install:
/plugin install plugin-dev@claude-plugins-official/plugin-dev:create-plugin [description]Creates your own plugin.
agent-sdk-dev
Install:
/plugin install agent-sdk-dev@claude-plugins-official/agent-sdk-dev:new-sdk-app [name]Sets up an Agent SDK app.