# 使用 Homebrew 安装 swiftplantuml

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

## 安装

```sh
sudo av install brew:swiftplantuml
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install swiftplantuml
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:swiftplantuml
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/swiftplantuml>
- **版本:** 0.8.1
- **来源摘要:** Generate UML class diagrams from Swift sources
- **主页:** <https://marcoeidinger.github.io/SwiftPlantUML/>
- **仓库:** <https://github.com/MarcoEidinger/SwiftPlantUML>
- **上游文档:** <https://marcoeidinger.github.io/SwiftPlantUML/>
- **许可证:** MIT
- **源码归档:** <https://github.com/MarcoEidinger/SwiftPlantUML/archive/refs/tags/0.8.1.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- swiftplantuml (cli)
- swiftplantuml (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.8.1
- 本地数据: OK
- 上游仓库: https://github.com/MarcoEidinger/SwiftPlantUML
- 检测到的最新版本: 0.8.1 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

SwiftPlantUML is a Swift CLI and Swift Package that generates PlantUML class diagrams from Swift source. It occupies a smaller but recognizable package-manager niche: source-code documentation tooling that can be installed with Homebrew or Mint and run from a project checkout.

### 项目历史

The GitHub repository was created in January 2021. The official README describes a command-line tool and Swift Package for generating class diagrams powered by PlantUML from Swift files.

The project grew around SourceKit-backed Swift source inspection. Its README documents command-line operation, Swift Package use, an Xcode source editor extension, and configuration through `.swiftplantuml.yml`.

### 采用历史

Official installation instructions include Homebrew, Mint, and source builds. The README also notes that the Homebrew installation previously used the maintainer's tap before the plain `brew install swiftplantuml` command became available.

GitHub release metadata shows public releases through the 0.8.x series in 2024. Compared with SwiftLint or SwiftFormat, the official record supports a narrower adoption story centered on diagram generation rather than general Swift build hygiene.

### 使用方式

Common usage is running `swiftplantuml` or the default `classdiagram` subcommand against files or directories containing Swift sources. The tool can emit or view generated PlantUML output and can use `.swiftplantuml.yml` for includes, excludes, access-level filtering, relationship display, and theming.

Because SwiftPlantUML hooks into SourceKit, the README tells users to run it with the same Swift toolchain used to compile the code.

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

SwiftPlantUML matters to package nerds as an example of a small Swift CLI that packages compiler-adjacent source inspection into a reusable tool. Its Homebrew and Mint support make architecture documentation reproducible without requiring every developer to build from source.

It also shows the packaging friction around SourceKit tools: the binary is simple to install, but correctness can still depend on the active Swift/Xcode toolchain.

### 时间线

- 2021: GitHub repository created.
- 2024: GitHub release metadata lists 0.8.0 and 0.8.1 releases.
- 2024: Generated API documentation was updated for the 0.8.1 release.

### Related projects

- Related projects include PlantUML, SourceKit, SwiftFormat, SwiftLint, Mint, Homebrew, and the separate SwiftPlantUML Xcode extension.

### 来源

- <https://api.github.com/repos/MarcoEidinger/SwiftPlantUML>
- <https://github.com/MarcoEidinger/SwiftPlantUML#readme>
- <https://marcoeidinger.github.io/SwiftPlantUML>
- input.source_facts.package-manager


## 安全说明

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

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** swiftplantuml
- **Version Scheme:** 0
- **Revision:** 0
- **Requirements:** macos, xcode
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [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.
- [overarch](https://pkg.so/zh-hans/brew/overarch/) - Shares pkgdb curated category or tags: cli, developer-tools, diagram-generation, plantuml, uml.
- [clang-uml](https://pkg.so/zh-hans/brew/clang-uml/) - Shares pkgdb curated category or tags: cli, developer-tools, plantuml, uml.
- [xcbeautify](https://pkg.so/zh-hans/brew/xcbeautify/) - Shares pkgdb curated category or tags: cli, developer-tools, swift.
- [swiftlint](https://pkg.so/zh-hans/brew/swiftlint/) - Shares pkgdb curated category or tags: cli, developer-tools, swift.
- [mint](https://pkg.so/zh-hans/brew/mint/) - Shares pkgdb curated category or tags: cli, developer-tools, swift.
- [xcodegen](https://pkg.so/zh-hans/brew/xcodegen/) - Shares pkgdb curated category or tags: cli, developer-tools, swift.
- [sourcekitten](https://pkg.so/zh-hans/brew/sourcekitten/) - Shares pkgdb curated category or tags: cli, developer-tools, swift.
- [swiftformat](https://pkg.so/zh-hans/brew/swiftformat/) - Shares pkgdb curated category or tags: cli, developer-tools, swift.
- [eralchemy](https://pkg.so/zh-hans/brew/eralchemy/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, diagram, diagram-generation.

## Combined YAML source

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