CLI
Synopsis
dibs [OPTIONS] [COMMAND]Options
-V, --version Show version information
-h, --help Show helpEnvironment variables
DATABASE_URL Database connection URL (required for diff/migrate/status/generate-from-diff)
EDITOR Editor used by the TUI to open filesCommands
(default) TUI
bash
dibs migrate
Run pending migrations.
bash
dibs migratestatus
Show applied/pending migration status.
bash
dibs statusdiff
Compare the Rust schema to the live database schema.
bash
dibs diffgenerate NAME
Create an empty migration skeleton.
bash
dibs generate add-users-tablegenerate-from-diff NAME
Generate a migration from the current schema diff.
bash
dibs generate-from-diff add-users-tableschema
Browse/print the current Rust schema.
bash
dibs schema
dibs schema --plain
dibs schema --sql lsp-extension
Run as an LSP extension (invoked by the Styx LSP).