Skip to documentation
Docs navigation
Docs/migrate
CLI

migrate

Create or update MemoGrafter-owned PostgreSQL infrastructure.

Purpose

Create or update MemoGrafter-owned PostgreSQL infrastructure.

Command

terminal
npx memo-grafter migrate

Behavior

Requires a reachable PostgreSQL database.
Manages required extensions and mg_* tables only.
Application-owned tables remain in the application migration system.

Troubleshooting

Run the command from the package that contains MemoGrafter.
Confirm environment variables are loaded in the current shell.
Use --help to inspect options supported by the installed version.