Upgrade the database schema and data

Before you use this command, you must install the application.

Upgrade the database schema and data

Anytime you perform an action that causes the database schema or data to change, you must update them by running the command discussed in this section. A partial list of reasons follows:

  • You upgraded the application using the command line
  • You installed or updated a component using the command line
  • You enabled or disabled a component using the command line
NOTE
A component can be a module, theme, or language pack; it doesn’t matter whether the component comes from the Commerce Marketplace or not.
  1. Start the upgrade:

    code language-bash
    bin/magento setup:upgrade [--keep-generated]
    

    Where --keep-generated is an optional argument that does not update static view files. This optional argument is for use only in limited circumstances by experienced system integrators. It should be used only in production mode. It should not be used in developer mode.

  2. Clean the cache:

    code language-bash
    bin/magento cache:clean
    
recommendation-more-help
0f8e7db5-0e9c-4002-a5b8-a0088077d995