#migration #cli #sql #manager

app migra-cli

Simple SQL migration manager for your project

8 releases

new 0.3.1 Mar 1, 2021
0.3.0 Mar 1, 2021
0.2.0 Feb 25, 2021
0.1.4 Feb 22, 2021

#121 in Database interfaces

Download history 6/week @ 2021-01-30 31/week @ 2021-02-06 57/week @ 2021-02-13 48/week @ 2021-02-20 44/week @ 2021-02-27

51 downloads per month


786 lines


CI unsafe forbidden Crates.io Crates.io

Simple SQL migration manager for your project.


cargo install migra-cli

if you want to use dotenv for configure migra cli, just run the following in your terminal.

cargo install migra-cli --features dotenv


A few steps to get you started

  1. Initialize migra configuration (Optional)
    migra init
  2. Make your first migration
    migra make initial_migration
  3. Check applied and pending migrations
    migra ls
  4. Upgrade your database
    migra up

For more information about the commands, simply run migra help

Supported databases

  • Postgres


Licensed under either of these:


~197K SLoC