LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

bun-pm

Bun package manager utilities

TLDR

Show the bin directory path
$ bun pm bin
copy
Show the global bin directory path
$ bun pm bin -g
copy
List installed packages
$ bun pm ls
copy
List all installed packages including dependencies
$ bun pm ls --all
copy
Print the package manager version
$ bun pm version
copy
Migrate from npm or yarn to Bun
$ bun pm migrate
copy
Generate or update the lockfile without installing
$ bun pm hash
copy

SYNOPSIS

bun pm subcommand [options]

DESCRIPTION

bun pm provides package manager utilities for managing dependencies and package configuration. It offers commands for inspecting installations, migrating projects from npm/yarn, and working with the lockfile and cache.

SUBCOMMANDS

bin

Print the path to the bin folder. Use -g for the global bin directory.
ls
List installed packages. Use --all to include transitive dependencies.
version
Print the package manager version.
migrate
Migrate from npm or yarn to Bun by converting lockfiles.
hash
Print the hash of the lockfile.
hash-print
Print the hash stored in the lockfile.
hash-string
Print the string used to compute the lockfile hash.
cache
Print the path to the global module cache, or clear it with rm.

SEE ALSO

bun(1), bun-install(1), bun-pm-ls(1), npm(1)

Copied to clipboard
Kai