Instead of sqlx-cli
sqlx-cli alternatives
sqlx-cli is a free, open-source command-line utility for SQLx projects. It creates and drops databases named by `DATABASE_URL`, creates, runs, inspects, and reverts SQL migrations, and supports paired up and down scripts. Its `cargo sqlx prepare` command stores query metadata in `.sqlx`, allowing checked-in metadata to support builds without an active database connection. A CI check reports when that metadata is outdated. It runs on Linux, macOS, and Windows and supports PostgreSQL, MySQL, MariaDB, and SQLite, with selectable database-driver and TLS features during installation.
- 1
Skeema
Free plan LinuxMacWindowsMySQL and MariaDB declarative schema workflows — Skeema manages declarative CREATE-based schemas with diff, lint, push, pull, and online alteration workflows instead of SQLx query metadata.
- 2
Sqitch
Free plan LinuxMacSelf-hosted+1Framework-independent, dependency-aware database changes — Sqitch uses native database scripts, dependency declarations, plan files, and Merkle-tree integrity across more database engines than sqlx-cli.
- 3
Atlas
Free plan Open source APILinuxMac+3Declarative or versioned schemas with migration validation — Atlas compares desired HCL, SQL, or ORM schemas with databases, generates plans, and adds linting, safety checks, integrations, and Pro drivers.
Free plan · paid from $9/user/mo · 30-day trial Visit site - 4
dbmate
Free plan LinuxMacSelf-hosted+1Language-independent timestamped SQL migrations — Dbmate runs timestamp-versioned plain SQL migrations across several languages, supports atomic transactions, and maintains a reviewable schema snapshot.
Open source Visit site - 5
FluentMigrator
Free plan LinuxMacSelf-hosted+1.NET teams writing versioned C# migrations — FluentMigrator uses a fluent C# API with Up and Down methods, version tracking, preview, validation, and .NET CLI execution.
Free plan Visit site - 6
golang-migrate
Free plan LinuxMacSelf-hosted+1Go applications needing CLI or migration library use — golang-migrate is both a CLI and Go library, reads migrations from many remote or embedded sources, and supports more drivers than sqlx-cli.
Open source Visit site - 7
Goose
Free plan APILinuxMac+2Go or SQL migrations with broad driver coverage — Goose combines CLI and library use, supports SQL or Go migrations, and offers apply, rollback, redo, reset, inspect, and version commands.
- 8
Liquibase
Free plan APIExtensionLinux+3 - 9
db-migrate
Free plan LinuxSelf-hosted - 10
Doctrine Migrations
Free plan LinuxSelf-hosted - 11
DbUp
Free plan Self-hosted - 12
Evolve
Free plan LinuxWindows - 13
Refinery
Free plan LinuxMacSelf-hosted+1 - 14
migrate-mongo
Free plan LinuxSelf-hosted - 15
pt-online-schema-change
Free plan LinuxSelf-hosted - 16
SchemaHero
Free plan LinuxMacSelf-hosted+2 - 17
node-pg-migrate
Free plan APISelf-hosted - 18
Phinx
Free plan Self-hosted - 19
Ridgepole
Free plan Self-hosted - 20
pg-schema-diff
Free plan Self-hosted - 21
- 22
Umzug
Free plan Self-hosted - 23
DB Change Manager
Free trial Windows - 24
gh-ost
Free plan LinuxMac - 25
DBmaestro
Paid APISelf-hosted - 26
sqldef
Paid LinuxMacSelf-hosted+2 - 27
yoyo-migrations
Paid Self-hosted
Readers may look elsewhere for declarative schema management, broader database coverage, language-independent workflows, framework-specific tooling, or hosted integrations. sqlx-cli is free, but its workflow centers on Rust commands and database URLs supplied through a flag, environment variable, or `.env` file. MSSQL support is unavailable pending a driver rewrite. When switching, weigh each tool’s migration format, rollback and dependency handling, safety checks, database range, execution environment, CI integrations, and pricing. Some alternatives add schema diffing, validation, cloud workflows, or library APIs, while others focus on straightforward SQL migration execution.