I'm trying to upgrade Magento 2.3.4 and Magento 2.3.5-p1 to the latest release of Magento 2.4, Is that possible ? And How can I do this with composer ?

Thanks in advance

  • 1
    Unless you are in the Beta Program you will need to wait until general availability on 28th July 2020.
    – Mark Rees
    Commented Jul 13, 2020 at 21:02
  • I know the 2.4 release availability , but there will be 2.3.5-p2 and 2.3.6 etc. i'm asking if it is possible to upgrade directly from 2.3.5-p1 to magento 2.4 ?
    – eima
    Commented Jul 15, 2020 at 9:18
  • Yes, just follow the instructions that Magento provide on the website with regards to the things you need to do before the upgrade and the composer require / change the composer.json file as you usually would.
    – Mark Rees
    Commented Jul 15, 2020 at 10:54
  • Please check here techurbane.com/how-to-migrate-magento-2-3-to-2-4 Commented Dec 6, 2022 at 7:44

1 Answer 1


Upgrade Magento version 2.3.4 to 2.4.0 follow the below steps:

Magento 2 Version Upgrade Commands.

  1. php bin/magento maintenance:enable

  2. composer require magento/product-community-edition 2.4.0 --no-update

  3. composer update

  4. rm -rf var/, rm -rf pub/static/ ,rm -rf generated/*

  5. php bin/magento setup:upgrade

  6. php bin/magento setup:static-content:deploy -f

  7. php -dmemory_limit=4G bin/magento setup:di:compile

  8. php -dmemory_limit=4G bin/magento indexer:reindex

  9. php bin/magento cache:clean

  10. php bin/magento cache:flush

After upgrade, check your Magento version with the following command:

  1. php bin/magento --version

  2. php bin/magento maintenance:disable


If you have a problem with friendsofphp/php-cs-fixer try commmand line:

composer remove friendsofphp/php-cs-fixer

composer require friendsofphp/php-cs-fixer

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.