Introducing Agent Safe Governance for the AI Era

What support does Liquibase have for Node.js?

Last updated: November 18, 2025

Liquibase supports a rich pool of Liquibase Commands to keep your database up-to-date, like update, rollback, and diff. This package exposes both a CLI tool and a library to help you with your database migration efforts.

You can use these commands with NPM as you would with Liquibase by itself with the correct syntax. The NPM CLI tool is used just like Liquibase with node- in front of all commands. This integration allows you to utilize Liquibase in apps designed with JavaScript and TypeScript.

CLI Method

You can use this NPM package as a CLI tool under the namespace node-liquibase.

To run the status command with NPM, run node-liquibase status in the CLI.

loading

loading

Library project file method

The project file method allows you to write code in a .json file and then call on it in the CLI. This way you do not have to specify all of the details directly in the CLI and you can reuse the file and run the same commands more than once.

Procedure

Node apps often use a package.json file to define dependencies and commands. The below .json example defines which version of the Liquibase node library to use, which version of the node package manager to use, and a build command.

Node apps often use a package.json file to define dependencies and commands. The below .json example defines which version of the Liquibase node library to use, which version of the node package manager to use, and a build command.

loading

Method 1

  1. Run npm run build in the CLI to enable Node package manager. This command will call on your package.json file and build the package manager.

Method 2

  1. Run node main.jsin the CLI to enable Node package manager. This command will call on your JavaScript file and build the package manager.

Typescript example
loading
Javascript example
loading
Secure 5.1: What support does Liquibase have for Node.js?