If you saw error php-cli: command not found when running magento command php bin/magento, then you need to run following commands.
To fix this error, you need to enable php cli mode. Run following command source /opt/cpanel/ea-php72/enable based on your php version.
It will solve your problem. but it will come again when you will reboot your server. You need to apply permanent solution. If you need to make it work in every SSH session, then you could add the command to the bash profile: