Installing Terraform
Install the CLI
- Download a release from HashiCorp's site, or
- Use a package manager (for example Homebrew, Chocolatey, or your distro's packages)
- Some teams use tfenv or asdf to switch versions
Check the version
Open a new terminal after install.
terraform version
Create a practice folder
Keep each mini-project in its own directory with its own state.
mkdir tf-hello && cd tf-hello
Optional: enable autocomplete
Helpful once you use many subcommands.
terraform -install-autocomplete
Comments
One comment per signed-in account. Comments are saved with this page’s URL.