2013-08-12 14:33:57 -04:00
|
|
|
---
|
2015-07-22 22:31:00 -04:00
|
|
|
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'
|
|
|
|
...
|
2013-08-12 14:33:57 -04:00
|
|
|
|
|
|
|
# Version Command Types
|
|
|
|
|
2015-07-22 22:31:00 -04:00
|
|
|
These are the machine-readable types that exist as part of the output of
|
|
|
|
`packer version`.
|
2013-08-12 14:33:57 -04:00
|
|
|
|
|
|
|
<dl>
|
2015-07-22 23:25:58 -04:00
|
|
|
<dt>
|
|
|
|
version (1)
|
|
|
|
</dt>
|
|
|
|
<dd>
|
2015-07-22 22:31:00 -04:00
|
|
|
<p>The version number of Packer running.</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<strong>Data 1: version</strong> - The version of Packer running,
|
|
|
|
only including the major, minor, and patch versions. Example:
|
|
|
|
"0.2.4".
|
|
|
|
</p>
|
|
|
|
|
2015-07-22 23:25:58 -04:00
|
|
|
</dd>
|
|
|
|
<dt>
|
|
|
|
version-commit (1)
|
|
|
|
</dt>
|
|
|
|
<dd>
|
2015-07-22 22:31:00 -04:00
|
|
|
<p>The SHA1 of the Git commit that built this version of Packer.</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<strong>Data 1: commit SHA1</strong> - The SHA1 of the commit.
|
|
|
|
</p>
|
|
|
|
|
2015-07-22 23:25:58 -04:00
|
|
|
</dd>
|
|
|
|
<dt>
|
|
|
|
version-prerelease (1)
|
|
|
|
</dt>
|
|
|
|
<dd>
|
2015-07-22 22:31:00 -04:00
|
|
|
<p>
|
|
|
|
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.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<strong>Data 1: prerelease name</strong> - The name of the
|
|
|
|
prerelease tag.
|
|
|
|
</p>
|
|
|
|
|
2015-07-22 23:25:58 -04:00
|
|
|
</dd>
|
2013-08-12 14:33:57 -04:00
|
|
|
</dl>
|