# 使用 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
- **版本:** 2025.11.09
- **来源摘要:** Command-line utility for Structurizr
- **主页:** <https://docs.structurizr.com/cli>
- **仓库:** <https://github.com/structurizr/cli>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- structurizr-cli (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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


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