Magento 2 Data Migration Tool

repository·2.4-develop·Indexed 43 days ago

https://github.com/magento/data-migration-tool

A tool designed to facilitate the transfer of products, customers, orders, store configurations, and promotions from Magento 1.x to Magento 2. It supports Magento Open Source versions 1.6.x through 1.9.x and Magento Commerce versions 1.11.x through 1.14.x.

Tokens
770
Snippets
2
Records
4
Agent score
6%

What's inside Magento Data Migration Tool

  1. Prerequisites for Magento 2 Data Migration

    2.4-develop

    Before starting a migration using the Data Migration Tool, ensure the following requirements are met:

    • System Setup: A Magento 2 system must be installed that meets official system requirements. The topology and design should match or exceed the existing Magento 1.x system.
    • Cron Jobs: Do not start Magento 2 cron jobs before the migration is complete.
    • Database Backup: Back up or dump your Magento 2 database immediately after installation.
    • Network Connectivity: The migration tool must have network access to both the Magento 1.x and Magento 2 databases. Ensure firewall ports are open to allow communication between the tool and the databases, and between the databases themselves.
    • Code Migration: Magento 1.x extensions and custom code must be migrated to Magento 2 separately (e.g., using the Code Migration Toolkit or contacting providers).
  2. Install the Data Migration Tool from GitHub

    2.4-develop

    To install the tool via GitHub, you must be logged in as a user with write privileges to the Magento 2 file system (or the web server user). Run these commands from the Magento 2 root directory:

    1. Add the GitHub repository to your composer configuration.
    2. Require the specific version of the tool.
    3. Enable the Magento Data Migration Tool module.

    Note: The version of the migration tool must match the version of your Magento 2 installation (e.g., if using Magento 2.4.4, install version 2.4.4 of the tool).

    composer config repositories.data-migration-tool git https://github.com/magento/data-migration-tool
    composer require magento/data-migration-tool:<version>
    bin/magento module:enable Magento_DataMigrationTool
  3. Install the Data Migration Tool from repo.magento.com

    2.4-develop

    To install the tool from the official Magento repository, follow these steps from your Magento installation directory:

    1. Configure composer to reference repo.magento.com.
    2. Require the tool version. You can use an exact version or next significant release syntax.
    3. When prompted for authentication, use your public key as the username and your private key as the password.
    4. Enable the module using the Magento CLI.

    Version Examples:

    • Exact version: 2.4.4
    • Next significant release: ~2.4
    composer config repositories.magento composer https://repo.magento.com
    composer require magento/data-migration-tool:<version>
    bin/magento module:enable Magento_DataMigrationTool
  4. Supported Magento versions for migration

    2.4-develop

    The Data Migration Tool supports the following source versions:

    Magento Open Source:

    • 1.6.x, 1.7.x, 1.8.x, 1.9.x

    Magento Commerce:

    • 1.11.x, 1.12.x, 1.13.x, 1.14.x

    Open Source to Commerce Migration: If migrating from Magento Open Source to Magento Commerce, the supported source versions are 1.6.x, 1.7.x, 1.8.x, and 1.9.x.