---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# bun upgrade

> Upgrade Bun to the latest version.
> More information: <https://bun.com/docs/installation#upgrading>.

- Upgrade to the latest stable version:

`bun upgrade`

- Upgrade to the latest canary build:

`bun upgrade --canary`

- Switch back to the latest stable version:

`bun upgrade --stable`
