OS Manuals

/usr/bin/bunx

Incredibly fast JavaScript runtime, bundler, test runner, and package manager - all in one

From bun 1.4.4-r0 (os), captured 2026-11-05 by running bunx --help (exit 0). permalink

Usage: bunx [flags] <package><@version> [flags and arguments for the package]
Execute an npm package executable (CLI), automatically installing into a global shared cache if not installed in node_modules.

Flags:
  --bun                  Force the command to run with Bun instead of Node.js
  -p, --package <package>    Specify package to install when binary name differs from package name
  --no-install           Skip installation if package is not already installed
  --cwd <path>            Set the working directory
  --env-file <file>       Load environment variables from the specified file(s)
  --minimum-release-age <seconds>  Only install packages published at least N seconds ago (security feature)
  --registry <url>        Install from a specific registry
  --ca <cert>, --cafile <path>  Trust a Certificate Authority signing certificate during installation
  --trust                Run the lifecycle scripts of the package and of ALL of its dependencies during installation
  --ignore-scripts       Run no lifecycle scripts during installation
  --verbose              Enable verbose output during installation
  --silent               Suppress output during installation

Examples:
  bunx prisma migrate
  bunx prettier foo.js
  bunx -p @angular/cli ng new my-app
  bunx --bun vite dev foo.js
Options (12)
OptionDescriptionSource
--bunForce the command to run with Bun instead of Node.jshelp
-p, --package packageSpecify package to install when binary name differs from package namehelp
--no-installSkip installation if package is not already installedhelp
--cwd pathSet the working directoryhelp
--env-file fileLoad environment variables from the specified file(s)help
--minimum-release-age secondsOnly install packages published at least N seconds ago (security feature)help
--registry urlInstall from a specific registryhelp
--ca, --cafile certTrust a Certificate Authority signing certificate during installationhelp
--trustRun the lifecycle scripts of the package and of ALL of its dependencies during installationhelp
--ignore-scriptsRun no lifecycle scripts during installationhelp
--verboseEnable verbose output during installationhelp
--silentSuppress output during installationhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.