Documentation / @zerotal/orm / commands
commands
CLI commands for the Zerotal ORM: database migrations and code scaffolding.
This entry point bundles the Command-derived classes that back the
ORM's bun zt sub-commands — running, refreshing, rolling back, and
inspecting migrations, seeding the database, and generating models,
migrations, factories, and seeders. Register these with the CLI runner to
expose the migrate:*, db:*, and make:* commands in an application.
Example
# Run all pending migrations
bun zt migrate
# Scaffold a new model class
bun zt make:model Post
Migrations
- MigrateCommand
- MigrateFreshCommand
- MigrateGenerateCommand
- MigrateRollbackCommand
- MigrateStatusCommand