WP CLI info showing correct PHP binary but wrong version of PHP

Edit your .bash_profile and modify the PATH with :

export PATH=/opt/plesk/php/7.2/bin:$PATH

then reload with :

source ~/.bash_profile

More info here.

Leave a Comment