claude --help to see all available flags in your installed version.
Core flags
-p, --print
-p, --print
--output-format, --model, --system-prompt, --permission-mode, --max-turns, --allowed-tools.--output-format <format>
--output-format <format>
--print.stream-json when you want to process Claude’s output incrementally as it arrives (useful for long-running tasks or piping into other tools).--input-format <format>
--input-format <format>
--print.stream-json input requires --output-format stream-json.--verbose
--verbose
verbose setting in your config file.-v, --version
-v, --version
-h, --help
-h, --help
Session continuation flags
-c, --continue
-c, --continue
-r, --resume [session-id]
-r, --resume [session-id]
--fork-session
--fork-session
--continue or --resume, creates a new session branched from the resumed conversation rather than continuing it in place.-n, --name <name>
-n, --name <name>
/resume and in the terminal title.--session-id <uuid>
--session-id <uuid>
--continue or --resume unless --fork-session is also specified.--no-session-persistence
--no-session-persistence
--print.Model and capability flags
--model <model>
--model <model>
sonnet, opus, haiku) or a full model ID (e.g. claude-sonnet-4-6)./model.--effort <level>
--effort <level>
--fallback-model <model>
--fallback-model <model>
--print.Permission and safety flags
--permission-mode <mode>
--permission-mode <mode>
--dangerously-skip-permissions
--dangerously-skip-permissions
--permission-mode bypassPermissions.--allow-dangerously-skip-permissions
--allow-dangerously-skip-permissions
--allowed-tools <tools...>
--allowed-tools <tools...>
--allowedToolsComma- or space-separated list of tools Claude is allowed to use. Tools not in this list are blocked.Bash(git:*) permits any git command; Edit(src/**) permits edits under src/.--disallowed-tools <tools...>
--disallowed-tools <tools...>
--disallowedToolsComma- or space-separated list of tools Claude is not allowed to use.--tools <tools...>
--tools <tools...>
"" to disable all tools, default to enable all tools, or name specific tools.Context and prompt flags
--add-dir <directories...>
--add-dir <directories...>
--system-prompt <prompt>
--system-prompt <prompt>
--system-prompt-file.--append-system-prompt <text>
--append-system-prompt <text>
--system-prompt, this preserves Claude’s built-in instructions and adds to them.--mcp-config <configs...>
--mcp-config <configs...>
--strict-mcp-config
--strict-mcp-config
--mcp-config, ignoring all other MCP configurations (user config, project config, etc.).--settings <file-or-json>
--settings <file-or-json>
--setting-sources <sources>
--setting-sources <sources>
--agents <json>
--agents <json>
description and prompt.Output control flags
--include-hook-events
--include-hook-events
--output-format stream-json.--max-turns <n>
--max-turns <n>
--print.--max-budget-usd <amount>
--max-budget-usd <amount>
--print.--json-schema <schema>
--json-schema <schema>
Worktree flags
-w, --worktree [name]
-w, --worktree [name]
--tmux
--tmux
--worktree. Uses iTerm2 native panes when available; pass --tmux=classic to force standard tmux behavior.Debug flags
-d, --debug [filter]
-d, --debug [filter]
--debug-file <path>
--debug-file <path>
--bare
--bare
CLAUDE.md auto-discovery. Sets CLAUDE_CODE_SIMPLE=1.Authentication is limited to ANTHROPIC_API_KEY or apiKeyHelper via --settings (OAuth and keychain are not used).Use --bare in scripted pipelines where startup latency matters and the features it disables are not needed. You can still provide context explicitly: