# 使用 Homebrew 安装 awsdac

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

## 安装

```sh
sudo av install brew:awsdac
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install awsdac
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:awsdac
- **软件包管理器:** Homebrew
- **版本:** 0.23
- **来源摘要:** CLI tool for drawing AWS architecture
- **主页:** <https://github.com/awslabs/diagram-as-code>
- **仓库:** <https://github.com/awslabs/diagram-as-code>
- **最后更新:** 2026-07-30T12:47:52Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- awsdac (别名)
- awsdac-mcp-server (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.23
## 项目历史与用法

awsdac is the command-line interface for AWS Labs' Diagram-as-code project, a YAML-driven tool for drawing AWS architecture diagrams without a browser or heavyweight image pipeline.

### 项目历史

The `awslabs/diagram-as-code` repository was created in February 2024 and began publishing 0.x releases almost immediately. Its README presents the project as a way to manage diagrams with Git, write human-readable YAML, and generate AWS architecture diagrams that follow AWS diagram guidelines.

The project later expanded beyond a single CLI into a Go library and `awsdac-mcp-server`, with documentation for CloudFormation conversion, templating, resource definitions, links, and AI assistant integration.

### 采用历史

awsdac's adoption is early but visible for a young AWS Labs tool: the repository is under the official `awslabs` organization, has Homebrew packaging, and has accumulated public GitHub attention since 2024. It fits the broader infrastructure-as-code habit of keeping generated artifacts and their source definitions in version control.

The tool targets teams that want architecture diagrams to live beside IaC and documentation, rather than in manually edited drawing files.

### 使用方式

Users install with `go install github.com/awslabs/diagram-as-code/cmd/awsdac@latest` or `brew install awsdac`, then run `awsdac <input filename>` to render YAML into an output image. Flags cover output filenames, templates, CloudFormation conversion, and definition-file overrides.

Because it draws from declarative YAML rather than cloud credentials, no AWS credentials file is documented as required for normal diagram generation.

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

awsdac is a package-manager-friendly example of documentation automation: one CLI turns versioned text into visual architecture diagrams. For package nerds, its appeal is that the rendering tool can be pinned in CI and used without a GUI, headless browser, or SaaS diagram editor.

Its presence in Homebrew also shows how AWS Labs experiments can move quickly into developer workstation tooling when they are delivered as a single Go CLI.

### 时间线

- 2024: Public GitHub repository `awslabs/diagram-as-code` created.
- 2024: v0.10 release published.
- 2024: v0.21.x releases expand the early 0.x line.
- 2026: v0.23 release published with additional diagram features.

### Related projects

- AWS Architecture Icons and guidelines provide the visual vocabulary referenced by the project.
- Infrastructure-as-code tools such as CloudFormation are adjacent inputs; the project documents beta CloudFormation conversion.
- MCP integrations are exposed by the `awsdac-mcp-server` executable.

### 来源

- <https://api.github.com/repos/awslabs/diagram-as-code>
- <https://api.github.com/repos/awslabs/diagram-as-code/releases?per_page=100>
- <https://github.com/awslabs/diagram-as-code>
- <https://github.com/awslabs/diagram-as-code/tree/main/doc>
- <https://raw.githubusercontent.com/awslabs/diagram-as-code/main/README.md>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal


## Combined YAML source

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


## 来源

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