pulumi-version
Display the installed Pulumi version
TLDR
Display version
Display help
SYNOPSIS
pulumi-version
DESCRIPTION
The pulumi-version
command displays the version of the Pulumi CLI (Command Line Interface) currently installed on your system. It provides a quick and easy way to determine the version, build date, and commit hash of the Pulumi installation. This information is crucial for troubleshooting, ensuring compatibility with Pulumi cloud resources and libraries, and reporting issues to the Pulumi team.
Knowing the Pulumi version helps in understanding available features and bug fixes. When reporting a bug, the version is a critical piece of information. Similarly, when following tutorials or example code, knowing the Pulumi version guarantees compatibility with the documentation.
CAVEATS
The command requires that the Pulumi CLI is installed and configured correctly to be executed. Without a proper installation, the command will not function as expected and likely return an error. It will also not work if the Pulumi executable is not in the system's PATH.
OUTPUT FORMAT
The output of pulumi-version
is typically a single line containing the version information in a human-readable format. An example output may be like: v3.98.0
or v3.98.0-rc.1
. When using pulumi version --json
, the output would be like: {"version":"v3.98.0"}
.
USAGE EXAMPLES
To display the Pulumi CLI version:pulumi version
To display the version in JSON format:pulumi version --json
To integrate the version number with other commands (for example, a script):pulumi version | grep -o '[0-9]*\.[0-9]*\.[0-9]*'
SEE ALSO
pulumi(1)