2.1 — Installation and first launch
Claude Code is an autonomous terminal agent, not just another IDE extension. It lives in your shell, understands your project, and performs concrete actions on your code. Before anything else, you need to install it — it takes less than a minute.
Installation methods
The recommended method on macOS, Linux, and WSL:
curl -fsSL https://claude.ai/install.sh | bash
Homebrew alternative on macOS:
brew install --cask claude-code
On Windows, two options:
# PowerShell
irm https://claude.ai/install.ps1 | iex
# CMD (requires Git for Windows)
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
Winget is also available:
winget install Anthropic.ClaudeCode
First steps
cd /your/project
claude # launches an interactive session
claude "explain this project" # launches with a direct question
claude -p "query" # non-interactive mode (print mode), for scripts
claude --continue # resumes the last conversation
claude --resume # resumes a specific session
claude -n "feature-auth" # named session
Claude Code is tied to your working directory. It detects the stack, the structure, the configuration files. Always navigate to the right folder before launching it.
Key takeaways
• One-command install: curl -fsSL https://claude.ai/install.sh | bash
• First launch: cd /your/project && claude
• Non-interactive mode for scripts: claude -p "query"
• Session resume: --continue (last) or --resume (specific)
• Claude Code is contextual: it understands the project you're in