fuel migrate:initfuel migrate:init
Generate and run the initial database migrations for an existing project.
Usage
fuel migrate:init [options]Description
Starts Docker, waits for PostgreSQL to become healthy, generates an initial TypeORM migration from the current schema, runs it, and optionally commits the migration files. This is useful when the initial migration step was skipped during fuel create:app.
Options
| Flag | Description | Default |
|---|---|---|
-p, --path <path> | Path to the project root. | current directory |
--skip-commit | Skip the git commit after migrations are generated and run. | — |
Examples
Generate and run migrations in the current project
fuel migrate:initRun migrations without committing
fuel migrate:init --skip-commitRun migrations in a specific project
fuel migrate:init --path /path/to/projectLive Demo
Simulated terminal output for fuel migrate:init. Press replay to restart.
fuel migrate:init
$