Back to technologies
/terraform
Terraform command reference
Core Terraform CLI commands for validating and provisioning infrastructure.
14 matches
Setup & Validation
4 commands
terraform initInitialize a Terraform working directory.
terraform fmt -recursiveFormat Terraform files consistently.
terraform validateValidate configuration syntax and internal consistency.
terraform providersList the providers required by the configuration.
Plan & Apply
4 commands
terraform planPreview infrastructure changes.
terraform applyApply the planned infrastructure changes.
terraform apply -auto-approveApply changes without interactive approval.
terraform destroyDestroy managed infrastructure resources.
State & Workspaces
6 commands
terraform showDisplay the current state or a saved plan.
terraform outputShow output values from the state file.
terraform state listList resources tracked in state.
terraform import <address> <id>Import an existing resource into state.
terraform workspace listList available Terraform workspaces.
terraform workspace select devSwitch to a different workspace.