Skip to content

Claude Code CLI

官网

Description: AI编程助手。

适用系统类型标签
Windows, Linux, macOSDevelopmentAI

安装

bash
curl -fsSL https://claude.ai/install.sh | bash

教程

删除

To uninstall Claude Code CLI, use the command for your installation method:

macOS/Linux/WSL:

bash
rm -f ~/.local/bin/claude
rm -rf ~/.local/share/claude
rm -rf ~/.claude
rm ~/.claude.json

Windows PowerShell:

powershell
Remove-Item -Path "$env:USERPROFILE\.local\bin\claude.exe" -Force
Remove-Item -Path "$env:USERPROFILE\.local\share\claude" -Recurse -Force

Homebrew: brew uninstall --cask claude-code

WinGet: winget uninstall Anthropic.ClaudeCode

npm: npm uninstall -g @anthropic-ai/claude-code