# 使用 Homebrew 安装 terratag

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install terratag
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:terratag
- **软件包管理器:** Homebrew
- **版本:** 0.7.6
- **来源摘要:** CLI to automate tagging for AWS, Azure & GCP resources in Terraform
- **主页:** <https://www.terratag.io/>
- **仓库:** <https://github.com/env0/terratag>
- **最后更新:** 2026-07-26T00:50:37+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- terratag (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.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


## 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
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
