# Terraform CLI Commands

The core Terraform workflow.

```bash
terraform init           # download providers and modules
terraform fmt            # format code
terraform validate       # check syntax
terraform plan           # preview changes
terraform plan -out=tf.plan
terraform apply          # make changes
terraform apply tf.plan
terraform destroy        # remove everything
terraform state list
terraform output
terraform workspace list
terraform apply -var="env=prod"
```
