Skip to content
Academy ofAI Learning

~/academy $ claude learn install-claude-code

Install Claude Code in five minutes

The official one-line installers for Mac, Linux and Windows, how to check it worked, and how to sign in. 7 min

Watch it done: install Claude Code and start your first session

$

Step 1 of 6

Open Terminal and paste the official install command. This is the native installer, which keeps itself up to date.

  1. Open Terminal and paste the official install command. This is the native installer, which keeps itself up to date. Type: curl -fsSL https://claude.ai/install.sh | bash. The installer shows no progress while it downloads. Wait for your prompt to come back.
  2. Open a new terminal window first, then check it worked. A working install prints a version number followed by (Claude Code). If it says claude is not found, close every terminal window and open a fresh one. Type: claude --version. It prints: 2.x.x (Claude Code).
  3. Move into a project folder. Claude Code works in the folder you start it from and reads your files as it needs them. Type: cd ~/projects/my-app.
  4. Start Claude Code. After you log in once, it remembers you, and the prompt appears with the version, model and folder shown above it. Type: claude. First time only: Claude Code asks you to log in and opens your browser. Sign in with your Claude account (Pro or higher) or a Console account.
  5. Ask your first question in plain English. You do not need to paste any files: Claude Code finds what it needs. Type: what does this project do?. Claude reads the files it needs and replies with a summary.
  6. Give the project a memory. CLAUDE.md is read at the start of every session, so Claude knows your project from the first message. Type: /init. Claude looks at the project and writes a starter CLAUDE.md: how to build, test and run it.

Commands from the official Claude Code docs, checked 18 November 2026. The version number in step 2 is an example.

Step 1 of 5

$ Read

Before you start

You need macOS 13 or later, Windows 10 (1809) or later, or a recent Ubuntu or Debian, 4 GB of RAM and an internet connection.

You also need a paid Claude plan (Pro, Max, Ultra, Team or Enterprise) or a Claude Console API account. The free plan does not include Claude Code.

Never run as administrator. The installer puts everything in your user folder.

Lesson notes: Install Claude Code in five minutes

Everything in this lesson as text, for revision or to read without the interactive steps. By the end you will be able to: Claude Code is installed and answering in your terminal.

  1. Step 1 of 5 · Read

    Before you start

    You need macOS 13 or later, Windows 10 (1809) or later, or a recent Ubuntu or Debian, 4 GB of RAM and an internet connection.

    You also need a paid Claude plan (Pro, Max, Ultra, Team or Enterprise) or a Claude Console API account. The free plan does not include Claude Code.

    Never run as administrator. The installer puts everything in your user folder.

  2. Step 2 of 5 · Read

    Pick the command for your system

    Open a terminal. On Windows, PowerShell shows PS C:\ at the start of the line. Paste one command and press Enter. It shows no progress while it downloads, so give it a minute.

    Mac, Linux, WSL
    curl -fsSL https://claude.ai/install.sh | bash
    Windows PowerShell
    irm https://claude.ai/install.ps1 | iex
    Windows CMD
    curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
    Or with Homebrew
    brew install --cask claude-code
    Or with WinGet
    winget install Anthropic.ClaudeCode
  3. Step 3 of 5 · Try it in the terminal

    Check it worked

    Open a new terminal window after installing, then type the command that prints the installed version.

    Hint: It is the program name followed by --version.

    Show the command
    $ claude --version
    2.1.211 (Claude Code)
  4. Step 4 of 5 · Read

    If it says "command not found"

    The install folder is not on your PATH yet. Close every terminal window and open a fresh one first. If it still fails, run claude doctor, which prints a read-only health check with suggested fixes, or follow the Fix your PATH section of the official troubleshooting page.

    Seeing The token '&&' is not a valid statement separator means you pasted the CMD command into PowerShell. Use the PowerShell line instead.

  5. Step 5 of 5 · Try it in the terminal

    Start it and sign in

    Move into a project folder, then start Claude Code. Type the command that starts it.

    Hint: It is one word.

    Show the command
    $ claude
    Welcome to Claude Code. Opening your browser to sign in...
    ✓ Logged in. Type /help for commands.