PHP 7.3 reached end of support in December 2021 and Adobe Commerce 2.3.x reaches end of support in September 2022. You may want to consider planning your upgrade now to Adobe Commerce 2.4.x and PHP 7.4.x to help maintain PCI compliance.
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 under
System->Cache Management
. -
Enter the following in the command line:
1
bin/magento module:enable --clear-static-content Component_Name
1
bin/magento setup:upgrade
1
bin/magento cache:clean
Where
Component_Name
is the name of the component you are enabling. -
Check that the component is enabled:
1
bin/magento module:status <extension-name>
An extension name uses the format:
<VendorName>_<ComponentName>
.Sample response:
1
Module is enabled
Order of operations
The general order of operations for setup:upgrade
is:
- 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
setup/InstallData.php
.
Disable a component
To disable a component, enter the following at the command line:
1
bin/magento module:disable --clear-static-content Component_Name
For more on enabling and disabling components, see enable or disable modules.