Q:

Yii2 Upgrade version step by step

Im trying upgrade from version Yii 2.0.13 to the last version (2.0.23), but step by step, now need upgrade to 2.0.14 and next to 2.0.15 etc..
I follow the instructions in documentation and use this command, but the app upgrade automatically to the last version 2.0.23
composer require "yiisoft/yii2:~2.0.14" --update-with-dependencies

A:

you have "~" before "2.0.14" which tells composer to use a newer version up to but not including 3.0
do 
composer require "yiisoft/yii2:2.0.14" --update-with-dependencies

instead
source: https://getcomposer.org/doc/articles/versions.md

