{ "name": "MU Migration", "slug": "mu-migration", "version": "0.6.0", "download_url": "https://gitea.mulligan.casa/wordpress/wp-updates/raw/branch/main/mu-migration/mu-migration-0.6.0.zip", "homepage": "https://gitea.mulligan.casa/wordpress/mu-migration", "requires": "6.1", "tested": "7.0", "requires_php": "8.1", "last_updated": "2026-10-06 19:50:32", "author": "Mike Mulligan", "author_homepage": "https://gitea.mulligan.casa/mmulligan", "tags": [ "multisite", "migration", "wp-cli", "export", "import" ], "sections": { "description": "

MU Migration adds a wp mu-migration command family to WP-CLI. It exports a site's tables, users, and optionally its plugins, themes and uploads into one zip package, then imports that package into a multisite network as a new or existing subsite, or into a single site. On import it rewrites the table prefix, remaps user ids into the network's shared users table, runs the URL and uploads-path search-replaces, and performs the housekeeping a moved site needs.

\n

This is a maintained fork of MU-Migration, created by Nícholas André at 10up and archived on 2 March 2026. The fork runs on current PHP, ships as an ordinary plugin with self-hosted updates, and plans every run before it does anything.

\n

Commands

\n\n

Plan, refuse, confirm, apply

\n

Every command first builds a plan by running its real logic against recording executors: reads are real, and every write becomes a plan step with its exact arguments. The dump is copied, rewritten and scanned inside a private work directory, and each search-replace runs as wp search-replace --dry-run --report so the plan carries real counts. The plan is printed before anything is applied.

\n\n

Acknowledgement flags

\n\n

Two more flags request behaviour that is off by default, and the confirmation lists them: --dangerously-allow-guid-rewrite (search-replaces otherwise always skip the guid column) and --dangerously-allow-database-redirects (dumps with USE, database-qualified names or a REFERENCES into another database are otherwise refused; allowing them prints a DANGER warning even under --quiet, because such statements can write outside the backed-up database).

\n

Every flag is bare: a value or a --no- negation is refused. Former spellings, such as --blog_id or --allow-drop-tables, are refused with the name that replaced them.

\n

Safety behaviour

\n\n

A run that completed prints, last, the commands that undo it: the same lines a failure would print. Recovery after a failure is printed guidance, never executed. Its restore of the backup is wp db import - < '<backup>', run from a shell, so the restore also stops at the first statement that fails. A failed filesystem step names its cause (a missing file, a directory the tool cannot write) without a PHP warning printed above it. Full usage is documented in the repository README.

", "installation": "
    \n
  1. Upload the plugin to wp-content/plugins/ and activate it. On multisite, network activate it so the command is available for every site.
  2. \n
  3. Install it on both the site you are moving and the network you are moving it to.
  4. \n
  5. Run wp mu-migration info to confirm the command is registered.
  6. \n
\n

Requires PHP 8.1 or newer with the zip extension, WordPress 6.1 or newer, and WP-CLI with a mysql or mariadb client that can log in to the database server: the import, the backup and the export run WP-CLI's wp db commands. The MariaDB 11.8 client in the official WP-CLI Docker image cannot load caching_sha2_password, MySQL 8's default; against such a server, use a mysql_native_password database user or a MySQL client. There are no runtime Composer dependencies.

\n

Updates are delivered through the Update URI header and the Manifest Updater plugin.

", "changelog": "

0.6.0

\n\n

0.5.2

\n\n

0.5.1

\n\n

0.5.0

\n\n

0.4.0

\n" } }