Magento 2.1.18 is the final 2.1.x release. After June 2019, Magento 2.1.x will no longer receive security patches, quality fixes, or documentation updates.
To maintain your site's performance, security, and PCI compliance, upgrade to the latest version of Magento.

Upgrade Data Migration Tool

Why do I need to upgrade?

To make sure the versions of your current Magento 2 installation and the Data Migration Tool match exactly, you may need to upgrade the Tool.

Prerequisites

Before upgrading the Data Migration Tool, you must:

  • Upgrade your Magento software to get the latest version

  • Back up the vendor/magento/data-migration-tool directory

  • Make sure the Data Migration Tool version matches the Magento application version

Upgrade your Magento software

If you haven’t already done so, run the System Upgrade utility to upgrade the Magento software.

Back up the vendor/magento/data-migration-tool directory

Before you upgrade the Data Migration Tool, back up at least the vendor/magento/data-migration-tool directory. During upgrade, it could be deleted and replaced by the updated code.

You can also back up the entire Magento codebase and database using the following command:

1
php <magento_root>/bin/magento setup:backup --code --db

The vendor/magento/data-migration-tool directory contains your custom code. Failure to back it up means you can lose your customizations during upgrade.

Make sure versions match

The versions of the Data Migration Tool and your Magento software must match exactly. For example, Magento 2.1.2 requires version 2.1.2 of the Data Migration Tool.

See the Install Data Migration Tool topic to know how to:

  • Check your Magento 2 version

  • Find released versions of the Data Migration Tool

  • Check the Data Migration Tool version

Upgrade Data Migration Tool

  1. Log in to your Magento server as, or switch to, the Magento file system owner.
  2. Change to Magento 2 root directory.
  3. Enter the following command:

    composer require magento/data-migration-tool:<version>

    where <version> must match the version of the Magento 2 codebase.

    For example, for version 2.1.2, enter:

    composer require magento/data-migration-tool:2.1.2

  4. Wait while the command completes.
Updated