dbml-cli
« Back to VersTracker
Description:
Convert DBML file to SQL and vice versa
Type: Formula  |  Latest Version: 5.3.1@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Databases
Tags: database sql dbml schema cli developer-tools
Install: brew install dbml-cli
About:
DBML (Database Markup Language) is a simple, readable DSL for defining database schemas. The dbml-cli tool allows developers to parse DBML files and generate SQL scripts for various database systems like PostgreSQL, MySQL, and MS SQL Server. It also provides the reverse capability to import existing database schemas into the DBML format for better documentation and version control.
Key Features:
  • Bi-directional conversion between DBML and SQL
  • Support for multiple SQL dialects (PostgreSQL, MySQL, MS SQL)
  • Schema validation and linting capabilities
  • CLI tool for easy integration into build pipelines
Use Cases:
  • Generating database migration scripts from schema definitions
  • Documenting existing database schemas in a human-readable format
  • Syncing database schemas across different environments
Alternatives:
  • SchemaSpy – Focuses on documentation generation rather than bidirectional conversion
  • SQLAlchemy – Python ORM with schema generation, but requires Python runtime and is more complex
Version History
Detected Version Rev Change Commit
Dec 24, 2025 9:55pm 5.3.1 0 VERSION_BUMP b0a7947c
Nov 4, 2025 7:54am 0 VERSION_BUMP a5441eb0
Oct 28, 2025 7:58am 0 VERSION_BUMP 16e33580
Sep 16, 2025 2:49pm 0 VERSION_BUMP fb8e0dfc
Dec 15, 2024 11:23am 0 VERSION_BUMP 2620234c
Oct 30, 2024 9:29am 0 VERSION_BUMP e2be4b80
Sep 13, 2024 1:24pm 0 VERSION_BUMP 27dfc7ae
Sep 13, 2024 12:34pm 0 VERSION_BUMP 6b594eb4