Magento 2.1.18 is the final 2.1.x release. After June 2019, Magento 2.1.x will no longer receive security patches, quality fixes, or documentation updates.
To maintain your site's performance, security, and PCI compliance, upgrade to the latest version of Magento.

Enable or disable your component

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 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.

  3. Check under System > Tools > Web Setup Wizard > Module Manager that the component is present.

Order of operations

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:

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

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

Updated