# 使用 Homebrew 安装 dbml-cli

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dbml-cli
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:dbml-cli
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/dbml-cli>
- **版本:** 9.1.1
- **来源摘要:** Convert DBML file to SQL and vice versa
- **主页:** <https://www.dbml.org/cli/>
- **上游文档:** <https://www.dbml.org/cli/>
- **许可证:** Apache-2.0
- **源码归档:** <https://registry.npmjs.org/@dbml/cli/-/cli-9.1.1.tgz>
- **最后更新:** 2026-08-01T10:34:31Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- db2dbml (cli)
- dbml2sql (cli)
- sql2dbml (cli)
- db2dbml (别名)
- dbml2sql (别名)
- sql2dbml (别名)

## 依赖

- node

## 安装行为

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

## 版本和新鲜度

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

DBML CLI is the command-line packaging of DBML, the open-source Database Markup Language maintained by Holistics for describing database schemas in a readable, database-agnostic DSL.

### 项目历史

DBML grew out of dbdiagram.io, which Holistics says it started in August 2018 after failing to find a database-structure design tool it liked. The syntax behind dbdiagram.io was later separated into DBML after a year of real-world use.

### 采用历史

Holistics reports that the original dbdiagram.io syntax reached more than 100,000 diagrams created by 60,000 users before DBML was formalized, and the DBML site reported 2.5 million DBML docs and 1.4 million users across dbdiagram.io and dbdocs.io as of February 2025.

### 使用方式

The CLI converts DBML to SQL, SQL to DBML, and live database schemas to DBML, giving package users a local way to keep database diagrams, docs, and SQL DDL in a repo-friendly text format.

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

For package-manager users, dbml-cli is a compact bridge between schema-as-code workflows and visual/documentation tools: it exposes DBML as shell commands such as dbml2sql, sql2dbml, and db2dbml instead of tying the workflow to a hosted UI.

### 时间线

- 2018: Holistics begins dbdiagram.io and the syntax that becomes DBML.
- 2019: DBML is formalized after a year of dbdiagram.io usage.
- 2025: Official DBML statistics report 2.5 million docs and 1.4 million users.

### Related projects

- DBML is tied to dbdiagram.io, dbdocs.io, RunSQL, and the @dbml/core JavaScript package, with community parsers and editor plugins listed by the official project.

### 来源

- <https://dbml.dbdiagram.io/home>
- <https://dbml.dbdiagram.io/cli>
- <https://github.com/holistics/dbml>


## 安全说明

没有找到 dbml-cli 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** dbml-cli
- **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.
- [dbmate](https://pkg.so/zh-hans/brew/dbmate/) - Shares pkgdb curated category or tags: cli, database, developer-tools, sql.
- [pgformatter](https://pkg.so/zh-hans/brew/pgformatter/) - Shares pkgdb curated category or tags: cli, database, developer-tools, sql.
- [pg-schema-diff](https://pkg.so/zh-hans/brew/pg-schema-diff/) - Shares pkgdb curated category or tags: cli, database, developer-tools, sql.
- [libpq](https://pkg.so/zh-hans/brew/libpq/) - Shares pkgdb curated category or tags: cli, database, developer-tools.
- [mongosh](https://pkg.so/zh-hans/brew/mongosh/) - Shares pkgdb curated category or tags: cli, database, developer-tools.
- [pgcli](https://pkg.so/zh-hans/brew/pgcli/) - Shares pkgdb curated category or tags: cli, database, developer-tools.
- [neonctl](https://pkg.so/zh-hans/brew/neonctl/) - Shares pkgdb curated category or tags: cli, database, developer-tools.
- [sqlc](https://pkg.so/zh-hans/brew/sqlc/) - Shares pkgdb curated category or tags: cli, code-generation, database, developer-tools, sql.
- [sqlboiler](https://pkg.so/zh-hans/brew/sqlboiler/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, code, code-generation, database, developer.
- [json2ts](https://pkg.so/zh-hans/brew/json2ts/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, code, code-generation, developer, developer-tools.
- [quicktype](https://pkg.so/zh-hans/brew/quicktype/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, code, code-generation, developer, developer-tools.

## Combined YAML source

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