# Install dbml-cli with Homebrew

Convert DBML file to SQL and vice versa. Version 8.3.0 via Homebrew; verified 2026-07-08.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:dbml-cli
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/dbml-cli>
- **Version:** 8.3.0
- **Source summary:** Convert DBML file to SQL and vice versa
- **Homepage:** <https://www.dbml.org/cli/>
- **Repository:** <https://github.com/holistics/dbml>
- **Upstream docs:** <https://dbml.dbdiagram.io/cli>
- **License:** Apache-2.0
- **Source archive:** <https://registry.npmjs.org/@dbml/cli/-/cli-8.3.0.tgz>
- **Last updated:** 2026-07-08T06:18:27Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- db2dbml (cli)
- dbml2sql (cli)
- sql2dbml (cli)
- db2dbml (alias)
- dbml2sql (alias)
- sql2dbml (alias)

## Dependencies

- node

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 8.3.0
- Package-manager updated: 2026-07-08
- Local data: ok
- Upstream repository: https://www.dbml.org/cli/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

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


## Security Notes

No matching local secret-handling manifest was found for dbml-cli. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **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


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [node](https://www.automicvault.com/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [jet](https://www.automicvault.com/pkg/brew/jet/) - Shares av.db curated category or tags: cli, code-generation, database, developer-tools, sql.
- [sqlboiler](https://www.automicvault.com/pkg/brew/sqlboiler/) - Shares av.db curated category or tags: cli, code-generation, database, developer-tools, sql.
- [sqlc](https://www.automicvault.com/pkg/brew/sqlc/) - Shares av.db curated category or tags: cli, code-generation, database, developer-tools, sql.
- [dbmate](https://www.automicvault.com/pkg/brew/dbmate/) - Shares av.db curated category or tags: cli, database, developer-tools, sql.
- [graphqxl](https://www.automicvault.com/pkg/brew/graphqxl/) - Shares av.db curated category or tags: cli, code-generation, developer-tools, schema.
- [harlequin](https://www.automicvault.com/pkg/brew/harlequin/) - Shares av.db curated category or tags: cli, database, developer-tools, sql.
- [pg-schema-diff](https://www.automicvault.com/pkg/brew/pg-schema-diff/) - Shares av.db curated category or tags: cli, database, developer-tools, sql.
- [pgformatter](https://www.automicvault.com/pkg/brew/pgformatter/) - Shares av.db curated category or tags: cli, database, developer-tools, sql.

## Combined YAML source

View the package source record on GitHub. [combined/dbml-cli.yml](https://github.com/automic-vault/db/blob/main/combined/dbml-cli.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
