terraform CLI is available from any command prompt or PowerShell session and lets you manage infrastructure with consistent tooling.
Other-platform examples (for context)
- Homebrew (macOS) example:
- Debian/Ubuntu (apt) example:
Manual Windows download and installation
- Visit the Terraform install page: https://developer.hashicorp.com/terraform/install and download the Windows AMD64 binary (
terraform.exe). - Move the downloaded
terraform.exeto a permanent folder, for exampleC:\Terraform.

Add the folder to the system PATH
Make theterraform.exe executable available from any shell by adding its folder to PATH:
- Right-click Start → System → Advanced system settings → Environment Variables.
- Under System variables, select
Path→ Edit → New and addC:\Terraform. - Click OK to close all dialogs.
When editing system environment variables, be careful not to modify or delete other existing
Path entries. Incorrect changes can affect other programs.
C:\HashiCorp containing multiple executables (for example consul.exe, vault.exe, etc.). The key is that the folder containing terraform.exe is included in PATH.

PATH and reopening PowerShell, confirm the binary is in place (example view in File Explorer):

Verify the manual installation
Open a new PowerShell window and run:terraform.exe is removed from the folder on PATH, the terraform command will no longer be recognized.
Install using WinGet (recommended for modern Windows)
WinGet provides a simple one-line installation and straightforward uninstallation. Install Terraform:terraform version will return an error like:
Chocolatey alternative
If you use Chocolatey, install Terraform with:--version to install the latest available package, or change it to pin a specific version.
Quick reference: installation methods
| Method | Command | Notes |
|---|---|---|
| Manual binary | Download terraform.exe from HashiCorp and place in C:\Terraform | Add C:\Terraform to system Path |
| WinGet (recommended) | winget install --id HashiCorp.Terraform | Simple install/uninstall; may require restarting shells |
| Chocolatey | choco install terraform -y | Useful if you already manage packages with Chocolatey |
| macOS (context) | brew tap hashicorp/tap && brew install hashicorp/tap/terraform | Homebrew example (not for Windows) |
| Debian/Ubuntu (context) | See apt example above | apt example (not for Windows) |
After changing the system
PATH or installing via a package manager, restart any open PowerShell or command prompt windows so they pick up the updated PATH.Summary
- Manual method: download
terraform.exe, put it inC:\Terraform, and add that folder toPATH. - Recommended: use
winget install --id HashiCorp.Terraformfor a one-line install and easier uninstallation. - Verify your install with
terraform version. - Optionally use Chocolatey if it fits your workflow.
Links and references
- HashiCorp Terraform installation: https://developer.hashicorp.com/terraform/install
- Visual Studio Code (recommended editor for Terraform): https://code.visualstudio.com/Download
- WinGet documentation: https://learn.microsoft.com/windows/package-manager/winget/
- Chocolatey: https://chocolatey.org/