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.
Best Answer
Credit : Toan Nguyen
Source