> ## 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 Drupal Console

> Install Drupal Console with our easy step-by-step guide for efficient Drupal administration and development.

This article describes how to install [Drupal Console](https://drupalconsole.com).

Drupal Console is a command-line tool used for Drupal administration and development. It is currently intended to complement, rather than replace, the [Drush command-line tool](/docs/using-drush-for-drupal).

<Warning>
  **Important**

  Drupal Console only works with Drupal 8 and newer versions. It does not work with older versions of Drupal.
</Warning>

## Installing Drupal Console

To install Drupal Console, follow these steps:

1. If you have not already done so, install a Drupal 8 or Drupal 9 site. You must have a Drupal 8 or Drupal 9 site installed on your account to install Drupal Console.

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

3. At the command prompt, change the current directory to where the Drupal site is installed. For example, type `cd ~/public_html/drupal`.

4. To install Drupal Console, type the following command:

```bash theme={null}
composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader
```

5. To ensure that you can run Drupal Console from any directory, type the following commands. Replace ***username*** with your account username, and replace ***drupal\_dir*** with the name of the directory where you installed Drupal:

```bash theme={null}
echo 'alias drupal="/home/username/public_html/drupal_dir/vendor/bin/drupal"' > ~/.bashrc
source ~/.bashrc
```

You can now run Drupal Console by simply typing **drupal** at the command prompt from any directory in your account.

6. To verify that Drupal Console installed correctly, type one or both of the following commands in the Drupal site directory:

```bash theme={null}
drupal site:status
drupal site:statistics
```

You should see information about your Drupal site.

## More information

* For more information about Drupal Console, please visit [https://drupalconsole.com](https://drupalconsole.com).

* To view the official Drupal Console documentation, please visit [https://docs.drupalconsole.com/en/index.html](https://docs.drupalconsole.com/en/index.html).

## Related articles

* [Using Drush for Drupal](/docs/using-drush-for-drupal)

* [Installing Drush manually](/docs/installing-drush-manually)
