"brew terraform" refers to installing Terraform using Homebrew (Brew), macOS's package manager. When someone asks "how do I brew terraform," they mean: use Homebrew to download, install, and manage Terraform on your Mac. The official command is brew install hashicorp/tap/terraform (not just brew install terraform, which no longer works).
Homebrew is the standard way to install Terraform on macOS. It handles installation, upgrades, and dependency management automatically. The hashicorp/tap is the official source maintained by HashiCorp, ensuring you always get the latest stable Terraform release.
Why not just brew install terraform? Since HashiCorp moved Terraform to the Business Source License, Homebrew no longer ships it from homebrew-core — you need HashiCorp's own tap, so brew tap hashicorp/tap followed by brew install hashicorp/tap/terraform is the correct command.
No — Terraform cannot be installed natively on iPhone or iPad. Terraform is a command-line tool designed for desktop and server operating systems (macOS, Linux, Windows). iOS and iPadOS don't support running Terraform directly.
Your options:
Have a Mac? Use this guide — Terraform runs natively on macOS with Homebrew.
On iPhone/iPad? Use an SSH client app (like Prompt 3, Terminus, or iSSH) to connect to a Mac, Linux server, or cloud shell (AWS CloudShell, Google Cloud Shell) where Terraform is already installed.
HashiCorp maintains an official Homebrew tap with all their tools (Terraform, Vault, Packer, Consul, etc.):
brew tap hashicorp/tap
Expected output:
==> Tapping hashicorp/tapCloning into '/opt/homebrew/Library/Taps/hashicorp/homebrew-tap'...Tapped 2 casks and 28 formulae (87 files, 1015.4KB).
Why use the official tap? The hashicorp/tap/terraform formula is maintained by HashiCorp and always has the latest release. The default terraform formula in homebrew-core may lag behind.
No. Terraform is a command-line tool that requires a desktop operating system — macOS, Linux, or Windows — and iOS/iPadOS doesn't support running it natively. If you have a Mac, follow the Homebrew steps above; otherwise you can manage Terraform remotely from an iPhone using an SSH client app connected to a Mac, Linux server, or cloud shell.
Run brew tap hashicorp/tap then brew install hashicorp/tap/terraform. Confirm it worked with terraform --version. Homebrew installs the latest stable Terraform and keeps it updated through brew upgrade.
Run brew upgrade hashicorp/tap/terraform. To check your current version first, run terraform --version. HashiCorp releases updates frequently, so upgrading periodically is recommended.
Yes. Homebrew installs the native darwin_arm64 build automatically on Apple Silicon Macs, and the same brew install hashicorp/tap/terraform command works on both Intel and Apple Silicon.
How do I install a specific Terraform version on macOS?
Use tfenv: brew install tfenv, then tfenv install 1.12.0 and tfenv use 1.12.0. tfenv lets you switch between versions per project with a .terraform-version file.
Because HashiCorp moved Terraform to the Business Source License, Homebrew no longer ships it from homebrew-core, so a plain brew install terraform won't get you the official release. Run brew tap hashicorp/tap followed by brew install hashicorp/tap/terraform instead.
HashiCorp's own tap, hashicorp/tap, which also includes Vault, Packer, and Consul. Add it with brew tap hashicorp/tap, then install Terraform with brew install hashicorp/tap/terraform.
Installing Terraform on macOS with Homebrew takes under a minute. For team environments, use tfenv to manage multiple versions and add a .terraform-version file to each project. Keep your installation updated with brew upgrade hashicorp/tap/terraform — HashiCorp releases new versions frequently with bug fixes and new provider features.
#HashiCorp#Infrastructure as Code#macOS#Terraform installation#Homebrew