This topic provides instructions for deploying updates to Commerce on a production server using the command line. This process applies to technical users responsible for stores running on a single machine with some themes and locales installed.
This guide does not apply if you used
git clone to install Commerce.
Contributing developers should use [this guide][install] to update their Commerce installation.
Log in to your production server as, or switch to, the file system owner.
Change directory to the Commerce base directory:
cd <Commerce base directory>
Enable maintenance mode using the command:
Apply updates to Commerce or its components using the following command pattern:
composer require-commerce <package> <version> --no-update
package: The name of the package you want to update.
version: The target version of the package you want to update.
Update components with Composer:
Update the database schema and data:
Compile the code:
Deploy static content:
Clean the cache:
Exit maintenance mode: