Skip to main content
Drupal 8

Main navigation

  • Home
    • Question And Answer
    • NEWS
    • Projects
  • Tutorials - Drupal
    • Android
    • Other
User account menu
  • Log in

Breadcrumb

  1. Home

Install Drupal console (basic usage)

By editor , 21 July, 2017
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

 

Tags

  • Drupal 8
  • Console

Comments

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.

Links

  • Drupal.org
  • Drupal core release cycle
  • Drupal events with ease
  • Unit test with Drupal using PHPUnit (Drupal 10)
  • Tokens for file upload url
  • Tips for Docker
  • CKEditor inline image files usage for custom forms.
  • Install Docker on Linux Mint
  • Install PHP 8.1
  • Drupal Security Best Practices
  • Order and sort items with tabledrag
  • Add a custom service YAML container
  • Apply a patch with composer