HomeClaude Code CLIInstalling Claude Code
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:

Terminal
curl -fsSL https://claude.ai/install.sh | bash

Windows (PowerShell):

PowerShell
irm https://claude.ai/install.ps1 | iex

Windows (CMD):

CMD
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

Windows users: You need Git for Windows installed first.

Option 2: Homebrew (macOS)

Terminal
brew install --cask claude-code

Note: This does NOT auto-update. Run brew upgrade claude-code periodically.

Option 3: WinGet (Windows)

PowerShell
winget install Anthropic.ClaudeCode

Option 4: VS Code Extension

  1. Open VS Code
  2. Press Cmd+Shift+X (Mac) or Ctrl+Shift+X (Windows)
  3. Search for "Claude Code"
  4. Click Install
  5. 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:

Terminal
cd your-project claude

On first run, you'll be asked to log in. Follow the prompts to authenticate.

Verify Installation

Terminal
claude --version

Quick Test

Terminal
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.