DBMate

DBMate

Lightweight framework-agnostic standalone database migration CLI written in Go, usable from Go, Node.js, Python, Ruby, PHP, Rust, C++ or any other language, with plain SQL timestamp-versioned migrations, atomic transactional runs, schema.sql diff export, .env loading, migration locking and drivers for PostgreSQL, MySQL, MariaDB, SQLite, ClickHouse, BigQuery and Spanner.

DBMate at github.com/amacneil/dbmate is a free MIT framework-agnostic Go migration CLI usable from Go Node Python Ruby PHP Rust C++ and other languages, plain SQL timestamp-versioned migrations, atomic transactional runs, schema.sql git diff export, .env loading, migration locking, PostgreSQL MySQL MariaDB SQLite ClickHouse BigQuery Spanner drivers, single binary with NPM Homebrew Linux Scoop Docker GHCR installs, no SaaS upsell, GitHub source and docs, no sold commercial tier (data as of Nov 22, 2026).

Visit Official Website

*This is an affiliate link, we may earn a commission at no extra cost to you.

Is DBMate free?

DBMate: DBMate is free open-source software under the MIT License, a standalone command line migration tool that keeps the database schema in sync across multiple developers and production servers. It writes plain SQL migrations named by timestamp to avoid version conflicts between developers, runs migrations atomically inside a transaction where supported, can create and drop databases in development and test, saves a schema.sql file for git diffs, reads the connection URL from DATABASE_URL or a .env file, and ships as a single self-contained binary with NPM, Homebrew, Linux, Windows Scoop, Docker and GHCR installs. The project README states it does not upsell a SaaS service; source code and documentation are published on GitHub, and no paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Check the official page for current status before relying on it.

Frequently Asked Questions

Is DBMate free?

The code is free to self-host, but a hosted plan from the vendor may not be. DBMate publishes its source, so cost depends on where you run it.

How much does DBMate cost?

DBMate is free open-source software under the MIT License, a standalone command line migration tool that keeps the database schema in sync across multiple developers and production servers. It writes plain SQL migrations named by timestamp to avoid version conflicts between developers, runs migrations atomically inside a transaction where supported, can create and drop databases in development and test, saves a schema.sql file for git diffs, reads the connection URL from DATABASE_URL or a .env file, and ships as a single self-contained binary with NPM, Homebrew, Linux, Windows Scoop, Docker and GHCR installs. The project README states it does not upsell a SaaS service; source code and documentation are published on GitHub, and no paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Usage volume, plan limits and add-ons can push the bill above the figures shown, so confirm the current numbers on the vendor page before committing.

Where can I check DBMate's current pricing?

On DBMate's official site, linked from this page. We only publish a price after reading the vendor's own pricing page, so if this page shows no number, it means no traceable public price is on file — not that the tool is free.

What is DBMate?

A new migration file splits into migrate:up and migrate:down SQL sections; pending files apply in numerical order, status shows which have run, dump writes the current schema to schema.sql, and the optional migration lock prevents concurrent instances from racing on the same database.

How does pricing work?

DBMate is free MIT with no seat license; install the binary or NPM dev dependency and run it against your own database, and any hosted database or commercial support you buy is outside the tool license.

How does DBMate compare with other tools in Dev Workflow & Productivity?

DBMate is listed in the Dev Workflow & Productivity category, alongside 2 other tools we track here. 2 of those 2 peers have a dated price we read from the vendor's own pricing page, and the table below shows each tool's pricing model next to the exact rate on file — so the comparison is between published numbers, not between marketing pages.

ToolPricing modelKey pricing on filePrice checked
DBMateOpen sourceDBMate is free open-source software under the MIT License, a standalone command line migration tool that keeps the database schema in sync across multiple developers and production servers. It writes plain SQL migrations named by timestamp to avoid version conflicts between developers, runs migrations atomically inside a transaction where supported, can create and drop databases in development and test, saves a schema.sql file for git diffs, reads the connection URL from DATABASE_URL or a .env file, and ships as a single self-contained binary with NPM, Homebrew, Linux, Windows Scoop, Docker and GHCR installs. The project README states it does not upsell a SaaS service; source code and documentation are published on GitHub, and no paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).Nov 22, 2026
golang-migrateOpen sourcegolang-migrate is free open-source software under the MIT License, forked from mattes/migrate and maintained by the golang-migrate project. Each migration carries an up and a down SQL file; the CLI wraps the library, handles SIGINT gracefully, has no config search paths or magic environment injection, and the Go API is stable and frozen for v3 and v4, thread-safe with graceful stop and bring-your-own logger. Source code, CLI and library are published on GitHub; no paid commercial edition or per-seat license is sold by the project, while third-party support or consulting may be offered separately under their own terms (data as of Nov 22, 2026).Nov 22, 2026
node-pg-migrateOpen sourcenode-pg-migrate is free open-source software under the MIT License, published on npm and maintained by an active maintainer team. It requires Node.js 20.11 or higher and PostgreSQL 13 or higher, with the pg library installed as a direct or dev dependency; migration files export up and down functions that receive a pgm object, and the operation stack builds SQL while passing user values through directly instead of forcing framework-specific type constants. Source code and documentation are published on GitHub and the project docs site; no paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).Nov 22, 2026

3 of these 3 entries carry a specific price we read from the vendor's site. Where the column says there is no dated price on file, we have not verified a rate — treat that as unknown rather than free, and check the vendor's page before you budget for it.

Full pricing breakdown

DBMate's source code is publicly available, so you can run or build it yourself. The project may also sell a paid hosted or cloud plan — check the official site for current pricing.

Open source does not always mean every hosted version is free.

Key pricing: DBMate is free open-source software under the MIT License, a standalone command line migration tool that keeps the database schema in sync across multiple developers and production servers. It writes plain SQL migrations named by timestamp to avoid version conflicts between developers, runs migrations atomically inside a transaction where supported, can create and drop databases in development and test, saves a schema.sql file for git diffs, reads the connection URL from DATABASE_URL or a .env file, and ships as a single self-contained binary with NPM, Homebrew, Linux, Windows Scoop, Docker and GHCR installs. The project README states it does not upsell a SaaS service; source code and documentation are published on GitHub, and no paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).

Estimate your monthly bill with our calculator →Or build a full stack around your budget →

Pricing Guides & Comparisons

Plan prices in these guides are read from each vendor's own pricing page, with the date we checked them.

⭐ Rate this tool

How would you rate this tool?

🚀 Never Miss a New AI Coding Tool

Join 1,000+ developers getting our weekly roundup: new AI tools, student free tiers, exclusive discounts, and side project deals. No spam, unsubscribe anytime.

Current Alternatives

Tool Information

  • Official Websitegithub.com
  • CategoryDev Workflow & Productivity
  • PricingOpen Source
  • Price checkedNov 22, 2026

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates