Skip to main content

run_cli

Function run_cli 

Source
pub async fn run_cli(db: &Db, args: &[String]) -> Result<()>
Expand description

The command line of an app’s migrate binary:

  • migrate or migrate apply: apply pending migrations;
  • migrate status: list migrations and whether each is applied;
  • migrate fresh [--force]: drop everything, then apply all migrations (asks to confirm unless --force).

Run from the project root, where DIR is.