CLI usage
Lessons in this group, roughly in build order:
- interactive-mode — Interactive mode is the default claude REPL: a persistent terminal session that keeps conversation…
- one-shot-print-mode-p — claude -p "
" runs a single non-interactive turn, prints the result to stdout, and exits — the… - piping-input-output — Claude Code behaves like a standard Unix filter: pipe data in on stdin, capture its answer on stdout, and…
- cli-flags-options — The claude command takes a prompt plus a large set of flags that override session behaviour — model,…
- resuming-continuing-sessions — —continue and —resume reopen a previous conversation with its full history and context intact, instead…
- managing-context-clear-compact — /clear and /compact are the two levers for the finite context window: one wipes it, the other summarises…
- image-file-input — Claude Code can take files and images as input — attach a path with @, paste a screenshot, or let the…
- keyboard-shortcuts-vim-mode — The interactive REPL has a set of keybindings for editing prompts, interrupting the agent, and navigating…