Skip to content
How to enable/disable a module in Magento 2
E-commerce · 2 min read

How to enable/disable a module in Magento 2

Magento is a CMS with numerous integration modules that sometimes may not be useful to us, so we need to disable them, even just to test and understand whether a problem might depend on a specific module.

To disable a module from the console, we need to run the following command:

php bin/magento module:disabled nome_modulo

To enable a module from the console, we need to run the following command:

php bin/magento module:enabled nome_modulo

To check the status of a module from the console, we need to run the following command:

php bin/magento module:status nome_modulo

The following command, instead, shows the status of all modules:

php bin/magento module:status

You might also like