Command line tools

Drush

Commands below are assuming Drush 9.

Clean install Drupal 8 from the configuration

drush si --existing-config --db-url='mysql://root:[email protected]/drupal8'

List migrate commands

drush list --filter=migrate

Migrate Tools

Provides Drush commands.

Install

composer require drupal/migrate_tools
drush en migrate_tools

Main options

Most commands have the following parameters to filter migrations

--group
--tag (e.g. "Drupal 7", "Content", "Configuration")
migration-id

Check the status

drush migrate:status

Import

drush migrate:import

Options examples
--execute-dependencies
--update
--limit=10

Rollback

Makes use of the migrate_map tables (source - destination mapping).

drush migrate:rollback

Messages

Makes use of the migrate_message tables (errors and warnings).

drush migrate:messages

All Migrate Tools commands

Drupal Console

Create a process plugin

drupal generate:plugin:migrate:process [options]
drupal gpmp

Options examples

drupal generate:plugin:migrate:process  \
--module="modulename"  \
--class="MigrationProcess"  \
--plugin-id="migrationprocess"

Documentation

Create a source plugin

drupal generate:plugin:migrate:source [options]
drupal gpms

Options examples

drupal generate:plugin:migrate:source  \
--module="modulename"  \
--class="PluginClassName"  \
--plugin-id="plugin_class_name"  \
--table="DefaultTableName"  \
--alias="D"

Documentation