# 使用 Homebrew 安装 terramaid

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install terramaid
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:terramaid
- **软件包管理器:** Homebrew
- **版本:** 2.15.3
- **来源摘要:** Utility for generating Mermaid diagrams from Terraform configurations
- **主页:** <https://github.com/RoseSecurity/Terramaid>
- **仓库:** <https://github.com/RoseSecurity/Terramaid>
- **最后更新:** 2026-07-26T00:50:37+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- terramaid (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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


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