Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add installing a specific version of Bun, go back to stable version from canary build to README.md #15395

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 23 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,18 @@ Bun supports Linux (x64 & arm64), macOS (x64 & Apple Silicon) and Windows (x64).
> **Linux users** — Kernel version 5.6 or higher is strongly recommended, but the minimum is 5.1.

```sh
# with install script (recommended)
# with install script on MacOS/Linux(recommended)
curl -fsSL https://bun.sh/install | bash

# on windows
# with install script on Windows (recommended)
powershell -c "irm bun.sh/install.ps1 | iex"

# with npm
# with NPM
npm install -g bun

# with Scoop
scoop install bun

# with Homebrew
brew tap oven-sh/bun
brew install bun
Expand All @@ -82,6 +85,23 @@ bun upgrade --canary

[View canary build](https://github.com/oven-sh/bun/releases/tag/canary)

To switch back to a stable release from canary, run:

```sh
bun upgrade --stable
```

### Installing a specific version of Bun

To install a specific of Bun, replace `<version-number>` with the version you want to install and run:

```sh
# on MacOS/Linux
curl -fsSL https://bun.sh/install | bash -s "bun-<version-number>"

# on Windows (powershell)
iex "& {$(irm https://bun.sh/install.ps1)} -Version <version-number>"
```
## Quick links

- Intro
Expand Down