# Install terratag with Homebrew

CLI to automate tagging for AWS, Azure & GCP resources in Terraform. Version 0.7.6 via Homebrew; verified 2026-06-14.

## Install

```sh
sudo av install brew:terratag
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install terratag
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:terratag
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/terratag>
- **Version:** 0.7.6
- **Source summary:** CLI to automate tagging for AWS, Azure & GCP resources in Terraform
- **Homepage:** <https://www.terratag.io/>
- **Repository:** <https://github.com/env0/terratag>
- **Upstream docs:** <https://github.com/env0/terratag#readme>
- **License:** MPL-2.0
- **Source archive:** <https://github.com/env0/terratag/archive/refs/tags/v0.7.6.tar.gz>
- **Last updated:** 2026-06-14T15:13:52+02:00
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- terratag (cli)
- terratag (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.7.6
- Package-manager updated: 2026-06-14
- Local data: ok
- Upstream repository: https://github.com/env0/terratag
- Upstream latest detected: v0.7.6 (current)
## Project history and usage

Terratag is env0's CLI for applying tags or labels across Terraform, Terragrunt, and OpenTofu infrastructure files. Its official site and README frame the tool around retroactive, cross-cloud tagging for AWS, GCP, and Azure resources.

### Project history

Terratag grew out of the practical problem that cloud cost, ownership, and governance tags are easy to miss when infrastructure code is already spread across modules and providers. The project is presented as part of the env0 platform, but the CLI remains an independently installable open-source tool.

### Adoption history

The adoption surface is intentionally package-manager oriented: the official usage path starts with Homebrew or a release binary, then runs Terraform or OpenTofu initialization before rewriting IaC files with generated tag blocks. The GitHub page lists many releases, indicating an actively versioned CLI rather than a one-off script.

### How it is used

Package-manager users install Terratag when they need a local, repeatable way to normalize tags in Terraform-family repositories. It is especially relevant in audits, cost-allocation cleanups, and env0 workflows where tags such as environment or project identifiers must be applied consistently.

### Why package nerds care

Terratag matters to package nerds because it packages a governance chore as a normal CLI: install, init providers, run against a directory, and review generated Terraform files. It is narrower than a full IaC scanner, but useful when tagging policy is the specific problem.

### Timeline

- 2020: Public Terratag project appears in the env0 ecosystem.
- 2025: GitHub page lists v0.7.6 as latest release on December 17, 2025.
- 2026: Official README documents OpenTofu 1.x and Terraform 0.12 through 1.x prerequisites.

### Related projects

- Terratag is related to Terraform, Terragrunt, OpenTofu, cloud tagging policy, and env0 environment-management workflows.

### Sources

- <https://github.com/env0/terratag official README, prerequisites, and examples.>
- <https://www.terratag.io/ official site describing env0 ownership, Homebrew installation, and cross-cloud tagging usage.>
- source_facts.package-manager lists Homebrew packaging.


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** terratag
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## Related links

- [Cloud CLI packages](https://www.automicvault.com/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [iam-policy-json-to-terraform](https://www.automicvault.com/pkg/brew/iam-policy-json-to-terraform/) - Shares av.db curated category or tags: aws, cli, developer-tools, infrastructure-as-code, terraform.
- [terragrunt](https://www.automicvault.com/pkg/brew/terragrunt/) - Shares av.db curated category or tags: cli, developer-tools, iac, infrastructure-as-code, terraform.
- [terrahash](https://www.automicvault.com/pkg/brew/terrahash/) - Shares av.db curated category or tags: cli, developer-tools, iac, infrastructure-as-code, terraform.
- [terrahelp](https://www.automicvault.com/pkg/brew/terrahelp/) - Shares av.db curated category or tags: cli, developer-tools, iac, infrastructure-as-code, terraform.
- [terramate](https://www.automicvault.com/pkg/brew/terramate/) - Shares av.db curated category or tags: cli, developer-tools, iac, infrastructure-as-code, terraform.
- [k2tf](https://www.automicvault.com/pkg/brew/k2tf/) - Shares av.db curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [terraform-inventory](https://www.automicvault.com/pkg/brew/terraform-inventory/) - Shares av.db curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [terraform-module-versions](https://www.automicvault.com/pkg/brew/terraform-module-versions/) - Shares av.db curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.

## Combined YAML source

View the package source record on GitHub. [combined/terratag.yml](https://github.com/automic-vault/db/blob/main/combined/terratag.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
