Documentation

WP-CLI Command

WP Migrate DB includes integration with WP-CLI, allowing you to run migrations from the command line. It adds the migratedb command which can be run from the CLI as follows:

$ wp migratedb ...

Subcommands

export Save migrated database as an SQL file Available in all versions
find-replace Run a find & replace on the database Available in all versions
push Run a push migration Available with CLI Addon
pull Run a pull migration Available with CLI Addon
profiles Outputs a list of saved migration profiles Available with CLI Addon
profile Run a migration using a saved migration profile Available with CLI Addon
setting Update WP Migrate DB Pro settings from the CLI Available with CLI Addon
import Import a SQL export file from the CLI Available with CLI Addon
migrate Alias of the profile subcommand above. Deprecated