> For the complete documentation index, see [llms.txt](https://notes.mikaelsamvelian.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.mikaelsamvelian.com/devops-knowledge/provisioning/terraform/installation.md).

# Installation

[Homebrew](https://brew.sh/) is a free and open-source package management system for Mac OS X. Install the official [Terraform formula](https://github.com/hashicorp/homebrew-tap) from the terminal.

First, install the HashiCorp tap, a repository of all our Homebrew packages

```
 brew tap hashicorp/tap
```

Now, install Terraform with `hashicorp/tap/terraform`.

```
brew install hashicorp/tap/terraform
```

Install autocompletion

```
terraform -install-autocomplete
```

Update Terraform

```
brew upgrade terraform
```
