開始使用
Claude Code 在多個平台上執行:終端機、IDE 擴充功能、桌面應用程式和網頁。從下方的標籤中選擇一個以開始使用。大多數平台需要 Claude 訂閱或 Anthropic Console 帳戶。終端機 CLI 和 VS Code 也支援第三方提供商。- 終端機
- VS Code
- 桌面應用程式
- 網頁
- JetBrains
功能完整的 CLI,用於直接在您的終端機中使用 Claude Code。編輯檔案、執行命令,並從命令列管理您的整個專案。To install Claude Code, use one of the following methods:You can also install with apt, dnf, or apk on Debian, Fedora, RHEL, and Alpine.然後在任何專案中啟動 Claude Code:首次使用時,系統會提示您登入。就這麼簡單!繼續進行快速入門 →
- Native Install (Recommended)
- Homebrew
- WinGet
macOS, Linux, WSL:Windows PowerShell:Windows CMD:If you see
The token '&&' is not a valid statement separator, you’re in PowerShell, not CMD. If you see 'irm' is not recognized as an internal or external command, you’re in CMD, not PowerShell. Your prompt shows PS C:\ when you’re in PowerShell and C:\ without the PS when you’re in CMD.If the install command fails with syntax error near unexpected token '<', a 403, or another curl error, see Troubleshoot installation to match the error to a fix and for alternative install methods.Git for Windows is recommended on native Windows so Claude Code can use the Bash tool. If Git for Windows is not installed, Claude Code uses PowerShell as the shell tool instead. WSL setups do not need Git for Windows.Native installations automatically update in the background to keep you on the latest version.
您可以做什麼
以下是您可以使用 Claude Code 的一些方式:自動化您一直在推遲的工作
自動化您一直在推遲的工作
Claude Code 處理佔用您一整天的繁瑣任務:為未測試的程式碼編寫測試、修復整個專案中的 lint 錯誤、解決合併衝突、更新依賴項和編寫發行說明。
建立功能和修復錯誤
建立功能和修復錯誤
用純文字描述您想要的內容。Claude Code 規劃方法、跨多個檔案編寫程式碼,並驗證其是否有效。對於錯誤,貼上錯誤訊息或描述症狀。Claude Code 透過您的程式碼庫追蹤問題、識別根本原因並實施修復。請參閱常見工作流程以了解更多範例。
建立提交和拉取請求
建立提交和拉取請求
Claude Code 直接與 git 配合使用。它暫存變更、編寫提交訊息、建立分支並開啟拉取請求。在 CI 中,您可以使用 GitHub Actions 或 GitLab CI/CD 自動化程式碼審查和問題分類。
使用 MCP 連接您的工具
使用 MCP 連接您的工具
Model Context Protocol (MCP) 是一個開放標準,用於將 AI 工具連接到外部資料來源。使用 MCP,Claude Code 可以讀取 Google Drive 中的設計文件、更新 Jira 中的票證、從 Slack 提取資料,或使用您自己的自訂工具。MCP 快速入門端到端連接您的第一個伺服器。
使用說明、skills 和 hooks 進行自訂
使用說明、skills 和 hooks 進行自訂
執行代理團隊並建立自訂代理
執行代理團隊並建立自訂代理
生成多個 Claude Code 代理,同時處理任務的不同部分。主導代理協調工作、指派子任務並合併結果。若要在平行執行多個完整工作階段並從一個螢幕監視它們,請使用背景代理。對於完全自訂的工作流程,Agent SDK 可讓您建立由 Claude Code 的工具和功能驅動的自己的代理,並完全控制編排、工具存取和權限。
使用 CLI 進行管道、指令碼和自動化
使用 CLI 進行管道、指令碼和自動化
排程重複任務
排程重複任務