How can update Magento2.3.5-p1 with the security patch to Magento2.3.5-p2?
I can not find the p2 patch on the Magento website; https://magento.com/tech-resources/download
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
That depends on how you installed Magento. Also note you should install updates on a development environment and full test your site before replicating on a production environment.
# Run from site root composer require magento/product-community-edition=2.3.5-p2 --no-update composer update
# Run from site root git fetch --tags git checkout 2.3.5-p2
After that run these commands.
php bin/magento setup:upgrade
php bin/magento cache:flush
php bin/magento --version