github.com/hugorut/terraform@v1.1.3/website/docs/cli/commands/version.mdx (about) 1 --- 2 page_title: 'Command: version' 3 description: >- 4 The terraform version command displays the Terraform version and the version 5 of all installed plugins. 6 --- 7 8 # Command: version 9 10 The `terraform version` displays the current version of Terraform and all 11 installed plugins. 12 13 ## Usage 14 15 Usage: `terraform version [options]` 16 17 With no additional arguments, `version` will display the version of Terraform, 18 the platform it's installed on, installed providers, and the results of upgrade 19 and security checks [unless disabled](/cli/commands#upgrade-and-security-bulletin-checks). 20 21 This command has one optional flag: 22 23 * `-json` - If specified, the version information is formatted as a JSON object, 24 and no upgrade or security information is included. 25 26 -> **Note:** Platform information was added to the `version` command in Terraform 0.15. 27 28 ## Example 29 30 Basic usage, with upgrade and security information shown if relevant: 31 32 ```shellsession 33 $ terraform version 34 Terraform v0.15.0 35 on darwin_amd64 36 + provider registry.terraform.io/hashicorp/null v3.0.0 37 38 Your version of Terraform is out of date! The latest version 39 is X.Y.Z. You can update by downloading from https://www.terraform.io/downloads.html 40 ``` 41 42 As JSON: 43 44 ```shellsession 45 $ terraform version -json 46 { 47 "terraform_version": "0.15.0", 48 "platform": "darwin_amd64", 49 "provider_selections": { 50 "registry.terraform.io/hashicorp/null": "3.0.0" 51 }, 52 "terraform_outdated": true 53 } 54 ```