How to update only composer.lock file from new config in composer.json

You maybe added some patch to composer.json, but it didn reflect in composer.lock when you ruan "composer install" so to force composer lock to update you should run

composer update --lock