Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Liquibase CLI

$ liquibase Official Med Risk
Liquibase · Database & Data · Functional Source License (FSL-1.1-ALv2) / Commercial · macos / linux / windows

Liquibase tracks, versions, and deploys database schema changes across 60+ relational and NoSQL engines using SQL, YAML, XML, or JSON changelogs. Provides liquibase status, liquibase validate, and liquibase update-sql to preview exact SQL before execution.

FCRS-1.0 Score
76 /100
Good
Medium Confidence
Zero-Friction Install
brew install liquibase
CLI vs MCP Decision CLI Only

Enterprise Liquibase changelogs, JDBC drivers, and update-sql previews run directly through the liquibase CLI in CI/build pipelines.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
✓ Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 18 / 25

Non-interactive flags and LIQUIBASE_COMMAND_* env vars work well in CI, though status and update-sql output text/SQL rather than JSON.

  • Supports validate, update-sql, and LIQUIBASE_COMMAND_* env vars; lacks universal --json
Trust & Safety 21 / 25

update-sql and rollback-sql dry-run equivalents give complete SQL visibility prior to mutation, though drop-all is high-risk.

  • Dedicated update-sql preview command before applying migrations
Setup & Portability 10 / 15

Requires a JVM runtime and database-specific JDBC driver JARs on classpath.

  • JVM dependency plus JDBC drivers
Utility & Efficiency 13 / 15

Industry-standard migration engine supporting 60+ databases and structured rollback tracking.

  • Broadest enterprise database support and rollback semantics
Maintenance & Lineage 7 / 10

Long-standing official tool (liquibase/liquibase), though recent FSL license shift affects open-source perception.

  • Official liquibase/liquibase repo under FSL / commercial licensing
Docs & Verifiability 7 / 10

Extensive enterprise documentation covering commands, properties, and JDBC setups.

  • Official docs at docs.liquibase.com/commands

Security, Auth & Guardrails

Auth Modes
Config File Env API Key
Credential Storage

Connection URL, user, and password via liquibase.properties, CLI flags (--url, --username), or LIQUIBASE_COMMAND_* env vars.

Side Effects
Read-Only Local Write Remote Write Destructive
Cost & Quotas

Community features are free under FSL; Pro checks, drift detection, and commercial support require paid licensing.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Liquibase CLI Agent Rules
- Always run `liquibase validate` and `liquibase update-sql` before `liquibase update`.
- Pass credentials via `LIQUIBASE_COMMAND_PASSWORD` env vars instead of CLI args.
- NEVER execute `liquibase drop-all` or `rollback-to-date` autonomously.

Agent-Ready Command Recipes

Safe Read-Only Queries

Validate changelog syntax before running
liquibase validate --changelog-file=changelog.sql

Checks changelog formatting and changeset IDs without modifying the database.

Preview pending SQL via update-sql
liquibase update-sql --changelog-file=changelog.sql --url="$JDBC_URL"

Emits the exact SQL statements that liquibase update would execute without applying them.

Controlled Writes & Previews

Inspect unapplied changesets with status
liquibase status --verbose --changelog-file=changelog.sql --url="$JDBC_URL"

Lists pending changesets against the target database before applying.

Strengths for Agents

  • + liquibase update-sql and rollback-sql provide exact SQL dry-run output before touching the database.
  • + Supports SQL, YAML, XML, and JSON changelogs across 60+ databases.
  • + Environment variable configuration (LIQUIBASE_COMMAND_*) avoids secret leakage in shell history.

Caveats & Pitfalls

  • ! Heavy JVM startup latency and JDBC driver classpath management.
  • ! Recent versions moved from Apache-2.0 to Functional Source License (FSL).

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI