Home
/
Other Applications
/
How to install Drupal console?

How to install Drupal console?

The Drupal console is a very useful tool that allows you to manage your Drupal application from CLI. You can use it to configure and debug your Drupal website, install, modify and delete extensions or themes and many other things.

To be able to use the Drupal console, you must first have a Drupal 8.x application installed.

Once Drupal is installed, you can install the Drupal console. First, log in to your account via SSH and then navigate to the folder where your Drupal is located.

After that, execute the following command:

composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader

and allow the installation some time to complete.

Once it is completed, the Drupal console binary file will be located at:

/path/to/drupal/vendor/drupal/console/bin/drupal

For example, to run the site:status command for your application, execute this command:

/path/to/drupal/vendor/drupal/console/bin/drupal site:status

Share This Article