Installing Claude Code
Claude Code is a command-line tool that lets Claude work directly in your project. Unlike the chat interface at claude.ai, Claude Code can read your files, write code, run commands, and iterate on your project — all from your terminal. This is the main tool we'll use to build your site.
Prerequisites
Before installing Claude Code, make sure you have:
- A Claude Pro or Max subscription (we did this in the previous step)
Installation
For full installation instructions and troubleshooting, see the official Claude Code setup guide.
- Mac / Linux
- Windows
Open your terminal and run:
curl -fsSL https://claude.ai/install.sh | bash
This downloads and runs the official installer for Mac and Linux.
Open PowerShell and run:
irm https://claude.ai/install.ps1 | iex
This downloads and runs the official installer for Windows.
Verify the installation
claude --version
You should see a version number printed. If you see "command not found", close your terminal and open a new one, then try again.
First-time setup
The first time you use Claude Code, you need to authenticate:
-
Navigate to any folder in your terminal:
cd ~ -
Launch Claude Code:
claude -
Claude Code will open a browser window asking you to log in to your Anthropic account. Log in and authorize the connection.
-
Once authenticated, you'll see Claude Code's interactive prompt in your terminal. Type
/exitto quit for now.
How we'll use Claude Code
Throughout this guide, the workflow will look like this:
- Navigate to your project folder in the terminal
- Run
claudeto start Claude Code - Describe what you want to build or change in plain English
- Review what Claude writes and approve the changes
- Repeat until the feature is done
Claude Code can:
- Create and edit files
- Run terminal commands (with your approval)
- Debug errors by reading error messages and fixing code
- Explain what it's doing and why
You don't need to write code yourself — but you should read what Claude produces so you understand your own project.
What's next?
Next up: set up your Cloudflare account — this is where your finished site will live on the internet.