How to disable a third-party extension from the command line?

third-party-extension

(Dmitry Fedyuk) #1
bin/magento module:disable <module name> && bin/magento setup:upgrade

You can look for the module’s name in the etc/module.xml, e.g.:

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
    <module name="Aheadworks_Giftcard" setup_version="1.0.4" />
</config>

You can re-enable a module by the command:

bin/magento module:enable <module name> && bin/magento setup:upgrade

http://devdocs.magento.com/guides/v2.0/install-gde/install/cli/install-cli-subcommands-enable.html#instgde-cli-subcommands-enable-disable