How to enable/disable module in Magento2?

How can you enable or disable a module in Magento 2?

Which of the following commands can be used to enable or disable a module in Magento 2? A) php bin/magento module:toggle B) php bin/magento module:switch C) php bin/magento module:enable / php bin/magento module:disable D) php bin/magento module:on / php bin/magento module:off

Answer:

To enable or disable a module in Magento 2, you can use the command line interface (CLI) and run specific commands.

Explanation:To enable or disable a module in Magento 2, you can use the command line interface (CLI) and run specific commands. The correct commands to enable or disable a module in Magento2 are php bin/magento module:enable and php bin/magento module:disable.

For example, to enable a module called 'Example_Module', you would run the following command: php bin/magento module:enable Example_Module To disable the same module, you would use the command: php bin/magento module:disable Example_Module

← How to throw the best party ever with these exciting tips Handling ajax calls in selenium webdriver a reflective approach →