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.