Skip to content

Install Claude Code

Install your AI assistant, sign in with your Claude subscription and check that it works.

Claude Code is the AI assistant we recommend. It works in your terminal: you type what you want, Claude changes your website's files and publishes it when you ask.

#What you need

#Installing

Open your terminal, paste the command for your computer and press Enter.

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

Using Command Prompt (cmd) instead of PowerShell? Then it's this one:

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

Installing takes about a minute. At the end it says Claude Code has been installed.

Close your terminal and open a new one, so it knows about the new program.

#Checking

Terminal
claude --version

You'll see a version number, like 2.1.0 (Claude Code). Done!

Seeing command not found or not recognized? Close your terminal and open a new one. Still not working? Type claude doctor or see troubleshooting.

#Starting and signing in for the first time

  1. Start Claude. Type in your terminal:

    Terminal
    claude
  2. Choose a colour scheme. Use the arrow keys and press Enter. You can always change this later.

  3. Choose how to sign in. Choose Claude account with subscription.

  4. Sign in through your browser. Your browser opens a Claude page. Sign in and click Authorize. Then go back to your terminal.

  5. Done. Claude may ask whether you trust the folder you're in. Confirm with Enter. You'll now see a box where you can talk to Claude.

Try typing Hello! What can you do for me? and press Enter.

To stop, type /exit or press Ctrl+C twice.

#Handy things in Claude Code

  • A new line without sending: Shift+Enter (or end your line with \).
  • Interrupt Claude while it's working: press Esc.
  • Permission. Claude asks permission before it runs something on your computer. Read briefly what it wants to do and choose Yes. For Switchboard commands, feel free to pick the option that allows it from now on without asking.
  • Start over with an empty conversation: type /clear.

Next step: create a GitHub account (recommended), or go straight to your first website.

Was this helpful?

Guide

Search the guide

Type a word or a question. Tip: press Ctrl K to open this anywhere.