bunx
Auto-install and run package executables
TLDR
Run package executable
SYNOPSIS
bunx [options] package [arguments]
DESCRIPTION
bunx auto-installs and runs executables from npm packages. It's Bun's equivalent of npx, roughly 100x faster for locally installed packages due to Bun's fast startup times.
Packages not found in local node_modules are automatically installed into a global shared cache.
PARAMETERS
-p, --package name
Specify package when binary name differs--bun
Force running with Bun instead of Node.js-c, --config file
Specify bunfig.toml config file--silent
Suppress output
BEHAVIOR
By default, bunx respects #!/usr/bin/env node shebangs in scripts. Use --bun to override and run with Bun runtime.
WINDOWS
On Windows, bunx uses a special .bunx file format for cross-filesystem symlinks that works with both Bun and Node.js.
CAVEATS
Packages are cached globally after first use. Use --bun flag when you specifically need Bun's runtime features. Some packages may expect Node.js-specific APIs.
