The dibs TUI/CLI
dibs provides both a TUI (terminal UI) and a CLI for working with your schema.
The TUI
Running dibs without arguments launches the interactive terminal UI:
bash
dibs The TUI lets you:
- Browse your schema (tables, columns, constraints)
- View migration status and detect drift
- Inspect individual migrations
- See what would change if you ran
dibs diff
Screenshots coming soon.
CLI Commands
Schema inspection
bash
dibs schema # Pretty-print the schema
dibs schema --plain # Plain text output
dibs schema --sql # Show as SQL DDL Migrations
bash
dibs diff # Compare schema against live database
dibs generate-from-diff < name> # Generate a migration from the diff
dibs generate < name> # Create a blank migration skeleton
dibs migrate # Apply pending migrations
dibs status # Show migration status How the CLI spawns your schema
When you run CLI commands, dibs:
- Reads
.config/dibs.styxto find your db crate - Spawns
cargo run -p my-app-db --(or uses a prebuilt binary) - The child process connects back to the CLI via a local TCP port
- The CLI sends schema requests and the db binary responds
This keeps the dibs CLI lightweight — your schema stays in your own crate.