# 使用 Homebrew 安装 likec4

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

## 安装

```sh
sudo av install brew:likec4
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install likec4
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:likec4
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/likec4>
- **版本:** 1.59.2
- **来源摘要:** Architecture modeling tool with live diagrams from code
- **主页:** <https://likec4.dev>
- **上游文档:** <https://likec4.dev>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/likec4/-/likec4-1.59.2.tgz>
- **最后更新:** 2026-07-23T21:47:02Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- likec4 (cli)
- likec4 (别名)

## 依赖

- graphviz
- node

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.59.2
- 管理器更新时间: 2026-07-23
- 本地数据: OK
- 上游仓库: https://likec4.dev
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

LikeC4 is an architecture-as-code toolkit for describing software architecture in a textual DSL and generating live, interactive diagrams from that model. Its name reflects its relationship to the C4 model while deliberately allowing custom notation, element types, and nesting beyond the strict C4 levels.

### 项目历史

The project appeared publicly with early 0.x tags in 2024 and grew as a TypeScript/Node-based toolchain around a domain-specific language, CLI, web viewer, editor support, and generated artifacts. The README describes LikeC4 as inspired by the C4 Model and Structurizr DSL, but aimed at more flexible notation and model depth.

### 采用历史

LikeC4's adoption has followed the broader move from hand-edited architecture diagrams to diagrams-as-code workflows. Its CLI supports preview, static-site builds, image and data exports, and generated React/Web Component artifacts, which made it easy to put architecture diagrams into repositories, documentation sites, CI, and IDE workflows.

### 使用方式

Users write architecture models in LikeC4 files, run the CLI to preview or build diagrams, and keep those models under version control with the rest of the system. The package is most relevant to teams that want architecture documentation to change through code review instead of through separate drawing tools.

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

For package nerds, LikeC4 is a modern example of a documentation tool distributed like a developer CLI: a fast-moving npm-centered project that also lands in Homebrew so architecture modeling can be installed next to compilers, formatters, and static-site tooling.

### 时间线

- 2024-04-20: The v0.6.0 tag was published in the public GitHub repository.
- 2025: Discussions and releases show LikeC4 expanding around multi-project workflows and Vite-style integration.
- 2026: The LikeC4 site described a toolkit for modeling, visualizing, validating, exporting, and embedding architecture from code.

### Related projects

- LikeC4 is closely related to Simon Brown's C4 model, Structurizr DSL, Mermaid, D2, PlantUML/C4-PlantUML, and documentation systems that embed generated diagrams. Its generated component workflow also connects it to React and web-component publishing.

### 来源

- <https://c4model.com/>
- <https://github.com/likec4/likec4>
- <https://github.com/likec4/likec4/releases/tag/v0.6.0>
- <https://likec4.dev/>
- <https://likec4.dev/tooling/cli/>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: .likec4rc, .likec4.config.json, likec4.config.json, likec4.config.js, likec4.config.mjs, likec4.config.ts, likec4.config.mts
## 源数据库详情

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


## 相关链接

- [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.
- [node](https://pkg.so/zh-hans/brew/node/) - Runtime dependency declared by Homebrew.
- [graphviz](https://pkg.so/zh-hans/brew/graphviz/) - Runtime dependency declared by Homebrew.
- [clang-uml](https://pkg.so/zh-hans/brew/clang-uml/) - Shares pkgdb curated category or tags: cli, developer-tools, diagramming.
- [msc-generator](https://pkg.so/zh-hans/brew/msc-generator/) - Shares pkgdb curated category or tags: cli, developer-tools, diagramming.
- [diagram](https://pkg.so/zh-hans/brew/diagram/) - Shares pkgdb curated category or tags: cli, developer-tools, diagramming.
- [overarch](https://pkg.so/zh-hans/brew/overarch/) - Shares pkgdb curated category or tags: c4-model, cli, developer-tools, diagramming.
- [sdedit](https://pkg.so/zh-hans/brew/sdedit/) - Shares pkgdb curated category or tags: cli, developer-tools, diagramming.
- [svgbob](https://pkg.so/zh-hans/brew/svgbob/) - Shares pkgdb curated category or tags: cli, developer-tools, diagramming.
- [dpic](https://pkg.so/zh-hans/brew/dpic/) - Shares pkgdb curated category or tags: cli, developer-tools, diagramming.
- [plantuml](https://pkg.so/zh-hans/brew/plantuml/) - Shares pkgdb curated category or tags: cli, developer-tools, diagramming.
- [likec4](https://pkg.so/zh-hans/npm/likec4/) - Same normalized package name appears in another local ecosystem. Shared terms: architecture, cli, developer, developer-tools, diagrams.
- [calm-cli](https://pkg.so/zh-hans/brew/calm-cli/) - Both packages touch the same language runtime or ecosystem. Shared terms: architecture, architecture-as-code, cli, code, developer.
- [likec4](https://pkg.so/zh-hans/npm/likec4/) - Same normalized package name in another local ecosystem.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
