claude 命令手册
➜ claude --help Usage: claude [options] [command] [prompt]
Claude Code - starts an interactive session by default, use -p/--print for non-interactive output
Arguments: prompt Your prompt
Options:
--add-dir claude agents)
--bare Minimal mode: skip hooks, 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.
--betas
Commands: agents [options] Manage background agents auth Manage authentication auto-mode Inspect or reset auto mode classifier configuration doctor 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. gateway [options] Run the enterprise auth/telemetry gateway import [options] [source] Import config from another AI coding agent into Claude Code install [options] [target] Install Claude Code native build. Use [target] to specify version (stable, latest, or specific version) mcp Configure and manage MCP servers plugin|plugins Manage Claude Code plugins project Manage Claude Code project state setup-token Set up a long-lived authentication token (requires Claude subscription) ultrareview [options] [target] Run a cloud-hosted multi-agent code review of the current branch (or a PR number / base branch) and print the findings update|upgrade Check for updates and install if available