Overview of all dext CLI commands.
| Command | Description |
|---|---|
help |
Show all commands |
migrate:up |
Run pending migrations |
migrate:down |
Rollback last migration |
migrate:list |
List migration status |
migrate:generate |
Generate new migration |
test |
Run test suite |
scaffold |
Generate entities from DB |
ui |
Start web dashboard |
config:init |
Initialize configuration |
env:scan |
Scan for Delphi environments |
facade |
Generate Facade Unit |
Run all pending migrations:
dext migrate:upRollback the last applied migration:
dext migrate:downShow migration status:
dext migrate:listOutput:
Migration Status
================
[✓] 001_CreateUsers Applied: 2026-01-05 10:30:00
[✓] 002_AddEmailToUsers Applied: 2026-01-06 14:15:00
[ ] 003_CreateOrders Pending
Create a new migration class:
dext migrate:generate --name CreateProductsdext testdext test --coveragedext test --html --output TestReport.htmldext test --coverage --html --xml --json --output ./reports/Generate entities from database:
dext scaffold -c "mydb.db" -d sqlite -o Entities.pasOptions:
-c, --connection- Connection string-d, --driver- Database driver (sqlite, pg, mssql, firebird)-o, --output- Output file--fluent- Use fluent mapping-t, --tables- Specific tables (comma-separated)
Generate a "Facade Unit" (wildcard unit) that re-exports types and constants from a set of source units. This simplifies the uses clause for end-users.
dext facade -p Sources\Data -t Sources\Data\Dext.Entity.pas -x Dext.EntityOptions:
-p, --path- Source directory to scan for Pascal units.-t, --target- Target output file (Pas file).-x, --target-unit- The name of the target unit (e.g.,Dext.Entity).--verbose- Enable verbose logging.
Start the web monitoring UI:
dext ui
dext ui --port 8080Visit http://localhost:3000 (or specified port).