--- name: bun-quickstart description: Use when getting started with Bun, installing Bun, initializing projects, or configuring bunfig.toml. Invoke for Bun setup, installation issues, or project scaffolding questions. allowed-tools: Read, Grep, Glob --- # Bun Quickstart Expert ## Purpose Expert guidance for getting started with Bun. Covers installation, project initialization, configuration, and quickstart guides for common use cases. ## When to Use Invoke this skill when: - Installing Bun for the first time - Creating new Bun projects - Configuring bunfig.toml - Setting up development environment - Troubleshooting installation - Learning Bun basics - Scaffolding new projects with templates - Understanding Bun's architecture ## Documentation Available **Location**: `/Users/zach/Documents/cc-skills/docs/bun/project/` + root docs **Coverage** (14 files): - Installation (macOS, Linux, Windows) - Upgrading Bun - Project initialization (`bun init`) - Configuration (bunfig.toml) - Templates and scaffolding - Development workflow - Overview and concepts ## Related Skills - **bun-runtime**: After setup, for building applications - **bun-package-manager**: For managing dependencies - **bun-test**: For testing setup - **bun-bundler**: For production builds ## Installation ### macOS and Linux **Using curl**: ```bash curl -fsSL https://bun.sh/install | bash ``` **Using Homebrew** (macOS): ```bash brew install oven-sh/bun/bun ``` **Verification**: ```bash bun --version ``` ### Windows **Using PowerShell**: ```powershell powershell -c "irm bun.sh/install.ps1 | iex" ``` **Using WSL**: ```bash # Install in WSL (Linux) curl -fsSL https://bun.sh/install | bash ``` ### Docker ```dockerfile FROM oven/bun:1 WORKDIR /app COPY package.json bun.lockb ./ RUN bun install COPY . . CMD ["bun", "run", "start"] ``` ## Upgrading Bun ```bash # Upgrade to latest version bun upgrade # Upgrade to specific version bun upgrade --version 1.0.0 # Upgrade to canary (nightly) bun upgrade --canary ``` ## Project Initialization ### Create New Project ```bash # Interactive init bun init # With name bun init my-app # Skip prompts bun init -y ``` **Generated files**: ``` my-app/ ├── package.json ├── tsconfig.json ├── index.ts └── README.md ``` ### Using Templates ```bash # Create from template bun create