bun upgrade command.
terminal
bun upgrade downloads and installs the latest stable version of Bun, replacing the currently installed version.
To see the current version of Bun, run
bun --version.Verify the upgrade
After upgrading, verify the new version:terminal
Upgrade to canary builds
Canary builds are released on every commit to themain branch. They’re untested, but useful for trying new features or verifying bug fixes before a release.
terminal
Switch back to stable
If you’re on a canary build and want to return to the latest stable release:terminal
Install a specific version
To install a specific version of Bun, use the install script with a version tag:- macOS & Linux
- Windows
terminal
Package manager users
If you installed Bun with a package manager, upgrade with that package manager instead ofbun upgrade to avoid conflicts.
See also
- Installation — Install Bun for the first time
- Update packages — Update dependencies to latest versions