github.com/muratcelep/terraform@v1.1.0-beta2-not-internal-4/website/docs/cli/commands/version.html.md (about) 1 --- 2 layout: "docs" 3 page_title: "Command: version" 4 sidebar_current: "docs-commands-version" 5 description: "The terraform version command displays the Terraform version and the version 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](/docs/cli/commands/index.html#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 ```