commands.sh

bun pm

all

A set of utilities for working with Bun's package manager. Some subcommands such as `pack`, `pkg` have their own usage documentation.

More info →

Examples (8)

Create a tarball of the current workspace

Print the path to the `bin` directory

Display the default trusted dependencies

bun pm default-trusted

Print the npm registry username

Generate and print the hash of the current lockfile

List the current untrusted dependencies that contain scripts

bun pm untrusted

Migrate another package manager's lockfile without installing anything

Get a property from `package.json`

bun pm pkg get property
made by @shridhargupta | data from tldr-pages