In this tutorial, you will learn how to get up and running with Liquibase.
Begin by downloading the Liquibase CLI tool
You can use one of the following two installation guides depending on your platform:
View the Liquibase Documentation for more information on other ways you can download and install Liquibase.
Liquibase allows you to specify options on the command line, which means the Liquibase CLI does not require configuration.
However, creating a liquibase.properties file allows you to input default values so you don’t have to specify them in the CLI unless you want to. Liquibase will always override a liquibase.properties file in favor of a CLI command.
View the Creating and Configuring a liquibase.properties file topic for more information.
There are two ways Liquibase allows you to define changes to the database:
Choosing this path means that your changes are defined in XML, JSON or YAML formats. Liquibase will create XML formatted changelogs that define your changeSets, then generate and deploy SQL to your database based on those changeSets. Liquibase will also track all database migrations in your changelog.
Choosing this path means that you can define your own changes in SQL format, then deploy those changes to your database automatically. Liquibase supports plain SQL scripts designed to be custom or specific to your database.
In this tutorial we covered: