Install the latest version of the Terraform CLI from HashiCorp's official installation guide ↗︎.
brew tap hashicorp/tap
brew install hashicorp/tap/terraformInstall via your distribution's package manager:
sudo apt install terraformDownload the installer from HashiCorp's installation page ↗︎ and follow the setup instructions.