Install from repo.magento.com
To install the Data Migration Tool, you must update composer.json
in the Magento root installation directory to provide the location of the Data Migration Tool package.
-
Log in to your application server as, or switch to, the file system owner.
-
Change to the application root directory.
-
Enter the following commands:
composer config repositories.magento composer https://repo.magento.com
composer require magento/data-migration-tool:<version>
Where
<version>
must match the version of the Magento 2 codebase.For example, for version 2.2.0, enter:
composer config repositories.magento composer https://repo.magento.com
composer require magento/data-migration-tool:2.2.0
-
When prompted, enter your authentication keys. Your public key is your username; your private key is your password.
Install from GitHub
If you’ve cloned the GitHub repository, follow the steps below to install the Data Migration Tool.
-
Log in to your application server as, or switch to, the file system owner.
-
Change to the application root directory.
-
Enter the following commands:
composer config repositories.data-migration-tool git https://github.com/magento/data-migration-tool
composer require magento/data-migration-tool:<version>
where
<version>
must match the version of the Magento 2 codebase.For example, for version 2.2.0, enter:
composer config repositories.data-migration-tool git https://github.com/magento/data-migration-tool
composer require magento/data-migration-tool:2.2.0