Running liquibase in .cmd file

I created a cmd file with these 3 commands, but only the first is executed…

liquibase --outputFile=test_snapshot.json snapshot --url=jdbc:postgresql://

liquibase diffChangeLog --url=jdbc:postgresql:// --referenceUrl=offline:postgresql?snapshot=test_snapshot.json

liquibase --url=jdbc:postgresql:// update

and other two rows are not executed even if the first command didn’t fail
Why ?


Hi @dubhe Thanks for joining our community.

Is this a windows command file or a linux command file?
If it is a windows command file you may need to wrap the lines with call statements.
If this is linux then each of the lines should execute.