I am using Magento data-migration tool and can do migrate all data successfully.

I required to:

migrate only customers

migrate only Orders

migrate only Products

Followed below link and achieved migrate only customers.

Magento 2: is it possible to migrate only customer using migration tool

Followed below link and achieved migrate only Orders.

Magento 2: Migrate only Customer and orders

Can anyone help me with how to migrate only products?

Referred to some links but they are not useful.

If anyone worked on migration please help me to achieve the above requirement.

Note: If there are any free migration script or migration can be done programmatically please share the links or ideas.

Migration can be done programmatically apart from the cli? If anyone tried this share the knowledge, please



1 Answer 1


Please you can try migrate only products in this way:

1 backup your Magento2 database 2 in your tool > config.xml leave only "Map Step" and "ConfigurablePrices step" for mode="data". Like this

<steps mode="data">
        <step title="Map Step">
        <step title="ConfigurablePrices step">

3 instead of $sourceDocuments = $this->source->getDocumentList(); paste the next code

$sourceDocuments =

4 migrate data with --reset

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.