v0.1.0

Reference overview

Commands, project files and diagnostic codes at a glance.

databee --help and databee <command> --help are the authoritative reference for flags. This page is the map.

Commands

Command Purpose
init Create an empty project (--dialect postgres|mysql|sqlite|mongodb|mssql)
pull Read a database into the project (--connection, --url, --schema, MongoDB --sample-size, --sample-mode)
inspect Summary and diagnostics
validate, lint Checks, with --fix, --format text|json|sarif; lint --fail-on
snapshot [name] Store the model as an immutable snapshot
generate ddl|dbml|code|alter|data Artifacts from the model
plan show|approve|apply Review, approve and run an ALTER plan
visualize erd|render Diagrams
changeset apply|schema Apply a changeset, print its JSON Schema
undo, revision Take back the last changeset, print the model revision
connection list|test Connection profiles
export [profile], export list|check Data and schema files
import dbml DBML into an empty project
transform, analyze compatibility|fit Convert to another dialect, report loss and fit
migrate plan|preview|approve|execute|resume|verify Migrate with data into PostgreSQL
mcp serve MCP server over stdio (--profile, repeatable)
studio [path] Open the project in Studio

Global options: --project <dir> (default .), --json, --color auto|always|never (human output only; auto colours terminals and honours NO_COLOR).

Environment

Variable Used for
DATABASE_URL Connection URL for pull, plan apply and exports when no profile is given
DATABEE_CONFIG_DIR Directory of connections.toml and approvals/
DATABEE_MASK_KEY Secret for masking in exports

Diagnostic codes

Findings have a stable code and, where possible, the project file and JSON path.

Prefix Area
DB-VAL- model validation
DB-FMT- project file format
PG… and DB-LINT- lint rules and suppressions
PGM… ALTER plan risks
DB-INT- pull: what was not captured, partial samples
DB-CHG- changesets and undo
DB-ALT- ALTER plans
DB-DDL- DDL generation
DB-GEN- code generation
DB-RND- diagram rendering
DB-EXP- exports, subsets, masks, generated data
DB-TRF- transformation and compatibility
DB-MIG- migration
DB-CFG- connection configuration

MCP tools

The full list per profile is in the MCP guide. The agent skill is skills/databee/SKILL.md.

Other

Changelog and the repository.

Edit this page on GitHub · Docs for v0.1.0