The handbook/Claude Code Commands and Slash Command Reference
Reading settingsOfficial docs ↗

04 / Keep this close

The command
reference.

Know what to type, where to type it, and what the command is allowed to do.

QUICK REFERENCEReference • organized by task

Build a prompt or customize a terminal command →

Three kinds of instructions

TypeWhere it goesExample
Shell commandYour computer’s terminal, outside Claude Code.claude --version
Slash commandAt the beginning of a message inside Claude Code./plan add a dark theme
Natural-language promptThe conversation in any supported interface.“Explain the login flow. Do not edit.”
Availability is not universal

This is a broad reference to the documented CLI and bundled skills, checked September 23, 2026. Commands vary by version, plan, provider, and interface. Type / or /help in your installed version. Do not assume this entire list works in the web input.

<argument> means required, [argument] means optional, and | separates alternatives. Do not type the brackets or all alternatives.

Terminal launch commands

CommandUse it for
claudeAn interactive session in the current folder.
claude "Explain this project"An interactive session with an initial task.
claude -p "Explain this project"One task that prints an answer, then exits. Tool permissions still matter.
claude -cContinue the most recent conversation for this directory.
claude -rChoose a saved conversation.
claude --permission-mode planStart with planning.
claude --permission-mode defaultStart in Manual mode.
claude --model sonnetSelect an available model alias at launch.
claude -w practice-changeUse a separate Git worktree for this task.
claude --cloud "Explain the test failures"Dispatch to an eligible cloud session.
claude remote-controlRun a local Remote Control server.
claude agentsManage background sessions.
claude auth status --textCheck the authentication state.
claude doctorRun read-only setup diagnostics.
claude --helpInspect the full CLI syntax for your version.

Start with these

CommandPurposeBefore you use it
/helpDiscover available commands.Type this when you need the command menu.
/plan [task]Plan before implementing.Try /plan add a contact form
/initDraft project instructions.Creates CLAUDE.md; review its contents.
/diffInspect working-tree changes.Read the actual edits before accepting them.
/statusInspect account and session.Check version, model, and authentication.
/usageInspect usage and costs.Aliases: /cost and /stats. Check before a large task.
/permissionsConfigure tool approvals.Review allow, ask, and deny rules.
/exitLeave the session.An attached background session continues running.

Conversation and context

CommandPurposeBefore you use it
/clear [name]Begin with empty context.Aliases: /reset, /new. Files stay.
/compact [focus]Summarize current context.Example: /compact keep the test failures
/context [all]Inspect context consumption.See what is occupying the context window.
/autocompact [auto|tokens]Adjust compaction threshold.Use auto unless you need custom tuning.
/resume [session]Reopen a conversation.Alias: /continue.
/rename [name]Name this session.Example: /rename website-practice
/recapSummarize this session.A quick reorientation.
/branch [name]Try a conversation branch.Separate from a Git branch.
/rewindRestore a checkpoint.Aliases: /checkpoint, /undo. Not a full-system backup.
/btw [question]Ask a side question.Useful for a quick explanation.
/copy [N]Copy an earlier response.Optional N selects an earlier answer.
/export [filename]Save conversation text.Inspect for secrets before sharing.
/add-dir <path>Allow another working directory.Expands file access.
/cd <path>Change session working directory.Keeps the conversation.

Build, inspect, and verify

CommandPurposeBefore you use it
/code-review [level] [target]Review code for bugs.Optional --fix edits; --comment posts. /review is an alias.
/code-review ultraRun a cloud review.Alias: /ultrareview. Eligibility and extra usage may apply.
/security-reviewInspect branch security risks.Needs an origin remote; findings are not a guarantee.
/simplify [target]Review and apply cleanup.Can edit files; different purpose from correctness review.
/runLaunch and exercise an app.Bundled skill; needs suitable tools.
/verifyObserve whether changes work.Bundled skill; requires explicit invocation.
/run-skill-generatorWrite app verification instructions.Creates a reusable project recipe.
/debug [problem]Investigate runtime problems.Starts debug logging from this point.
/doctorDiagnose setup and propose repairs.Review proposed changes before accepting.
/goal [condition|clear]Continue toward a goal.Use measurable criteria and monitor usage.

