Terraform CLI
→ docs
Setup
First installation
Follow the procedure given in the Downloads page (will depend on the operating system)
Upgrade
Read the information given in the Upgrade Guides page (will depend on the version numbers)
Getting started
commands
Generic commands
Command | Action |
---|---|
| Prints the Terraform version |
| Prints help message (general or specific to a command) |
| Builds or changes infrastructure |
| Destroys Terraform-managed infrastructure |
| Formats Terraform code |
| Initializes a Terraform working directory |
| Generates and shows an execution plan |
| Displays human-readable output from a state or plan file |
| Uses state to display resources |
| Validates the Terraform files |
Examples
Last updated