bunx

Bun's command for running a tool from an npm package without installing it globally, like npx.

In more detail

bunx tsc --version runs the TypeScript compiler from the project's dependencies, or downloads it temporarily if it is missing. It keeps the tool version tied to the project instead of the machine.

Examples

bunx tsc --version
bunx tsc --noEmit

Related terms

Taught in

References