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

The bun info command provides a comprehensive overview of the Bun runtime environment and underlying system details. It's an essential diagnostic tool for developers, displaying critical information such as the installed Bun version, operating system platform and architecture, Node.js version (if present), and various relevant environment variables like BUN_HOME and PATH. Furthermore, it includes system-specific data like CPU and memory usage. This command is invaluable for troubleshooting installation issues, verifying environment configurations, and gathering context when reporting bugs or seeking support for Bun-related problems.

CAVEATS

The output of bun info can be quite extensive, providing a detailed snapshot of the system and Bun environment. Users should be aware that the command inherently exposes various environment variables, which, while useful for debugging, might contain paths or configurations that some users consider sensitive. The displayed information is highly specific to the execution environment; results will vary across different machines or user setups. It requires the Bun runtime to be correctly installed and discoverable in the system's PATH.

<B>EXIT STATUS</B>

The bun info command typically exits with a status of 0 on success, indicating that it successfully retrieved and printed the requested information. A non-zero exit status usually signifies an error, such as the bun executable not being found or an internal issue preventing information retrieval.

HISTORY

The bun runtime, including its info subcommand, was publicly launched in 2022 by Jarred Sumner. It quickly gained traction in the JavaScript ecosystem for its focus on extreme performance, bundled tooling (runtime, bundler, package manager), and native implementation in Zig. The bun info command has been a staple diagnostic utility since the early days of Bun's development, providing crucial environment insights as the project rapidly evolved to stability and wider adoption.

SEE ALSO

bun(1), node(1), npm(1), env(1), uname(1)

Copied to clipboard