macOS
brew install dbmatelocal Homebrew formula metadata
安装
brew install dbmatelocal Homebrew formula metadata
sudo apk add dbmateAlpine Linux edge package indexes · dbmate · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#dbmatenixpkgs package indexes · pkgs/by-name/db/dbmate/package.nix · 来源: api.github.com
sudo pacman -S dbmateArch Linux sync databases · dbmate · 来源: geo.mirror.pkgbuild.com
scoop install main/dbmateScoop official bucket manifest trees · bucket/dbmate.json · 来源: api.github.com
winget install --id amacneil.dbmate -eWindows Package Manager source index · amacneil.dbmate · 来源: cdn.winget.microsoft.com
概览
Lightweight, framework-agnostic database migration tool
历史
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.
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.
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.
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.
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.
安全态势
broad file, network, media, or database tool signal.
blue 风险 · 中 置信度 · tool
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
<project-root>/.envpaths supplied with --env-fileCredential-bearing paths to review before unattended agent runs.
<project-root>/.envpaths supplied with --env-file可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
dbmate | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/amacneil/dbmate
安装元数据
| 软件包键 | brew:dbmate |
|---|---|
| 版本 | 2.37.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/dbmate |
| 主页 | https://github.com/amacneil/dbmate |
| 仓库 | https://github.com/amacneil/dbmate |
| 许可证 | MIT |
| 源码归档 | https://github.com/amacneil/dbmate/archive/refs/tags/v2.37.0.tar.gz |
| 最后更新 | 2026-10-18T20:23:02Z |
| Pulse | updated |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_golden_gate, arm64_linux, arm64_sequoia, arm64_tahoe, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | dbmate |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
dbmate
nix profile install nixpkgs#dbmatedbmate 2.35.0-r0
Lightweight, framework-agnostic database migration tool
https://github.com/amacneil/dbmate
sudo apk add dbmatedbmate-doc 2.35.0-r0
Lightweight, framework-agnostic database migration tool (documentation)
https://github.com/amacneil/dbmate
sudo apk add dbmate-docdbmate 2.35.1-1
A lightweight, framework-agnostic database migration tool
https://github.com/amacneil/dbmate
sudo pacman -S dbmatemain/dbmate
scoop install main/dbmateamacneil.dbmate
winget install --id amacneil.dbmate -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.