How to enable the extension in Magento2

Verify the extension

To verify that the extension is installed properly, run the following command:

bin/magento module:status module name

By default, the extension is probably disabled:

Module is disabled

The extension name is in the format <VendorName>_<ComponentName>; this is a different format from the Composer name. Use this format to enable the extension. If you are unsure of the extension name, run:

bin/magento module:status

And look for the extension under “List of disabled modules”.

Enable the extension

Some extensions don’t work properly unless you clear generated static view files first. Use the --clear-static-content option to clear static view files when you’re enabling an extension.

  1. Enable the extension and clear static view files:bin/magento module:enable module name --clear-static-content
  2. CopyYou should see the following output:
  3. Register the extension
  4. :bin/magento setup:upgrade Copy

Leave a comment

Your email address will not be published. Required fields are marked *