bun Verified current stable Not installed? Package Management

Bun / Install Add Single Package

Install Add Single Package

Easily install a single package using Bun with the 'bun add' command for your project.

$
Terminal
bun add <package>

When To Use

Use this command to add a specific package to your Bun project.

Command Builder

Tune the command before you copy it

Back to syntax
$
Generated Command
bun add <package>

Terminal Output

Expected runtime feedback

Simulated preview
>
Output
$ bun add example-package
✔ example-package added to your project

$ bun list
example-package
other-package

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.
<package>
package
The value supplied for package.

How To Run

Execution path

  1. Step 1

    Run: bun add example-package

  2. Step 2

    Verify installation with: bun list

  3. Step 3

    Check that example-package appears in the output.

Alternative Approaches

Comparable commands in other tools

Alternative package management tools for the same job.