CLI commands and flags
All reference pagescli.json · machine-readable records with offsets and hashes
72 commands and 275 flags in Claude Code: 56 commands and 188 flags documented; 10 commands and 75 flags hidden in code; 6 more flags not shown in --help on this machine. Option registrations whose flag names are computed at runtime are not listed.
claude (root command)
claude [prompt]
Source: chunk-hj3p6ej4.js · offset 190164621 · sha256 427deb45…
Status: documented at https://code.claude.com/docs/en/cli-reference
Arguments: [prompt] — Your prompt
Claude Code - starts an interactive session by default, use -p/--print for non-interactive output
-h, --help
Source: chunk-hj3p6ej4.js · offset 190164788 · sha256 7d6f87f1…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Display help for command
-d, --debug [filter]
Source: chunk-hj3p6ej4.js · offset 190164846 · sha256 8275069e…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Enable debug mode with optional category filtering (e.g., "api,hooks" or "!1p,!file")
-d2e, --debug-to-stderr
Source: chunk-hj3p6ej4.js · offset 190164986 · sha256 9bd20688…
Status: hidden; undocumented
Visibility: hidden (from code)
(deprecated) Enable debug mode (to stderr)
--debug-file <path>
Source: chunk-hj3p6ej4.js · offset 190165112 · sha256 079ce9a1…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Write debug logs to a specific file path (implicitly enables debug mode)
--verbose
Source: chunk-hj3p6ej4.js · offset 190165214 · sha256 3e9ef17a…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Override verbose mode setting from config
-p, --print
Source: chunk-hj3p6ej4.js · offset 190165287 · sha256 4b5c10eb…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Print response and exit (useful for pipes). Note: The workspace trust dialog is skipped when Claude is run in non-interactive mode (via -p, or when stdout is not a TTY, e.g. piped or redirected output). Only use this in directories you trust. Settings files that fail validation are silently ignored in this mode (no error dialog is shown).
--bare
Source: chunk-hj3p6ej4.js · offset 190165654 · sha256 1e19e09f…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Minimal mode: skip hooks (those defined in settings and by installed plugins; features built into Claude Code are unaffected), LSP, plugin sync, attribution, auto-memory, background prefetches, keychain reads, and CLAUDE.md auto-discovery. Sets CLAUDE_CODE_SIMPLE=1. Anthropic auth is strictly ANTHROPIC_API_KEY or apiKeyHelper via --settings (OAuth and keychain are never read). 3P providers (Bedrock/Vertex/Foundry) use their own credentials. Skills still resolve via /skill-name. Explicitly provide context via: --system-prompt[-file], --append-system-prompt[-file], --add-dir (CLAUDE.md dirs), --mcp-config, --settings, --agents, --plugin-dir.
--safe-mode
Source: chunk-hj3p6ej4.js · offset 190166333 · sha256 f45e548b…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Start with all customizations (CLAUDE.md, skills, installed plugins, hooks, MCP servers, custom commands and agents, output styles, workflows, custom themes, keybindings, and more) disabled — useful for troubleshooting a broken configuration. Admin-managed (policy) settings still apply. Auth, model selection, built-in tools and plugins, and permissions work normally. Sets CLAUDE_CODE_SAFE_MODE=1.
--init
Source: chunk-hj3p6ej4.js · offset 190166780 · sha256 067bf733…
Status: hidden; documented at https://code.claude.com/docs/en/cli-reference
Visibility: hidden (from code)
Run Setup hooks with init trigger, then continue
--init-only
Source: chunk-hj3p6ej4.js · offset 190166875 · sha256 c434dc2c…
Status: hidden; documented at https://code.claude.com/docs/en/cli-reference
Visibility: hidden (from code)
Run Setup and SessionStart:startup hooks, then exit
--maintenance
Source: chunk-hj3p6ej4.js · offset 190166975 · sha256 104fd7d2…
Status: hidden; documented at https://code.claude.com/docs/en/cli-reference
Visibility: hidden (from code)
Run Setup hooks with maintenance trigger, then continue
--output-format <format>
Source: chunk-hj3p6ej4.js · offset 190167090 · sha256 2fa2ad04…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Choices: text, json, stream-json
Output format (only works with --print): "text" (default), "json" (single result), or "stream-json" (realtime streaming)
--json-schema <schema>
Source: chunk-hj3p6ej4.js · offset 190167296 · sha256 c0809fb3…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
JSON Schema for structured output validation. Example: {"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}
--include-hook-events
Source: chunk-hj3p6ej4.js · offset 190167482 · sha256 6bedb3ac…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Include all hook lifecycle events in the output stream (only works with --output-format=stream-json)
--include-partial-messages
Source: chunk-hj3p6ej4.js · offset 190167629 · sha256 872f2741…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Include partial message chunks as they arrive (only works with --print and --output-format=stream-json)
--forward-subagent-text
Source: chunk-hj3p6ej4.js · offset 190167776 · sha256 022b2d83…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Forward subagent text and thinking blocks as assistant/user messages with parent_tool_use_id set (only works with --print and --output-format=stream-json)
--session-mirror
Source: chunk-hj3p6ej4.js · offset 190167977 · sha256 f31634e6…
Status: hidden; undocumented
Visibility: hidden (from code)
Emit transcript_mirror frames on stdout (SDK-internal; set by ProcessTransport when sessionStore is configured)
--await-claim
Source: chunk-hj3p6ej4.js · offset 190168137 · sha256 334d7c34…
Status: hidden; undocumented
Visibility: hidden (from code)
Start as a pre-warmed spare for an SDK host: boot with host-level options in a neutral directory, skip session-scoped start-up work, and wait for a claim_session control request that binds the process to its session (SDK-internal; requires --print with stream-json input and output)
--input-format <format>
Source: chunk-hj3p6ej4.js · offset 190168478 · sha256 9b530dff…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Choices: text, stream-json
Input format (only works with --print): "text" (default), or "stream-json" (realtime streaming input)
--await-initialize
Source: chunk-hj3p6ej4.js · offset 190168654 · sha256 ef671d8e…
Status: hidden; undocumented
Visibility: hidden (from code)
Read the initialize control request from stdin during startup so its launch-scoped fields (plugins) apply exactly like their command-line flags. Pass it only from the process that writes that request as the first stdin line at spawn (only works with --input-format=stream-json)
--dangerously-skip-permissions
Source: chunk-hj3p6ej4.js · offset 190168987 · sha256 01121dc1…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Bypass all permission checks. Recommended only for sandboxes with no internet access.
--allow-dangerously-skip-permissions
Source: chunk-hj3p6ej4.js · offset 190169129 · sha256 bd68a876…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Enable bypassing all permission checks as an option, without it being enabled by default. Recommended only for sandboxes with no internet access.
--thinking <mode>
Source: chunk-hj3p6ej4.js · offset 190169322 · sha256 8d5aa49f…
Status: hidden; undocumented
Visibility: hidden (from code)
Choices: enabled, adaptive, disabled
Thinking mode: enabled (equivalent to adaptive), disabled
--thinking-display <display>
Source: chunk-hj3p6ej4.js · offset 190169486 · sha256 e4bcb22f…
Status: hidden; undocumented
Visibility: hidden (from code)
Choices: summarized, omitted, highlights
How thinking content appears in the response
--max-thinking-tokens <tokens>
Source: chunk-hj3p6ej4.js · offset 190169609 · sha256 f8db03e4…
Status: hidden; undocumented
Visibility: hidden (from code)
[DEPRECATED. Use --thinking instead for newer models] Maximum number of thinking tokens (only works with --print)
--max-turns <turns>
Source: chunk-hj3p6ej4.js · offset 190169791 · sha256 7e9be2ed…
Status: hidden; documented at https://code.claude.com/docs/en/cli-reference
Visibility: hidden (from code)
Maximum number of agentic turns in non-interactive mode. This will early exit the conversation after the specified number of turns. (only works with --print)
--max-budget-usd <amount>
Source: chunk-hj3p6ej4.js · offset 190170023 · sha256 3a50bc2f…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Maximum dollar amount to spend on API calls (only works with --print)
--task-budget <tokens>
Source: chunk-hj3p6ej4.js · offset 190170275 · sha256 49cfeb17…
Status: hidden; undocumented
Visibility: hidden (from code)
API-side task budget in tokens (output_config.task_budget)
--replay-user-messages
Source: chunk-hj3p6ej4.js · offset 190170518 · sha256 6664b09e…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Re-emit user messages from stdin back on stdout for acknowledgment (only works with --input-format=stream-json and --output-format=stream-json)
--prompt-suggestions [value]
Source: chunk-hj3p6ej4.js · offset 190170720 · sha256 18e939dd…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Choices: true, false, 1, 0, yes, no, on, off
Enable prompt suggestions. In print/SDK mode, emits a prompt_suggestion message after each turn with a predicted next user prompt
--enable-auth-status
Source: chunk-hj3p6ej4.js · offset 190171088 · sha256 31d7beab…
Status: hidden; undocumented
Visibility: hidden (from code)
Default: false
Enable auth status messages in SDK mode
--allowedTools, --allowed-tools <tools...>
Source: chunk-hj3p6ej4.js · offset 190171207 · sha256 c1350ee3…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Comma or space-separated list of tool names to allow (e.g. "Bash(git *) Edit")
--tools <tools...>
Source: chunk-hj3p6ej4.js · offset 190171317 · sha256 18294216…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Specify the list of available tools from the built-in set. Use "" to disable all tools, "default" to use all tools, or specify tool names (e.g. "Bash,Edit,Read").
--restricted
Source: chunk-hj3p6ej4.js · offset 190171505 · sha256 00f8d0fa…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Restricted mode: removes the built-in tools that run commands or code (Bash, PowerShell, REPL and the other code-running tools) and WebFetch unless --tools names them, and ignores user, project and local settings files (managed settings and --settings still apply; add --strict-mcp-config to skip MCP servers too). Also confines the file tools to the working directories (--add-dir included), refuses bypassPermissions, and lets only a person or the configured permission handler approve writes to settings, git and tool-configuration files.
--disallowedTools, --disallowed-tools <tools...>
Source: chunk-hj3p6ej4.js · offset 190172108 · sha256 c5c0ac2b…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Comma or space-separated list of tool names to deny (e.g. "Bash(git *) Edit")
--mcp-config <configs...>
Source: chunk-hj3p6ej4.js · offset 190172224 · sha256 b482700f…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Load MCP servers from JSON files or strings (space-separated)
--permission-prompt-tool <tool>
Source: chunk-hj3p6ej4.js · offset 190172340 · sha256 4d9ce2ee…
Status: hidden; documented at https://code.claude.com/docs/en/cli-reference
Visibility: hidden (from code)
MCP tool to use for permission prompts (only works with --print)
--permission-prompts <target>
Source: chunk-hj3p6ej4.js · offset 190172487 · sha256 b1dfb2a8…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Choices: host, none
Default: "host"
Who answers permission prompts with --print: "host" (the SDK host or --permission-prompt-tool) or "none" (nobody: anything that would prompt is denied automatically; the permission mode still decides everything else)
--system-prompt <prompt>
Source: chunk-hj3p6ej4.js · offset 190172781 · sha256 801062d8…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
System prompt to use for the session
--system-prompt-file <file>
Source: chunk-hj3p6ej4.js · offset 190172887 · sha256 a433f985…
Status: hidden; documented at https://code.claude.com/docs/en/cli-reference
Visibility: hidden (from code)
Read system prompt from a file
--append-system-prompt <prompt>
Source: chunk-hj3p6ej4.js · offset 190173002 · sha256 61d4e6f0…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Append a system prompt to the default system prompt
--append-system-prompt-file <file>
Source: chunk-hj3p6ej4.js · offset 190173130 · sha256 91f23867…
Status: hidden; documented at https://code.claude.com/docs/en/cli-reference
Visibility: hidden (from code)
Read system prompt from a file and append to the default system prompt
--system-prompt-snapshot <on|off>
Source: chunk-hj3p6ej4.js · offset 190173287 · sha256 e74caa10…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Choices: on, off
Record the system prompt once per conversation and reuse it verbatim on every request and resume. on (the default): the prompt is rendered on the conversation's first request — a --system-prompt or --append-system-prompt included — sent, and recorded; every later request and resume sends the record as-is, even when a later launch passes different text, until the conversation is compacted. off: never record; the prompt is rendered fresh every request (for iterating on prompt text). No effect where system-prompt recording is not yet enabled.
--append-subagent-system-prompt <prompt>
Source: chunk-hj3p6ej4.js · offset 190174032 · sha256 95152402…
Status: hidden; documented at https://code.claude.com/docs/en/cli-reference
Visibility: hidden (from code)
Append a system prompt to every Task-tool subagent's system prompt, propagated to nested subagents (only works with --print). Implies CLAUDE_CODE_ENABLE_APPEND_SUBAGENT_PROMPT=1.
--append-subagent-system-prompt-file <file>
Source: chunk-hj3p6ej4.js · offset 190174307 · sha256 956de877…
Status: hidden; documented at https://code.claude.com/docs/en/cli-reference
Visibility: hidden (from code)
Read a system prompt from a file and append it to every Task-tool subagent's system prompt (only works with --print)
--plan-mode-instructions <instructions>
Source: chunk-hj3p6ej4.js · offset 190174516 · sha256 4c02d3cf…
Status: hidden; undocumented
Visibility: hidden (from code)
Custom workflow body for plan mode. Replaces the default code-implementation phases in the plan-mode system reminder; the read-only enforcement preamble and ExitPlanMode protocol footer are always kept.
--exclude-dynamic-system-prompt-sections
Source: chunk-hj3p6ej4.js · offset 190174812 · sha256 01e6152d…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Default: false
Move per-machine sections (cwd, env info, memory paths, git status) from the system prompt into the first user message. Improves cross-user prompt-cache reuse. Only applies with the default system prompt (ignored with --system-prompt).
--permission-mode <mode>
Source: chunk-hj3p6ej4.js · offset 190175108 · sha256 ee8ca5f7…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Choices: computed
Permission mode to use for the session
--inherit-permission-mode <mode>
Source: chunk-hj3p6ej4.js · offset 190175229 · sha256 6a64015d…
Status: hidden; undocumented
Visibility: hidden (from code)
Permission mode carried from a parent session, used only when nothing else configures one
-c, --continue
Source: chunk-hj3p6ej4.js · offset 190175372 · sha256 90b260bf…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Continue the most recent conversation in the current directory
-r, --resume [value]
Source: chunk-hj3p6ej4.js · offset 190175475 · sha256 fbeb6013…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Resume a conversation by session ID, or open interactive picker with optional search term
--fork-session
Source: chunk-hj3p6ej4.js · offset 190175603 · sha256 59e5eb91…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
When resuming, create a new session ID instead of reusing the original (use with --resume or --continue)
--watch-artifact <artifact>
Source: chunk-hj3p6ej4.js · offset 190175765 · sha256 9e4b6ca0…
Status: hidden; undocumented
Visibility: hidden (from code)
Watch a Claude artifact (id or URL) in this session and hear about new versions and comments
--watch-artifact-no-autoreact <artifact>
Source: chunk-hj3p6ej4.js · offset 190164592 · sha256 cbdcc639…
Status: hidden; undocumented
Visibility: hidden (from code)
Undocumented; read at chunk-hj3p6ej4.js offset 190164592.
--prefill <text>
Source: chunk-hj3p6ej4.js · offset 190175982 · sha256 9745b732…
Status: hidden; undocumented
Visibility: hidden (from code)
Pre-fill the prompt input with text without submitting it
--deep-link-origin
Source: chunk-hj3p6ej4.js · offset 190176093 · sha256 8fc46b90…
Status: hidden; undocumented
Visibility: hidden (from code)
Signal that this session was launched from a deep link
--deep-link-repo <slug>
Source: chunk-hj3p6ej4.js · offset 190176206 · sha256 8b02e122…
Status: hidden; undocumented
Visibility: hidden (from code)
Repo slug the deep link ?repo= parameter resolved to the current cwd
--deep-link-last-fetch <ms>
Source: chunk-hj3p6ej4.js · offset 190176337 · sha256 d5d9da83…
Status: hidden; undocumented
Visibility: hidden (from code)
FETCH_HEAD mtime in epoch ms, precomputed by the deep link trampoline
--prefill-b64 <b64>
Source: chunk-hj3p6ej4.js · offset 190176530 · sha256 5991de0a…
Status: hidden; undocumented
Visibility: hidden (from code)
Base64url-encoded --prefill value (deep-link shell-safe launch paths)
--deep-link-cwd-b64 <b64>
Source: chunk-hj3p6ej4.js · offset 190176720 · sha256 fe981868…
Status: hidden; undocumented
Visibility: hidden (from code)
Base64url-encoded working directory (deep-link shell-safe launch paths)
--from-pr [value]
Source: chunk-hj3p6ej4.js · offset 190176894 · sha256 168d0595…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Resume a session linked to a PR by PR number/URL, or open interactive picker with optional search term
--no-session-persistence
Source: chunk-hj3p6ej4.js · offset 190177045 · sha256 bc1e6a8f…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Disable session persistence - sessions will not be saved to disk and cannot be resumed (only works with --print)
--resume-session-at <message id>
Source: chunk-hj3p6ej4.js · offset 190177213 · sha256 56c5ed9b…
Status: hidden; undocumented
Visibility: hidden (from code)
When resuming, only messages up to and including the chain entry with <message.id> — any chain-entry UUID, typically the kept turn's last entry (use with --resume in print mode)
--resume-drops-turn <message id>
Source: chunk-hj3p6ej4.js · offset 190177481 · sha256 4d52eeb6…
Status: hidden; undocumented
Visibility: hidden (from code)
With --resume-session-at in print mode: declare the prompt uuid of the turn the truncating resume intends to discard; the resume is refused if the discarded range contains anything not attributable to that turn (absorbed queued messages, task notifications, content from other turns). Ignored outside print mode, like --resume-session-at.
--reply-on-resume
Source: chunk-hj3p6ej4.js · offset 190177890 · sha256 bcb4b72b…
Status: hidden; undocumented
Visibility: hidden (from code)
When resuming, immediately query if the loaded transcript ends in a user-role message (set by /background mid-turn so the fork continues the in-flight turn).
--rewind-files <user-message-id>
Source: chunk-hj3p6ej4.js · offset 190178115 · sha256 5a0dfe57…
Status: hidden; undocumented
Visibility: hidden (from code)
Restore files to state at the specified user message and exit (requires --resume)
--model <model>
Source: chunk-hj3p6ej4.js · offset 190178237 · sha256 3eef8bf8…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Model for the current session. Provide an alias for the latest model (e.g. 'fable', 'opus', or 'sonnet') or a model's full name (e.g. 'claude-fable-5').
--effort <level>
Source: chunk-hj3p6ej4.js · offset 190178429 · sha256 404bd1e9…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Interpolated constants (resolved from code): cu = ["low","medium","high","xhigh","max"]
Effort level for the current session (low, medium, high, xhigh, max)
--agent <agent>
Source: chunk-hj3p6ej4.js · offset 190178624 · sha256 158b1acf…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Agent for the current session. Overrides the 'agent' setting.
--betas <betas...>
Source: chunk-hj3p6ej4.js · offset 190178717 · sha256 52636163…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Beta headers to include in API requests (API key users only)
--fallback-model <model>
Source: chunk-hj3p6ej4.js · offset 190178815 · sha256 bf1fccf5…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Enable automatic fallback to specified model(s) when the default model is overloaded or not available. Accepts a comma-separated list to try each in order. Re-tries the primary at the start of each user turn.
--workload <tag>
Source: chunk-hj3p6ej4.js · offset 190179063 · sha256 34614821…
Status: hidden; undocumented
Visibility: hidden (from code)
Workload tag for billing-header attribution (cc_workload). Process-scoped; set by SDK daemon callers that spawn subprocesses for cron work. (only works with --print)
--settings <file-or-json>
Source: chunk-hj3p6ej4.js · offset 190179279 · sha256 11edd9e1…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Path to a settings JSON file or a JSON string to load additional settings from
--managed-settings <json>
Source: chunk-hj3p6ej4.js · offset 190179406 · sha256 6d2e39dd…
Status: hidden; undocumented
Visibility: hidden (from code)
Policy-tier settings JSON from a spawning parent process (SDK use only)
--add-dir <directories...>
Source: chunk-hj3p6ej4.js · offset 190179529 · sha256 66b5e64c…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Additional directories to allow tool access to
--project-config-root <dir>
Source: chunk-hj3p6ej4.js · offset 190179626 · sha256 3c10bb71…
Status: hidden; undocumented
Visibility: hidden (from code)
Read project settings, .mcp.json and the .claude config trees (commands, agents, skills, workflows, routines, output-styles; --routine is refused with this flag) from this directory rather than the working directory (for a session a host starts in a worktree of it)
--ide
Source: chunk-hj3p6ej4.js · offset 190179922 · sha256 48f23b4f…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Automatically connect to IDE on startup if exactly one valid IDE is available
--strict-mcp-config
Source: chunk-hj3p6ej4.js · offset 190180039 · sha256 fdacce09…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Only use MCP servers from --mcp-config, ignoring all other MCP configurations
--session-id <uuid>
Source: chunk-hj3p6ej4.js · offset 190180156 · sha256 eaf9d8bd…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Use a specific session ID for the conversation (must be a valid UUID)
-n, --name <name>
Source: chunk-hj3p6ej4.js · offset 190180256 · sha256 3452a7e7…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Set a display name for this session (shown in the prompt box, /resume picker, and terminal title)
--agents <json-or-file>
Source: chunk-hj3p6ej4.js · offset 190180390 · sha256 ca155706…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
JSON object defining custom agents, or with --print the path to a file that holds one (e.g. '{"reviewer": {"description": "Reviews code", "prompt": "You are a code reviewer"}}')
--setting-sources <sources>
Source: chunk-hj3p6ej4.js · offset 190180608 · sha256 86cc120f…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Comma-separated list of setting sources to load (user, project, local).
--plugin-dir <path>
Source: chunk-hj3p6ej4.js · offset 190180712 · sha256 9f887027…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Default: []
Load a plugin from a directory or .zip for this session only; a folder of plugins loads each child (repeatable: --plugin-dir A --plugin-dir B.zip)
--plugin-dir-no-mcp <path>
Source: chunk-hj3p6ej4.js · offset 190180927 · sha256 6da390b4…
Status: hidden; undocumented
Visibility: hidden (from code)
Default: []
Like --plugin-dir but the engine will not read this plugin's .mcp.json (caller owns its MCP connections)
--plugin-url <url>
Source: chunk-hj3p6ej4.js · offset 190181114 · sha256 6351ba83…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Default: []
Fetch a plugin .zip from a URL for this session only (repeatable: --plugin-url A --plugin-url B)
--disable-slash-commands
Source: chunk-hj3p6ej4.js · offset 190181299 · sha256 3664ad6e…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Disable all skills
--chrome
Source: chunk-hj3p6ej4.js · offset 190181346 · sha256 f9666da5…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Enable Claude in Chrome integration
--no-chrome
Source: chunk-hj3p6ej4.js · offset 190181406 · sha256 77c71749…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Disable Claude in Chrome integration
--file <specs...>
Source: chunk-hj3p6ej4.js · offset 190181473 · sha256 0bbe8db4…
Status: undocumented
Visibility: shown in --help
File resources to download at startup. Format: file_id:relative_path (e.g., --file file_abc:doc.txt file_def:img.png)
-w, --worktree [name]
Source: chunk-hj3p6ej4.js · offset 190182509 · sha256 6d6b19f7…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Create a new git worktree for this session (optionally specify a name)
--tmux
Source: chunk-hj3p6ej4.js · offset 190182601 · sha256 9dcc0c2a…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.
--advisor <model>
Source: chunk-hj3p6ej4.js · offset 190182787 · sha256 c1cabbd1…
Status: hidden; documented at https://code.claude.com/docs/en/cli-reference
Visibility: hidden (from code)
Enable the server-side advisor tool with the specified model (alias or full ID).
--autocompact <auto|tokens>
Source: chunk-hj3p6ej4.js · offset 190182932 · sha256 d3fb1d45…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Auto-compact window size (auto, or 100k–1M tokens)
--enable-auto-mode
Source: chunk-hj3p6ej4.js · offset 190183186 · sha256 cfaa1223…
Status: hidden; documented at https://code.claude.com/docs/en/cli-reference
Visibility: hidden (from code)
(deprecated) Opt in to auto mode
--bg, --background
Source: chunk-hj3p6ej4.js · offset 190183274 · sha256 2e0025a1…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Start the session in the background and return immediately. Prints the id that `claude attach`, `logs`, `stop` and `rm` take; `claude agents` lists them. With --resume <session-id>, continues that session in the background under the same ID, or starts a copy and says so when the session is already running
--brief
Source: chunk-hj3p6ej4.js · offset 190183840 · sha256 7bdd2c86…
Status: undocumented
Visibility: shown in --help
Enable SendUserMessage tool for agent-to-user communication
--ax-screen-reader
Source: chunk-hj3p6ej4.js · offset 190183944 · sha256 e9aa884a…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Render screen-reader friendly output (flat text, no decorative borders or animations).
--channels <servers...>
Source: chunk-hj3p6ej4.js · offset 190184080 · sha256 2d249335…
Status: hidden; documented at https://code.claude.com/docs/en/cli-reference
Visibility: hidden (from code)
MCP servers whose channel notifications (inbound push) should register this session. Space-separated server names.
--dangerously-load-development-channels <servers...>
Source: chunk-hj3p6ej4.js · offset 190184284 · sha256 cb2474ba…
Status: hidden; documented at https://code.claude.com/docs/en/cli-reference
Visibility: hidden (from code)
Load channel servers not on the approved allowlist. For local channel development only. Shows a confirmation dialog at startup.
--agent-id <id>
Source: chunk-hj3p6ej4.js · offset 190184464 · sha256 e11299be…
Status: hidden; undocumented
Visibility: hidden (from code)
Teammate agent ID
--agent-name <name>
Source: chunk-hj3p6ej4.js · offset 190184538 · sha256 59acad2d…
Status: hidden; undocumented
Visibility: hidden (from code)
Teammate display name
--team-name <name>
Source: chunk-hj3p6ej4.js · offset 190184615 · sha256 dde33ae1…
Status: hidden; undocumented
Visibility: hidden (from code)
Team name for teammate coordination
--agent-color <color>
Source: chunk-hj3p6ej4.js · offset 190184709 · sha256 589a0b8b…
Status: hidden; undocumented
Visibility: hidden (from code)
Teammate UI color
--plan-mode-required
Source: chunk-hj3p6ej4.js · offset 190184784 · sha256 85dbd05e…
Status: hidden; undocumented
Visibility: hidden (from code)
Require plan mode before implementation
--parent-session-id <id>
Source: chunk-hj3p6ej4.js · offset 190184885 · sha256 a7f4d7ba…
Status: hidden; undocumented
Visibility: hidden (from code)
Parent session ID for analytics correlation
--teammate-mode <mode>
Source: chunk-hj3p6ej4.js · offset 190184988 · sha256 491c4249…
Status: hidden; documented at https://code.claude.com/docs/en/cli-reference
Visibility: hidden (from code)
Choices: auto, tmux, iterm2, in-process
How to spawn teammates: "tmux", "iterm2", "in-process", or "auto"
--agent-type <type>
Source: chunk-hj3p6ej4.js · offset 190185157 · sha256 c797206f…
Status: hidden; undocumented
Visibility: hidden (from code)
Custom agent type for this teammate
--sdk-url <url>
Source: chunk-hj3p6ej4.js · offset 190185245 · sha256 5bc5a6c2…
Status: hidden; undocumented
Visibility: hidden (from code)
Use remote WebSocket endpoint for SDK I/O streaming (only with -p and stream-json format)
--teleport [session]
Source: chunk-hj3p6ej4.js · offset 190185392 · sha256 b5dc3a19…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Resume a teleport session, optionally specify session ID
--cloud [description|session_id|url]
Source: chunk-hj3p6ej4.js · offset 190185511 · sha256 41798a2d…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Create a cloud session with the given description, or attach to an existing one by session ID or claude.ai/code URL
--forward-home-settings <true|false>
Source: chunk-hj3p6ej4.js · offset 190185689 · sha256 f7f53093…
Status: hidden; undocumented
Visibility: hidden (from code)
Choices: true, false, 1, 0
Whether this launch sends this machine's settings (CLAUDE.md, rules, output styles, preferences, portable permission rules) into the cloud session it creates or attaches to: false = not this launch; true = yes for this launch, standing in for the machine's stored choice (not saved). Requires --cloud or --environment.
--remote [description|session_id|url]
Source: chunk-hj3p6ej4.js · offset 190186116 · sha256 f513960e…
Status: hidden; documented at https://code.claude.com/docs/en/cli-reference
Visibility: hidden (from code)
Deprecated alias for --cloud
--attach-serve <session_id>
Source: chunk-hj3p6ej4.js · offset 190186209 · sha256 0e2afb30…
Status: hidden; undocumented
Visibility: hidden (from code)
Attach a serve-only helper to a bound cloud session (spawned by the desktop app; not for interactive use).
--environment <environment_id>
Source: chunk-hj3p6ej4.js · offset 190186383 · sha256 26596302…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Create a new cloud session that runs on the given self-hosted environment (ccpool_...).
--pool <pool_id>
Source: chunk-hj3p6ej4.js · offset 190186513 · sha256 21e3ae84…
Status: hidden; undocumented
Visibility: hidden (from code)
Deprecated alias for --environment
--correlation-id <id>
Source: chunk-hj3p6ej4.js · offset 190186606 · sha256 90c28cec…
Status: hidden; undocumented
Visibility: hidden (from code)
Opaque id echoed back to the environment orchestrator on the work order (requires --environment).
--ref <ref>
Source: chunk-hj3p6ej4.js · offset 190186752 · sha256 02c4c5f2…
Status: hidden; documented at https://code.claude.com/docs/en/cli-reference
Visibility: hidden (from code)
Branch, tag, or SHA to check out in the remote session; defaults to local current branch. Requires --cloud or --environment.
--on-branch <branch>
Source: chunk-hj3p6ej4.js · offset 190186934 · sha256 153d5166…
Status: hidden; undocumented
Visibility: hidden (from code)
Work directly on <branch> in the remote session (checkout and push to it). On self-hosted environments this includes pushing to the default branch when it is not protected — use GitHub branch protection to restrict. Mutually exclusive with --ref. Requires --cloud or --environment.
--remote-control [name]
Source: chunk-hj3p6ej4.js · offset 190187281 · sha256 92e655a9…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Start an interactive session with Remote Control enabled (optionally named)
--rc [name]
Source: chunk-hj3p6ej4.js · offset 190187416 · sha256 bf4320b8…
Status: hidden; documented at https://code.claude.com/docs/en/cli-reference
Visibility: hidden (from code)
Alias for --remote-control
--remote-control-session-name-prefix <prefix>
Source: chunk-hj3p6ej4.js · offset 190187537 · sha256 2f659ef6…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Prefix for auto-generated Remote Control session names (default: hostname)
claude agents
claude agents
Source: chunk-hj3p6ej4.js · offset 190198188 · sha256 69641675…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Manage background agents
claude agents --setting-sources <sources>
Source: chunk-hj3p6ej4.js · offset 190198278 · sha256 86cc120f…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Comma-separated list of setting sources to load (user, project, local).
claude agents --cwd <path>
Source: chunk-hj3p6ej4.js · offset 190198375 · sha256 08c2eb79…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Show only background sessions started under <path>
claude agents --add-dir <directory>
Source: chunk-hj3p6ej4.js · offset 190198460 · sha256 63c281c8…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Additional directory to allow tool access to in dispatched sessions (repeatable)
claude agents --plugin-dir <path>
Source: chunk-hj3p6ej4.js · offset 190198573 · sha256 a4da736f…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Load plugins from specified directory for the agent view and dispatched sessions; a folder of plugins loads each child (repeatable)
claude agents --plugin-dir-no-mcp <path>
Source: chunk-hj3p6ej4.js · offset 190198754 · sha256 c7329151…
Status: hidden; undocumented
Visibility: hidden (from code)
Like --plugin-dir but the engine will not read this plugin's .mcp.json
claude agents --settings <file-or-json>
Source: chunk-hj3p6ej4.js · offset 190198875 · sha256 eb20a2ed…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Settings file or JSON string to apply to the agent view and dispatched sessions
claude agents --managed-settings <json>
Source: chunk-hj3p6ej4.js · offset 190198156 · sha256 0e1df5e4…
Status: hidden; undocumented
Visibility: hidden (from code)
Undocumented; read at chunk-hj3p6ej4.js offset 190198156.
claude agents --mcp-config <config>
Source: chunk-hj3p6ej4.js · offset 190199047 · sha256 6070b5bd…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
MCP server configuration to apply to dispatched sessions (repeatable)
claude agents --strict-mcp-config
Source: chunk-hj3p6ej4.js · offset 190199149 · sha256 4573c5b5…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Only use MCP servers from --mcp-config in dispatched sessions
claude agents --restricted
Source: chunk-hj3p6ej4.js · offset 190199236 · sha256 38ae3c21…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Start dispatched sessions in restricted mode
claude agents --permission-mode <mode>
Source: chunk-hj3p6ej4.js · offset 190199318 · sha256 e8e2b5c1…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Default permission mode for sessions dispatched from agent view
claude agents --inherit-permission-mode <mode>
Source: chunk-hj3p6ej4.js · offset 190198156 · sha256 97a6b2a7…
Status: hidden; undocumented
Visibility: hidden (from code)
Undocumented; read at chunk-hj3p6ej4.js offset 190198156.
claude agents --dangerously-skip-permissions
Source: chunk-hj3p6ej4.js · offset 190199490 · sha256 3af27660…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Alias for --permission-mode bypassPermissions
claude agents --allow-dangerously-skip-permissions
Source: chunk-hj3p6ej4.js · offset 190199585 · sha256 6df451f1…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Make bypass-permissions mode available to dispatched sessions without defaulting to it
claude agents --model <model>
Source: chunk-hj3p6ej4.js · offset 190199700 · sha256 2f2b59ee…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Default model for sessions dispatched from agent view
claude agents --effort <level>
Source: chunk-hj3p6ej4.js · offset 190199783 · sha256 424ba063…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Default effort level for sessions dispatched from agent view
claude agents --agent <agent>
Source: chunk-hj3p6ej4.js · offset 190199872 · sha256 b43c732d…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Default agent for sessions dispatched from agent view. Overrides the 'agent' setting.
claude agents --json
Source: chunk-hj3p6ej4.js · offset 190199977 · sha256 1d812a9c…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Print active sessions (interactive and background) as a JSON array and exit (for scripting; does not require a TTY)
claude agents --all
Source: chunk-hj3p6ej4.js · offset 190200111 · sha256 260554cd…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
With --json: also include completed background sessions
claude attach
claude attach
Source: chunk-hj3p6ej4.js · offset 190113232 · sha256 2864840b…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in root --help
Arguments: <id>
Open a background session in this terminal. <id> is the short id that `claude --bg` prints and `claude agents` lists
claude auth
claude auth
Source: chunk-hj3p6ej4.js · offset 190195943 · sha256 67d6b15d…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Manage authentication
claude auth login
Source: chunk-hj3p6ej4.js · offset 190196020 · sha256 e478dc6d…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Sign in to your Anthropic account
claude auth login --email <email>
Source: chunk-hj3p6ej4.js · offset 190196082 · sha256 44c889bf…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Pre-populate email address on the login page
claude auth login --sso
Source: chunk-hj3p6ej4.js · offset 190196145 · sha256 8ebf2545…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Force SSO login flow
claude auth login --console
Source: chunk-hj3p6ej4.js · offset 190196188 · sha256 b712abc1…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Use Anthropic Console (API usage billing) instead of Claude subscription
claude auth login --claudeai
Source: chunk-hj3p6ej4.js · offset 190196284 · sha256 8a0ebf6b…
Status: undocumented
Visibility: shown in --help
Use Claude subscription (default)
claude auth logout
Source: chunk-hj3p6ej4.js · offset 190196956 · sha256 abeffc8c…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Log out from your Anthropic account
claude auth status
Source: chunk-hj3p6ej4.js · offset 190196535 · sha256 44870793…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Show authentication status
claude auth status --json
Source: chunk-hj3p6ej4.js · offset 190196581 · sha256 0a1a107a…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Output as JSON (default)
claude auth status --text
Source: chunk-hj3p6ej4.js · offset 190196625 · sha256 6854c60f…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Output as human-readable text
claude auto-mode
claude auto-mode
Source: chunk-hj3p6ej4.js · offset 190201110 · sha256 e080739f…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Inspect or reset auto mode classifier configuration
claude auto-mode config
Source: chunk-hj3p6ej4.js · offset 190201647 · sha256 a8007497…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Print the effective auto mode config as JSON: your settings where set, defaults otherwise
claude auto-mode critique
Source: chunk-hj3p6ej4.js · offset 190202400 · sha256 11a28655…
Status: documented at https://code.claude.com/docs/en/auto-mode-config
Visibility: shown in --help
Get AI feedback on your custom auto mode rules
claude auto-mode critique --model <model>
Source: chunk-hj3p6ej4.js · offset 190202475 · sha256 1929da30…
Status: undocumented
Visibility: shown in --help
Override which model is used
claude auto-mode defaults
Source: chunk-hj3p6ej4.js · offset 190201199 · sha256 d21a4037…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Print the default auto mode environment, allow, soft_deny, and hard_deny rules as JSON
claude auto-mode defaults --label <prefix>
Source: chunk-hj3p6ej4.js · offset 190201315 · sha256 dc86a4b9…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Show only rules whose label starts with this prefix (case-insensitive)
claude auto-mode reset
Source: chunk-hj3p6ej4.js · offset 190201984 · sha256 b8a7d9d8…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Reset auto mode configuration to the shipped defaults by removing the autoMode section from your user settings file
claude auto-mode reset -y, --yes
Source: chunk-hj3p6ej4.js · offset 190202122 · sha256 46dd9116…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Skip the confirmation prompt
claude design-login
claude design-login
Source: chunk-pfq06b4a.js · offset 189753179 · sha256 ad6c03a4…
Status: hidden; undocumented
Visibility: hidden (from code)
Run the Claude Design sign-in, or report its state, as JSON lines (used by the VS Code extension)
claude design-login --json
Source: chunk-pfq06b4a.js · offset 189753304 · sha256 98a8c848…
Status: undocumented
Visibility: shown in --help
Required option (from code).
Write JSON lines to stdout
claude design-login --status
Source: chunk-pfq06b4a.js · offset 189753352 · sha256 17c76b10…
Status: undocumented
Visibility: shown in --help
Report whether design-system access is authorized, and exit
claude doctor
claude doctor
Source: chunk-hj3p6ej4.js · offset 190203222 · sha256 bf43d117…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Check the health of your Claude Code installation. Reads settings files in the current directory without a trust prompt. For a full checkup that can also fix issues, run /doctor in a session.
claude edit-chrome-settings
claude edit-chrome-settings
Source: chunk-pfq06b4a.js · offset 189754279 · sha256 f1639567…
Status: hidden; undocumented
Visibility: hidden (from code)
Apply one Claude in Chrome settings edit read as JSON from stdin (used by the VS Code extension)
claude edit-chrome-settings --json
Source: chunk-pfq06b4a.js · offset 189754403 · sha256 d495650b…
Status: undocumented
Visibility: shown in --help
Required option (from code).
Read the edit as JSON from stdin
claude edit-hook
claude edit-hook
Source: chunk-hj3p6ej4.js · offset 190114101 · sha256 90a05805…
Status: hidden; undocumented
Visibility: hidden (from code)
Apply one hook edit read as JSON from stdin (used by the VS Code extension)
claude edit-hook --json
Source: chunk-hj3p6ej4.js · offset 190114204 · sha256 d495650b…
Status: undocumented
Visibility: shown in --help
Required option (from code).
Read the edit as JSON from stdin
claude edit-memory-settings
claude edit-memory-settings
Source: chunk-pfq06b4a.js · offset 189750750 · sha256 3e930ec4…
Status: hidden; undocumented
Visibility: hidden (from code)
Apply one memory-settings edit read as JSON from stdin (used by the VS Code extension)
claude edit-memory-settings --json
Source: chunk-pfq06b4a.js · offset 189750864 · sha256 d495650b…
Status: undocumented
Visibility: shown in --help
Required option (from code).
Read the edit as JSON from stdin
claude edit-permission-rules
claude edit-permission-rules
Source: chunk-pfq06b4a.js · offset 189749986 · sha256 fc2251e0…
Status: hidden; undocumented
Visibility: hidden (from code)
Apply one permission-rule edit read as JSON from stdin (used by the VS Code extension)
claude edit-permission-rules --json
Source: chunk-pfq06b4a.js · offset 189750100 · sha256 d495650b…
Status: undocumented
Visibility: shown in --help
Required option (from code).
Read the edit as JSON from stdin
claude edit-sandbox-settings
claude edit-sandbox-settings
Source: chunk-pfq06b4a.js · offset 189752447 · sha256 6874e76d…
Status: hidden; undocumented
Visibility: hidden (from code)
Apply one sandbox settings edit read as JSON from stdin (used by the VS Code extension)
claude edit-sandbox-settings --json
Source: chunk-pfq06b4a.js · offset 189752562 · sha256 d495650b…
Status: undocumented
Visibility: shown in --help
Required option (from code).
Read the edit as JSON from stdin
claude edit-skill-overrides
claude edit-skill-overrides
Source: chunk-pfq06b4a.js · offset 189751492 · sha256 3c979847…
Status: hidden; undocumented
Visibility: hidden (from code)
Apply one skill state edit read as JSON from stdin (used by the VS Code extension)
claude edit-skill-overrides --json
Source: chunk-pfq06b4a.js · offset 189751602 · sha256 d495650b…
Status: undocumented
Visibility: shown in --help
Required option (from code).
Read the edit as JSON from stdin
claude gateway
claude gateway
Source: chunk-hj3p6ej4.js · offset 190195270 · sha256 c68540b9…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Run the enterprise auth/telemetry gateway
claude gateway --config <path>
Source: chunk-hj3p6ej4.js · offset 190195348 · sha256 18f5bbea…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Required option (from code).
Path to gateway YAML config
claude import
claude import
Source: chunk-hj3p6ej4.js · offset 190204976 · sha256 253ed12f…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Arguments: [source] — Which agent to import from (codex, gemini, cursor)
Import config from another AI coding agent into Claude Code
claude import --dry-run
Source: chunk-hj3p6ej4.js · offset 190204791 · sha256 61f974d7…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Show what would be imported without writing anything
claude import --yes
Source: chunk-hj3p6ej4.js · offset 190204862 · sha256 832ced43…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Skip the interactive picker. On headless surfaces, pass --yes=<digest> from the `/import` preview.
claude import-conversations
claude import-conversations <exportPath>
Source: chunk-hj3p6ej4.js · offset 190205207 · sha256 7a1320cc…
Status: hidden; undocumented
Visibility: hidden (from code)
Undocumented; read at chunk-hj3p6ej4.js offset 190205207.
claude import-conversations --cwd <dir>
Source: chunk-hj3p6ej4.js · offset 190205287 · sha256 4269eec3…
Status: undocumented
Visibility: shown in --help
Archive directory the imported sessions anchor to
claude import-conversations --dry-run
Source: chunk-hj3p6ej4.js · offset 190205359 · sha256 5649abec…
Status: undocumented
Visibility: shown in --help
Parse and verify manifest without writing files
claude install
claude install [target]
Source: chunk-hj3p6ej4.js · offset 190204395 · sha256 95ba72ee…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Install Claude Code native build. Use [target] to specify version (stable, latest, or specific version)
claude install --force
Source: chunk-hj3p6ej4.js · offset 190204519 · sha256 10dbdacf…
Status: undocumented
Visibility: shown in --help
Force installation even if already installed
claude logs
claude logs
Source: chunk-hj3p6ej4.js · offset 190113397 · sha256 70dae2c4…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in root --help
Arguments: <id>
Print a background session's recent terminal output
claude mcp
claude mcp
Source: chunk-hj3p6ej4.js · offset 202613870 · sha256 5a5f1497…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Configure and manage MCP servers
claude mcp add <name> <commandOrUrl> [args...]
Source: chunk-hj3p6ej4.js · offset 202605010 · sha256 fa8ba8d7…
Status: documented at https://code.claude.com/docs/en/mcp
Visibility: shown in --help
Add an MCP server to Claude Code.
Examples:
# Add HTTP server:
claude mcp add --transport http sentry https://mcp.sentry.dev/mcp
# Add HTTP server with headers:
claude mcp add --transport http corridor https://app.corridor.dev/api/mcp --header "Authorization: Bearer ..."
# Add stdio server with environment variables:
claude mcp add my-server -e API_KEY=xxx -- npx my-mcp-server
# Add stdio server with subprocess flags:
claude mcp add my-server -- my-command --some-flag arg1
claude mcp add -s, --scope <scope>
Source: chunk-hj3p6ej4.js · offset 202605540 · sha256 ec4e475d…
Status: documented at https://code.claude.com/docs/en/mcp
Visibility: shown in --help
Default: "local"
Configuration scope (local, user, or project)
claude mcp add -t, --transport <transport>
Source: chunk-hj3p6ej4.js · offset 202605634 · sha256 d63b4e38…
Status: documented at https://code.claude.com/docs/en/mcp
Visibility: shown in --help
Transport type (stdio, sse, http). Defaults to stdio if not specified.
claude mcp add -e, --env <env...>
Source: chunk-hj3p6ej4.js · offset 202605736 · sha256 34e54114…
Status: documented at https://code.claude.com/docs/en/mcp
Visibility: shown in --help
Set environment variables (e.g. -e KEY=value)
claude mcp add -H, --header <header...>
Source: chunk-hj3p6ej4.js · offset 202605819 · sha256 52275ae1…
Status: documented at https://code.claude.com/docs/en/mcp
Visibility: shown in --help
Set headers for HTTP/SSE servers (e.g. -H "X-Api-Key: abc123" -H "X-Custom: value")
claude mcp add --client-id <clientId>
Source: chunk-hj3p6ej4.js · offset 202605938 · sha256 1562eeee…
Status: documented at https://code.claude.com/docs/en/mcp
Visibility: shown in --help
OAuth client ID for HTTP/SSE servers
claude mcp add --client-secret
Source: chunk-hj3p6ej4.js · offset 202606003 · sha256 6a58da91…
Status: documented at https://code.claude.com/docs/en/mcp
Visibility: shown in --help
Prompt for OAuth client secret (or set MCP_CLIENT_SECRET env var)
claude mcp add --callback-port <port>
Source: chunk-hj3p6ej4.js · offset 202606104 · sha256 ff8ddc73…
Status: documented at https://code.claude.com/docs/en/mcp
Visibility: shown in --help
Fixed port for OAuth callback (for servers requiring pre-registered redirect URIs)
claude mcp add -h, --help
Source: chunk-hj3p6ej4.js · offset 202606214 · sha256 7d6f87f1…
Status: undocumented
Visibility: shown in --help
Display help for command
claude mcp add --xaa
Source: chunk-hj3p6ej4.js · offset 202606267 · sha256 6417ff1f…
Status: hidden; undocumented
Visibility: hidden (from code)
Enable XAA (SEP-990) for this server. Requires 'claude mcp xaa setup' first. Also requires --client-id and --client-secret (for the MCP server's AS).
claude mcp add-from-claude-desktop
Source: chunk-hj3p6ej4.js · offset 202617003 · sha256 54f4ec96…
Status: documented at https://code.claude.com/docs/en/mcp
Visibility: shown in --help
Import MCP servers from Claude Desktop (Mac and WSL only)
claude mcp add-from-claude-desktop -s, --scope <scope>
Source: chunk-hj3p6ej4.js · offset 202617093 · sha256 ec4e475d…
Status: documented at https://code.claude.com/docs/en/mcp
Visibility: shown in --help
Default: "local"
Configuration scope (local, user, or project)
claude mcp add-json <name> <json>
Source: chunk-hj3p6ej4.js · offset 202616478 · sha256 47b5f78d…
Status: documented at https://code.claude.com/docs/en/mcp
Visibility: shown in --help
Add an MCP server (stdio, SSE, HTTP, or WebSocket) with a JSON string
claude mcp add-json -s, --scope <scope>
Source: chunk-hj3p6ej4.js · offset 202616580 · sha256 ec4e475d…
Status: documented at https://code.claude.com/docs/en/mcp
Visibility: shown in --help
Default: "local"
Configuration scope (local, user, or project)
claude mcp add-json --client-secret
Source: chunk-hj3p6ej4.js · offset 202616662 · sha256 6a58da91…
Status: documented at https://code.claude.com/docs/en/mcp
Visibility: shown in --help
Prompt for OAuth client secret (or set MCP_CLIENT_SECRET env var)
claude mcp get <name>
Source: chunk-hj3p6ej4.js · offset 202615213 · sha256 6b7cd3ca…
Status: documented at https://code.claude.com/docs/en/mcp
Visibility: shown in --help
Get details about an MCP server. Unapproved .mcp.json servers are shown as ⏸ Pending approval and not connected to; approved servers are health-checked unless disabled for this project.
claude mcp list
Source: chunk-hj3p6ej4.js · offset 202614721 · sha256 b2650490…
Status: documented at https://code.claude.com/docs/en/mcp
Visibility: shown in --help
List configured MCP servers. Unapproved .mcp.json servers are shown as ⏸ Pending approval and not connected to; approved servers are health-checked unless disabled for this project.
claude mcp login <name>
Source: chunk-hj3p6ej4.js · offset 202615714 · sha256 33b4c7e5…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Authenticate with an MCP server (HTTP, SSE, or claude.ai connector)
claude mcp login --no-browser
Source: chunk-hj3p6ej4.js · offset 202615807 · sha256 4501c078…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Print the authorization URL instead of opening a browser (for SSH/headless sessions — paste the redirect URL back when prompted)
claude mcp logout <name>
Source: chunk-hj3p6ej4.js · offset 202616182 · sha256 a9f46947…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Clear stored OAuth credentials for an MCP server
claude mcp remove <name>
Source: chunk-hj3p6ej4.js · offset 202614309 · sha256 e5e09c59…
Status: documented at https://code.claude.com/docs/en/mcp
Visibility: shown in --help
Remove an MCP server
claude mcp remove -s, --scope <scope>
Source: chunk-hj3p6ej4.js · offset 202614362 · sha256 4033df3a…
Status: documented at https://code.claude.com/docs/en/mcp
Visibility: shown in --help
Configuration scope (local, user, or project) - if not specified, removes from whichever scope it exists in
claude mcp reset-project-choices
Source: chunk-hj3p6ej4.js · offset 202617314 · sha256 69783a62…
Status: documented at https://code.claude.com/docs/en/mcp
Visibility: shown in --help
Reset all approved and rejected project-scoped (.mcp.json) servers within this project
claude mcp serve
Source: chunk-hj3p6ej4.js · offset 202613987 · sha256 72c29066…
Status: documented at https://code.claude.com/docs/en/mcp
Visibility: shown in --help
Start the Claude Code MCP server
claude mcp serve -d, --debug
Source: chunk-hj3p6ej4.js · offset 202614044 · sha256 6331d5ae…
Status: undocumented
Visibility: shown in --help
Enable debug mode
claude mcp serve --verbose
Source: chunk-hj3p6ej4.js · offset 202614091 · sha256 3e9ef17a…
Status: undocumented
Visibility: shown in --help
Override verbose mode setting from config
claude mcp xaa
Source: chunk-hj3p6ej4.js · offset 202609487 · sha256 ac5e3abe…
Status: undocumented
Visibility: not shown in --help on this machine (registration is conditional; see Condition)
Condition: registered inside a condition that references CLAUDE_CODE_ENABLE_XAA (from code)
Manage the XAA (SEP-990) IdP connection
claude mcp xaa clear
Source: chunk-hj3p6ej4.js · offset 202613499 · sha256 ec60b2e3…
Status: undocumented
Visibility: not shown in --help on this machine (registration is conditional; see Condition)
Condition: registered inside a condition that references CLAUDE_CODE_ENABLE_XAA (from code)
Clear the IdP connection config and cached id_token
claude mcp xaa login
Source: chunk-hj3p6ej4.js · offset 202611351 · sha256 6c9b8097…
Status: undocumented
Visibility: not shown in --help on this machine (registration is conditional; see Condition)
Condition: registered inside a condition that references CLAUDE_CODE_ENABLE_XAA (from code)
Cache an IdP id_token so XAA-enabled MCP servers authenticate silently. Default: run the OIDC browser login. With --id-token: write a pre-obtained JWT directly (used by conformance/e2e tests where the mock IdP does not serve /authorize).
claude mcp xaa login --force
Source: chunk-hj3p6ej4.js · offset 202611609 · sha256 7660f480…
Status: undocumented
Visibility: not shown in --help on this machine (registration is conditional; see Condition)
Condition: its command is registered inside a condition that references CLAUDE_CODE_ENABLE_XAA (from code)
Ignore any cached id_token and re-login (useful after IdP-side revocation)
claude mcp xaa login --id-token <jwt>
Source: chunk-hj3p6ej4.js · offset 202611713 · sha256 58c0afa3…
Status: undocumented
Visibility: not shown in --help on this machine (registration is conditional; see Condition)
Condition: its command is registered inside a condition that references CLAUDE_CODE_ENABLE_XAA (from code)
Write this pre-obtained id_token directly to cache, skipping the OIDC browser login
claude mcp xaa setup
Source: chunk-hj3p6ej4.js · offset 202609561 · sha256 505eb20a…
Status: undocumented
Visibility: not shown in --help on this machine (registration is conditional; see Condition)
Condition: registered inside a condition that references CLAUDE_CODE_ENABLE_XAA (from code)
Configure the IdP connection (one-time setup for all XAA-enabled servers)
claude mcp xaa setup --issuer <url>
Source: chunk-hj3p6ej4.js · offset 202609670 · sha256 6aab4c81…
Status: undocumented
Visibility: not shown in --help on this machine (registration is conditional; see Condition)
Condition: its command is registered inside a condition that references CLAUDE_CODE_ENABLE_XAA (from code)
Required option (from code).
IdP issuer URL (OIDC discovery)
claude mcp xaa setup --client-id <id>
Source: chunk-hj3p6ej4.js · offset 202609739 · sha256 d4ed8eb6…
Status: undocumented
Visibility: not shown in --help on this machine (registration is conditional; see Condition)
Condition: its command is registered inside a condition that references CLAUDE_CODE_ENABLE_XAA (from code)
Required option (from code).
Claude Code's client_id at the IdP
claude mcp xaa setup --client-secret
Source: chunk-hj3p6ej4.js · offset 202609802 · sha256 5857fc26…
Status: undocumented
Visibility: not shown in --help on this machine (registration is conditional; see Condition)
Condition: its command is registered inside a condition that references CLAUDE_CODE_ENABLE_XAA (from code)
Read IdP client secret from MCP_XAA_IDP_CLIENT_SECRET env var
claude mcp xaa setup --callback-port <port>
Source: chunk-hj3p6ej4.js · offset 202609899 · sha256 e5eaaffe…
Status: undocumented
Visibility: not shown in --help on this machine (registration is conditional; see Condition)
Condition: its command is registered inside a condition that references CLAUDE_CODE_ENABLE_XAA (from code)
Fixed loopback callback port (only if IdP does not honor RFC 8252 port-any matching)
claude mcp xaa show
Source: chunk-hj3p6ej4.js · offset 202612837 · sha256 0c5e7839…
Status: undocumented
Visibility: not shown in --help on this machine (registration is conditional; see Condition)
Condition: registered inside a condition that references CLAUDE_CODE_ENABLE_XAA (from code)
Show the current IdP connection config
claude plugin
claude plugin
Source: chunk-hj3p6ej4.js · offset 202577867 · sha256 4ddd75bf…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Aliases: plugins
Manage Claude Code plugins
claude plugin details <name>
Source: chunk-7w9j34yr.js · offset 202537716 · sha256 30174290…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Show a plugin's component inventory and projected token cost
claude plugin details --cowork
Source: chunk-hj3p6ej4.js · offset 202577773 · sha256 cdc2f193…
Status: hidden; undocumented
Visibility: hidden (from code)
Use cowork_plugins directory
claude plugin disable [plugin]
Source: chunk-7w9j34yr.js · offset 202538809 · sha256 f25d25f9…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Disable an enabled plugin
claude plugin disable -a, --all
Source: chunk-hj3p6ej4.js · offset 202591220 · sha256 20ec8b94…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Disable all enabled plugins
claude plugin disable -s, --scope <scope>
Source: chunk-hj3p6ej4.js · offset 202591280 · sha256 db551415…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Interpolated constants (resolved from code): T4 = ["user","project","local"]
Installation scope: user, project, local (default: auto-detect)
claude plugin disable --json
Source: chunk-hj3p6ej4.js · offset 202591359 · sha256 ab4d48da…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Print one machine-readable result line on stdout instead of the human message (same exit codes)
claude plugin disable --cowork
Source: chunk-hj3p6ej4.js · offset 202577773 · sha256 cdc2f193…
Status: hidden; undocumented
Visibility: hidden (from code)
Use cowork_plugins directory
claude plugin enable <plugin>
Source: chunk-7w9j34yr.js · offset 202538728 · sha256 8ac6a95f…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Enable a disabled plugin
claude plugin enable -s, --scope <scope>
Source: chunk-hj3p6ej4.js · offset 202590741 · sha256 db551415…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Interpolated constants (resolved from code): T4 = ["user","project","local"]
Installation scope: user, project, local (default: auto-detect)
claude plugin enable --json
Source: chunk-hj3p6ej4.js · offset 202590820 · sha256 ab4d48da…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Print one machine-readable result line on stdout instead of the human message (same exit codes)
claude plugin enable --cowork
Source: chunk-hj3p6ej4.js · offset 202577773 · sha256 cdc2f193…
Status: hidden; undocumented
Visibility: hidden (from code)
Use cowork_plugins directory
claude plugin eval [target]
Source: chunk-hj3p6ej4.js · offset 202580295 · sha256 361b4a78…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Undocumented; read at chunk-hj3p6ej4.js offset 202580295.
claude plugin eval --case <glob>
Source: chunk-hj3p6ej4.js · offset 202580378 · sha256 d40896c6…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Filter cases by name glob
claude plugin eval --tag <tag...>
Source: chunk-hj3p6ej4.js · offset 202580431 · sha256 1e88c884…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Filter cases by tag (repeatable)
claude plugin eval --runs <n>
Source: chunk-hj3p6ej4.js · offset 202580487 · sha256 bd4249fa…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Override per-case runs (default: case.runs ?? 3)
claude plugin eval -j, --concurrency <n>
Source: chunk-hj3p6ej4.js · offset 202580570 · sha256 9aaae7c4…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Run up to <n> agent runs at once (1-8; default 1). Each run is a full claude child on your own credential, so they share one rate limit; results and the report keep case order
claude plugin eval --model <model>
Source: chunk-hj3p6ej4.js · offset 202580774 · sha256 4fc88791…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Override model for all cases
claude plugin eval --judge-model <model>
Source: chunk-hj3p6ej4.js · offset 202580837 · sha256 c8472253…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Override LLM-grader model (default: haiku)
claude plugin eval --max-cost-usd <usd>
Source: chunk-hj3p6ej4.js · offset 202580913 · sha256 2591ff8a…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Optional hard cost ceiling; abort and report partial results if hit (exit 2). The ceiling is checked before each run launches, so overrun is bounded to the runs in flight (one, or up to --concurrency) — when a run breaches, paid graders (llm/baseline) are skipped while free graders still score it. Runs are already bounded by max_turns and timeout_seconds — only set this when you need a strict budget
claude plugin eval --output-dir <dir>
Source: chunk-hj3p6ej4.js · offset 202581363 · sha256 a093e8c2…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Directory for aggregate-result.json (default: ./<eval dir>/results/<timestamp>/)
claude plugin eval --eval-dir <dir>
Source: chunk-hj3p6ej4.js · offset 202581473 · sha256 3f925c6a…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Directory name (below the plugin) that holds the eval cases; results go to <plugin>/<dir>/results/ — for an installed-plugin target, ./<dir>/results/ with this flag, else ./evals/results/ (default dir: the manifest's experimental.evals value, else evals/)
claude plugin eval --json [path]
Source: chunk-hj3p6ej4.js · offset 202581760 · sha256 8927ac58…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Print the full run result (prompts, graders, per-run scores) as JSON to stdout, or write it to this .json file
claude plugin eval --threshold <0..1>
Source: chunk-hj3p6ej4.js · offset 202581902 · sha256 d7f515c7…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Exit 1 if any case score is below this threshold (default: 1.0)
claude plugin eval --allow-tools <tools...>
Source: chunk-hj3p6ej4.js · offset 202582003 · sha256 46593606…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Operator grant for gated tools (Bash, Write, Edit, WebFetch, mcp__*). Supports Tool(pattern:*) syntax
claude plugin eval --scaffold
Source: chunk-hj3p6ej4.js · offset 202582128 · sha256 41795333…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Run each case's scaffold_script (runs author-supplied bash as you; off by default — only use on case files you authored)
claude plugin eval --no-scaffold
Source: chunk-hj3p6ej4.js · offset 202582280 · sha256 57a7ed1a…
Status: undocumented
Visibility: shown in --help
Explicitly skip scaffold_script
claude plugin eval --trust-plugin
Source: chunk-hj3p6ej4.js · offset 202582339 · sha256 ac07bb5d…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Assert that you trust this plugin's code and eval suite, and skip the first-run trust prompt (for CI; like --dangerously-skip-permissions, only pass it for plugins you would run yourself). Does not imply --scaffold, --allow-tools or --mocks off
claude plugin eval --ablation <mode>
Source: chunk-hj3p6ej4.js · offset 202582614 · sha256 f34b94c4…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Run a no-plugin baseline arm and report the score delta (none | with-without; default: with-without whenever a plugin resolves — by name, or from the target path — and none when nothing does; under with-without, graders marked with-only, incl. `tool_used: Skill`, are a plugin-fired indicator rather than part of the score)
claude plugin eval --mocks <mode>
Source: chunk-hj3p6ej4.js · offset 202582975 · sha256 434fd4d5…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Mock stand-ins for MCP servers, from <eval dir>/mocks/ (record | off; default: record). record: a plugin server with no mock is NOT started (see --allow-real-servers); off: no stand-ins, every real server starts (as you, outside the OS sandbox), its tools gated by --allow-tools
claude plugin eval --allow-real-servers
Source: chunk-hj3p6ej4.js · offset 202583287 · sha256 e82c7b21…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
With --mocks record: also start the plugin's REAL MCP server processes for servers that have no mock (they run as you, outside the OS sandbox that confines shell tools; use only on plugins you trust)
claude plugin eval --keep-temp
Source: chunk-hj3p6ej4.js · offset 202583511 · sha256 6e8ebbfc…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Preserve scaffold dirs for debugging
claude plugin eval --verbose
Source: chunk-hj3p6ej4.js · offset 202583570 · sha256 eab3cfd3…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Log per-message trace events to the debug log (use --debug-file to read them)
claude plugin eval --report <path>
Source: chunk-hj3p6ej4.js · offset 202583676 · sha256 f86f00ff…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Write the self-contained HTML report (scores, prompts, grader verdicts) to <path> instead of the results dir
claude plugin eval --publish-report
Source: chunk-hj3p6ej4.js · offset 202583814 · sha256 5bf9141c…
Status: undocumented
Visibility: shown in --help
Also require publishing the report to claude.ai (already the default when your account supports it); explains why if unavailable
claude plugin eval --no-publish
Source: chunk-hj3p6ej4.js · offset 202583968 · sha256 9da34483…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Keep the HTML report local only; skip publishing it to claude.ai
claude plugin eval init [name]
Source: chunk-7w9j34yr.js · offset 202537429 · sha256 0da81b0a…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Author an eval suite under the eval dir (evals/ unless --eval-dir or the manifest says otherwise) via an interview that sources inputs and designs graders. Use --bare <name> for a blank single-case template.
claude plugin eval init --bare
Source: chunk-hj3p6ej4.js · offset 202584579 · sha256 c7b63939…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Write a blank template (prompt.md + graders/criteria.md) instead of running the interview
claude plugin eval init -i, --interactive
Source: chunk-hj3p6ej4.js · offset 202584699 · sha256 7b8755c6…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Run the authoring interview (already the default in a terminal); requires an interactive terminal
claude plugin eval init --interview
Source: chunk-hj3p6ej4.js · offset 202584831 · sha256 912dca4a…
Status: hidden; undocumented
Visibility: hidden (from code)
Alias for --interactive
claude plugin eval init --eval-dir <dir>
Source: chunk-hj3p6ej4.js · offset 202584896 · sha256 0856f6a5…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Directory (below the current directory) to write cases into (default: experimental.evals from the plugin.json in the current directory, else evals/)
claude plugin init <name>
Source: chunk-7w9j34yr.js · offset 202536042 · sha256 6b1109de…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Aliases: new
Scaffold a new plugin at ~/.claude/skills/<name>/ (auto-loads next session as <name>@skills-dir)
claude plugin init --description <text>
Source: chunk-hj3p6ej4.js · offset 202578031 · sha256 dcf9c0fd…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Manifest description
claude plugin init --author <name>
Source: chunk-hj3p6ej4.js · offset 202578080 · sha256 26276951…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Author name (default: git config user.name)
claude plugin init --author-email <email>
Source: chunk-hj3p6ej4.js · offset 202578159 · sha256 6f18cd9f…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Author email (default: git config user.email)
claude plugin init --with <components...>
Source: chunk-hj3p6ej4.js · offset 202578240 · sha256 5ac11a17…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Interpolated constants (resolved from code): git = ["skills","agents","hooks","mcp","lsp","output-style","channel"]
Also scaffold: skills, agents, hooks, mcp, lsp, output-style, channel
claude plugin init -f, --force
Source: chunk-hj3p6ej4.js · offset 202578297 · sha256 f1fc5c22…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Overwrite an existing .claude-plugin/ at the target
claude plugin install <plugin>
Source: chunk-7w9j34yr.js · offset 202538338 · sha256 c7abda6b…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Aliases: i
Install a plugin from available marketplaces (use plugin@marketplace for specific marketplace)
claude plugin install -s, --scope <scope>
Source: chunk-hj3p6ej4.js · offset 202587613 · sha256 446c5502…
Status: undocumented
Visibility: shown in --help
Default: "user"
Installation scope: user, project, or local
claude plugin install --config <key=value>
Source: chunk-hj3p6ej4.js · offset 202587697 · sha256 86f7a9dc…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Set a userConfig option declared in the plugin's manifest (repeatable). Values are validated against the schema and stored via the same path as the interactive /plugin configure flow.
claude plugin install -y, --yes
Source: chunk-hj3p6ej4.js · offset 202587922 · sha256 beb55917…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Accept the displayed marketplace-declared command without the confirmation prompt — a plugin installed by running a command, or one whose archive is fetched through a headersHelper command (required when stdin or stdout is not a TTY)
claude plugin install --accept-command <sha256>
Source: chunk-hj3p6ej4.js · offset 202588209 · sha256 64dea3e8…
Status: undocumented
Visibility: shown in --help
Accept the marketplace-declared command (a command-source install, or the headersHelper that fetches the archive) whose sha256 a previous --json run reported as shownCommand.sha256; counts as -y for exactly that command, for that plugin and marketplace catalog, and nothing else. If either changed (a refresh that moved the catalog counts), the run refuses and reports the command again, to be shown to a person again
claude plugin install --json
Source: chunk-hj3p6ej4.js · offset 202588664 · sha256 474b0af3…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Print one machine-readable result line on stdout instead of the human message (same exit codes; a marketplace-declared command is still shown and must be confirmed — pass -y when not interactive)
claude plugin install --registry <url>
Source: chunk-hj3p6ej4.js · offset 202588894 · sha256 90e62bdb…
Status: undocumented
Visibility: shown in --help
For a <package>@npm install: resolve and download from this npm registry instead of the one your npm configuration selects
claude plugin install --cowork
Source: chunk-hj3p6ej4.js · offset 202577773 · sha256 cdc2f193…
Status: hidden; undocumented
Visibility: hidden (from code)
Use cowork_plugins directory
claude plugin list
Source: chunk-7w9j34yr.js · offset 202536504 · sha256 b82d5a3b…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
List installed plugins
claude plugin list --json
Source: chunk-hj3p6ej4.js · offset 202579753 · sha256 d421da75…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Output as JSON
claude plugin list --available
Source: chunk-hj3p6ej4.js · offset 202579792 · sha256 19c338bd…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Include available plugins from marketplaces (requires --json)
claude plugin list --cowork
Source: chunk-hj3p6ej4.js · offset 202577773 · sha256 cdc2f193…
Status: hidden; undocumented
Visibility: hidden (from code)
Use cowork_plugins directory
claude plugin marketplace
Source: chunk-hj3p6ej4.js · offset 202585606 · sha256 3ba863f4…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Manage Claude Code marketplaces
claude plugin marketplace add <source>
Source: chunk-7w9j34yr.js · offset 202537848 · sha256 633ee7b6…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Add a marketplace from a URL, path, or GitHub repo
claude plugin marketplace add --cowork
Source: chunk-hj3p6ej4.js · offset 202577773 · sha256 cdc2f193…
Status: hidden; undocumented
Visibility: hidden (from code)
Use cowork_plugins directory
claude plugin marketplace add --sparse <paths...>
Source: chunk-hj3p6ej4.js · offset 202585775 · sha256 98abda84…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Limit checkout to specific directories via git sparse-checkout (for monorepos). Example: --sparse .claude-plugin plugins
claude plugin marketplace add --scope <scope>
Source: chunk-hj3p6ej4.js · offset 202585924 · sha256 820129d1…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Where to declare the marketplace: user (default), project, or local
claude plugin marketplace add --claudeai
Source: chunk-hj3p6ej4.js · offset 202586015 · sha256 e1a24c88…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Add the marketplace of this name that claude.ai hosts for you, by its listed name or its local name (see: claude plugin marketplace list)
claude plugin marketplace list
Source: chunk-7w9j34yr.js · offset 202537963 · sha256 da876172…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
List all configured marketplaces
claude plugin marketplace list --json
Source: chunk-hj3p6ej4.js · offset 202586449 · sha256 d421da75…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Output as JSON
claude plugin marketplace list --cowork
Source: chunk-hj3p6ej4.js · offset 202577773 · sha256 cdc2f193…
Status: hidden; undocumented
Visibility: hidden (from code)
Use cowork_plugins directory
claude plugin marketplace remove <name>
Source: chunk-7w9j34yr.js · offset 202538086 · sha256 f86fc842…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Aliases: rm
Remove a configured marketplace
claude plugin marketplace remove --scope <scope>
Source: chunk-hj3p6ej4.js · offset 202586823 · sha256 36cfaef0…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Remove the marketplace declaration from a specific settings scope: user, project, or local. Omit to remove it from every scope.
claude plugin marketplace remove --cowork
Source: chunk-hj3p6ej4.js · offset 202577773 · sha256 cdc2f193…
Status: hidden; undocumented
Visibility: hidden (from code)
Use cowork_plugins directory
claude plugin marketplace update [name]
Source: chunk-7w9j34yr.js · offset 202538193 · sha256 96577c4b…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Update marketplace(s) from their source - updates all if no name specified
claude plugin marketplace update --cowork
Source: chunk-hj3p6ej4.js · offset 202577773 · sha256 cdc2f193…
Status: hidden; undocumented
Visibility: hidden (from code)
Use cowork_plugins directory
claude plugin prune
Source: chunk-7w9j34yr.js · offset 202538613 · sha256 05066f25…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Aliases: autoremove
Remove auto-installed dependencies that are no longer needed
claude plugin prune -s, --scope <scope>
Source: chunk-hj3p6ej4.js · offset 202590217 · sha256 57bf6469…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Default: "user"
Prune at scope: user, project, or local
claude plugin prune --dry-run
Source: chunk-hj3p6ej4.js · offset 202590286 · sha256 9de81b74…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
List what would be removed without removing
claude plugin prune -y, --yes
Source: chunk-hj3p6ej4.js · offset 202590352 · sha256 90315987…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Skip the confirmation prompt (required when stdin or stdout is not a TTY)
claude plugin prune --cowork
Source: chunk-hj3p6ej4.js · offset 202577773 · sha256 cdc2f193…
Status: hidden; undocumented
Visibility: hidden (from code)
Use cowork_plugins directory
claude plugin tag [path]
Source: chunk-7w9j34yr.js · offset 202536335 · sha256 c3dc77a1…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Create a {name}--v{version} git tag for a plugin release, validating that plugin.json and any enclosing marketplace entry agree
claude plugin tag --push
Source: chunk-hj3p6ej4.js · offset 202579143 · sha256 418a8ccb…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Push the tag to --remote after creating it
claude plugin tag --dry-run
Source: chunk-hj3p6ej4.js · offset 202579208 · sha256 3e8f8384…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Print what would be tagged without creating it
claude plugin tag -f, --force
Source: chunk-hj3p6ej4.js · offset 202579279 · sha256 13113505…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Skip the dirty-working-tree and tag-already-exists checks
claude plugin tag -m, --message <msg>
Source: chunk-hj3p6ej4.js · offset 202579369 · sha256 e5c3aaf3…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Tag annotation message (use %s for the version)
claude plugin tag --remote <name>
Source: chunk-hj3p6ej4.js · offset 202579445 · sha256 327d6cc1…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Default: "origin"
Remote to push to with --push
claude plugin uninstall <plugin>
Source: chunk-7w9j34yr.js · offset 202538517 · sha256 3c84d0a9…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Aliases: remove
Uninstall an installed plugin
claude plugin uninstall -s, --scope <scope>
Source: chunk-hj3p6ej4.js · offset 202589366 · sha256 c2236974…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Default: "user"
Uninstall from scope: user, project, or local
claude plugin uninstall --keep-data
Source: chunk-hj3p6ej4.js · offset 202589443 · sha256 e044c567…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Preserve the plugin's persistent data directory (~/.claude/plugins/data/{id}/)
claude plugin uninstall --prune
Source: chunk-hj3p6ej4.js · offset 202589542 · sha256 fd950377…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Also remove auto-installed dependencies that are no longer needed (requires -y in non-interactive contexts)
claude plugin uninstall -y, --yes
Source: chunk-hj3p6ej4.js · offset 202589672 · sha256 8bfeb217…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Skip the --prune confirmation prompt (required when stdin or stdout is not a TTY)
claude plugin uninstall --json
Source: chunk-hj3p6ej4.js · offset 202589773 · sha256 3a9efb8c…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Print one machine-readable result line on stdout instead of the human message (same exit codes; not with --prune)
claude plugin uninstall --cowork
Source: chunk-hj3p6ej4.js · offset 202577773 · sha256 cdc2f193…
Status: hidden; undocumented
Visibility: hidden (from code)
Use cowork_plugins directory
claude plugin update <plugin>
Source: chunk-7w9j34yr.js · offset 202538889 · sha256 007d46d9…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Update a plugin to the latest version (restart required to apply)
claude plugin update -s, --scope <scope>
Source: chunk-9p6nw1vt.js · offset 202591768 · sha256 6828e0e0…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Interpolated constants (resolved from code): wlt = ["user","project","local","managed"]
Installation scope: user, project, local, managed (default: auto-detect)
claude plugin update -y, --yes
Source: chunk-hj3p6ej4.js · offset 202591851 · sha256 7957f517…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Accept the displayed marketplace-declared command without the confirmation prompt — a changed install command, or the headersHelper command that fetches its archive (required when stdin or stdout is not a TTY)
claude plugin update --accept-command <sha256>
Source: chunk-hj3p6ej4.js · offset 202592114 · sha256 64dea3e8…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Accept the marketplace-declared command (a command-source install, or the headersHelper that fetches the archive) whose sha256 a previous --json run reported as shownCommand.sha256; counts as -y for exactly that command, for that plugin and marketplace catalog, and nothing else. If either changed (a refresh that moved the catalog counts), the run refuses and reports the command again, to be shown to a person again
claude plugin update --json
Source: chunk-hj3p6ej4.js · offset 202592569 · sha256 474b0af3…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Print one machine-readable result line on stdout instead of the human message (same exit codes; a marketplace-declared command is still shown and must be confirmed — pass -y when not interactive)
claude plugin update --cowork
Source: chunk-hj3p6ej4.js · offset 202577773 · sha256 cdc2f193…
Status: hidden; undocumented
Visibility: hidden (from code)
Use cowork_plugins directory
claude plugin validate <path>
Source: chunk-7w9j34yr.js · offset 202536195 · sha256 c6cdfe99…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Validate a plugin or marketplace manifest, or the skills, agents, and commands in a directory
claude plugin validate --strict
Source: chunk-hj3p6ej4.js · offset 202578643 · sha256 22ba8a72…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Treat warnings as errors (exit 1). Use in CI to fail on unrecognized fields, missing metadata, and other issues that the runtime tolerates.
claude plugin validate --json
Source: chunk-hj3p6ej4.js · offset 202578802 · sha256 fa1a0a97…
Status: documented at https://code.claude.com/docs/en/plugins/cli-reference
Visibility: shown in --help
Output the validation report as JSON (same exit codes)
claude plugin validate --cowork
Source: chunk-hj3p6ej4.js · offset 202577773 · sha256 cdc2f193…
Status: hidden; undocumented
Visibility: hidden (from code)
Use cowork_plugins directory
claude project
claude project
Source: chunk-hj3p6ej4.js · offset 190197240 · sha256 d7b9bf4c…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Manage Claude Code project state
claude project purge [path]
Source: chunk-hj3p6ej4.js · offset 190197333 · sha256 54d7e124…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Delete all Claude Code state for a project (transcripts, tasks, file history, config entry)
claude project purge --dry-run
Source: chunk-hj3p6ej4.js · offset 190197447 · sha256 477376ee…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
List what would be deleted without deleting anything
claude project purge -y, --yes
Source: chunk-hj3p6ej4.js · offset 190197522 · sha256 f8e0a986…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Skip confirmation prompt
claude project purge -i, --interactive
Source: chunk-hj3p6ej4.js · offset 190197577 · sha256 b814aa9e…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Prompt for each item before deleting
claude project purge --all
Source: chunk-hj3p6ej4.js · offset 190197632 · sha256 a227c722…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Purge state for every project (mutually exclusive with [path])
claude remote-control
claude remote-control
Source: chunk-hj3p6ej4.js · offset 190202801 · sha256 9580dacb…
Status: hidden; documented at https://code.claude.com/docs/en/cli-reference
Visibility: hidden (from code)
Aliases: rc
Control local sessions from claude.ai/code or the Claude mobile app
claude remote-control help text
Source: chunk-8djjdfyq.js · offset 205943629 · sha256 f2468aa1…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: not shown in --help on this machine (no hide marker found; reason not determined)
Interpolated constants (resolved from code): Nr = 32
Remote Control - Control local sessions from claude.ai/code or the Claude mobile app
USAGE
claude remote-control [options]
OPTIONS
--name <name> Name for the session (shown in claude.ai/code)
--remote-control-session-name-prefix <prefix>
Prefix for auto-generated session names
(default: hostname; env:
CLAUDE_REMOTE_CONTROL_SESSION_NAME_PREFIX)
-c, --continue Reattach to the session `claude remote-control`
last recorded for this directory (or one of its
git worktrees) instead of creating a new one.
Exits with an error if nothing was recorded
here within roughly the last 4 hours
--session-id <id> Reattach to a specific session by ID (cannot be
used with spawn flags or --continue)
--permission-mode <mode> Permission mode for spawned sessions
({{expr:e.join(", ")}})
--[no-]chrome Claude in Chrome for spawned sessions
(default: this machine's /chrome setting)
-d, --debug[=<filter>] Enable debug mode for this process, with
optional category filtering (e.g.
--debug=api,hooks)
--debug-file <path> Write debug logs to file
-v, --verbose Enable verbose output
-h, --help Show this help
--spawn <mode> Spawn mode: same-dir, worktree, session
(default: same-dir)
--capacity <N> Max concurrent sessions in worktree or
same-dir mode (default: 32)
--[no-]create-session-in-dir Pre-create a session in the current
directory; in worktree mode this session
stays in cwd while on-demand sessions get
isolated worktrees (default: on)
DESCRIPTION
Remote Control allows you to control sessions on your local device from
claude.ai/code (https://claude.ai/code) or the Claude mobile app. Run
this command in the directory you want to work in, then connect from
your phone or a browser.{{expr:ynn()?` Your projects on claude.ai can also ask Claude to
work in this directory.`:""}}
Remote Control runs as a persistent server that accepts multiple concurrent
sessions in the current directory. One session is pre-created on start so
you have somewhere to type immediately. Use --spawn=worktree to isolate
each on-demand session in its own git worktree, or --spawn=session for
the classic single-session mode (exits when that session ends). Press 'w'
during runtime to toggle between same-dir and worktree.
NOTES
- You must be logged in with a Claude account that has a subscription
- Run `claude` first in the directory to accept the workspace trust dialog
- Worktree mode requires a git repository or WorktreeCreate/WorktreeRemove hooks
claude respawn
claude respawn
Source: chunk-hj3p6ej4.js · offset 190113754 · sha256 0c423823…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in root --help
Arguments: [id]
Restart a background session, or all of them with --all, so it runs the current Claude Code version
claude rm
claude rm
Source: chunk-hj3p6ej4.js · offset 190113900 · sha256 552bb6d5…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in root --help
Arguments: <id>
Delete a background session, and its worktree when that is safe. Works on sessions that have already exited
claude sandbox
claude sandbox
Source: chunk-hj3p6ej4.js · offset 190203525 · sha256 6e3fdf3e…
Status: hidden; undocumented
Visibility: hidden (from code)
Undocumented; read at chunk-hj3p6ej4.js offset 190203525.
claude sandbox install
Source: chunk-hj3p6ej4.js · offset 190203598 · sha256 8cefc0bd…
Status: undocumented
Visibility: shown in --help
Install the Windows sandbox user and network filters. Self-elevates (one UAC prompt). Prints a JSON {status, message} result and exits 0 only when status is "ok".
claude sandbox status
Source: chunk-hj3p6ej4.js · offset 190203901 · sha256 7d6ff862…
Status: undocumented
Visibility: shown in --help
Print the effective sandbox posture (enabled, its source, strict mode, filesystem policy, Bash auto-allow) and the Windows install state as one JSON line.
claude setup-token
claude setup-token
Source: chunk-hj3p6ej4.js · offset 190197860 · sha256 8412c4df…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Set up a long-lived authentication token (requires Claude subscription)
claude stop
claude stop
Source: chunk-hj3p6ej4.js · offset 190113511 · sha256 bed844cc…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in root --help
Aliases: kill
Arguments: <id>
Stop a background session. Its conversation is kept: `claude attach <id>` opens it again, `claude --resume` works once it is stopped
claude ultrareview
claude ultrareview [target]
Source: chunk-hj3p6ej4.js · offset 190200363 · sha256 353b21b2…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Run a cloud-hosted multi-agent code review of the current branch (or a PR number / base branch) and print the findings
claude ultrareview --json
Source: chunk-hj3p6ej4.js · offset 190200501 · sha256 738277b2…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Print the raw bugs.json payload instead of formatted findings
claude ultrareview --timeout <minutes>
Source: chunk-hj3p6ej4.js · offset 190200595 · sha256 f94bd8b7…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Maximum minutes to wait for the review to finish (default: 45)
claude ultrareview --post
Source: chunk-hj3p6ej4.js · offset 190200677 · sha256 1e71f510…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Post the finished review's findings to the PR as you (PR targets only; one plain comment, not a review)
claude ultrareview --no-post
Source: chunk-hj3p6ej4.js · offset 190200803 · sha256 28e8990c…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Do not post the findings to the PR (the default; accepted for parity with the /ultrareview and /code-review ultra flags)
claude update
claude update
Source: chunk-hj3p6ej4.js · offset 190204212 · sha256 3248acbb…
Status: documented at https://code.claude.com/docs/en/cli-reference
Visibility: shown in --help
Aliases: upgrade
Check for updates and install if available