TERRAFORM Commands Cheat Sheet

Here is a cli commands cheat sheet for TERRAFORM command, you can use this as a quick reminder for basic commands with a brief description for each of the commands.

What is TERRAFORM command?

Add some data here

        ---
tags: [ orchestration, iac ]
---
# Initialize this configuration.
terraform init

# Reformat configuration in the standard style
terraform fmt

# Check whether the configuration is valid
terraform validate

# Apply terraform configuration
terraform apply

# Delete applied terraform configuration
terraform destroy

# To upgrade your [Terraform providers](https://www.terraform.io/docs/providers/index.html), which are distributed separately from the Terraform binary. 
terraform init -upgrade

# To upgrade your [Terraform modules](https://www.terraform.io/docs/modules/index.html), which are distributed separately from the Terraform binary. 
terraform get -update
    

Check out the TERRAFORM command documentation .


You can also check our MegaSh cheatsheet tool, that has 150+ searchable linux cheat sheets in one page, so you never forget a command as you work again

Check Also

Best AI tools list