beginner10 min read· Module 4, Lesson 2
📥Installing Claude Code
Step-by-step installation for every platform
Installing Claude Code
Requirements
- A Claude subscription (Pro, Team, or Enterprise) OR an Anthropic Console API account
- Node.js 18+ (for terminal CLI)
Option 1: Native Install (Recommended)
This auto-updates in the background.
macOS / Linux:
curl -fsSL https://claude.ai/install.sh | bashWindows (PowerShell):
irm https://claude.ai/install.ps1 | iexWindows (CMD):
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmdWindows users: You need Git for Windows installed first.
Option 2: Homebrew (macOS)
brew install --cask claude-codeNote: This does NOT auto-update. Run brew upgrade claude-code periodically.
Option 3: WinGet (Windows)
winget install Anthropic.ClaudeCodeOption 4: VS Code Extension
- Open VS Code
- Press
Cmd+Shift+X(Mac) orCtrl+Shift+X(Windows) - Search for "Claude Code"
- Click Install
- Open Command Palette → "Claude Code: Open in New Tab"
Option 5: Desktop App
Download from:
- macOS: claude.ai/api/desktop/darwin/universal/dmg/latest
- Windows: claude.ai/api/desktop/win32/x64/setup/latest
Starting Claude Code
After installation, open a terminal in your project:
cd your-project
claudeOn first run, you'll be asked to log in. Follow the prompts to authenticate.
Verify Installation
claude --versionQuick Test
claude "what files are in this directory?"Claude will scan your project and tell you about the files and structure.
Next up: Learn the essential Claude Code commands and workflows.