Skip to content
Merged
Changes from 4 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
32 changes: 32 additions & 0 deletions pages/common/bun-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# bun add

> Modern JavaScript runtime, package manager, bundler, and test runner.
> More information: <https://bun.com/docs>.

- Install a single package:

`bun {{[a|add]}} {{package}}`

- Install multiple packages:

`bun {{[a|add]}} {{package1}} {{package2}}`

- Install from a Git repository:

`bun {{[a|add]}} {{git_url}}`

- Install a specific version:

`bun {{[a|add]}} {{package}}@{{version}}`

- Install from local file or directory:

`bun {{[a|add]}} file:{{path/to/file_or_directory}}`

- Add a dev dependency:

`bun {{[a|add]}} {{[-d|--dev]}} {{package}}`

- Add a package globally:

`bun {{[a|add]}} {{[-g|--global]}} {{package}}`
Loading