WP-CLI Command
WP Migrate includes integration with WP-CLI, allowing you to run migrations from the command line. It adds the migrate
command which can be run from the CLI as follows:
$ wp migrate ...
In WP Migrate 2.3, the migrate
command was introduced as an alias for the existing migratedb
command. The two commands function the same, however migrate
is the preferred usage going forward.
Subcommands
export |
Save migrated database as an SQL file |
find-replace |
Run a find & replace on the database |
push |
Run a push migration |
pull |
Run a pull migration |
profiles |
Outputs a list of saved migration profiles |
profile |
Run a migration using a saved migration profile |
setting |
Update WP Migrate DB Pro settings from the CLI |
import |
Import a SQL export file from the CLI |