terraform init |
Downloads providers, initialises backend, downloads modules |
terraform plan |
Shows what changes will be made without applying them |
terraform apply |
Applies changes (asks for confirmation by default) |
terraform destroy |
Tears down everything Terraform manages |
terraform fmt |
Auto-formats code |
terraform validate |
Checks syntax |
terraform state list |
Lists resources in state |
terraform state show <addr> |
Shows details of one resource |
terraform import <addr> <id> |
Imports an existing resource into Terraform state |
terraform refresh |
Updates state to match real-world resources |
terraform taint <addr> |
Marks a resource for recreation on next apply (deprecated, use -replace flag) |