Important: If you already have Claude Code installed, then ensure to upgrade to the latest version:
$ claude --upgrade
Current version: 2.1.77
Checking for updates to latest version...
Claude Code is up to date (2.1.77)
Alternatively, you can run claude upgrade without the two dashes (--) if the command above doesn’t work for you. The Claude Code version on your system should be 2.1.76 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:
$ claude --version
2.1.77 (Claude Code)

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