Models, response style, and account

CommandPurposeBefore you use it
/model [model]Select a model.Available models depend on the account.
/effort [level|auto|status]Set reasoning effort.Supported levels depend on the model/version.
/advisor [model|off]Consult another model.Advanced; adds model usage.
/fast [on|off]Toggle fast mode.Check eligibility and billing first.
/output-style [style]Change response presentation.Example: /output-style concise
/config [key=value]Change session settings.Alias: /settings.
/loginSign in.Choose the correct billing account.
/logoutSign out.Does not revoke every external credential.
/privacy-settingsInspect privacy choices.Available for eligible Pro/Max subscribers.
/rate-limit-optionsInspect options after limits.Some choices can incur additional charges.
/usage-creditsManage additional usage.Formerly /extra-usage.
/upgradeOpen plan upgrades.Does not appear for every plan.

Instructions, skills, and tools

CommandPurposeBefore you use it
/memoryManage instructions and memory.Review what Claude retains for later.
/skillsManage available skills.Skills can contain executable workflows.
/reload-skillsRefresh skill discovery.After creating or editing a skill.
/skill-doctorInspect skill overhead.Version and feature availability apply.
/plugin [subcommand]Manage installed plugins.Inspect the publisher before installation.
/reload-pluginsApply plugin changes.Read any reload warnings.
/mcpManage connected MCP servers.Includes authentication and connection state.
/hooksInspect configured hooks.Hooks can execute commands.
/update-config [request]Edit configuration through Claude.Check the resulting settings diff.
/import [source] --dry-runPreview configuration migration.Sources include codex, gemini, and cursor.
/agentsGet subagent management guidance.Current versions direct you to prompts or agent files.
/claude-api [subcommand]Load API development guidance.Covers API projects, migration, evals, and cost work.
/workflow-authoringLoad dynamic workflow guidance.Only when the feature is enabled.

Background, cloud, and automation

CommandPurposeBefore you use it
/background [task]Detach into background execution.Alias: /bg.
/fork [task]Copy into another background session.Behavior differs on older versions.
/subtask <task>Delegate a side task.Result returns to the current conversation.
/tasksInspect current background work.Alias: /bashes.
/list-agentsList reachable peer sessions.Alias: /peers; messaging must be enabled.
/stopStop an attached background session.Use in background sessions, not as a universal stop command.
/batch <task>Coordinate many worktree changes.Advanced bundled skill; can open multiple PRs.
/loop [interval] [task]Repeat work in this session.Session must stay open; alias /proactive.
/schedule [description]Manage cloud routines.Alias: /routines; eligible subscription required.
/autofix-pr [instructions]Watch and fix a PR.Can push commits; requires gh and cloud access.
/remote-controlConnect to this local session remotely.Alias: /rc; eligible subscription required.
/teleportBring a cloud session local.Alias: /tp.
/remote-envSelect a cloud environment.For cloud sessions dispatched from the CLI.
/web-setupConnect cloud GitHub access.Can send your local gh token to Anthropic after confirmation.
/install-github-appSet up GitHub integration.May create secrets and propose workflow changes.
/install-slack-appSet up Slack integration.Opens an external authorization flow.
/workflowsInspect dynamic workflow progress.When dynamic workflows are available.

Visuals, integrations, and interface

