BlueForge Docs

forge db-migrate

Run database migrations for the latest deployment.

Command

forge db-migrate [--app <name>] [--wait]

Arguments

None.

Flags

FlagTypeDefaultNotes
--app
stringProject or app name filter
--wait
bool
false
Stream SSE logs until migration completes

Examples

Run migrations:

forge db-migrate

Migrate specific app:

forge db-migrate --app my-api

Wait for completion:

forge db-migrate --wait

Errors

Exit codeMeaning
0Migration completed successfully
1Migration failed

Pitfalls

  • Linked project — targets the project linked via
    forge link
    in the current directory.
  • SSE streaming
    --wait
    uses Server-Sent Events to stream migration logs in real time.

See also

{auto-injected}

Tested against

{auto-injected}