Windows & Linux

CLI release

Coming January 2027. The dbHydrate command-line tool isn't available yet. These preview docs describe the planned first release; commands and options may change.
Browse CLI documentation

dbHydrate CLI documentation

Compare, rehearse and apply PostgreSQL, MySQL and SQL Server schema changes from your terminal or CI pipeline.

Windows & LinuxIncluded with every licenseSame engine as the desktop app
On this page

Get started

The CLI uses connection and run files exported from the desktop app. Start with a saved schema profile, then follow the same compare, rehearse and apply workflow on your computer or CI runner.

Command reference

dbHydrate CLI commands
CommandUse it to
compareReport differences between source and target schemas.
dry-runRehearse the changes and review each step.
applyApply the reviewed changes to the named target.
file inspectCheck an exported file’s purpose, expiry and signature.
helpLook up a command or documentation topic.
Example command
dbhydrate compare --run release.dbhrun --report report.md

In CI, check the exit code and report together. A comparison can return code 1 for differences or an incomplete result.

How the workflow works

  1. Export. Save the connections and schema choices from the desktop app in an encrypted run file.
  2. Compare and rehearse. Review the schema differences, then use a dry run to check the changes before applying them.
  3. Apply and keep the report. Confirm the target database name and preserve the results in your pipeline.

Read how a run works for the license checks and safeguards, or follow the CI pipeline guides for GitHub Actions, GitLab CI and Azure DevOps.

All CLI documentation

  • Quick startA walkthrough of the planned dbHydrate CLI: export a run file from the desktop app, then compare, rehearse and apply a schema change from a terminal.
  • How it worksWhat happens when the planned dbHydrate CLI runs: exported files, the license check, seat leases, signed run tokens, and what happens if the service is down.
  • Install the dbHydrate CLIHow to download, verify and run the planned dbHydrate command-line tool on Windows and Linux, plus the network access and proxy settings it needs.
  • Export connections and run filesCreate encrypted connection and run files in the dbHydrate desktop app for use with the CLI: passphrases, passwords, lifetimes, labels and revoking.
  • Licenses, trials and seatsWhat licenses and trials can run with the planned dbHydrate CLI, how seats and run leases work in CI, and why apply needs the seat’s license key.
  • Command referenceThe planned dbHydrate CLI commands and options: compare, dry-run, apply, file inspect and help, with environment variables, outputs and examples.
  • Exit codes and reportsThe planned dbHydrate CLI exit codes for CI pipelines, how to handle them in Bash and PowerShell, and what compare, dry-run and apply reports contain.
  • Use the CLI in CI pipelinesPlanned dbHydrate CLI examples for GitHub Actions, GitLab CI and Azure DevOps: report schema drift on pull requests and apply after approval.
  • Database enginesHow the planned dbHydrate CLI compares, rehearses and applies schema changes on PostgreSQL, MySQL and SQL Server, and the safeguards for each engine.
  • Security and data handlingHow dbHydrate CLI files are encrypted, what the licensing service stores and never stores, how revoking works, and the safeguards on every planned run.
  • TroubleshootingFixes for common dbHydrate CLI problems: passphrases, expired or revoked files, busy seats, licensing refusals, proxies and database connections.
  • Frequently asked questionsAnswers about the planned dbHydrate CLI: release date, price, platforms, trials, CI systems, offline use, seats, data handling and what it doesn’t do.
  • Scope and roadmapWhat the first release of the dbHydrate CLI includes, what stays in the desktop app, and what is planned after launch: Docker, macOS and more.

Requirements

  • Windows x64 or Linux x64. Docker and macOS are planned for later releases.
  • The dbHydrate desktop app to export connection and run files.
  • A runner that can reach your databases and api.dbhydrate.com. The first release requires internet access for licensing.
  • An active license or trial for compare and dry run. Applying changes needs an active license and the exporting seat's license key.

The first release covers schema compare, dry run and apply. Data copy, masking and data generation remain in the desktop app. See scope and roadmap for the full release boundaries.