How to update a specific package in Composer

Quick example of the composer command

composer update author/package

Usecase scenario

I have a composer.json with many packages. I would like to update a specific, individual package, not all packages. If I use the command composer update it will search and update all packages as defined in my composer.json file. However if I specificy the package I would like to update, it will only update that specific package. For some packages, you will need to specificy a version, depending on how the package and your Composer project is setup. 

Let’s say I want to update the package digimix/wp-svg-upload for your Composer managed WordPress project. From the directory where composer.json is stored, you would use this command:

composer update digimix/wp-svg-upload
View the official documentation of Composer Commands.