terraform version

The command that prints the Terraform version, the platform it was built for and the version of every installed provider.

In more detail

Run it first when you join a project, because a configuration can require a newer version than you have. Inside an initialised directory it also lists each provider with the exact version selected. OpenTofu has the same command under the name tofu.

Example

terraform version

Related terms

Taught in

References

Certification courses