Bun
Ultra-fast JavaScript runtime, bundler, and package manager. Run scripts, install packages, and build projects at speed.
55 commands
Browse by Topic
Install Bun (macOS/Linux)
Install Bun using the official installer script
Install Bun (Windows)
Install Bun on Windows using PowerShell
Create new project
Initialize a new Bun project with package.json
Run TypeScript file
Execute a TypeScript file directly with Bun
Run with Env File
Load specific env file
Run Script
Execute a TypeScript/JavaScript file
Hot Reload
Hot module reloading
List Scripts
Show all available scripts
Run Package Script
Run script from package.json
Run in Smol Mode
Use less memory (for constrained environments)
Watch Mode
Auto-restart on file changes
Bun Shell
Start Bun's cross-platform shell
Add Package
Install and add package to dependencies
Add Dev Dependency
Add package to devDependencies
Add Exact Version
Install specific version without range
Add Global Package
Install package globally
Install Dependencies
Install all dependencies from package.json
Clear Cache
Clear the package cache
List Packages
List installed packages
Remove Package
Uninstall a package
Update Packages
Update all dependencies to latest
Update Specific Package
Update a specific package
Create from Template
Scaffold project from template
Create Elysia App
Create an Elysia API project
Create Hono App
Create a Hono API project
Create Next.js App
Create a new Next.js application
Create React App
Create a new React application
Initialize Project
Create a new Bun project
Init with Defaults
Create project with default settings
Run Tests
Run all tests in project
Bail on Failure
Stop on first test failure
Test with Coverage
Generate code coverage report
Run Specific Test File
Run tests in specific file
Filter Tests
Run tests matching pattern
Rerun Failed Tests
Rerun each test multiple times
Set Test Timeout
Set test timeout in milliseconds
Watch Tests
Re-run tests on file changes
Bundle Code
Bundle code to output directory
Compile to Binary
Create standalone executable
Cross-Compile
Compile for different platform
External Dependencies
Exclude packages from bundle
Build Minified
Bundle with minification
Build with Sourcemaps
Generate source maps
Code Splitting
Enable code splitting
Build for Target
Build for specific target (browser/node/bun)
Link Package
Register package as linkable
Use Linked Package
Use a linked package
Show Bin Path
Show local bin folder path
Show Global Bin Path
Show global bin folder path
Upgrade Bun
Update Bun to latest version
Upgrade to Canary
Update to latest canary release
Show Version
Display Bun version
Run Package
Run npm package without installing
Force Bun Runtime
Run package with Bun runtime
Run Create Package
Run create-* packages
Discussion
Loading comments...