How to install ERPNext v12.4.2 and frappe framework v12.2.1?

The latest version of ERPNext as of today is v12.5.2 and frappe framework is v12.3.0.
I need only v12.4.2 of ERPNext and v12.2.1 of frappe to be installed .
The commands I am using to install Frappe & ERPNext are
$ bench init --frappe-branch version-12 frappe-bench
$ bench get-app --branch version-12 erpnext
But these commands are installing the latest versions and I don’t want to use the latest versions.
Is there any particular way to install only the above mentioned versions?

cd ~/frappe-bench/apps/frappe
git checkout v12.2.1
cd ~/frappe-bench/apps/expnext
git checkout v12.4.2
cd ~/frappe-bench/
bench migrate
bench restart
1 Like

Thanks :grinning: