Files
opentf/website/docs/cli/commands/version.mdx
Julien Levasseur 4c0bda5386 Rename website to OpenTofu (#516)
Co-authored-by: Damian Stasik <920747+damianstasik@users.noreply.github.com>
Co-authored-by: Roman Grinovski <roman.grinovski@gmail.com>
2023-09-21 10:57:47 +01:00

47 lines
981 B
Plaintext

---
description: >-
The tofu version command displays the OpenTofu version and the version
of all installed plugins.
---
# Command: version
The `tofu version` displays the current version of OpenTofu and all
installed plugins.
## Usage
Usage: `tofu version [options]`
With no additional arguments, `version` will display the version of OpenTofu,
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
$ tofu version
OpenTofu v1.6.0
on darwin_amd64
+ provider registry.terraform.io/hashicorp/null v3.0.0
```
As JSON:
```shellsession
$ tofu version -json
{
"terraform_version": "0.15.0",
"platform": "darwin_amd64",
"provider_selections": {
"registry.terraform.io/hashicorp/null": "3.0.0"
}
}
```