{"id":2907,"date":"2026-04-05T18:22:07","date_gmt":"2026-04-05T18:22:07","guid":{"rendered":"https:\/\/aiopsschool.com\/blog\/?p=2907"},"modified":"2026-04-05T18:22:07","modified_gmt":"2026-04-05T18:22:07","slug":"claude-code-complete-command-reference","status":"publish","type":"post","link":"https:\/\/aiopsschool.com\/blog\/claude-code-complete-command-reference\/","title":{"rendered":"Claude Code \u2013 Complete Command Reference"},"content":{"rendered":"\n<p><em>Source: code.claude.com\/docs (updated April 2026)<\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd37 Built-in Slash Commands<\/h2>\n\n\n\n<p>Type <code>\/<\/code> in a session to see all available commands. Some are plan\/platform-dependent.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>\/add-dir &lt;path&gt;<\/code><\/td><td>Add a working directory for file access in the current session<\/td><\/tr><tr><td><code>\/agents<\/code><\/td><td>Manage agent configurations<\/td><\/tr><tr><td><code>\/btw &lt;question&gt;<\/code><\/td><td>Ask a quick side question without adding to the conversation history<\/td><\/tr><tr><td><code>\/branch [name]<\/code><\/td><td>Create a branch (fork) of the current conversation. Alias: <code>\/fork<\/code><\/td><\/tr><tr><td><code>\/chrome<\/code><\/td><td>Configure Claude in Chrome settings<\/td><\/tr><tr><td><code>\/clear<\/code><\/td><td>Clear conversation history and free up context. Aliases: <code>\/reset<\/code>, <code>\/new<\/code><\/td><\/tr><tr><td><code>\/color [color|default]<\/code><\/td><td>Set the prompt bar color (<code>red<\/code>, <code>blue<\/code>, <code>green<\/code>, <code>yellow<\/code>, <code>purple<\/code>, <code>orange<\/code>, <code>pink<\/code>, <code>cyan<\/code>)<\/td><\/tr><tr><td><code>\/compact [instructions]<\/code><\/td><td>Compact conversation with optional focus instructions<\/td><\/tr><tr><td><code>\/config<\/code><\/td><td>Open Settings (theme, model, output style, etc.). Alias: <code>\/settings<\/code><\/td><\/tr><tr><td><code>\/context<\/code><\/td><td>Visualize context usage as a colored grid with optimization suggestions<\/td><\/tr><tr><td><code>\/copy [N]<\/code><\/td><td>Copy the last (or Nth-last) assistant response to clipboard<\/td><\/tr><tr><td><code>\/cost<\/code><\/td><td>Show token usage statistics<\/td><\/tr><tr><td><code>\/desktop<\/code><\/td><td>Continue current session in the Claude Code Desktop app (macOS\/Windows). Alias: <code>\/app<\/code><\/td><\/tr><tr><td><code>\/diff<\/code><\/td><td>Open interactive diff viewer showing uncommitted changes and per-turn diffs<\/td><\/tr><tr><td><code>\/doctor<\/code><\/td><td>Diagnose and verify your Claude Code installation and settings<\/td><\/tr><tr><td><code>\/effort [low|medium|high|max|auto]<\/code><\/td><td>Set the model effort level (<code>max<\/code> requires Opus 4.6, session-only)<\/td><\/tr><tr><td><code>\/exit<\/code><\/td><td>Exit the CLI. Alias: <code>\/quit<\/code><\/td><\/tr><tr><td><code>\/export [filename]<\/code><\/td><td>Export current conversation as plain text<\/td><\/tr><tr><td><code>\/extra-usage<\/code><\/td><td>Configure extra usage when rate limits are hit<\/td><\/tr><tr><td><code>\/fast [on|off]<\/code><\/td><td>Toggle fast mode on or off<\/td><\/tr><tr><td><code>\/feedback [report]<\/code><\/td><td>Submit feedback about Claude Code. Alias: <code>\/bug<\/code><\/td><\/tr><tr><td><code>\/help<\/code><\/td><td>Show help and all available commands<\/td><\/tr><tr><td><code>\/hooks<\/code><\/td><td>View hook configurations for tool events<\/td><\/tr><tr><td><code>\/ide<\/code><\/td><td>Manage IDE integrations and show status<\/td><\/tr><tr><td><code>\/init<\/code><\/td><td>Initialize project with a CLAUDE.md guide<\/td><\/tr><tr><td><code>\/insights<\/code><\/td><td>Generate a report analyzing your Claude Code sessions<\/td><\/tr><tr><td><code>\/install-github-app<\/code><\/td><td>Set up Claude GitHub Actions for a repository<\/td><\/tr><tr><td><code>\/install-slack-app<\/code><\/td><td>Install the Claude Slack app (opens OAuth flow)<\/td><\/tr><tr><td><code>\/keybindings<\/code><\/td><td>Open or create your keybindings configuration file<\/td><\/tr><tr><td><code>\/login<\/code><\/td><td>Sign in to your Anthropic account<\/td><\/tr><tr><td><code>\/logout<\/code><\/td><td>Sign out from your Anthropic account<\/td><\/tr><tr><td><code>\/mcp<\/code><\/td><td>Manage MCP server connections and OAuth authentication<\/td><\/tr><tr><td><code>\/memory<\/code><\/td><td>Edit CLAUDE.md memory files and manage auto-memory<\/td><\/tr><tr><td><code>\/mobile<\/code><\/td><td>Show QR code to download the Claude mobile app. Aliases: <code>\/ios<\/code>, <code>\/android<\/code><\/td><\/tr><tr><td><code>\/model [model]<\/code><\/td><td>Select or change the AI model<\/td><\/tr><tr><td><code>\/passes<\/code><\/td><td>Share a free week of Claude Code with friends (if eligible)<\/td><\/tr><tr><td><code>\/permissions<\/code><\/td><td>Manage allow\/ask\/deny rules for tool permissions. Alias: <code>\/allowed-tools<\/code><\/td><\/tr><tr><td><code>\/plan [description]<\/code><\/td><td>Enter plan mode (optionally with a task description)<\/td><\/tr><tr><td><code>\/plugin<\/code><\/td><td>Manage Claude Code plugins<\/td><\/tr><tr><td><code>\/pr-comments [PR]<\/code><\/td><td>Fetch and display GitHub pull request comments (requires <code>gh<\/code> CLI)<\/td><\/tr><tr><td><code>\/privacy-settings<\/code><\/td><td>View\/update privacy settings (Pro\/Max plans only)<\/td><\/tr><tr><td><code>\/release-notes<\/code><\/td><td>View the full changelog<\/td><\/tr><tr><td><code>\/reload-plugins<\/code><\/td><td>Reload all active plugins to apply changes without restarting<\/td><\/tr><tr><td><code>\/remote-control<\/code><\/td><td>Make this session available for remote control from claude.ai. Alias: <code>\/rc<\/code><\/td><\/tr><tr><td><code>\/remote-env<\/code><\/td><td>Configure the default remote environment for web sessions<\/td><\/tr><tr><td><code>\/rename [name]<\/code><\/td><td>Rename the current session (or auto-generate a name)<\/td><\/tr><tr><td><code>\/resume [session]<\/code><\/td><td>Resume a conversation by ID or name. Alias: <code>\/continue<\/code><\/td><\/tr><tr><td><code>\/rewind<\/code><\/td><td>Rewind conversation\/code to a previous point. Alias: <code>\/checkpoint<\/code><\/td><\/tr><tr><td><code>\/sandbox<\/code><\/td><td>Toggle sandbox mode (supported platforms only)<\/td><\/tr><tr><td><code>\/schedule [description]<\/code><\/td><td>Create, list, or run Cloud scheduled tasks<\/td><\/tr><tr><td><code>\/security-review<\/code><\/td><td>Analyze pending branch changes for security vulnerabilities<\/td><\/tr><tr><td><code>\/terminal-setup<\/code><\/td><td>Configure terminal for optimal Claude Code use<\/td><\/tr><tr><td><code>\/upgrade<\/code><\/td><td>Upgrade your Claude plan (Pro\/Max subscribers)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd37 Bundled Skills (appear alongside slash commands)<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>\/simplify<\/code><\/td><td>Simplify code or content<\/td><\/tr><tr><td><code>\/batch<\/code><\/td><td>Run batch operations<\/td><\/tr><tr><td><code>\/debug<\/code><\/td><td>Debug code issues<\/td><\/tr><tr><td><code>\/loop<\/code><\/td><td>Run iterative loops<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd37 CLI Commands (used outside a session)<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>claude<\/code><\/td><td>Start interactive session<\/td><\/tr><tr><td><code>claude \"query\"<\/code><\/td><td>Start session with initial prompt<\/td><\/tr><tr><td><code>claude -p \"query\"<\/code><\/td><td>Query via SDK, then exit (print mode)<\/td><\/tr><tr><td><code>cat file | claude -p \"query\"<\/code><\/td><td>Process piped content<\/td><\/tr><tr><td><code>claude -c<\/code><\/td><td>Continue most recent conversation<\/td><\/tr><tr><td><code>claude -c -p \"query\"<\/code><\/td><td>Continue via SDK<\/td><\/tr><tr><td><code>claude -r \"&lt;session&gt;\" \"query\"<\/code><\/td><td>Resume session by ID or name<\/td><\/tr><tr><td><code>claude update<\/code><\/td><td>Update to latest version<\/td><\/tr><tr><td><code>claude auth login<\/code><\/td><td>Sign in to Anthropic account<\/td><\/tr><tr><td><code>claude auth logout<\/code><\/td><td>Log out<\/td><\/tr><tr><td><code>claude auth status<\/code><\/td><td>Show authentication status<\/td><\/tr><tr><td><code>claude agents<\/code><\/td><td>List all configured subagents<\/td><\/tr><tr><td><code>claude auto-mode defaults<\/code><\/td><td>Print built-in auto-mode classifier rules as JSON<\/td><\/tr><tr><td><code>claude mcp<\/code><\/td><td>Configure MCP servers<\/td><\/tr><tr><td><code>claude plugin<\/code><\/td><td>Manage plugins. Alias: <code>claude plugins<\/code><\/td><\/tr><tr><td><code>claude remote-control<\/code><\/td><td>Start a Remote Control server<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd37 Key CLI Flags<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Flag<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>--add-dir<\/code><\/td><td>Add additional working directories<\/td><\/tr><tr><td><code>--agent<\/code><\/td><td>Specify an agent for the current session<\/td><\/tr><tr><td><code>--agents<\/code><\/td><td>Define custom subagents dynamically via JSON<\/td><\/tr><tr><td><code>--allow-dangerously-skip-permissions<\/code><\/td><td>Add bypassPermissions to the Shift+Tab mode cycle<\/td><\/tr><tr><td><code>--allowedTools<\/code><\/td><td>Tools that execute without prompting<\/td><\/tr><tr><td><code>--append-system-prompt<\/code><\/td><td>Append custom text to the default system prompt<\/td><\/tr><tr><td><code>--append-system-prompt-file<\/code><\/td><td>Append system prompt text from a file<\/td><\/tr><tr><td><code>--bare<\/code><\/td><td>Minimal mode: skip hooks, skills, plugins, MCP, CLAUDE.md<\/td><\/tr><tr><td><code>--betas<\/code><\/td><td>Beta headers for API requests (API key users only)<\/td><\/tr><tr><td><code>--chrome<\/code><\/td><td>Enable Chrome browser integration<\/td><\/tr><tr><td><code>--continue<\/code>, <code>-c<\/code><\/td><td>Load most recent conversation<\/td><\/tr><tr><td><code>--dangerously-skip-permissions<\/code><\/td><td>Skip all permission prompts<\/td><\/tr><tr><td><code>--debug [\"category\"]<\/code><\/td><td>Enable debug mode (optional category filter)<\/td><\/tr><tr><td><code>--debug-file &lt;path&gt;<\/code><\/td><td>Write debug logs to a file<\/td><\/tr><tr><td><code>--disable-slash-commands<\/code><\/td><td>Disable all skills and commands for this session<\/td><\/tr><tr><td><code>--disallowedTools<\/code><\/td><td>Remove tools from the model&#8217;s context entirely<\/td><\/tr><tr><td><code>--effort [low|medium|high|max|auto]<\/code><\/td><td>Set effort level for the session<\/td><\/tr><tr><td><code>--fallback-model<\/code><\/td><td>Enable fallback model when default is overloaded (print mode)<\/td><\/tr><tr><td><code>--fork-session<\/code><\/td><td>Create a new session ID when resuming<\/td><\/tr><tr><td><code>--from-pr<\/code><\/td><td>Resume sessions linked to a GitHub PR<\/td><\/tr><tr><td><code>--system-prompt<\/code><\/td><td>Replace the default system prompt entirely<\/td><\/tr><tr><td><code>--system-prompt-file<\/code><\/td><td>Load replacement system prompt from a file<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd37 Keyboard Shortcuts (Interactive Mode)<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Shortcut<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>Ctrl+C<\/code><\/td><td>Cancel current input or generation<\/td><\/tr><tr><td><code>Ctrl+D<\/code><\/td><td>Exit Claude Code session<\/td><\/tr><tr><td><code>Ctrl+G<\/code> \/ <code>Ctrl+X Ctrl+E<\/code><\/td><td>Open in default text editor<\/td><\/tr><tr><td><code>Ctrl+L<\/code><\/td><td>Redraw the screen<\/td><\/tr><tr><td><code>Ctrl+O<\/code><\/td><td>Toggle verbose output<\/td><\/tr><tr><td><code>Ctrl+R<\/code><\/td><td>Reverse search command history<\/td><\/tr><tr><td><code>Ctrl+V<\/code> \/ <code>Cmd+V<\/code><\/td><td>Paste image from clipboard<\/td><\/tr><tr><td><code>Ctrl+B<\/code><\/td><td>Background running tasks<\/td><\/tr><tr><td><code>Ctrl+T<\/code><\/td><td>Toggle task list<\/td><\/tr><tr><td><code>Ctrl+X Ctrl+K<\/code><\/td><td>Kill all background agents (press twice to confirm)<\/td><\/tr><tr><td><code>Left\/Right arrows<\/code><\/td><td>Cycle through dialog tabs<\/td><\/tr><tr><td><code>Shift+Tab<\/code><\/td><td>Cycle through permission modes<\/td><\/tr><tr><td><code>?<\/code><\/td><td>Show available shortcuts for your environment<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd37 Special Input Prefixes<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Prefix<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>!<\/code><\/td><td>Bash mode \u2014 run a shell command directly, bypassing Claude&#8217;s conversational mode<\/td><\/tr><tr><td><code>#<\/code><\/td><td>Add a comment\/note to the conversation without triggering a response<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udcdd Tips<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Type <code>\/help<\/code> inside any session to see the full live list for your version and plan.<\/li>\n\n\n\n<li>Custom slash commands can be added to <code>.claude\/commands\/<\/code> (project) or <code>~\/.claude\/commands\/<\/code> (global).<\/li>\n\n\n\n<li>Bundled skills can also be invoked via natural language \u2014 Claude decides when to use them.<\/li>\n\n\n\n<li><code>Note:<\/code> availability of some commands depends on your plan (Pro\/Max), platform (macOS\/Windows\/Linux), or environment.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Source: code.claude.com\/docs (updated April 2026) \ud83d\udd37 Built-in Slash Commands Type \/ in a session to see all available commands. Some [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2907","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/aiopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2907","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aiopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aiopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aiopsschool.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/aiopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=2907"}],"version-history":[{"count":1,"href":"https:\/\/aiopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2907\/revisions"}],"predecessor-version":[{"id":2908,"href":"https:\/\/aiopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2907\/revisions\/2908"}],"wp:attachment":[{"href":"https:\/\/aiopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=2907"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aiopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=2907"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aiopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=2907"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}