Terraform
CARVIEW |
Select Language
HTTP/2 200
age: 1118
cache-control: public, max-age=0, must-revalidate
content-encoding: gzip
content-type: text/html; charset=utf-8
date: Fri, 18 Jul 2025 21:21:30 GMT
etag: W/"8mj724n7872qea"
server: Vercel
set-cookie: hc_geo=country%3DIN%2Cregion%3DKA; Path=/; Expires=Fri, 25 Jul 2025 21:40:08 GMT; Max-Age=604800
strict-transport-security: max-age=63072000
x-frame-options: SAMEORIGIN
x-matched-path: /terraform/cli/[[...page]]
x-powered-by: Next.js
x-vercel-cache: STALE
x-vercel-id: bom1::sfo1::rl6kz-1752874808464-3b330430c9c1
terraform version command reference | Terraform | HashiCorp Developer Edit this page on GitHub
terraform version command
The terraform version
command prints the current version of the Terraform binary and all
installed plugins.
Usage
Usage: terraform version [options]
With no additional arguments, version
displays the version of Terraform,
the platform it is installed on, installed providers, and the results of upgrade
and security checks unless disabled. Refer to Upgrade and Security Bulletin Checks for additional information.
Flags
This command has one optional flag:
-json
- Formats version information as a JSON object. No upgrade or security information is included.
Example
Basic usage, with upgrade and security information shown if relevant:
$ terraform version
Terraform v0.15.0
on darwin_amd64
+ provider registry.terraform.io/hashicorp/null v3.0.0
Your version of Terraform is out of date! The latest version
is X.Y.Z. You can update by downloading from https://developer.hashicorp.com/terraform/install
As JSON:
$ terraform version -json
{
"terraform_version": "0.15.0",
"platform": "darwin_amd64",
"provider_selections": {
"registry.terraform.io/hashicorp/null": "3.0.0"
},
"terraform_outdated": true
}