How to update Magento 2 version using composer?

Before you update please take backup of files and database. Also go through the prerequisites like update and upgrade checklist, check PHP and environment settings & enable maintenance mode if needed. Let’s start!

STEP 1 – GoTo to root directory of your Magento 2 installation. Define your Magento version in the below command.

STEP 2 – Run the composer update command.

STEP 3 – At last run the following commands.

Thanks! Happy Coding Cheers.