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


# 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


Was this answer helpful?

« Back

Find your perfect domain

Use our domain name search to check your dream domain name

Wide Variety of Domains

Easy Registration Process

Free WHOIS Privacy

www.
Spinner