Show outputs terraform
Print all outputs as compact JSON
terraform output -json | jq 'to_entries[] | {(.key): .value.value}'
more terraform
all 43 commands →
Destroy specific resource
terraform destroy -target='aws_instance.web' -auto-approve
Unlock stuck state
terraform force-unlock <lock-id>
Workspace create and switch
terraform workspace new staging && terraform workspace select staging
Show dependency graph
terraform graph | dot -Tsvg > graph.svg && open graph.svg
List providers with versions
terraform providers lock -platform=linux_amd64 -platform=darwin_arm64