Skip to main content
Generate a new migration file with its test file inside a module. The migration is named automatically from a timestamp version, the migrations.ts export file is regenerated, and the module’s bin/migration/up.ts and bin/migration/down.ts runners are created if they do not already exist.

Usage

talos migration:create [options]

Examples

talos migration:create
talos migration:create --module=blog

Options

OptionDescriptionDefault
--moduleModule the migration is created in.shared

AI Skill

This command ships a matching migration:create skill. It teaches your AI agent to generate a migration file and its test, then complete the up() and down() implementations for the schema change using @talosjs/migrations.
talos claude:init