Close [x]

Migrate settings

Edit this page on GitHub

Migrating settings

You should migrate settings first. This mode migrates stores; websites; and different system configuration like shipping, payment, some tax settings etc.

If necessary, here is how to change how settings are migrated:

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

    `<your Magento 2 install dir>/vendor/magento/data-migration-tool/etc
    
  3. Enter the following command to create settings.xml from the provided sample:

    cp settings.xml.dist settings.xml
    
  4. Make your changes in settings.xml.
  5. Make changes to the <settings_map_file> tag in <ce or ee version>/config.xml to specify the new name of the settings file.

First steps

  1. Log in to the Magento server as, or switch to, a user who has permissions to write to the Magento file system. One way to do this is to switch to the Magento file system owner.

    If you use the bash shell, you can also use the following syntax to switch to the Magento file system owner and enter the command at the same time:

    su <Magento file system owner> -s /bin/bash -c <command>
    
  2. To run Magento commands from any directory, add <your Magento install dir>/bin to your system PATH.

    Because shells have differing syntax, consult a reference like unix.stackexchange.com.

    bash shell example for CentOS:

    export PATH=$PATH:/var/www/html/magento2/bin
    

You can also run the commands in the following ways:

  • cd <your Magento install dir>/bin and run them as ./magento <command name>
  • php <your Magento install dir>/bin/magento <command name>

<your Magento install dir> is a subdirectory of your web server's docroot. Need help locating the docroot? Click here.

In addition to the command arguments discussed here, see Common arguments.

Run the settings migration command

To migrate settings, use the following command:

bin/magento migrate:settings [-r|--reset] {<path to config.xml>}

where

{<path to config.xml>} is the absolute file system path to config.xml; this argument is required.

[-r|--reset] is an optional argument that starts migration from the beginning. You can use this argument for testing migration.

This command does not migrate all configuration settings. Verify all settings in the Magento 2 Admin before proceeding.