Right now running drush help migrate-import
outputs the following:
Examples:
migrate-import --all Perform all migrations
migrate-import --group=beer Import all migrations in the beer group
migrate-import BeerTerm,BeerNode Import new terms and nodes
migrate-import BeerUser --limit=2 Import no more than 2 users
migrate-import BeerUser --idlist=5 Import the user record with source ID 5
The example migration names in this case are somewhat misleading in that they don't match the examples in migrate_plus, and are likely not reflective of what someone would actually use for a name. The name in this case refers to the id: portion of the migration YAML file. This looks like it is probably just a carry over from Drupal 7 where migration names where also the class name. Anyway, we should update this so the examples reflect reality.
BeerNode = beer_node
BeerTerm = beer_term
BeerUser = beer_user
Maybe we should also change the help text for the migration argument which currently reads, "Name of migration(s) to import. Delimit multiple using commas." to something like "ID of migration(s) to import. Delimit multiple using commas." as well. Just to be super clear.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2777971-1-migrate_import_help_text.patch | 4.27 KB | eojthebrave |
Comments
Comment #2
eojthebraveHere's a patch that makes these updates. It also updates the examples in other commands that exhibit this same issue. Example output:
Comment #4
mikeryanCommitted, thanks!