mirror of
https://github.com/opentofu/opentofu.git
synced 2026-06-11 01:20:13 -04:00
Some checks are pending
build / Build for freebsd_386 (push) Waiting to run
build / Build for linux_386 (push) Waiting to run
build / Build for openbsd_386 (push) Waiting to run
build / Build for windows_386 (push) Waiting to run
build / Build for freebsd_amd64 (push) Waiting to run
build / Build for linux_amd64 (push) Waiting to run
build / Build for openbsd_amd64 (push) Waiting to run
build / Build for solaris_amd64 (push) Waiting to run
build / Build for windows_amd64 (push) Waiting to run
build / Build for freebsd_arm (push) Waiting to run
build / Build for linux_arm (push) Waiting to run
build / Build for linux_arm64 (push) Waiting to run
build / Build for darwin_amd64 (push) Waiting to run
build / Build for darwin_arm64 (push) Waiting to run
build / End-to-end Tests for linux_386 (push) Waiting to run
build / End-to-end Tests for windows_386 (push) Waiting to run
build / End-to-end Tests for darwin_amd64 (push) Waiting to run
build / End-to-end Tests for linux_amd64 (push) Waiting to run
build / End-to-end Tests for windows_amd64 (push) Waiting to run
Quick Checks / List files changed for pull request (push) Waiting to run
Quick Checks / Unit tests for linux_386 (push) Blocked by required conditions
Quick Checks / Unit tests for linux_amd64 (push) Blocked by required conditions
Quick Checks / Unit tests for windows_amd64 (push) Blocked by required conditions
Quick Checks / Unit tests for linux_arm (push) Blocked by required conditions
Quick Checks / Unit tests for darwin_arm64 (push) Blocked by required conditions
Quick Checks / Unit tests for linux_arm64 (push) Blocked by required conditions
Quick Checks / Race Tests (push) Blocked by required conditions
Quick Checks / End-to-end Tests (push) Blocked by required conditions
Quick Checks / Code Consistency Checks (push) Blocked by required conditions
Quick Checks / License Checks (push) Waiting to run
Website checks / List files changed for pull request (push) Waiting to run
Website checks / Build (push) Blocked by required conditions
Website checks / Test Installation Instructions (push) Blocked by required conditions
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
47 lines
1.1 KiB
Text
47 lines
1.1 KiB
Text
---
|
|
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.
|
|
This command follows the [raw json specification](../../internals/machine-readable-ui.mdx#raw-json-output).
|
|
|
|
## Example
|
|
|
|
Basic usage, with security information shown if relevant:
|
|
|
|
```shellsession
|
|
$ tofu version
|
|
OpenTofu v1.6.0
|
|
on darwin_amd64
|
|
+ provider registry.opentofu.org/hashicorp/null v3.0.0
|
|
```
|
|
|
|
As JSON:
|
|
|
|
```shellsession
|
|
$ tofu version -json
|
|
{
|
|
"terraform_version": "0.16.0-alpha2",
|
|
"platform": "darwin_amd64",
|
|
"provider_selections": {
|
|
"registry.opentofu.org/hashicorp/null": "3.0.0"
|
|
}
|
|
}
|
|
```
|