返回播客Claude
Claude Code 101
安装 Claude Code
Cloud Code is simple to install whether you want to use it in your terminal, the web, or your IDE.
Cloud Code 安装非常简单,无论你想在终端、网页还是 IDE 中使用。
If you're on macOS, Linux, or WSL, use this curl command to install it in one go.
如果你使用 macOS、Linux 或 WSL,可以使用这条 curl 命令一键安装。
If you prefer to use Homebrew, you can also use brew install to install it, but note that this doesn't have auto-update capabilities.
如果你偏好使用 Homebrew,也可以用 brew install 安装,但请注意这种方式不支持自动更新。
For Windows, there's also a couple ways.
对于 Windows,也有几种安装方式。
In PowerShell, use the Invoke-RestMethod command.
在 PowerShell 中,使用 Invoke-RestMethod 命令。
If you're on CMD, you can also use this curl command.
如果你使用 CMD,也可以使用这条 curl 命令。
We also have a winget command as well if you prefer, but just like Homebrew, it won't auto-update.
如果你偏好 winget 命令也可以,但和 Homebrew 一样,它不会自动更新。
Now, go to your project directory and run cloud.
现在,进入你的项目目录并运行 cloud。
You will go through some initial instructions like choosing your color theme and signing in with your cloud account, which could be the pro, max, or enterprise.
你将经历一些初始设置,比如选择颜色主题,以及用你的 cloud 账户登录,账户类型可以是 pro、max 或 enterprise。
Or you can use an API key.
或者你也可以使用 API key。
If your organization has a cloud enterprise account, be sure to select that option.
如果你的组织拥有 cloud enterprise 账户,请务必选择该选项。
Whatever directory you decide to run cloud in, it will have access to that directory and all of its subfolders.
无论你在哪个目录下运行 cloud,它都可以访问该目录及其所有子文件夹。
In Visual Studio Code, open up your extensions panel and search for Cloud Code.
在 Visual Studio Code 中,打开扩展面板并搜索 Cloud Code。
You will see the extension by Anthropic.
你会看到由 Anthropic 发布的扩展。
Make sure it has the blue check and hit install.
确认它带有蓝色勾选标记后,点击安装。
After installation, you might need to restart VS Code.
安装后,你可能需要重启 VS Code。
After that, you can open up the control palette with control or command and shift and P and search Cloud Code.
之后,你可以使用 Ctrl 或 Command 加 Shift 和 P 打开命令面板,然后搜索 Cloud Code。
Open a new tab.
打开一个新标签页。
You can also click on the cloud logo if you see it when a file is open.
当文件打开时,如果你看到 cloud 图标,也可以直接点击它。
You can also opt out of the UI and just use the terminal experience directly in your settings file.
你也可以在设置文件中选择不使用 UI,直接在终端中操作。
For JetBrains IDEs, you can install the Cloud Code plugin from the JetBrains Marketplace.
对于 JetBrains IDE,你可以从 JetBrains Marketplace 安装 Cloud Code 插件。
Once you install, restart your IDE.
安装完成后,重启你的 IDE。
And when you reopen, you'll see the cloud logo.
重新打开时,你会看到 cloud 图标。
This will open up a pane where you can see the terminal experience.
这将打开一个面板,你可以在其中看到终端体验。
And this will work alongside you.
它将与你协同工作。
On Cloud Desktop, you can also run Cloud Code.
在 Cloud Desktop 上,你也可以运行 Cloud Code。
After you install Cloud Desktop and signed in, you will see a toggle at the top that says code.
安装 Cloud Desktop 并登录后,你会在顶部看到一个写着 code 的切换按钮。
The look and feel is similar to Claude chat side of things, but allows you to work in a specific folder, change permissions, and even work in a cloud environment.
其外观和体验与 Claude 聊天界面类似,但允许你在特定文件夹中工作、更改权限,甚至在 cloud 环境中工作。
On the web, you can access Claude code by going to claude.ai/code.
在网页端,你可以通过访问 claude.ai/code 来使用 Claude code。
This works very similar to the desktop app.
这与桌面应用非常相似。
However, you're restricted to GitHub repositories only.
不过,你仅限于使用 GitHub 仓库。
If you want to constantly keep up to date with everything, the terminal is the best bet.
如果你想随时保持最新,终端是最佳选择。
Features ship there the fastest.
新功能在终端最先发布。
For the most part, you'll have extremely similar experiences with the IDE integrations if you like Claude code to feel more intertwined with your favorite code editor.
在大多数情况下,如果你喜欢 Claude code 与你喜爱的代码编辑器深度集成,IDE 集成也能提供极为相似的体验。
Desktop is great for letting Claude run in the background while you run other tasks.
Desktop 非常适合让 Claude 在后台运行,同时你可以处理其他任务。
Claude code on the web is a great option if you want to remotely work on a project through a GitHub repository or have multiple sessions work in parallel.
如果你想通过 GitHub 仓库远程处理项目,或者希望多个会话并行工作,Claude code 网页版是很好的选择。
However, you want to use Claude code, it's up to you.
无论你想怎么使用 Claude code,都由你决定。