[**Documentation**](../../../README)

***

[Documentation](../../../README) / [@zerotal/orm](../README) / 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

```bash
# Run all pending migrations
bun zt migrate

# Scaffold a new model class
bun zt make:model Post
```

## Migrations

- [MigrateCommand](classes/MigrateCommand)
- [MigrateFreshCommand](classes/MigrateFreshCommand)
- [MigrateGenerateCommand](classes/MigrateGenerateCommand)
- [MigrateRollbackCommand](classes/MigrateRollbackCommand)
- [MigrateStatusCommand](classes/MigrateStatusCommand)

## Scaffolding (make:*)

- [MakeFactoryCommand](classes/MakeFactoryCommand)
- [MakeMigrationCommand](classes/MakeMigrationCommand)
- [MakeModelCommand](classes/MakeModelCommand)
- [MakeSeederCommand](classes/MakeSeederCommand)

## Seeding

- [DbSeedCommand](classes/DbSeedCommand)
