Command: version
Theterraform version command displays the version of Terraform and all installed plugins.
Usage
Options
-json- Output the version information as a JSON object.
Example Output
Human-readable format:Version Checking
If version checking is enabled, Terraform will also check if a newer version is available and display a message if an update is available:Provider Versions
The version command displays the versions of all installed provider plugins based on the dependency lock file (.terraform.lock.hcl). If you haven’t successfully run terraform init since the most recent change to dependencies, the provider version information may be empty or incomplete.
Global Version Flags
The following flags are also recognized as version flags and will trigger the version command:-v-version--version