mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-09-21 12:44:02 +08:00
* bunx, bun x: add page * Update pages/common/bunx.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * Update bunx.md to correct command description --------- Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
717 B
717 B
bunx
Execute a package binary (installed locally or fetched remotely). Note:
bun xcan be used as an alias forbunx. 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
Bunruntime (instead ofNode):
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}}"