LinuxCommandLibrary

bun-pm-bin

TLDR

Get the path to the local project's bin directory

$ bun pm bin
copy

Get the path to the global bin directory
$ bun pm bin [[-g|--global]]
copy

SYNOPSIS

bun-pm-bin [<internal-options>]

DESCRIPTION

bun-pm-bin does not appear to be a standard, publicly documented Linux command or user-facing utility. Bun is an ultra-fast JavaScript, TypeScript, and WebAssembly runtime, bundler, and package manager written in Zig, designed as a drop-in replacement for Node.js, npm, Webpack, and more. Its package manager is fully integrated into the single bun executable, handling operations like bun install, bun add, bun remove, and binary linking in node_modules/.bin.

No official documentation, man page, or references to bun-pm-bin exist in Bun's repository, website (bun.sh), or common Linux distro packages (e.g., apt, pacman). It may be an internal, build-time binary, a symlink in custom installations, a Docker-specific artifact, or a project-local script for package manager tasks like binary resolution or execution. Direct invocation is unsupported and likely to fail with errors like 'unknown command' or segmentation faults, as Bun embeds PM logic monolithically.

For package management on Linux, use the main bun command. Install Bun via curl -fsSL https://bun.sh/install | bash. If bun-pm-bin exists locally (check find /usr -name 'bun-pm-bin' or ~/.bun/bin), it handles niche, non-public tasks but lacks stable API.

CAVEATS

Non-standard and undocumented; not for direct use. May not exist on most systems. Rely on bun instead to avoid instability.

VERIFICATION

Check existence: which bun-pm-bin or locate bun-pm-bin. If absent, it's not installed.

ALTERNATIVES

Use bunx <binary> for package binaries or bun run for scripts.

HISTORY

No public history; potentially tied to Bun's development since 2022 (initial release 1.0 in 2023). Internal components evolve rapidly without user-facing changelogs.

SEE ALSO

bun(1), npm(1), pnpm(1), yarn(1)

Copied to clipboard