railway mysql, postgres, and redis add HA commands
Introduced 2026-08-31 · score 0.95
HOW TO USE IT
When managing HA for a Railway MySQL, PostgreSQL, or Redis database, use the corresponding engine command: `railway mysql ha`, `railway postgres ha`, or `railway redis ha`.
railway postgres ha status --service <service>railway postgres ha convert --service <service> --replicas 2railway mysql ha <subcommand> [options]WHY THIS HELPS
Manage high availability for a MySQL, PostgreSQL, or Redis database using the Railway CLI.
BEFORE THIS CHANGE
Use `railway postgres` for HA management; MySQL and Redis HA commands were not available in the CLI.
REQUIREMENTS AND LIMITATIONS
- Version: v5.46.0
- --service <service>: Targets a service by name or ID. The PostgreSQL HA examples use this selector.
- --replicas <count>: Sets the number of replicas for PostgreSQL HA conversion; the documented example uses 2.
- Prerequisite: Install the Railway CLI and authenticate with a Railway account before using it.
- Prerequisite: For PostgreSQL HA conversion, use a supported official Railway PostgreSQL image, pin a supported major version (14–18), and have no custom start command.
- Prerequisite: For MySQL HA conversion, use the official MySQL image or supported Railway MySQL HA data-node image, a supported version (8 or 9) with a versioned tag, and no custom start command.
- MySQL and Redis expose `ha` only; MySQL `pitr` is planned for a next PR, and Redis does not expose `pitr`.
- PostgreSQL exposes `ha`, `pitr`, and `pgbouncer`. The CLI help lists only capabilities supported by each engine.
FIRST-PARTY EVIDENCE
- https://github.com/railwayapp/cli/releases/tag/v5.46.0
- https://github.com/railwayapp/cli/pull/1143
- https://docs.railway.com/databases/postgresql-ha
- https://docs.railway.com/databases/mysql-ha
- https://docs.railway.com/cli
Check the installed version and the source before using it. Entry JSON