plan when you need to inspect schema operations before SQL is rendered.
plan runs the same comparison as diff, prints the MigrationPlan JSON, and leaves the filesystem untouched.
Use this when
- Review automation needs operation data.
- A migration looks surprising and you want the planner view.
- You want destructive or blocked operations before rendering SQL.
- Downstream tooling should summarize schema impact.
Run it
Flags
Before-state source. Defaults to
config.sources.from.Desired-state source. Defaults to
config.sources.to.Plan only the comma-separated PostgreSQL schema names.
Print extract and plan timings to stderr.
Exit codes
| Code | Meaning |
|---|---|
0 | Plan printed |
1 | Runtime failure |
2 | Plan diagnostics contained an error |
Related
Diff
Render the plan as replay-safe SQL.
Inspect
See the extracted model behind a source.
Sources
Pick source specifiers for
--from and --to.Hints
Approve blocked destructive changes.

