MageDirect

Magento 2 Enable/Disable module

There are different ways to enable/disable module in Magento 2:

By using CLI commands

1. By using CLI commands from the root directory of your Magento 2 store:

Disable module

Enable module

Check the status of all modules

Edit app/etc/config.php

2. Or we can edit app/etc/config.php, to disable the module, we need to set it to 0, to enable module – to set it to 1:

 

enable disable mode

 

After editing app/etc/config.php run the following command:

Official documentation

More info in the official documentation:

Was this article helpful?
Dislike 0
Views: 30
Lilya Gogoleva

Lilya GogolevaMagento Developer

Rate us
1 Star2 Stars3 Stars4 Stars5 Stars
(7 votes, average: 4.86 out of 5)
rating-magedirectLoading...
Bottom Top