How to Install & Update Claude Code
Install Claude Code
Native installs are recommended — they auto-update in the background.
macOS / Linux / WSL — native install (auto-updates)
curl -fsSL https://claude.ai/install.sh | bash
Windows PowerShell — native install (auto-updates)
irm https://claude.ai/install.ps1 | iex
Requires Git for Windows.
Homebrew (macOS / Linux)
brew install --cask claude-code
WinGet (Windows)
winget install Anthropic.ClaudeCode
Check your current version
claude --version
Latest is v2.1.119 (51 changes). Release notes · All 272 releases
Update to Latest Version
Native installs auto-update. No action needed — Claude Code updates itself in the background.
For Homebrew or WinGet installations:
Homebrew (macOS / Linux)
brew upgrade claude-code
WinGet (Windows)
winget upgrade Anthropic.ClaudeCode
Troubleshooting
- Permission errors on macOS/Linux: check folder ownership or try a fresh install
- Windows issues: ensure Git for Windows is installed
- Official documentation for more help