bun Verified current stable Not installed? Package Management

Bun / Install Multiple Packages

Install Multiple Packages

Easily install multiple packages in your project using Bun with a single command.

$
Terminal
bun add <package1 package2 ...>

When To Use

Use this command to quickly add multiple packages to your Bun project.

Command Builder

Tune the command before you copy it

Back to syntax
$
Generated Command
bun add <package1 package2 ...>

Terminal Output

Expected runtime feedback

Simulated preview
>
Output
$ bun add react react-dom
✔ Installed react@17.0.2
✔ Installed react-dom@17.0.2

$ bun list
react@17.0.2
react-dom@17.0.2

Command Breakdown

What each part is doing

bun
Base Command
The executable that performs this operation. Here it runs Bun before the shell applies any redirect operators.
<package1 package2 ...>
package1 package2 ...
The value supplied for package1 package2 ....

How To Run

Execution path

  1. Step 1

    Run the command: `bun add package1 package2`

  2. Step 2

    Verify installation with: `bun list`

  3. Step 3

    Ensure all packages appear in the list.

Alternative Approaches

Comparable commands in other tools

Alternative package management tools for the same job.