📝 Edit on GitHub
CLI
How to run Terraform commands in the terminal
Topics
Pages
Content
Basics
Follow these three commands in order as a started for using Terraform.
- Install dependencies.
$ terraform init
- Preview changes.
$ terraform plan
- Deploy changes.
$ terraform apply .
Development
Format the Terraform code.
$ terraform fmt
Validate the Terraform code.
$ terraform validate
Alias
Recommended for your shell config:
alias tf=terraform