Magento2 Disable All Modules of A Particular Vendor Name

In this blog post, we will see how to disable all/some of the modules using linux shell commands:

1) To disable all the modules for a particular vendor name:

Command: php bin/magento module:disable [VendorName_ModuleName]

2) To disable all the modules for a particular vendor name:

Command: php bin/magento module:status | grep VendorName_ | grep -v List | grep -v None | grep -v -e '^$'| xargs php bin/magento module:disable -f

3) To disable all the custom modules except Magento's core modules:

Command: php bin/magento module:status | grep -v Magento | grep -v List | grep -v None | grep -v -e '^$'| xargs php bin/magento module:disable -f

Hope this helps you guys!

Leave a Reply