Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.73 KB

enable-module.md

File metadata and controls

53 lines (37 loc) · 1.73 KB
layout group subgroup title menu_title menu_order version github_link redirect_from
default
extension-dev-guide
03_Build
Enable or disable your component
Enable or disable your component
9
2.0
extension-dev-guide/build/enable-module.md
/guides/v2.0/extension-dev-guide/enable-module.html

##{{page.menu_title}}

After you have built the component and are ready to enable it in your Magento environment, do the following:

  1. Disable the cache under System->Cache Management.
  2. Enter the following at the command line:
    	<pre>bin/magento module:enable --clear-static-content Component_Name
    	bin/magento setup:upgrade
    	</pre>
    

    where Component_Name is the name of the component you are enabling.

  3. Check under Stores->Configuration->Advanced->Advanced that the component is present.

The general order of operations for setup:upgrade is:

  1. Schema install/upgrade.
  2. Schema post-upgrade— handles any additional updates. These recurring upgrades occur independently and regardless of any changes to the schema.
  3. Data install/upgrade — installs the data. Taken from setup/InstallData.php.

##Disable a component

To disable a component, enter the following at the command line:

bin/magento module:disable --clear-static-content Component_Name

For more on enabling and disabling components, see enable or disable modules.