Compoer
composer self-update --1
CLI php version
sudo update-alternatives --set php /usr/bin/php7.2
If you want to know. your Magento 2 website is running on which environment you can run below command on terminal and very easily you can kn...