CommandPurposeBefore you use it
/deep-research <question>Research with sources.Explicitly invoked workflow; verify citations.
/dataviz [request]Guide chart creation.Provide actual data and the intended comparison.
/design [brief]Create editable design artboards.Requires supported artifacts and provider.
/artifactsBrowse available artifacts.Account and environment dependent.
/design-loginAuthorize design-system access.Needed for applicable design-sync flows.
/design-sync [hint]Connect a React design system.Can upload components; inspect scope first.
/chromeConfigure browser integration.Requires the supported Chrome setup.
/ideInspect editor integrations.For supported local editors.
/desktopMove into the desktop app.Alias: /app; supported OS and account required.
/mobileOpen mobile install information.Aliases: /ios, /android.
/themeChoose terminal colors.Includes accessibility-oriented themes.
/color [color|default]Change the session accent.Helps distinguish parallel sessions.
/focusSimplify the terminal view.Available with fullscreen rendering.
/tui [default|fullscreen]Choose terminal rendering.Relaunches the interface.
/scroll-speedTune mouse scrolling.Fullscreen-only; platform restrictions apply.
/terminal-setupConfigure terminal shortcuts.Behavior depends on the terminal app.
/keybindingsEdit keyboard shortcuts.Review changes in the binding file.
/statuslineCustomize the status bar.Describe the information you want.
/voice [hold|tap|off]Control voice input.Requires supported account and audio setup.

Administration and less common tools

CommandPurposeBefore you use it
/sandboxConfigure supported sandboxing.Platform support differs.
/auto-mode-setupDraft auto-mode configuration.Review the proposed environment rules.
/fewer-permission-promptsPropose permission allow rules.Broad approvals increase access.
/setup-bedrockConfigure Amazon Bedrock.Provider configuration must be enabled.
/setup-vertexConfigure Google’s provider.Provider configuration must be enabled.
/insightsAnalyze local session patterns.Not available in cloud sessions.
/team-onboardingDraft an onboarding guide.Uses recent session history.
/release-notesRead version changes.Check when an older tutorial differs.
/feedback [report]Send product feedback.Review what will be included.
/bug [report]Prepare a bug report.Alias: /share; review diagnostic content.
/heapdumpCreate memory diagnostics.Contains sensitive data; never share the raw heap snapshot.
/powerupExplore interactive lessons.Availability can change.
/passesShare eligible trial access.Only for eligible accounts.
/radioOpen Claude FM.Optional browser audio.
/stickersOpen sticker ordering.An account perk, not a development tool.

Useful automation flags

FlagMeaning
--max-turns 5Print mode: bound the number of agent turns.
--max-budget-usd 1.00Print mode: API-call budget for this run. Not an account-wide spending limit.
--output-format jsonPrint mode: return structured output for scripts.
--allowedToolsPre-approve named tools. It does not by itself restrict all other available tools.
--toolsRestrict the built-in tool set. MCP tools require separate controls.
--disallowedToolsBlock specified tools.
--add-dir PATHInclude another working directory.
--debugCapture diagnostics. Logs may contain private information.

Avoid --dangerously-skip-permissions as a beginner. It removes approval prompts; it is not a fix for a misunderstood permission problem.

Keyboard shortcuts

ShortcutTypical terminal behavior
EscInterrupt the current response.
Esc twiceOpen the rewind interface.
Shift + TabCycle available permission modes. Read the active mode label.
↑Recall earlier input.
TabComplete a command or suggestion.
Ctrl + CInterrupt input or a running action.
Shift + EnterAdd a newline where supported; /terminal-setup can help.
Ctrl + RSearch prompt history in supported terminal input.

Terminal apps and custom keybindings can intercept these keys. Consult /help and /keybindings for your setup.

If an old tutorial disagrees

/review is now an alias for /code-review. Current /agents directs you to conversational or file-based agent management. /vim was removed; use the editor mode setting in /config. /pr-comments was removed; ask Claude to read PR comments. /ultraplan was removed; use Plan mode. Check release notes before treating a missing command as an installation failure.

Official references: Commands reference ↗ · CLI reference ↗ · Keyboard shortcuts ↗

Was this chapter useful?

Report an error

Votes are shared only if you enable optional measurement in Privacy settings.

CONTINUE THE GUIDESearchable cheat sheets

Edit this example

Changes here affect this copy only. Nothing runs from this site. Closing this window discards your edits.

Search the field guide

Search all chapters and FAQ answers. Use Tab to reach a result and Enter to open it.