Four flags that cover 95% of how you'll use the CLI
Claude Code's interaction model is small on purpose: one default mode, three flag-toggled variants. Once you can answer "which one for this job?" instantly, you stop fighting the tool.
Default — interactive. claude with no flags drops you into the streaming REPL. Persistent conversation, multi-turn tool calls, free-form exploration. This is the mode to think in.
-p / --print. Single-shot. Prompt in, answer to stdout, exit. Pipes natively into the Unix world. The mode for cron jobs, GitHub Actions, and any script that needs an AI step.
-c / --continue. Resume the most recent session as if you never closed the terminal. Conversation history intact. The "I came back to my desk" command.
-r <id> / --resume. Resume a specific named session. Use it when you have multiple parallel threads and need to pick the right one. claude --list-sessions shows the inventory.