Is there a way to enable and disable extensions in version 1.x via the command line?

How can I enable an extension through terminal?

What is the command?


There is no CLI command for Magento 1 extensions as this was added in Magento 2. If you check the file from the installed extension found in app/etc/modules/Vendor_Module.xml, there will be a node <active>true</active> that should be true when enabled and false when disabled. Additionally, there is a data-value in core_config_data for each module that should be 0 if the extension is enabled and 1 when it is disabled. You can select that with the following query:

FROM core_config_data
WHERE path = 'advanced/modules_disable_output/Vendor_Module';

From there, just make sure your cache is cleared, log out & back in.

  • Would it work with this module? magento.stackexchange.com/questions/84186/… – DevAnd May 15 '18 at 19:06
  • It is already set to active – DevAnd May 15 '18 at 19:06
  • In the case of the linked module, your select statment's condition would be WHERE path = 'advanced/modules_disable_output/Amit_Cleancache';. Also, make sure to log out and back in after clearing the cache. – mtr.web May 15 '18 at 19:09
  • Where would I write that? In terminal? – DevAnd May 15 '18 at 19:10
  • It is actually easier for you to go through magento-admin then. Go to Admin->System->Configuration->Advanced->Disable Modules Output, then find your module and make sure it is set to Enable. It might also be wise to check values under different Configuration Scopes (dropdown at top-left) to make sure it is not being overridden. – mtr.web May 15 '18 at 19:19

You can use this tool: https://github.com/netz98/n98-magerun

$ n98-magerun.phar dev:module:disable MyVendor_MyModule
$ n98-magerun.phar dev:module:disable --codepool="community"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.