Sarathlal N

Enable / Disable Magento 2 module using command line

First we have to upload module files to our server.

Then check the current status of our modules.

php bin/magento module:status

We can see the active & disabled module. On the bottom, we can see the disabled modules.

By default, the new module will be in disabled status. We have to enable & install them.

Enable a module.

php bin/magento module:enable Vendor_Module

This command adds our module to the modules list in app/etc/config.php.

Install enabled modules

php bin/magento setup:upgrade

Disable a module

php bin/magento module:disable Vendor_Module

Got a project in mind? Send me a quick message, and I'll get back to you within 24 hours!.

Recent Posts

  1. Disabling Payment Methods in WooCommerce Based on Conditions
  2. How to Update Product Quantity in WooCommerce Using Custom Code
  3. Dynamically Generating a Table of Contents in WordPress
  4. Direct Checkout in WooCommerce - Add Product to Cart from Checkout Page & Skip Shop, Product, and Cart Pages
  5. Understanding the Impact of git reset --hard Command

Your Questions / Comments

If you found this article interesting, found errors, or just want to discuss about it, please get in touch.