mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-02-16 07:01:11 -05:00
* Initial renaming, rewriting and cleaning up wave for the CLI docs. Signed-off-by: Jakub Martin <kubam@spacelift.io> * More renaming. Signed-off-by: Jakub Martin <kubam@spacelift.io> * More renaming. Signed-off-by: Jakub Martin <kubam@spacelift.io> * More renaming. Signed-off-by: Jakub Martin <kubam@spacelift.io> * Remove tutorial references. Signed-off-by: Jakub Martin <kubam@spacelift.io> * Post-review fixes. Signed-off-by: Jakub Martin <kubam@spacelift.io> --------- Signed-off-by: Jakub Martin <kubam@spacelift.io>
48 lines
1014 B
Plaintext
48 lines
1014 B
Plaintext
---
|
|
page_title: 'Command: version'
|
|
description: >-
|
|
The opentf version command displays the OpenTF version and the version
|
|
of all installed plugins.
|
|
---
|
|
|
|
# Command: version
|
|
|
|
The `opentf version` displays the current version of OpenTF and all
|
|
installed plugins.
|
|
|
|
## Usage
|
|
|
|
Usage: `opentf version [options]`
|
|
|
|
With no additional arguments, `version` will display the version of OpenTF,
|
|
the platform it's installed on, and installed providers.
|
|
|
|
This command has one optional flag:
|
|
|
|
* `-json` - If specified, the version information is formatted as a JSON object,
|
|
and no upgrade or security information is included.
|
|
|
|
## Example
|
|
|
|
Basic usage, with security information shown if relevant:
|
|
|
|
```shellsession
|
|
$ opentf version
|
|
OpenTF v1.6.0
|
|
on darwin_amd64
|
|
+ provider registry.terraform.io/hashicorp/null v3.0.0
|
|
```
|
|
|
|
As JSON:
|
|
|
|
```shellsession
|
|
$ opentf version -json
|
|
{
|
|
"terraform_version": "0.15.0",
|
|
"platform": "darwin_amd64",
|
|
"provider_selections": {
|
|
"registry.terraform.io/hashicorp/null": "3.0.0"
|
|
}
|
|
}
|
|
```
|