Generate a changelog with diff-types

Last updated: November 18, 2025

Procedure

1

Decide which data types you want to include. You can specify these with the --diff-types parameter.

2

Open your CLI and run the following command.

loading

Liquibase then generates your changelog and displays the following message:

Generated changelog written to example-changelog.xml Liquibase command 'generate-changelog' was executed successfully.

BEST PRACTICE: The changelog generated by diffChangeLog/generateChangeLog should be inspected for correctness and completeness before being deployed. Some database objects and their dependencies cannot be represented automatically, and they may need to be manually updated before being deployed.