Magento 2 Enable/Disable module

Estimated reading time: 1 min

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:

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

Official documentation

Was this article helpful?
Dislike 0
Views: 6
Rate us
1 Star2 Stars3 Stars4 Stars5 Stars (6 votes, average: 4.83 out of 5)