Liquibase® version 3.8.5 is now available! Get it for free.
News All Previous Posts >>

Subscribe for email updates

- and/or -

Achieving Continuous Delivery at Fidelity Investments with IBM UrbanCode and Datical

Liquibase First Steps

In this tutorial, you will learn how to get up and running with Liquibase.

Download and Extract Liquibase

Download Icon

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.

Configure 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.

Configure Icon

Choose your Path

There are two ways Liquibase allows you to define changes to the database:

Liquibase Functions

XML Icon

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.

SQL Format

Choosing this path means that you can define your own changes in SQL format. Liquibase will create SQL formatted changelogs that define your changeSets, then generate and deploy those changes to your database automatically. Liquibase supports plain SQL scripts designed to be custom or specific to your database and can even reference multiple script files in your changelogs.

SQL Icon

Summary

In this tutorial we covered:

  • Downloading & Extracting Liquibase
  • How to Configure Liquibase
  • Choosing your Path

Next Up: