→ docs
- Follow the procedure given in the Downloads page (will depend on the operating system)
- Read the information given in the Upgrade Guides page (will depend on the version numbers)
Command | Action |
---|---|
terraform --version |
Prints the Terraform version |
terraform [command] --help |
Prints help message (general or specific to a command) |
terraform apply |
Builds or changes infrastructure |
terraform destroy |
Destroys Terraform-managed infrastructure |
terraform fmt |
Formats Terraform code |
terraform init |
Initializes a Terraform working directory |
terraform plan |
Generates and shows an execution plan |
terraform show |
Displays human-readable output from a state or plan file |
terraform state |
Uses state to display resources |
terraform validate |
Validates the Terraform files |
# displays the list of resources managed in the workspace
terraform state list