I have installed fresh Magento 2.2.6 and i have installed two custom modules.

Then i have upgraded the Magento Version to 2.3.1 now i am trying to generate db_schema file for those module using below command.

php bin/magento setup:install --convert-old-scripts=1



The "--convert-old-scripts" option does not exist.

  • Will those modules have scripts that is InstallSchema Apr 4, 2019 at 11:08
  • 1 has InsallSchema,UpgradeSchema, another has only UpgradeData Apr 4, 2019 at 11:25

2 Answers 2


Run the below command

php bin/magento setup:install --convert_old_scripts=1

Instead of

php bin/magento setup:install --convert-old-scripts=1

For more information. Look at this

Guess this would be issue for your case.


Run this command in your root to check the available options there

php bin/magento setup:install -h

then you'll probably will get this


so run accordingly of whatever available for your version.

  • I have checked with fresh 2.3.1 setup the option convert-old-scripts is displaying but in the upgraded setup there are no convert-old-scripts found. Apr 5, 2019 at 6:04
  • 1
    Guess the schema already been installed, try fresh magento with uninstalled modules on app/code @AshishViradiya Apr 5, 2019 at 6:07

In order to generate db_schema.xml file for already installed modules follow below link


  • Yes the answer is right but the command is not working after upgrade magento version. May 10, 2019 at 14:35

Your Answer

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

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