This article describes how to manually install the WP-CLI (WordPress Command Line Interface) tool on your hosting account.
To install WP-CLI on your account, follow these steps:
cd ~ curl -k -L https://raw.github.com/wp-cli/builds/gh-pages/phar/wp-cli.phar > wp-cli.phar
To verify that the WP-CLI file runs correctly, type the following command:
php wp-cli.phar --info
To set up an alias for the WP-CLI executable, type the following command. Replace username with the account username:
echo 'alias wp="php /home/username/wp-cli.phar"' >> ~/.bashrc
To make the new alias take effect immediately, type the following command:
source ~/.bashrc
For more information about WP-CLI, please visit http://wp-cli.org.
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.
Usamos cookies con el fin de personalizar para usted nuestro sitio Web y analizar el uso de éste. Usted acepta esto haciendo clic en “Acepto” o al continuar usando el sitio Web. Hay más información sobre cookies en nuestra política de privacidad.