📝 Edit page
➕ Add page
CLI
How to run Terraform commands in the terminal
Topics
Pages
- Commands
- Console command
-
Import
How to import resources in TF
-
Plans
Working with plans in TF
- Workspaces
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