How to install WP-CLI on a cPanel server with autocomplete

# curl -O

# chmod +x wp-cli.phar

# mv wp-cli.phar /usr/local/bin/wp

# wget

# mv wp-completion.bash /etc/bash_completion.d/wp-completion.bash

# echo "/etc/bash_completion.d" >> nano /var/cpanel/jailshell-additional-mounts

# echo "source /etc/bash_completion.d/wp-completion.bash" >> nano /etc/profile.d/


  • WP-CLI, Cpanel
  • 0 Users Found This Useful
Was this answer helpful?

Couldn't find what you are looking for?

Related Articles

How to bulk optimise images on a WordPress Multisite Network using Smush

wp site list --field=url | xargs -n1 -I % wp --url=% smush compress

How to change the WordPress Administration Email Address using WP-CLI?

What is the "Administration Email Address"? The Admin email address for your WordPress is...