Claude Code Commands
Every command, flag, shortcut, and configuration option in one place. 175 entries across 8 categories.
CLI Commands
22Start Interactive Mode
claudeLaunch Claude Code in interactive REPL mode.
One-Shot Question
claude "your question"Ask a question and get a response without entering interactive mode.
Pipe & Print
claude -p "your prompt"Use in non-interactive mode for scripting and piping output.
Pipe Input
cat file.txt | claude -p "summarize this"Pipe content from other commands into Claude for processing.
Continue Last Session
claude -cContinue the most recent conversation session.
Resume Session
claude -rResume a previous session interactively from a list.
Update Claude Code
claude updateUpdate Claude Code to the latest version.
Auth Login
claude auth loginAuthenticate with your Anthropic account or API key.
Auth Logout
claude auth logoutSign out of your current session.
Auth Status
claude auth statusCheck current authentication status.
Agents
claude agentsManage and list available Claude Code agents.
Doctor
claude doctorRun diagnostics to check Claude Code installation health.
Remote Control
claude remote-controlStart remote control mode for external tool integration.
MCP List
claude mcp listList all configured MCP servers.
MCP Add
claude mcp add <name> <command> [args...]Add a new MCP server with stdio transport.
MCP Add JSON
claude mcp add-json <name> '<json>'Add a new MCP server from raw JSON configuration.
MCP Add from Desktop
claude mcp add-from-claude-desktopImport MCP servers from Claude Desktop configuration.
MCP Remove
claude mcp remove <name>Remove an MCP server by name.
MCP Serve
claude mcp serveStart Claude Code as an MCP server itself.
Config List
claude config listList all configuration settings and their values.
Config Get
claude config get <key>Get the value of a specific configuration key.
Config Set
claude config set <key> <value>Set a configuration value.
CLI Flags
49Set the AI model to use for the session.
Fallback model if the primary model is unavailable.
Non-interactive mode — print response and exit.
Continue the most recent conversation.
Resume a specific session by ID or interactively.
Start a session from a pull request URL or number.
Fork an existing session into a new one.
Specify a session ID to resume or create.
Start Claude in a new git worktree.
Add additional directories to the session context.
Limit the number of agentic turns in non-interactive mode.
Set a maximum cost budget for the session.
Override the system prompt entirely.
Load system prompt from a file path.
Append additional instructions to the system prompt.
Append system prompt content from a file.
Whitelist specific tools for the session.
Blacklist specific tools from the session.
Define a custom tool configuration.
Set permission level: default, plan, or bypassPermissions.
Skip all permission checks (requires acknowledgment).
Allow the skip-permissions flag to be used.
Use an MCP tool for permission prompts.
Set output format: text, json, or stream-json.
Set input format: text or stream-json.
Enforce a JSON schema on the output.
Include partial streaming messages in output.
Don't persist the session to disk.
Specify an agent to use by name.
List available agents.
Path to MCP server configuration file.
Only use MCP servers from the config file.
Path to a directory of plugin files.
Force enable Chrome browser integration.
Disable Chrome browser integration.
Set IDE integration mode.
Enable debug logging.
Enable verbose output.
Initialize a CLAUDE.md file in the current directory.
Initialize CLAUDE.md and exit immediately.
Run maintenance tasks.
Connect to a remote machine via SSH.
Connect to a remote session via teleport.
Enable teammate mode for collaborative workflows.
Disable slash command processing.
Enable beta features by name.
Override settings from a JSON string.
Show where settings are loaded from.
Print the current Claude Code version.
Slash Commands
45Show help and available commands.
Clear the conversation history.
Compact conversation to save context window.
Show current context window usage.
Show cost breakdown for the current session.
Show token usage statistics.
Switch to a different AI model.
Toggle fast mode (same model, faster output).
Enter plan mode for structured task planning.
Toggle vim keybindings.
Create or update the CLAUDE.md file.
View and manage auto-memory files.
Open configuration settings.
View and manage tool permissions.
Run diagnostic checks.
Resume a previous session.
Rename the current session.
Rewind to a previous point in the conversation.
Export the conversation to a file.
Copy the last response to clipboard.
Review code changes made in the session.
Report a bug in Claude Code.
View and manage background tasks.
List and manage available agents.
Show session statistics.
Show usage insights and patterns.
View and manage lifecycle hooks.
Manage MCP server connections.
Change the color theme.
Set output verbosity style.
Configure terminal integration.
View and configure keyboard shortcuts.
Configure the status line display.
Connect to or manage teleport sessions.
Edit the shell rc file.
Add a directory to the session context.
Authenticate with Anthropic.
Exit Claude Code.
Manage sandbox environments.
Install the Claude Code GitHub App.
View and manage the todo list.
Run batch operations across files.
Review and simplify recent code changes.
Manage plugins.
Show session and connection status.
Keyboard Shortcuts
20Prompt Special Characters
5@filename@terminal:name#content!command& taskEnvironment Variables
12ANTHROPIC_API_KEYCLAUDE_CODE_EFFORT_LEVELCLAUDE_CODE_MAX_OUTPUT_TOKENSMAX_MCP_OUTPUT_TOKENSMAX_THINKING_TOKENSBASH_DEFAULT_TIMEOUT_MSBASH_MAX_TIMEOUT_MSSLASH_COMMAND_TOOL_CHAR_BUDGETCLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMSCLAUDE_CODE_TASK_LIST_IDCLAUDE_CODE_HOMEDEBUGConfiguration Files
9CLAUDE.md.claude/settings.json.claude/settings.local.json~/.claude/settings.json~/.claude/keybindings.json~/.claude/commands/.claude/commands/~/.claude/skills/.claude/skills/Hook Events
14PreToolUsePostToolUsePostToolUseFailureStopSessionStartSessionEndUserPromptSubmitPermissionRequestNotificationSubagentStartSubagentStopTeammateIdleTaskCompletedPreCompactSupercharge Your Claude Code Workflow
Browse 501 pre-built skills that turn Claude into a domain expert for any task.