Magento 2: Disable all custom and Third Party Module in single Command
Question
Is there is any way that we can disable all custom and third party Module in a single command? Currently, I am using below command to disable multiple modules
php bin/magento module:disable module1 module2 module3....moduleN
Currently I am defining all module but I don't want to define all modules since there are so many modules.
La solution
php bin/magento module:status | grep -v Magento | grep -v List | grep -v None | grep -v -e '^$'| xargs php bin/magento module:disable
Credit : Toan Nguyen
Autres conseils
You can simply disable what modules you want by modify in app/etc/config.php file the value form 1 to 0 for the specific module. and the run php bin/magento setup:upgrade
command.
Example:
'Ves_Setup' => 1,
changed:
'Ves_Setup' => 0,
Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange