> ## Documentation Index
> Fetch the complete documentation index at: https://kb.hosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Installing WP-CLI manually

> Follow Our Easy, Step-By-Step Instructions To Install WP-CLI On Your Server Or WordPress Hosting Account. It Couldn't Be Easier To Get Started!

This article describes how to manually install the WP-CLI (WordPress Command Line Interface) tool on your hosting account.

<Warning>
  **Important**

  By default, WP-CLI is installed on the following hosting packages:

  * Shared hosting

  * Reseller hosting

  * Managed VPS

  If you have an account on one of these packages, you do not need to follow the procedures in this article.
</Warning>

## Installing WP-CLI manually

To install WP-CLI on your account, follow these steps:

1. Log in to your account [using SSH](/docs/using-ssh-secure-shell).

2. To download WP-CLI, type the following commands:

```bash theme={null}
cd ~
curl -k -L https://raw.github.com/wp-cli/builds/gh-pages/phar/wp-cli.phar > wp-cli.phar
```

3. To verify that the WP-CLI file runs correctly, type the following command:

```bash theme={null}
php wp-cli.phar --info
```

<Note>
  WP-CLI should display PHP version and configuration information. If it does not, you may need to install additional dependencies (such as Phar support) on your server. Consult the documentation for your Linux distribution for more information.
</Note>

4. To set up an alias for the WP-CLI executable, type the following command. Replace ***username*** with the account username:

```bash theme={null}
echo 'alias wp="php /home/username/wp-cli.phar"' > ~/.bashrc
```

5. To make the new alias take effect immediately, type the following command:

```bash theme={null}
source ~/.bashrc
```

6. You can now run WP-CLI on your account by simply typing **wp**.

## More information

For more information about WP-CLI, please visit [http://wp-cli.org](http://wp-cli.org).

## Related articles

* [Administering WordPress from the command line](/docs/administering-wordpress-from-the-command-line)
