Subcommands18 subcommands
bun c
Start a new project from a template
bun run
Run a package.json script or executable
bun i
Install dependencies for a package.json
bun a
Add a dependency to package.json
bun rm
Remove a dependency from package.json
bun build
Bundle files using Bun's native bundler
bun update
Update outdated dependencies
bun link
Run without an argument to register this package to the global package registry. Uses the name field from package.json
bun unlink
Unlink this package from the global package registry
bun upgrade
Get the latest version of bun
bun test
Run unit tests with Bun
bun pm
Set of utilities for working with Bun's package manager
bun completions
Install shell completions
bun discord
Open bun's Discord server
bun help
Print the help menu
bun repl
Run a REPL (read eval print loop) with the Bun runtime.(experimental)
bun init
Initialize a new bun project
OptionsOn bun itself
--inspect
Activate Bun's debugger for a file <[host:]port>
--inspect-wait
Activate Bun's Debugger, wait for a connection before executing <[host:]port>
--inspect-brk
Activate Bun's Debugger, set breakpoint on first line of code and wait <[host:]port>
--hot
Enable auto reload in the Bun runtime, test runner, or bundler
--watch
Automatically restart the process on file change