Claude Guides

How to Update Claude Code: CLI, Homebrew, npm and WinGet

Run claude update in your terminal to update Claude Code. Native installs also update in the background; Homebrew, WinGet and npm use their own command.

Dirk Jan van Veen, PhDPublished Nov 6, 2026

Run claude update in your terminal to install the latest version of Claude Code, then restart any open sessions. Native installs also update themselves in the background, so most people only need the manual command when they want a fix right away. claude upgrade is the same command under another name.

This guide is for anyone who runs the Claude Code CLI on macOS, Linux, WSL or Windows. You need an existing install and a terminal. How you update depends on how you installed: the native installer keeps itself current, while Homebrew, WinGet, npm and Linux package installs each have their own upgrade command, listed in the table further down.

How to update Claude Code

  1. Check which version you have. Open a terminal, type claude --version and press Enter.
claude --version
macOS terminal in the acme-demo folder with claude --version typed at the zsh prompt and highlighted
Step 1: type claude --version at the prompt and press Enter.
  1. Note the version number. The command prints one line, such as 2.1.316 (Claude Code). Keep it, so you can compare after the update.
Terminal output of claude --version showing 2.1.316 (Claude Code) on the line below the command
Step 2: the installed version prints on the line below the command.
  1. Run the update command. Type claude update and press Enter. It checks for a newer release and installs it if one exists. When an update installs, it reports Successfully updated from <old version> to version <new version>. If you are already current, it reports Claude Code is up to date (<version>). Installs managed by Homebrew, WinGet or apk report Claude is up to date! instead.
claude update
Terminal with claude update typed at the prompt below the earlier version output, the command highlighted
Step 3: run claude update to install the newest version right away.
  1. Restart Claude Code. A new version takes effect the next time Claude Code starts. Exit any open session and start it again in your project folder. See how to restart Claude Code if a session will not close cleanly.
claude
  1. Confirm the new version. Run claude --version again, or type /status inside a session. The Status tab shows the version on its first line, next to your login method and the settings files that loaded.
Claude Code Settings panel on the Status tab, with Version 2.1.316 on the first line above the session and account details
Step 5: the Status tab of the Settings panel shows the installed version on its first line. /status opens this tab directly, and /config opens the same panel on the Config tab.

How to upgrade Claude Code by install method

claude update is built for the native installer. The CLI help notes that package-manager installs update through the package manager, so on those installs run the command for your method.

Installed with Upgrade command Updates in the background
Native installer claude update Yes
Homebrew, claude-code cask brew upgrade claude-code No
Homebrew, claude-code@latest cask brew upgrade claude-code@latest No
WinGet winget upgrade Anthropic.ClaudeCode No
npm npm install -g @anthropic-ai/claude-code@latest Yes, if npm’s global folder is writable
apt sudo apt update && sudo apt upgrade claude-code No
dnf sudo dnf upgrade claude-code No
apk apk update && apk upgrade claude-code No

On npm, avoid npm update -g: it respects the version range from the original install and may not move you to the newest release. On Homebrew or WinGet, set the CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE environment variable to 1 and Claude Code runs the upgrade for you in the background, then shows a restart prompt. Homebrew keeps old versions on disk, so run brew cleanup now and then.

Why Claude Code is not updating

Run claude doctor first. It prints read-only install and settings checks, including the result of the last update attempt.

claude doctor

Choose a release channel

The autoUpdatesChannel setting controls which builds both background updates and claude update install. "latest" is the default and ships new features as soon as they release. "stable" uses a build that is about one week old and skips releases with major regressions. Change it in /config under Auto-update channel, or in settings.json:

{
  "autoUpdatesChannel": "stable",
  "minimumVersion": "2.1.100"
}

minimumVersion is a floor: updates will not install anything below it, so moving to stable does not downgrade you. Homebrew picks the channel by cask name instead, and apt, dnf and apk pick it by repository. To install a given channel or version with the native build, claude install accepts stable, latest or a version number.

Rolling out Claude Code updates across a team

When 20 people update on their own, you end up with 20 versions. Bug reports cannot be reproduced, a new model shows up for half the team, and a feature shown in a training session is missing on some laptops. Package-manager installs drift furthest, because nobody runs the upgrade.

What to standardize:

Frequently asked questions

How do I check my Claude Code version?

Run claude --version in a terminal. A working install prints a line such as 2.1.316 (Claude Code). Inside a session, /status shows the same version on the Status tab.

Does Claude Code update automatically?

Native installs check for updates on startup and while running, download them in the background and apply them at the next start. Homebrew, WinGet, apt, dnf and apk installs need a manual upgrade unless you opt in, as described above.

What is the difference between claude update and claude upgrade?

They are the same command. The CLI lists them as claude update|upgrade, so either one checks for a new version and installs it.

How do I stop Claude Code from updating?

Add "DISABLE_AUTOUPDATER": "1" to the env block of your settings.json to stop background updates while keeping claude update available. Use DISABLE_UPDATES to block manual updates as well.

How do I install Claude Code for the first time?

Use the native installer for your system, then check the install with claude --version. See how to install Claude Code for each platform.

Train your whole team on Claude

Your team is figuring this out one at a time. We train them together in a day.

See the one-day Claude team workshop

Keep exploring

Related reading.

Claude team training

Your team is figuring this out
one at a time.

We train them together in a day.

See the Claude workshop