terraform version
terraform version
displays the current version of Terraform and all installed plugins.
https://www.terraform.io/cli/commands/version
Example on path with valid Terraform code
terraform version Terraform v1.2.9 on darwin_arm64 + provider registry.terraform.io/hashicorp/aws v4.31.0 + provider registry.terraform.io/hashicorp/cloudinit v2.2.0 + provider registry.terraform.io/hashicorp/external v2.2.2 + provider registry.terraform.io/hashicorp/kubernetes v1.13.4 + provider registry.terraform.io/hashicorp/local v2.2.3 + provider registry.terraform.io/hashicorp/null v3.1.0 + provider registry.terraform.io/hashicorp/random v3.1.0 + provider registry.terraform.io/terraform-aws-modules/http v2.4.1
Examples
Terraform v1.4.2 on darwin_arm64 + provider registry.terraform.io/hashicorp/aws v4.59.0 + provider registry.terraform.io/hashicorp/random v3.4.3
terraform version Terraform v1.2.9 on linux_amd64
terraform version Terraform v1.2.8 on darwin_arm64
terraform version terraform 1.2.5 on darwin_arm64
terraform version Terraform v1.1.5 on darwin_arm64
terraform version Terraform v1.1.5 on linux_amd64
terraform version Terraform v0.15.0-dev on linux_amd64 Your version of Terraform is out of date! The latest version is 0.15.1. You can update by downloading from https://www.terraform.io/downloads.html
terraform version Terraform v0.13.1 Your version of Terraform is out of date! The latest version is 1.2.9. You can update by downloading from https://www.terraform.io/downloads.html
terraform version Terraform v0.11.14 Your version of Terraform is out of date! The latest version is 0.14.8. You can update by downloading from www.terraform.io/downloads.html
Related terms
See also
terraform
[untaint | fmt
|apply
|show
|state
|init | plan | console | output
|validate
|destroy
|debug
|import
|providers
|get
|graph
|workspaces
|resource
|login
|-var-file
|state mv
|state pull
|state push
|state replace-provider
|state rm
|force-unlock
|env
|tfe
|--version
|remote-exec
|delete on termination
| deprecated commands |terraform --help
]terraform version
, Terraform changelog
Advertising: