mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-20 21:01:57 +00:00
Update cheatsheets
This commit is contained in:
38
tldr/bun-add
Normal file
38
tldr/bun-add
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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