Automic VaultAutomic Vault

brew

Install dbmate with Homebrew, apk, Nix, pacman, scoop, winget

Lightweight, framework-agnostic database migration tool. Version 2.33.0 via Homebrew; verified 2026-04-29.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install dbmate

local Homebrew formula metadata

Windows

Scoopverified · 92%
scoop install main/dbmate

Scoop official bucket manifest trees · bucket/dbmate.json · source: api.github.com

Windows Package Managerverified · 92%
winget install --id amacneil.dbmate -e

Windows Package Manager source index · amacneil.dbmate · source: cdn.winget.microsoft.com

overview

Package summary

Lightweight, framework-agnostic database migration tool

Commands and aliases

  • dbmate

history

Project history and usage

Dbmate is a standalone, framework-agnostic database migration tool that keeps schemas in sync across developers and production servers. It uses plain SQL migrations, timestamped migration files, and a command-line workflow that can be shared across languages and frameworks.

Project history

The official GitHub repository was created in November 2015, and its early v0.1 tag points to a December 2015 commit. The README emphasizes that Dbmate can be used with Go, Node.js, Python, Ruby, PHP, Rust, C++, or any other stack, making it independent of a web framework's migration system.

Adoption history

Dbmate spread as a simple binary migration tool for teams that wanted SQL migrations without adopting a framework-specific migrator. The official README documents installation through npm, Homebrew, direct Linux binaries, Scoop on Windows, and GitHub Container Registry images, showing how it fits multiple package ecosystems.

How it is used

A typical project stores DATABASE_URL in the environment or a local .env file, keeps migration files under ./db/migrations by default, and runs commands such as dbmate new, up, migrate, rollback, status, dump, and load. Dbmate also writes schema.sql for diffing schema changes in git.

Why package nerds care

Dbmate is package-nerd friendly because it is boring in the best way: one self-contained binary, plain SQL files, environment-variable configuration, and no service dependency. It is a migration tool that deliberately avoids framework lock-in and SaaS upsell, which makes it easy to slot into mixed-language repos.

Timeline

  • 2015: Official GitHub repository was created.
  • 2015: v0.1 tag appears in the official repository.
  • Present: README documents Dbmate v2-era usage, multi-database support, containers, and package-manager installs.

Related projects

  • The README explicitly frames Dbmate against other database schema migration tools, while its supported database targets include MySQL, MariaDB, PostgreSQL, SQLite, ClickHouse, BigQuery, and Spanner.

security posture

Risk level: blue

broad file, network, media, or database tool signal.

Risk classifier

blue risk · medium confidence · tool

Why

  • broad file, network, media, or database tool signal

Signals

  • text:database

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
dbmatecliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-07
manager version2.33.0
manager updated2026-04-29
local dataok
upstreamcurrent
latest detectedv2.33.0

https://github.com/amacneil/dbmate

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:dbmate
Version2.33.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/dbmate
Homepagehttps://github.com/amacneil/dbmate
Repositoryhttps://github.com/amacneil/dbmate
Upstream docshttps://github.com/amacneil/dbmate#readme
LicenseMIT
Source archivehttps://github.com/amacneil/dbmate/archive/refs/tags/v2.33.0.tar.gz
Last updated2026-04-29T13:56:50Z
Pulseupdated
Build dependenciesgo
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namedbmate
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

dbmate

nix profile install nixpkgs#dbmate
  • normalized package name match
  • Matched by: Dbmate
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/db/dbmate/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

dbmate 2.31.0-r3

Lightweight, framework-agnostic database migration tool

https://github.com/amacneil/dbmate

sudo apk add dbmate
  • License: MIT
  • Architecture: x86_64
  • Source Package: dbmate
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Dbmate
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: dbmate from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

dbmate-doc 2.31.0-r3

Lightweight, framework-agnostic database migration tool (documentation)

https://github.com/amacneil/dbmate

sudo apk add dbmate-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: dbmate
  • normalized package name match
  • Matched by: Dbmate
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: dbmate-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
pacman95%

dbmate 2.33.0-1

A lightweight, framework-agnostic database migration tool

https://github.com/amacneil/dbmate

sudo pacman -S dbmate
  • License: MIT
  • Architecture: x86_64
  • 2 dependencies
  • 2 optional deps
  • normalized package name match
  • Matched by: Dbmate
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: dbmate from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
Scoop95%

main/dbmate

scoop install main/dbmate
  • normalized package name match
  • Matched by: Dbmate
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/dbmate.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

amacneil.dbmate

winget install --id amacneil.dbmate -e
  • normalized package name match
  • Matched by: Dbmate
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: amacneil.dbmate from https://cdn.winget.microsoft.com/cache/source.msix

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment