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

# curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar

# chmod +x wp-cli.phar

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

# wget https://raw.githubusercontent.com/wp-cli/wp-cli/master/utils/wp-completion.bash

# 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/wpcli-autocomplete.sh

Share:

  • 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...