Claude Code 部署指南
| 资源 | 地址 |
|---|---|
| 官方文档 | Claude Code Quickstart |
Claude Code 是 Anthropic 的智能编码工具,主要通过终端在本地项目目录中运行。官方推荐使用 Native Install,安装后可直接通过 claude 启动。
Windows 平台
PowerShell:
powershell
irm https://claude.ai/install.ps1 | iexCMD:
bat
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd也可以使用 WinGet:
powershell
winget install Anthropic.ClaudeCodeWindows 原生环境建议安装 Git for Windows,方便 Claude Code 使用常见的 Bash 工具;如果不安装,它会回退到 PowerShell。
macOS 平台
官方安装脚本:
sh
curl -fsSL https://claude.ai/install.sh | bashHomebrew:
sh
brew install --cask claude-codeLinux / WSL 平台
sh
curl -fsSL https://claude.ai/install.sh | bash验证与启动
sh
claude --version
cd /path/to/your/project
claude首次启动时按终端提示完成登录。