How it works
Thesst upgrade command will:
- Check for the latest version (or the specified version)
- Download and install it
- Replace your current CLI installation
package.json files.
Arguments
version
A version to upgrade to.
Examples
Upgrade to latest
Upgrade to the latest version:Upgrade to specific version
Upgrade to a specific version:Installation methods
The upgrade command works differently based on how you installed SST:Node.js projects
If you installed SST via npm/yarn/pnpm, the upgrade command will:- Update
package.jsonfiles - Run the package manager’s install command
Global installation
If you installed SST globally (via curl or Homebrew), the upgrade command will:- Download the new binary
- Replace the existing installation
Homebrew
If you installed via Homebrew, you can also use:Checking your version
To see your current version:Related
- Installation guide - Learn about different installation methods