mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-12 07:58:59 +00:00
Update cheatsheets
This commit is contained in:
30
tldr/bunx
Normal file
30
tldr/bunx
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}"`
|
||||
Reference in New Issue
Block a user