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