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
- A Claude subscription (Pro or higher). Get one at claude.com.
- On Windows: Git must already be installed. See install Node.js and Git.
#Installing
Open your terminal, paste the command for your computer and press Enter.
irm https://claude.ai/install.ps1 | iexUsing Command Prompt (cmd) instead of PowerShell? Then it's this one:
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmdcurl -fsSL https://claude.ai/install.sh | bashcurl -fsSL https://claude.ai/install.sh | bashInstalling 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
claude --versionYou'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
Start Claude. Type in your terminal:
claudeChoose a colour scheme. Use the arrow keys and press Enter. You can always change this later.
Choose how to sign in. Choose Claude account with subscription.
Sign in through your browser. Your browser opens a Claude page. Sign in and click Authorize. Then go back to your terminal.
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.