Install Drupal console (basic usage) | Drupal 8

Install Drupal console (basic usage)

Submitted by editor on Fri, 07/21/2017 - 09:08
Question

How to install and use drupal console with drupal 8 ?

Download and Install

 

Download drupal console

curl https://drupalconsole.com/installer -L -o drupal.phar
# OR
php -r "readfile('https://drupalconsole.com/installer');" > drupal.phar
sudo mv drupal.phar /usr/local/bin/drupal
chmod +x /usr/local/bin/drupal

Include drupal console to your project.

composer require drupal/console:~1.0

Initialize drupal console.

drupal init

 

Documentations

  • https://drupalconsole.com/articles/how-to-install-drupal-console
  • https://docs.drupalconsole.com/en/getting/composer.html

 

Update drupal console

drupal self-update

The autocomplete feature.

#Bash or Zsh: Add this line to your shell configuration file:
source "$HOME/.console/console.rc" 2>/dev/null
#Fish: Create a symbolic link
ln -s ~/.console/drupal.fish ~/.config/fish/completions/drupal.fish

 

Basic Usage

The full documentation is available from : https://docs.drupalconsole.com/en/commands/available-commands.html

 

Add new comment