Install & Initialize in Bun

From the Bun cheat sheet ยท Installation & Setup ยท verified Jul 2026

Install & Initialize

Install Bun and scaffold a new project

bash
# Install Bun
curl -fsSL https://bun.sh/install | bash

# macOS with Homebrew
brew install oven-sh/bun/bun

# Create new project
bun init

# Upgrade Bun
bun upgrade
๐Ÿ’ก Bun runs TypeScript and JSX natively โ€” no transpiler config or tsconfig required
โšก bun init scaffolds package.json, tsconfig.json, and an index.ts in seconds
๐Ÿ“Œ Bun is a single binary with zero dependencies โ€” installs in under 5 seconds
๐ŸŸข Use bun create to scaffold from community templates like React, Hono, or Elysia
installsetupinit

More Bun tasks

Back to the full Bun cheat sheet