bun upgrade command. This is the fastest way to get the latest features and bug fixes.
terminal
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 automatically released on every commit to themain branch. These are untested but useful for trying new features or verifying bug fixes before they’re released.
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 via a package manager, use that package manager to upgrade instead ofbun upgrade to avoid conflicts.
See also
- Installation — Install Bun for the first time
- Update packages — Update dependencies to latest versions