# 使用 Homebrew, Nix, scoop 安装 structurizr-cli

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

## 安装

```sh
sudo av install brew:structurizr-cli
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install structurizr-cli
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#structurizr-cli
```

  证据: nixpkgs package indexes: pkgs/by-name/st/structurizr-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Scoop (92%):

```sh
scoop install extras/structurizr-cli
```

  证据: Scoop official bucket manifest trees: bucket/structurizr-cli.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:structurizr-cli
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/structurizr-cli>
- **版本:** 2025.11.09
- **来源摘要:** Command-line utility for Structurizr
- **主页:** <https://docs.structurizr.com/cli>
- **仓库:** <https://github.com/structurizr/cli>
- **上游文档:** <https://docs.structurizr.com/cli>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/structurizr/cli/releases/download/v2025.11.09/structurizr-cli.zip>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- structurizr-cli (cli)
- structurizr-cli (别名)

## 依赖

- openjdk

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2025.11.09
- 本地数据: OK
- 上游仓库: https://github.com/structurizr/cli
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

Structurizr CLI is the command-line companion to the Structurizr DSL, built for teams that keep software architecture models and diagrams in version control. It packages C4-model diagram workflows into commands that can be run locally, in Docker, or in CI.

### 项目历史

Official documentation describes the CLI as a utility used with Structurizr DSL. Its command set covers pushing and pulling workspaces, locking and unlocking workspaces, exporting diagrams, merging layout data, listing elements, validating workspaces, and inspecting workspaces.

The current official documentation marks Structurizr CLI as end-of-life and directs users to the newer consolidated Structurizr commands. That places the Homebrew formula in a legacy-tooling role for users and CI pipelines that still depend on the older standalone CLI.

### 采用历史

The official installation page documents local zip installation, Docker use, Homebrew on macOS, Scoop on Windows, GitHub Actions, GitLab CI examples, and a Gradle plugin. The input package facts also show Homebrew, Nix, and Scoop distribution.

### 使用方式

Typical CLI usage is architecture-as-code automation: export a `workspace.dsl` or JSON workspace to PlantUML, Mermaid, WebSequenceDiagrams, DOT, Ilograph, static HTML, or JSON; validate workspaces in CI; and push/pull workspaces to Structurizr cloud or on-premises installations.

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

Package maintainers care about Structurizr CLI because it made C4-model architecture diagrams scriptable. It is a Java-based command-line artifact with cross-platform launchers, Docker images, and package-manager formulas that fit naturally into repository-centric documentation workflows.

### 时间线

- Current: Official docs describe Structurizr CLI as end-of-life and recommend migrating to new consolidated commands.
- Current: Official installation docs list Homebrew, Scoop, Docker, GitHub Actions, GitLab CI, and Gradle integration paths.

### Related projects

- Structurizr DSL, Structurizr cloud service, Structurizr on-premises, Structurizr local/server commands, PlantUML, Mermaid, WebSequenceDiagrams, DOT, Ilograph, and C4-PlantUML are documented as related parts of the CLI workflow.

### 来源

- <https://docs.structurizr.com/cli>
- <https://docs.structurizr.com/cli/installation>
- <https://docs.structurizr.com/dsl>
- source_facts.package-manager


## 安全说明

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:** structurizr-cli
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** yes
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- Nix - structurizr-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/st/structurizr-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Scoop - extras/structurizr-cli: normalized package name match | Scoop official bucket manifest trees: bucket/structurizr-cli.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1


## 相关链接

- [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.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [openjdk](https://pkg.so/zh-hans/brew/openjdk/) - Runtime dependency declared by Homebrew.
- [structurizr](https://pkg.so/zh-hans/brew/structurizr/) - Package name indicates the same formula family.
- [overarch](https://pkg.so/zh-hans/brew/overarch/) - Shares pkgdb curated category or tags: c4-model, cli, developer-tools, software-architecture.
- [plantuml](https://pkg.so/zh-hans/brew/plantuml/) - Shares pkgdb curated category or tags: cli, developer-tools, diagrams.
- [d2](https://pkg.so/zh-hans/brew/d2/) - Shares pkgdb curated category or tags: cli, developer-tools, diagrams.
- [mermaid-cli](https://pkg.so/zh-hans/brew/mermaid-cli/) - Shares pkgdb curated category or tags: cli, developer-tools, diagrams.
- [terramaid](https://pkg.so/zh-hans/brew/terramaid/) - Shares pkgdb curated category or tags: cli, developer-tools, diagrams.
- [likec4](https://pkg.so/zh-hans/brew/likec4/) - Shares pkgdb curated category or tags: c4-model, cli, developer-tools.
- [bpmnlint](https://pkg.so/zh-hans/brew/bpmnlint/) - Shares pkgdb curated category or tags: cli, developer-tools, diagrams.
- [bundletool](https://pkg.so/zh-hans/brew/bundletool/) - Local package facts share a topical domain. Shared terms: cli, command-line, developer, developer-tools, line.

## Combined YAML source

View the package source record on GitHub. [combined/structurizr-cli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/structurizr-cli.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
- external package-manager database matches
- cross-ecosystem install command graph
