All-in-One WP Migration Unlimited Extension WP CLI Integration

All-in-One WP Migration Unlimited Extension WP CLI Integration

Using the command line interface, All-in-One WP Migration Unlimited Extension integrates with WP-CLI. It adds backup and restore commands for the CLI.

Backup

Creates a new backup file.
Example:

wp ai1wm backup
Backup in progress... 
Success: Backup complete. 
Backup file: migration-wp-20260715-142646-cesazr.wpress 
Backup location: /home/user/wordpress/wp-content/ai1wm-backups/migration-wp-20260715-142646-cesazr.wpress

wp ai1wm backup

OPTIONDESCRIPTIONEXAMPLE
[--password[=<password>]]Create a backup file that is encrypted and protected with a password.wp ai1wm backup --password=MySecurePass123
[--compression[=]]Create a backup file using the specified compression type.wp ai1wm backup --compression=gzip
[--exclude-spam-comments]Creates a backup file without spam comments.wp ai1wm backup --exclude-spam-comments
[--exclude-post-revisions]Creates a backup file without post revisions.wp ai1wm backup --exclude-post-revisions
[--exclude-media]Creates a backup file without media library files.wp ai1wm backup --exclude-media
[--exclude-themes]Creates a backup file without any themes.wp ai1wm backup --exclude-themes
[--exclude-inactive-themes]Creates a backup file without currently inactive themes.wp ai1wm backup --exclude-inactive-themes
[--exclude-muplugins]Creates a backup file without must-use plugins.wp ai1wm backup --exclude-muplugins
[--exclude-plugins]Creates a backup file without plugins.wp ai1wm backup --exclude-plugins
[--exclude-inactive-plugins]Creates a backup file without currently inactive plugins.wp ai1wm backup --exclude-inactive-plugins
[--exclude-cache]Creates a backup file without cache files.wp ai1wm backup --exclude-cache
[--exclude-database]Creates a backup file without the database.wp ai1wm backup --exclude-database
[--exclude-files[=<comma_separated_paths>]]Create a backup file that excludes selected files and folders.wp ai1wm backup --exclude-files=uploads/some-folder,plugins/some-plugin
[--exclude-tables[=<comma_separated_names>]]Create a backup file that excludes selected database tables.wp ai1wm backup --exclude-tables=wp_comments,wp_commentmeta
[--include-tables[=<comma_separated_names>]]Create a backup file that includes only the selected database tables.wp ai1wm backup --include-tables=wp_posts,wp_postmeta
[--exclude-email-replace]Creates a backup file without replacing email domain. wp ai1wm backup --exclude-email-replace
[--replace "find" "replace"]Finds and replaces text in the database. Use --replace flag before each pair for replacement.wp ai1wm backup --replace "wordpress" "WordPress"
SIMULTANEOUS USEAll options be used simultaneously except --list can. Replace option could be used between other options. wp ai1wm backup--exclude-inactive-themes --replace "find" "replace" --exclude-cache --replace "old text" "new text"

List backups

List backup files from Unlimited.
Example:

wp ai1wm list-backups

Sample output:

+--------------------------------------------------+---------------------+--------+
| Backup name                                      | Date created        | Size   |
+--------------------------------------------------+---------------------+--------+
| migration-wp-20260715-142646-cesazr.wpress       | July 15, 2026 14:26 | 1.2 GB |
| migration-wp-20260701-093012-xk4f2n.wpress       | July 1, 2026 09:30  | 1.1 GB |
+--------------------------------------------------+---------------------+--------+

Restore backup

Restore a backup from Unlimited.
Example:

wp ai1wm restore migration-wp-00970913-895743-200.wpress.

Sample output:

Restore in progress...
Success: Restore complete.
OPTIONDESCRIPTIONEXAMPLE
[file]Download a backup from a specific file name inside your computer.wp ai1wm restore migration-wp-00970913-895743-200.wpress
[--yes]Auto-confirm the backup on restore.wp ai1wm restore migration-wp-00970913-895743-200.wpress --yes

Browse backup

Browse a backup from Unlimited.
Example:

wp ai1wm browse-backup migration-wp-00970913-895743-200.wpress.

Sample output:

package.json
database.sql
multisite.json
blogs.json
wp-content/plugins/...
wp-content/themes/...
wp-content/uploads/...
OPTIONDESCRIPTIONEXAMPLE
[backup-file]Download a backup from a specific file name inside your computer.wp ai1wm browse-backup migration-wp-00970913-895743-200.wpress

Extract backup

Extract a backup from Unlimited.
Example:

wp ai1wm extract-backup migration-wp-00970913-895743-200.wpress --extract-path=/tmp/test

Sample output:

Extracting backup...
Success: Backup extracted to /tmp/test
OPTIONDESCRIPTIONEXAMPLE
[backup-file]
[--extract-path]

Download a backup from a specific file name inside your computer.
[--extract-path]
Create a destination folder path to extract your backup.
wp ai1wm extract-backup migration-wp-09913-89573-2100.wpress --extract-path=/tmp/test