Grate is a command-line tool for managing database changes. It runs SQL scripts against a database in a set order and keeps track of what has already been applied, so schema and data changes can be rolled out consistently. It is aimed at developers and teams who maintain SQL-based databases and want their migrations under version control.
The source code is public on GitHub under the MIT license, so it can be inspected, modified and reused freely. The project is listed on winget for Windows, and the maker is listed as erikbra. The short description on the source page reads as a playful take on SQL, and the tool itself is a practical utility for database work.
Alternatives to grate
Products that do a similar job in Developer Tools.
lazygit
Terminal UI for running git commands with keyboard shortcuts
GitKraken CLI
command-line interface for GitKraken services
git-history
Browse the commit history of a single file in a git repository
gitoxide
Pure Rust implementation of Git with a command-line tool
MySQL Shell
Interactive shell for running JavaScript, Python or SQL against MySQL
q
Command-line tool for running SQL queries on CSV and delimited text files
fzf
Command-line fuzzy finder for lists of files, history and any text
ripgrep
command-line search tool that finds regex matches across directory trees