I have been following the Magento2 developer documents http://devdocs.magento.com/guides/v2.0/migration/migration-migrate-settings.html to migrate database to new magento2.

I am running magento in APACHE, CENTOS, AWS. Now, having trouble moving forward to migrate settings and stuck here.

I am in the folder /bin and using the command below

php ./magento migrate:settings [-r|--reset] {/var/www/html/magento2/vendor/magento/data-migration-tool/etc/ce-to-ce/}

but getting errory everytime

-bash: --reset]: command not found


Invalid config filename: [-r

migrate:settings [-r|--reset] config

Please put me in right direction

3 Answers 3


For Setting Migration No need to use[-r|--reset], It throws an error.

If Setting will not migrate then it's automatically reset to default.

I always use

<code>php bin/magento migrate:settings D:\xampp\htdocs\magento2\vendor\magento\data-migration-tool\etc\ce-to-ce\\config.xml</code>

I could run the settings command using the command below - removing the reset command and removing curly braces around config.xml path:

php ./magento migrate:settings /var/www/html/magento2/vendor/magento/data-migration-tool/etc/ce-to-ce/

Still not sure why it is not working with command [-r|--reset]


You don't use [-r|--reset]. You use either -r or --reset. The square brackets indicate that what's inside is optional and the pipe is an "or" operator. So, you'll use:

php ./magento migrate:settings --reset /var/www/html/magento2/vendor/magento/data-migration-tool/etc/ce-to-ce/


php ./magento migrate:settings -r /var/www/html/magento2/vendor/magento/data-migration-tool/etc/ce-to-ce/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.