Command: version
The terraform version
displays the current version of Terraform and all
installed plugins.
Usage
Usage: terraform version [options]
With no additional arguments, version
will display the version of Terraform,
the platform it's installed on, installed providers, and the results of upgrade
and security checks unless disabled.
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.
Note: Platform information was added to the version
command in Terraform 0.15.
Example
Basic usage, with upgrade and security information shown if relevant:
As JSON: