Liquibase CLI
$ liquibase Official Med RiskLiquibase 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.
brew install liquibase Enterprise Liquibase changelogs, JDBC drivers, and update-sql previews run directly through the liquibase CLI in CI/build pipelines.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
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, andLIQUIBASE_COMMAND_*env vars; lacks universal--json
update-sql and rollback-sql dry-run equivalents give complete SQL visibility prior to mutation, though drop-all is high-risk.
- Dedicated
update-sqlpreview command before applying migrations
Requires a JVM runtime and database-specific JDBC driver JARs on classpath.
- JVM dependency plus JDBC drivers
Industry-standard migration engine supporting 60+ databases and structured rollback tracking.
- Broadest enterprise database support and rollback semantics
Long-standing official tool (liquibase/liquibase), though recent FSL license shift affects open-source perception.
- Official
liquibase/liquibaserepo under FSL / commercial licensing
Extensive enterprise documentation covering commands, properties, and JDBC setups.
- Official docs at docs.liquibase.com/commands
Security, Auth & Guardrails
Connection URL, user, and password via liquibase.properties, CLI flags (--url, --username), or LIQUIBASE_COMMAND_* env vars.
Community features are free under FSL; Pro checks, drift detection, and commercial support require paid licensing.
# 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
liquibase validate --changelog-file=changelog.sql
Checks changelog formatting and changeset IDs without modifying the database.
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
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-sqlandrollback-sqlprovide 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).