Leçon 3 — Installing Claude Code¶
URL : https://anthropic.skilljar.com/claude-code-101/469790 Format : Leçon texte
Claude Code is simple to install whether you want to use it in your terminal, on the web, or in your IDE.
Terminal¶
On macOS, Linux, or WSL, use the curl command to install it in one go. If you prefer Homebrew, you can also use brew install, but note that this method doesn't support auto-updates.
On Windows, there are a few options. In PowerShell, use the Invoke-RestMethod command. In CMD, use the curl command. There's also a winget command available, though like Homebrew, it won't auto-update.
After installation, you should be able to run the claude command. If not, restart your terminal. Navigate to your project directory and run:
claude
You'll go through some initial setup steps like choosing your color theme and signing in with your Claude account (Pro, Max, or Enterprise) or using an API key. If your organization has a Claude Enterprise account, be sure to select that option.
Whatever directory you run claude in, it will have access to that directory and all of its subfolders.
Visual Studio Code¶
Open your Extensions panel and search for "Claude Code." Look for the extension by Anthropic with the blue verification check. Hit install.
After installation, you may need to restart VS Code. Once it's running, open the command palette with Ctrl/Cmd + Shift + P and search for "Claude Code Open in New Tab." You can also click the Claude logo if it's visible in your sidebar.
The VS Code extension provides a very similar experience to the terminal. You can also opt out of the UI and use the terminal experience directly in your settings.
JetBrains¶
Install the Claude Code plugin from the JetBrains Marketplace. After installation, restart your IDE. When you reopen it, you'll see the Claude logo. Clicking it opens a pane with the terminal experience that works alongside your editor.
Desktop¶
After installing and signing into Claude Desktop, you'll see a toggle at the top labeled "Code." The look and feel is similar to the chat side of things, but it lets you work in a specific folder, change permissions, and even work in a cloud environment.
Web¶
On the web, access Claude Code by going to claude.ai/code, or by clicking the "Code" label in the sidebar of the chat app. This works similarly to the desktop app, but you're restricted to GitHub repositories.
Which One Should I Use?¶
If you want to stay on the cutting edge, the terminal is your best bet — features ship there first. The IDE integrations offer a nearly identical experience if you prefer Claude Code to feel more intertwined with your code editor.
Desktop is great for letting Claude run in the background while you handle other tasks.
Claude Code on the web is a solid option if you want to remotely work on projects through a GitHub repository.
However you want to use Claude Code is up to you.