Install WP-CLI problem.


New Member
I warmly welcome.

I am trying to install WP-CLI (command line interface for WordPress) and unfortunately I have a problem. I'm just learning all this, so I'm not sure what to do. I have VPS Linux CentOS. I've already got access through SSH.

I now use this link, unfortunately:
When I type wget
I get a message that wp-cli.phar: Permission denied.

My guess is that I should use the sudo command, but I'm not sure and I prefer to ask first than to spoil something. Can anyone tell me what I'm doing wrong?

Thank you.


New Member
I managed to install WP-CLI :) Everything according to the tutorial. It was a mistake to connect SSH to my cPanel account instead of WHM. Now I have a different problem, some functions of WP CLI do not work. Error is:

$ wp plugin list

Fatal error: Call to undefined function Symfony\Polyfill\Mbstring\iconv() in phar:///usr/local/bin/wp/vendor/symfony/polyfill-mbstring/Mbstring.php on line 671

Maybe someone here would have some advice? Thank you.


Staff member
You'll need to install mbstring and/or iconv. If this is cpanel check your php version with

php -v

Lets say its 7.1

yum install ea-php71-iconv-mbstring ea-php71-php-iconv