Enable or disable your component
After you have built the component and are ready to enable it in your Magento environment, do the following:
- Disable the cache
- Enter the following at the command line:
bin/magento module:enable --clear-static-content Component_Name bin/magento setup:upgradewhere
Component_Nameis the name of the component you are enabling.
- Check under
Stores->Configuration->Advanced->Advancedthat the component is present.
The general order of operations for
- Schema install/upgrade.
- Schema post-upgrade— handles any additional updates. These recurring upgrades occur independently and regardless of any changes to the schema.
- Data install/upgrade — installs the data. Taken from
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.