0
0
TerraformHow-ToBeginner · 3 min read

How to Check Terraform Version Quickly and Easily

To check your installed Terraform version, run the command terraform version in your terminal or command prompt. This command shows the exact version of Terraform currently installed on your system.
📐

Syntax

The command to check Terraform version is simple and direct. Use terraform version to display the installed version.

  • terraform: The main Terraform command line tool.
  • version: The argument that tells Terraform to show its version.
bash
terraform version
💻

Example

This example shows how to run the command and what output to expect. It helps confirm your Terraform installation and version.

bash
terraform version
Output
Terraform v1.5.7 on darwin_amd64 Your version of Terraform is up to date!
⚠️

Common Pitfalls

Some common mistakes when checking Terraform version include:

  • Typing terraform -version or terraform --version which also works but terraform version is the official command.
  • Running the command in a terminal where Terraform is not installed or not in the system PATH, causing an error like command not found.
  • Confusing Terraform version with provider versions; terraform version only shows Terraform CLI version.
bash
Wrong: terraform -version
Right: terraform version
📊

Quick Reference

Remember these tips for checking Terraform version:

  • Use terraform version to see the CLI version.
  • Ensure Terraform is installed and in your PATH.
  • Use terraform -version or terraform --version as alternatives.

Key Takeaways

Run terraform version to check your installed Terraform CLI version.
Make sure Terraform is installed and accessible in your system PATH before running the command.
Alternative commands terraform -version and terraform --version also work.
The command shows only the Terraform CLI version, not provider versions.
Use this command regularly to confirm your Terraform environment setup.