LinuxCommandLibrary

bun-info

Display Bun runtime information

TLDR

Display the package metadata

$ bun info [package_name]
copy

Display the specific version metadata
$ bun info [package_name]@[version]
copy

Show a specific property of a package
$ bun info [package_name] [property]
copy

Output results in JSON format
$ bun info [package_name] --json
copy

SYNOPSIS

bun info

DESCRIPTION

bun info is a built-in diagnostic command of the Bun JavaScript runtime environment. It provides detailed metadata about the current Bun installation, essential for debugging, compatibility checks, and bug reporting.

The output includes key details such as:
bunVersion: The exact version string (e.g., 1.1.3).
buildCommit: Git commit hash of the build.
arch and platform: Target CPU architecture and OS (e.g., x64 linux).
libc: Runtime C library (e.g., glibc 2.35).
TLS: Backend used (e.g., boringssl).
• Node.js compatibility version and various feature flags.

Formatted as human-readable YAML, it helps developers verify builds, detect mismatches, or script environment checks. No installation or arguments needed; runs instantly on any Bun-supported platform like Linux, macOS, or Windows.

Ideal for CI/CD pipelines, support tickets, or confirming Zig compiler version used in the build.

CAVEATS

Output is verbose and environment-specific; redirect to file for scripting (bun info > bun-info.yaml). Not available in all Bun versions pre-1.0.

TYPICAL OUTPUT SNIPPET

bunVersion: 1.1.3+df5aacb4
nodeVersion: 20.11.0
arch: x64
platform: linux
libc: glibc 2.35

HISTORY

Introduced in Bun 0.1.0 (September 2022) by Jarred Sumner. Evolved with Bun's rapid releases; output format stabilized in 1.0 (2024) to aid ecosystem adoption.

SEE ALSO

bun(1), node(1), deno(1)

Copied to clipboard