Skip to content
Merged
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
33 changes: 33 additions & 0 deletions pages/common/bun-add.md
Original file line number Diff line number Diff line change
@@ -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}}`
Loading