- Apply the respective commands to install Terraform on your operating system. Find additional options on the Terraform documentation.
First, install the HashiCorp tap, a repository of all Homebrew packages.
brew tap hashicorp/tap
brew install hashicorp/tap/terraform
Chocolatey is a free and open-source package management system for Windows. Install the Terraform package from the command-line.
choco install terraform
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt update && sudo apt install terraform