Schema tooling (CLI)
Schema commands help you inspect and snapshot the database.
Dump schema
schema:dump writes a SQL file that can be loaded into empty databases before migrations run (useful for CI and fast test setup).
dart run ormed_cli:ormed schema:dump
dart run ormed_cli:ormed schema:dump --database testing
dart run ormed_cli:ormed schema:dump --path database/schema.sql
Prune Dart migration files (optional)
dart run ormed_cli:ormed schema:dump --prune
--prune currently removes *.dart migration files in migrations.directory.
Describe schema
dart run ormed_cli:ormed schema:describe
dart run ormed_cli:ormed schema:describe --json