pgschema icon indicating copy to clipboard operation
pgschema copied to clipboard

unknown flag: --output-json

Open allaboutmikey opened this issue 1 year ago • 2 comments

Just downloaded deb package of v1.4.3 and the suggested command in the quick start docs doesn't run.

I use:

PGPASSWORD='mypass' pgschema dump --host hostname --db mydb --user postgres --schema myschema --file my.schema.sql --output-json plan.json --output-human stdout

I get:

Error: unknown flag: --output-json

Is the documentation for an earlier version, or am I doing something else wrong?

allaboutmikey avatar Nov 26 '25 03:11 allaboutmikey

"--output-json" is only applicable to the plan command https://www.pgschema.com/cli/plan#param-output-json

Not the dump command

tianzhou avatar Nov 26 '25 06:11 tianzhou

I apparently blended the two different commands when I was trying to substitute my own database details in. Apologies for the noise.

allaboutmikey avatar Nov 29 '25 21:11 allaboutmikey