C.W.K.
Stream
Lesson 02 of 05 · published

Install Bun

~7 min · bun, installation

Level 0Newbie
0 XP0/55 lessons0/16 achievements
0/80 XP to next level80 XP to go0% complete

Bun installs in two ways on macOS, both single-step.

Curl installer (recommended): curl -fsSL https://bun.sh/install | bash. The installer drops the bun binary at ~/.bun/bin/bun and adds the directory to your shell init. Restart the terminal and bun --version should work.

Homebrew: brew tap oven-sh/bun && brew install bun. Slower than the curl installer because brew's cask flow has more steps, but keeps Bun in your Brewfile alongside everything else.

Upgrades are equally simple: bun upgrade in place. Bun ships fast — typically a release every 1-2 weeks — so upgrade often.

Code

Two install paths·bash
# Path 1 — official curl installer (fastest)
curl -fsSL https://bun.sh/install | bash

# Restart terminal, then verify
bun --version

# Path 2 — Homebrew
brew tap oven-sh/bun
brew install bun

# Upgrade in place
bun upgrade

External links

Exercise

Install Bun via the curl installer. Verify with 'bun --version'. Then create 'hello.ts' with a simple TypeScript snippet ('const greeting: string = "hi"; console.log(greeting);') and run 'bun hello.ts' — no compile step, no tsconfig, just runs. That's the moment Bun's value clicks.

Progress

Progress is local-only — sign in to sync across devices.
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.