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

# Using WP-CLI in the hosting.com Dashboard

> Learn how to access and use the WordPress command-line tool WP-CLI in the hosting.com Dashboard.

With our unique WordPress command-line interface terminal, using WP-CLI has never been easier! No longer do you need to be a Linux pro to make use of the powerful WP-CLI tool set.

<Tip>
  Before you use WP-CLI, please read the release announcement at the [Rocket.net blog](https://rocket.net/blog/introducing-web-based-wp-cli-terminal-for-managed-wordpress-hosting/) for an overview and some basic information about how to use it.
</Tip>

## Accessing WP-CLI

To access WP-CLI from the hosting.com Dashboard, follow these steps:

1. Log in to the Hosting Panel at [https://my.hosting.com](https://my.hosting.com).

2. In the left sidebar, click **Managed WordPress**:

   ![](https://files.readme.io/6f570e0ca5d448c0cc2e1bd0fc2fabad74a0c1c5367ea425e652a938e8d5053d-image.png)

3. On the **My Websites** page, locate the site, and then click **Manage**:

   ![](https://files.readme.io/6fe1aa300f93cf0bc299f70bf22337e249a3fe6fa2ae47ddc7455c52eec45fcb-image.png)

4. On the hosting.com dashboard, click the **Advanced** icon:

   ![](https://files.readme.io/8be7350c767b91b4b19c180f3ef434975de17d6d53cb409653a78e62c98cac26-image.png)

5. In the **Advanced Settings** section, in the **WP Command Line Interface** row, click **WP-CLI**:

   ![](https://files.readme.io/4bfd2b14266f0a48fa524f8a35d715b9cb3fd59ff37cbd780a36814b70fa080e-image.png)

6. The WP-CLI terminal appears, ready for your commands:

   ![](https://files.readme.io/5b6d13b5ebc0d1163f14f3874ff72ee3c28244e9b334b2850d2981b97629d36a-image.png)

## Using WP-CLI

The WP-CLI Terminal is not the same as an SSH command prompt. The only command available is `wp` with another command called an "argument" after it. For example:

```
wp theme list
wp plugin list  
wp user list
```

The `wp` command invokes WP-CLI, and `[item] list` displays lists of each of those items.

One of the most powerful tools available in WP-CLI is the `search-replace` command, which allows you to search the database for any text and replace it.

For example, the following command changes references from an old domain name (*example.net*) to a new domain name (*example.com*):

```
wp search-replace 'https://example.net' 'https://example.com'
```

<Warning>
  **Important**

  You should not use this command to change a site’s domain name. The example above refers to an arbitrary URL in the database.
</Warning>

In some cases, you may need to use the options `–all-tables` and `–precise` to instruct WP-CLI to search the entire database. You may also want to add the `–dry-run` option at the end so you can test the command without making any actual replacements in the database.
