| claude | Start an interactive REPL session in your terminal |
| claude "task" | Run a one-shot prompt non-interactively and exit |
| claude -p "prompt" | Pipe a prompt string directly from the command line--print |
| claude --resume | Resume the most recent conversation session |
| claude --resume <id> | Resume a specific past session by its ID |
| claude --continue | Continue the last conversation without re-initializing |
| claude --model | Specify which Claude model to use for the session |
| claude --output-format | Set output as text json stream-json |
| claude --allowedTools | Whitelist specific tools Claude can use in this session |
| claude --disallowedTools | Block specific tools from being used |
| claude --dangerously-skip-permissions | Skip approval prompts (CI pipelines only — use with caution) |
| /help | List available commands and keybindings |
| /clear | Clear the current conversation context |
| /compact | Compress conversation history to free up context window |
| /cost | Show token usage and estimated cost for this session |
| /status | Display current model, session ID, and tool permissions |
| /doctor | Run a health check on your Claude Code installation |
| /mcp | View connected MCP servers and their available tools |
| /permissions | View or edit tool permissions for the current session |
| Ctrl+C | Cancel the current running task |
| Ctrl+D | Exit the REPL session |
| ↑ / ↓ | Navigate prompt history |
| Esc | Interrupt a running agentic task mid-execution |
| Tab | Autocomplete file paths and slash commands |
| CLAUDE.md | Place in project root — Claude reads it automatically as persistent context every session |
| ~/.claude/CLAUDE.md | Global user-level instructions applied to all projects |