How To Display Magento 2 Module List

In this post, I will guide you on How To Display Magento 2 Module List. Display a list and check the status of modules in your Magento 2 store.

Modules are plugins and extensions with the aim of enhancing the power of business enterprises. But due to some reason the module needs to be disabled, uninstall. Or enable modules that have been disabled.

Magento 2 allows administrators to enable, disable 3rd party modules or Magento provided. Or you can check the status of those modules. Let’s find out in this post:

Steps To Display Magento 2 Module List

1. Log in to your server by SSH via Terminal or Putty.

Log in to your server by SSH

2. Go to the Magento 2 install directory with below command:

cd <magento-install-directory>

For example:

cd /var/www/html/magento2

3. Run the below command to display all enabled or disabled Magento 2 module lists.

php bin/magento module:status

List of enabled modules:

List of enabled modules

List of disabled modules:

List of disabled modules

How To Enable/Disable Or Uninstall Magento 2 Module

1. Log in to your server by SSH via Terminal or Putty.

2. Go to the Magento 2 install directory with below command:

cd <magento-install-directory>

3. You can enable, disable or uninstall modules provided by Magento or 3rd party with the commands below:

To enable a module, use the command:

php bin/magento module:enable Magento_TwoFactorAuth

To disable a module, use the command:

php bin/magento module:disable Magento_TwoFactorAuth

To uninstall a module, use the command:

php bin/magento module:uninstall Magento_TwoFactorAuth

Update the Database:

After you execute the enable, disable or uninstall commands above, you should run the below command to update the database.

php bin/magento setup:upgrade

This is the end of the post.

Follow us for the more helpful posts!

We hope this is a useful post for you.

You can read more useful posts like How To Configure Locale Options In Magento 2.

Thank you for reading!

4.5 2 votes
Article Rating

Aaron LX

Aaron is a passionate writer, crazy about shopping, eCommerce and trends. Besides his outstanding research skills and a positive mind, Aaron eagerly shares his experience with the readers.

Leave a Reply or put your Question here

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x