pgdesign v0.26.0 /pgdesign diff
On this page

Reference for the pgdesign diff command — usage, flags, arguments, and examples for the diff subcommand of the pgdesign CLI.

#pgdesign diff

Compare schema file(s) or directory against another target

Effect: read_only

#Flags

Flags
NameShortTypeDefaultEnvDescription
--jsonboolOutput the schema diff in machine-readable JSON format
--livestrPGDESIGN_DBPostgreSQL connection URL for live database comparison
--againststrPath to TOML schema file or directory to compare against
--basestrGit ref to compare the current schema against (e.g., main)

#Arguments

Arguments
NameRequiredDescription
pathyesPath to TOML schema file(s) or directory containing them
Search