plan
command generates a migration plan to apply a desired schema state to a target database schema. It compares the desired state (from a file) with the current state of a specific schema and shows what changes would be applied.
--output-human stdout
- Display to terminal--output-human plan.txt
- Save to file--output-json stdout
- Display to terminal--output-json plan.json
- Save to file--output-sql stdout
- Display to terminal--output-sql migration.sql
- Save to filestdout
. If no output flags are specified, the command defaults to human-readable output to stdout with colors enabled.