Skip to content

CLI Commands

Complete reference for all Astroladb (alab) CLI commands


CommandDescription
initInitialize project structure (schemas/, migrations/, types/)
tableCreate a new table schema file
liveStart local server for live API documentation
exportExport schema (openapi, graphql, typescript, go, python, rust)

CommandDescription
newCreate a migration (auto-generated from schema changes)
migrateApply pending migrations
rollbackRoll back migrations (default: 1 step)
resetDrop all tables and re-run migrations (development only)

CommandDescription
schemaShow schema at a specific migration revision
statusShow schema, history, verification, and drift (TUI)
typesRegenerate TypeScript definitions for IDE support
metaExport schema metadata to a JSON file