--- description: | These are the machine-readable types that exist as part of the output of `packer version`. layout: 'docs\_machine\_readable' page_title: 'Command: version - Machine-Readable Reference' ... # Version Command Types These are the machine-readable types that exist as part of the output of `packer version`.
version (1)

The version number of Packer running.

Data 1: version - The version of Packer running, only including the major, minor, and patch versions. Example: "0.2.4".

version-commit (1)

The SHA1 of the Git commit that built this version of Packer.

Data 1: commit SHA1 - The SHA1 of the commit.

version-prerelease (1)

The prerelease tag (if any) for the running version of Packer. This can be "beta", "dev", "alpha", etc. If this is empty, you can assume it is a release version running.

Data 1: prerelease name - The name of the prerelease tag.