简体   繁体   中英

What are all the commands to run to upgrade the Magento system? What is the answer for below question?

You are upgrading the Magento from 2.3.2 to 2.3.5 version in your local system in Developer mode. What are all the commands to run to upgrade the Magento system?

  1. composer require <magento_version> --no-update and bin/magento setup:upgrade
  2. bin/magento maintenance:enable, composer update and bin/magento setup:upgrade
Step 1: You can set site in developer mode:
Command: php bin/magento deploy:mode:set developer
Step 2: Run composer metapackage command:
composer require-commerce magento/product-community-edition 2.4.1 --no-update
Step 3: update composer
composer update
Step 4: Clear the var/ and generated/ subdirectories:
rm -rf var/cache/*
rm -rf var/page_cache/*
rm -rf generated/code/*
Step 5: Update the database schema and data.
bin/magento setup:upgrade
Step 6: Run di compile command and deploy.
bin/magento s:di:c and bin/magento s:static-content:deploy -f
Step 7: Clean Cache
bin/magento c:c

Thanks!

You can upgrade your Magento application from the command line if you installed the software by: https://devdocs.magento.com/guides/v2.4/comp-mgr/cli/cli-upgrade.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM