bun-pm-version
TLDR
Display the current package version
Set a specific version
Bump the version using a semantic version type (major, minor, patch, etc.)
Set the version based on Git tags
SYNOPSIS
bun pm version
or
bun-pm-version
PARAMETERS
--help
Display help for the command
--version
Print version (redundant with main command)
-v
Shorthand for --version
DESCRIPTION
The bun pm version command (invoked as bun-pm-version in some contexts or aliases) is part of Bun, a fast JavaScript runtime, bundler, and package manager designed as a drop-in replacement for Node.js, npm, pnpm, and Webpack. This command prints the current version of Bun's integrated package manager (bun pm), which handles dependency resolution, installation, and scripting with superior speed using JavaScriptCore and Zig.
It outputs a single line with the version string, such as bun v1.1.8 (commit-abc123), reflecting the unified Bun version since the PM is embedded. Useful for scripting, CI/CD pipelines, or verifying compatibility in monorepos. Unlike separate tools like npm -v, Bun's PM version matches the runtime version, ensuring consistency across bundling, running, and package operations.
Bun pm outperforms traditional managers by 10-100x in install times, supporting npm/pnpm/yarn lockfiles natively. This command helps debug issues or confirm updates after bun upgrade.
CAVEATS
Requires Bun installed (≥1.0). Output matches bun --version as PM is integrated; no separate PM versioning. Not available in all Bun releases pre-1.0.
EXAMPLE
bun pm version
bun v1.1.8 (commit-abcd1234)
EXIT CODES
0 on success; 1 on error (e.g., Bun not found)
HISTORY
Introduced with bun pm namespace in Bun 1.0 (Sept 2023), developed by Oven (Jarred Sumner). Evolved from Zig-based prototype (2022); unified versioning stabilized in 1.1+. Widely adopted for speed in 2024.


