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!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s