dpg diff

dpg diff

Diff two DPG source directories and print the SQL migration

Synopsis

Compares two DPG database-scoped source directories and prints the SQL migration required to go from the base state (–from) to the desired state (–to). No snapshot or database connection is required.

dpg diff [flags]

Options

      --from string   source directory representing the base state (required)
  -h, --help          help for diff
      --to string     source directory representing the desired state (required)

Options inherited from parent commands

  -C, --dir string   project root directory (default: current working directory)
      --env string   path to .env file (default: .env in project root, if present)

SEE ALSO

  • dpg - Declarative PG — schema compiler and migration tool
Auto generated by spf13/cobra on 26-Aug-2026