# 使用 Homebrew 安装 terratag

查看 terratag 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install terratag
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:terratag
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/terratag>
- **版本:** 0.7.6
- **来源摘要:** CLI to automate tagging for AWS, Azure & GCP resources in Terraform
- **主页:** <https://www.terratag.io/>
- **仓库:** <https://github.com/env0/terratag>
- **上游文档:** <https://www.terratag.io/>
- **许可证:** MPL-2.0
- **源码归档:** <https://github.com/env0/terratag/archive/refs/tags/v0.7.6.tar.gz>
- **最后更新:** 2026-07-26T00:50:37+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- terratag (cli)
- terratag (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.7.6
- 管理器更新时间: 2026-07-26
- 本地数据: OK
- 上游仓库: https://github.com/env0/terratag
- 检测到的最新版本: v0.7.6 (当前)
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

- 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.

### 来源

- <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.


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **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


## 相关链接

- [Cloud CLI packages](https://pkg.so/zh-hans/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [terragrunt](https://pkg.so/zh-hans/brew/terragrunt/) - Shares pkgdb curated category or tags: cli, developer-tools, iac, terraform.
- [tenv](https://pkg.so/zh-hans/brew/tenv/) - Shares pkgdb curated category or tags: cli, developer-tools, terraform, terragrunt.
- [terramate](https://pkg.so/zh-hans/brew/terramate/) - Shares pkgdb curated category or tags: cli, developer-tools, iac, terraform.
- [iam-policy-json-to-terraform](https://pkg.so/zh-hans/brew/iam-policy-json-to-terraform/) - Shares pkgdb curated category or tags: aws, cli, developer-tools, terraform.
- [terragrunt-atlantis-config](https://pkg.so/zh-hans/brew/terragrunt-atlantis-config/) - Shares pkgdb curated category or tags: cli, developer-tools, terraform, terragrunt.
- [terrahash](https://pkg.so/zh-hans/brew/terrahash/) - Shares pkgdb curated category or tags: cli, developer-tools, iac, terraform.
- [terrahelp](https://pkg.so/zh-hans/brew/terrahelp/) - Shares pkgdb curated category or tags: cli, developer-tools, iac, terraform.
- [tfenv](https://pkg.so/zh-hans/brew/tfenv/) - Shares pkgdb curated category or tags: cli, developer-tools, terraform.

## Combined YAML source

View the package source record on GitHub. [combined/terratag.yml](https://github.com/mxcl/pkgdb/blob/main/combined/terratag.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
