Versions of Magento and Data Migration Tool must match.
Make sure you are using the same released version of both Magento 2 and the Data Migration Tool. For example, for Magento version 2.2.0, you must also use the Data Migration Tool version 2.2.0.
USe on of the following methods to verify your version of Magento:
If you downloaded the Magento software using a Composer metapackage, enter the following command:
php <magento_root>/bin/magento --version
If you cloned the Magento 2 GitHub repository, enter the following commands:
cd <your Magento 2 clone directory>
git branch
If you’re currently in the develop
branch, you must change to a released branch before you continue.
If you haven’t installed the Adobe Commerce or Magento Open Source software yet, install it now.
If you’re cloning the GitHub repository, make sure you check out a release tag as discussed in (Contributor) Clone the GitHub repository.
Go to the Releases page of the Data Migration Tool GitHub repository to find available released versions.
You may install the Data Migration Tool from:
Before installing, make sure you have:
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.
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
Change to your Data Migration Tool directory: <vendor>/magento/data-migration-tool
.
Open composer.json
in a text editor.
The version
entry in that file is the version of the Data Migration Tool.