Important: If you already have Claude Code installed, then ensure to upgrade to the latest version:
$ claude update
Claude Code is up to date (2.1.308)
If you installed Claude Code with Homebrew or WinGet, run brew upgrade claude-code or winget upgrade Anthropic.ClaudeCode instead. The Claude Code version on your system should be 2.1.300 or higher.
To install Claude Code on your system, open your Terminal and your Browser side-by-side. Visit the Claude Code quickstart guide in your browser and copy the installation command for your operating system:
Paste the installation command into your terminal and follow the steps on the screen. You can verify that the installation worked with this command:

torvel on March 21, 2026
Hello, the command to update (at least on MacOS) is
Rather than