Claude CLI Mastery

The interactive guide to building with Claude from the command line

Terminal
$
Choose Your Path

5 Learning Paths

Start from where you are. Each path is self-contained.

See It In Action

Interactive Showcases

Plan → Review → Execute

Watch Claude plan a refactor, wait for your approval, then execute it. The three-phase workflow that makes autonomous coding safe.

$ claude -p "Refactor auth module" \
  --output-format stream-json

■ plan Analyzing auth module...
■ plan Found 3 files to update
■ review Approve changes? [y/n]
■ execute Applying changes...

Live Stream Protocol

See NDJSON events flow in real-time. Each line is a typed event — partial text, tool calls, cost updates — parsed and rendered live.

{"type":"start","session_id":"..."}
{"type":"text","content":"Here's"}
{"type":"text","content":" the plan"}
{"type":"tool_use","name":"Write"}
{"type":"result","cost":0.012}