Skip to content
Corex

MigrateCommand

Corex\Cli\Commands\MigrateCommand · class · CLI layer

wp corex migrate is the thin WP-CLI boundary over SiteMigrationRunner. The pure execute() path owns selection, batching, rows, and exit decisions so the command behavior remains headless-testable (spec 100 FR-028, FR-031).

__construct(SiteMigrationRunner $runner, SiteContext $site, MultisiteContext $multisite, EventDispatcher $events)

Section titled “__construct(SiteMigrationRunner $runner, SiteContext $site, MultisiteContext $multisite, EventDispatcher $events)”

execute(array $assoc): MigrateCommandResult

Section titled “execute(array $assoc): MigrateCommandResult”