Follow Discord
Sweep 06 Nov 2026 · 01:32Z Build v2.1.319 537 read Stable v2.1.311 Latest v2.1.318 Next v2.1.319 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

394 pages for commands.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

Hooks reference Claude Code CLI · in the page hooks …ode.claude.com/docs/en/hooks-guide.md). Hooks are user-defined shell commands, HTTP endpoints, MCP tool calls, LLM prompts, or subagents that execute automatically at specific points in Claude Code's… Automate actions with hooks Claude Code CLI · in the page hooks-guide # Automate actions with hooks > Run shell commands automatically when Claude Code edits files, finishes tasks, or needs input. Format code, send notifications, validate commands, and enforce project… How Claude Code works Claude Code CLI · in the page how-claude-code-works …ith text. With tools, Claude can act: read your code, edit files, run commands, search the web, and interact with external services. Each tool use returns information that feeds back into the loop, in… Interactive mode Claude Code CLI · in the page interactive-mode …| `Ctrl+R` | Reverse search command history | Search through previous commands interactively | | `Ctrl+V` or `Cmd+V` (iTerm2) or `Alt+V` (Windows and WSL) | Paste image from clipboard | Inserts an `[I… JetBrains IDEs Claude Code CLI · in the page jetbrains …he JetBrains terminal or run [`/ide`](https://code.claude.com/docs/en/commands) first from an external terminal. See [`diffTool`](https://code.claude.com/docs/en/settings-reference#difftool) for the u… Customize keyboard shortcuts Claude Code CLI · in the page keybindings …checklist. This is not the [`/tasks`](https://code.claude.com/docs/en/commands) background-task view | | `app:toggleTranscript` | Ctrl+O | Toggle verbose transcript | ### History actions Actions for… Set up Claude Code in a monorepo or large codebase Claude Code CLI · in the page large-codebases …ch files loaded, run [`/context all`](https://code.claude.com/docs/en/commands#all-commands) and check the list under **Memory files**. A few ways to keep the files current as the codebase and models… Connect Claude Code to an LLM gateway Claude Code CLI · in the page llm-gateway-connect …o a failure points at the gateway rather than your configuration. The commands below read the shell variables, so they need the [shell exports](#set-as-shell-environment-variables) even if you also pu… Roll out an LLM gateway for your organization Claude Code CLI · in the page llm-gateway-rollout …pstream provider | Configured on the gateway; never appears in client commands | | Gateway administrative credential | You, if your gateway product issues one for its admin or test interface | `<gatew… Control MCP server access for your organization Claude Code CLI · in the page managed-mcp …ved-catalog pattern, share the approved list and its `claude mcp add` commands somewhere your users will find them, such as an internal wiki, or distribute the servers as plugins through a [managed pl… Deploy managed settings Claude Code CLI · in the page managed-settings …want to confirm a rollout landed before pushing it to the fleet. Two commands on that machine answer it: `/status` shows which managed source Claude Code selected, and `claude doctor` lists what it d… Connect Claude Code to tools via MCP Claude Code CLI · in the page mcp …servers Once configured, you can manage your MCP servers with these commands: ```bash theme={null} # List all configured servers claude mcp list # Get details for a specific server claude mcp get… Connect to MCP servers Claude Code CLI · in the page mcp-quickstart …l the server's tools in Claude's output and to refer to the server in commands like `claude mcp remove`. * `https://code.claude.com/docs/mcp`: the URL where the server is hosted. The command prints a… How Claude remembers your project Claude Code CLI · in the page memory …oductive Keep it to facts Claude should hold in every session: build commands, conventions, project layout, "always do X" rules. If an entry is a multi-step procedure or only matters for one part of… Claude Code on mobile Claude Code CLI · in the page mobile …most of what a session needs, with a few limitations: * **Local-only commands**: commands that only run in the terminal interface, such as `/plugin` and `/resume`, don't work from the app. The [Remot… Model configuration Claude Code CLI · in the page model-config …**Skill and command models**: the `model` frontmatter in [skills and commands](https://code.claude.com/docs/en/skills.md) * **Advisor model**: the configured [`advisorModel`](https://code.claude.com/… Monitoring Claude Code CLI · in the page monitoring-usage …rs and input arguments in tool events and trace span attributes: Bash commands, MCP server and tool names, skill names, user-authored workflow names, and tool input. Also enables custom, plugin, and M… Enterprise network configuration Claude Code CLI · in the page network-config …Changelog feed for [`/release-notes`](https://code.claude.com/docs/en/commands). In interactive sessions, Claude Code also fetches it in the background at startup when its cached changelog doesn't yet… Output styles Claude Code CLI · in the page output-styles …tyles with one command | | Claude to know your project's conventions, commands, and structure | [CLAUDE.md](https://code.claude.com/docs/en/memory.md) | It holds what Claude should know about the code… Overview Claude Code CLI · in the page overview …is an agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools. Available in your terminal, IDE, desktop app, and browser. Claude Code is a… Choose a permission mode Claude Code CLI · in the page permission-modes …ode stops and asks you before most actions that edit files, run shell commands, or reach the network. In [auto mode](#eliminate-prompts-with-auto-mode), a second model, the classifier, reviews actions… Configure permissions Claude Code CLI · in the page permissions …tory and additional directories](#working-directories) | N/A | | Bash commands | Shell execution | Yes, except a built-in set of [read-only commands](#read-only-commands) | Permanently per repository… Test plugins with evals Claude Code CLI · in the page plugin-evals …, its graders, or sibling cases. * **No network sandbox outside shell commands.** Shell commands you grant run under the sandbox's network rules. A `WebFetch(domain:…)` grant reaches that domain direc… Anthropic's marketplaces Claude Code CLI · in the page plugins/anthropic-marketplaces …type the marketplace's name after `@`, as in `/plugin install commit-commands@claude-plugins-official`. Use this page to distinguish the two marketplaces and to find where to check whether the offic… Recommend your plugin from your CLI Claude Code CLI · in the page plugins/cli-hints …erson runs your CLI directly. Claude Code sets `CLAUDECODE=1` in the commands it runs through the Bash and PowerShell tools and in hook commands. On v2.1.172 and later it also sets `CLAUDE_CODE_CHILD… Add components to a plugin Claude Code CLI · in the page plugins/components …ests. ``` A command is a single Markdown file the user runs by name. Commands are the older format: a skill runs by name the same way and can also carry supporting files in its own directory, so writ… Create a Claude Code plugin Claude Code CLI · in the page plugins/create …where you want to keep the plugin, such as `~/projects`, and run the commands in these steps from it. You can keep a plugin anywhere, because you pass its path to Claude Code when you start a session… Create a marketplace Claude Code CLI · in the page plugins/create-marketplace …A path with `..` and a path to a missing directory fail at different commands: * **A path with `..`**: `claude plugin validate` reports the entry as invalid. The message begins `Path contains "..":… Host and maintain a marketplace Claude Code CLI · in the page plugins/host-marketplace …ppend `#<ref>`, as in `your-org/your-marketplace#stable`. The [plugin commands reference](https://code.claude.com/docs/en/plugins/cli-reference.md#plugin-marketplace-add) lists every form the command… Install and manage plugins Claude Code CLI · in the page plugins/install …. ## Install a plugin As an example, this section installs [`commit-commands`](https://github.com/anthropics/claude-plugins-official/tree/main/plugins/commit-commands) from [Anthropic's official mar… Plugin loading reference Claude Code CLI · in the page plugins/loading …s/en/permissions.md#working-directories) and, unlike plain skills and commands, doesn't [search parent directories](https://code.claude.com/docs/en/skills.md#discovery-from-parent-and-nested-directori… Plugin manifest reference Claude Code CLI · in the page plugins/manifest-reference …plugin root, not inside `.claude-plugin/`. That includes `skills/`, `commands/`, and `hooks/`. The following example sets most of the keys in the [Fields table](#fields). It passes validation in a p… Marketplace reference Claude Code CLI · in the page plugins/marketplace-reference …ins/manifest-reference), such as `description`, `version`, `author`, `commands`, and `hooks`. For when those fields apply, see [How an entry combines with plugin.json](#entry-and-plugin-json). The ta… Measure plugin cost and usage Claude Code CLI · in the page plugins/measure …nabled includes the names and descriptions of its skills, agents, and commands in Claude's context, and those tokens count against the user's usage whether or not the plugin gets used. This page shows… Use the mods API Claude Code CLI · in the page plugins/mods/api # Use the mods API > Call the mods API from a Claude Code mod to add commands and tools, call a model, run work on a timer, message other sessions, and reach files and the network. The mods API is t… Create a mod Claude Code CLI · in the page plugins/mods/create …`command.run`](https://code.claude.com/docs/en/plugins/mods/reference#commands-and-configuration)** runs when you type `/tally`. It returns the text to print. * **[`ui.render`](https://code.claude.com… React to events with a mod Claude Code CLI · in the page plugins/mods/events …en when a rule allows `git push` * **On another branch, and for other commands**: the call gets the decision it would get without the mod * **The hook throws or times out**: the call also gets the dec… Draw in the interface with a mod Claude Code CLI · in the page plugins/mods/interface …t has to copy it again after `/clear`, `/resume`, or `/branch`. Those commands reset every `$.state` value to its default, and `session.start` doesn't fire again. [`classic.SessionStart`](https://code… Mods overview Claude Code CLI · in the page plugins/mods/overview # Mods overview > Add panes, commands, and tool call rules to Claude Code with a mod. See what a mod can do, how to make or install one, and where mods run. A mod is a [plugin](https://code.claude.c… Mods reference Claude Code CLI · in the page plugins/mods/reference …nd `e.frontmatterProblem` require Claude Code v2.1.299 or later. ### Commands and configuration | Event | Fires when | A hook can return | | :- | :- | :- | | [`command.run`](https://code.claude.com/… Test a mod Claude Code CLI · in the page plugins/mods/test …plugin test`](https://code.claude.com/docs/en/plugins/mods/reference#commands). A test fires the events your hooks handle and checks what the hooks did, so you catch a problem before it reaches a ses… Troubleshoot a mod Claude Code CLI · in the page plugins/mods/troubleshoot …ue resets, or a saved value is replaced by its default. Each of those commands resets `$.state` to its defaults, and `session.start` doesn't fire again. [Load the saved value again](https://code.clau… Plugins overview Claude Code CLI · in the page plugins/overview …ooks**](https://code.claude.com/docs/en/plugins/components.md#hooks): commands Claude Code runs at points in its lifecycle, such as after every edit * [**A hooks module**](https://code.claude.com/docs… Publish and distribute a plugin Claude Code CLI · in the page plugins/publish …ation reports component paths that don't start with `./`. Inside hook commands and MCP server configs, refer to files as `${CLAUDE_PLUGIN_ROOT}/...`. See [path rules](https://code.claude.com/docs/en/p… Recommend plugins for your org Claude Code CLI · in the page plugins/relevance …in. Signals include the working directory, files Claude has read, and commands Claude has run. You define them by adding a `relevance` block to the plugin's entry in `marketplace.json`. A marketplace… Plugin security and trust Claude Code CLI · in the page plugins/security …ugin's [hooks](https://code.claude.com/docs/en/hooks.md) run as shell commands at points in Claude Code's lifecycle, such as before or after a tool call. * **Monitors**: a plugin's [monitors](https://… Troubleshoot plugins Claude Code CLI · in the page plugins/troubleshooting …ing.md) > * **Looking up a flag, field, or command**: use the [plugin commands reference](https://code.claude.com/docs/en/plugins/cli-reference.md), the [manifest reference](https://code.claude.com/do… How Claude Code uses prompt caching Claude Code CLI · in the page prompt-caching …cache Claude Code never invalidates the cache for a plugin's skills, commands, agents, hooks, monitors, or themes. It appends their content after the existing conversation, so the next request pays f… Prompt library Claude Code CLI · in the page prompt-library …d flag anything that looks risky before I commit', nextHref: '/en/commands', src: 'workflows' }, { id: 'review-a-pull-request', sdlc: 'build', cat: 'Review', roles: [], p… Quickstart Claude Code CLI · in the page quickstart …del, and working directory shown above it. Type `/help` for available commands or `/resume` to continue a previous conversation. To switch accounts later or re-authenticate, type `/login` inside the r…
Feedback