Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions pages/common/bun-x.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# bun x

> This command is an alias of `bunx`.

- View documentation for the original command:

`tldr bunx`
25 changes: 25 additions & 0 deletions pages/common/bunx.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# bunx

> Execute a package binary (installed locally or fetched remotely).
> Note: `bun x` can be used as an alias for `bunx`.
> More information: <https://bun.sh/docs/pm/bunx>.

- Download and execute a package from the registry:

`bunx {{package_name}} "{{command_argument}}"`

- Check the version of a locally installed package (if found):

`bunx {{package_name}} --version`

- Force an executable to run with the `Bun` runtime (instead of `Node`):

`bunx --bun {{package_name}}`

- Execute a binary that has a different name than its package:

`bunx {{[-p|--package]}} {{package_name}} {{command}}`

- Download and execute a specific version of a package:

`bunx {{package_name@version}} "{{command_argument}}"`
Loading