mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-31 01:41:27 +08:00
bun-add: add page (#19136)
This commit is contained in:
committed by
GitHub
parent
b7058a2711
commit
bb3ec64a63
@@ -0,0 +1,33 @@
|
||||
# bun add
|
||||
|
||||
> Modern JavaScript runtime, package manager, bundler, and test runner.
|
||||
> Note: `a` can be used as an alias for `add`.
|
||||
> More information: <https://bun.com/docs>.
|
||||
|
||||
- Install a single package:
|
||||
|
||||
`bun add {{package}}`
|
||||
|
||||
- Install multiple packages:
|
||||
|
||||
`bun add {{package1 package2 ...}}`
|
||||
|
||||
- Install from a Git repository:
|
||||
|
||||
`bun add {{git_url}}`
|
||||
|
||||
- Install a specific version:
|
||||
|
||||
`bun add {{package}}@{{version}}`
|
||||
|
||||
- Install from local file or directory:
|
||||
|
||||
`bun add file:{{path/to/file_or_directory}}`
|
||||
|
||||
- Add a dev dependency:
|
||||
|
||||
`bun add {{[-d|--dev]}} {{package}}`
|
||||
|
||||
- Add a package globally:
|
||||
|
||||
`bun add {{[-g|--global]}} {{package}}`
|
||||
Reference in New Issue
Block a user