# 使用 Homebrew 安装 terramaid

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

## 安装

```sh
sudo av install brew:terramaid
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install terramaid
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:terramaid
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/terramaid>
- **版本:** 2.15.3
- **来源摘要:** Utility for generating Mermaid diagrams from Terraform configurations
- **主页:** <https://github.com/RoseSecurity/Terramaid>
- **仓库:** <https://github.com/RoseSecurity/Terramaid>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/RoseSecurity/Terramaid/archive/refs/tags/v2.15.3.tar.gz>
- **最后更新:** 2026-07-26T00:50:37+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- terramaid (cli)
- terramaid (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

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

Terramaid is a RoseSecurity CLI that turns Terraform configurations and plans into Mermaid diagrams for documentation and review workflows.

### 项目历史

The public repository was created in May 2024. The README presents Terramaid as a utility for creating Mermaid diagrams from Terraform configurations and explains that it converts infrastructure resources and plans into diagrams that can be used in documentation and collaboration.

The project sits at the intersection of Terraform, Mermaid, and CI documentation. Its README shows generated Mermaid flowchart output, supports CLI parameters and environment variables, and documents Homebrew, Go, apt, Nix, source, Docker, GitHub Actions, and GitLab CI/CD usage paths.

### 采用历史

The project is newer and adoption appears early-stage. Repository metadata showed a small public audience by July 2026, while the README already documented several package and CI distribution paths, indicating an intent to make the tool easy to drop into developer and pipeline environments.

### 使用方式

The main workflow is terramaid run, optionally pointing at a working directory, Terraform binary, Terraform plan file, output path, chart type, direction, and subgraph name.

In CI, Terramaid can generate diagram artifacts from Terraform configurations or plans so reviewers get visual context alongside infrastructure changes.

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

For package nerds, Terramaid is interesting because it packages documentation generation as a normal CLI install. The same tool can be reached through Homebrew, Go install, apt repository setup, Nix flakes, Docker, or source builds.

### 时间线

- 2024: Public GitHub repository created.
- 2024: README documents Terraform-to-Mermaid diagram generation and multiple installation channels.
- 2026: Homebrew metadata lists terramaid as a brew formula.

### Related projects

- Terraform supplies the configuration and plan input.
- Mermaid supplies the diagram syntax emitted by Terramaid.
- OpenTofu is listed among repository topics and occupies the same IaC ecosystem.

### 来源

- Input package metadata: source_facts.package-manager, source_facts.package-manager-url
- README: https://github.com/RoseSecurity/Terramaid#readme
- Repository metadata: https://api.github.com/repos/RoseSecurity/Terramaid


## 安全说明

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:** terramaid
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** yes
- **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.
- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control 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.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [mermaid-cli](https://pkg.so/zh-hans/brew/mermaid-cli/) - Shares pkgdb curated category or tags: cli, developer-tools, diagrams, documentation, mermaid.
- [plantuml](https://pkg.so/zh-hans/brew/plantuml/) - Shares pkgdb curated category or tags: cli, developer-tools, diagrams, documentation.
- [merman-cli](https://pkg.so/zh-hans/brew/merman-cli/) - Shares pkgdb curated category or tags: cli, developer-tools, diagrams, mermaid.
- [terragrunt](https://pkg.so/zh-hans/brew/terragrunt/) - Shares pkgdb curated category or tags: cli, developer-tools, terraform.
- [tfenv](https://pkg.so/zh-hans/brew/tfenv/) - Shares pkgdb curated category or tags: cli, developer-tools, terraform.
- [sphinx-doc](https://pkg.so/zh-hans/brew/sphinx-doc/) - Shares pkgdb curated category or tags: cli, developer-tools, documentation.
- [doxygen](https://pkg.so/zh-hans/brew/doxygen/) - Shares pkgdb curated category or tags: cli, developer-tools, documentation.
- [terraform-docs](https://pkg.so/zh-hans/brew/terraform-docs/) - Shares pkgdb curated category or tags: cli, developer-tools, terraform.
- [tfupdate](https://pkg.so/zh-hans/brew/tfupdate/) - Local package facts share a topical domain. Shared terms: cli, configurations, developer, developer-tools, terraform.
- [action-docs](https://pkg.so/zh-hans/brew/action-docs/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, developer, developer-tools, documentation.

## Combined YAML source

View the package source record on GitHub. [combined/terramaid.yml](https://github.com/mxcl/pkgdb/blob/main/combined/terramaid.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
