What is the "Drupal Console" ?
Drupal Console is the new CLI for Drupal. Drupal Console is a tool to generate boilerplate code, interact and debug Drupal. From the ground up, it has been built to utilize the same modern PHP practices which were introduced in Drupal 8.
Drupal Console has been designed to facilitate the Drupal 8 adoption while making development and interaction more efficient and enjoyable.
Installation and use
# Run this in your terminal to get the latest Console version:
curl https://drupalconsole.com/installer -L -o drupal.phar
# Or if you don't have curl:
php -r "readfile('https://drupalconsole.com/installer');" > drupal.phar
# Accessing from anywhere on your system:
mv drupal.phar /usr/local/bin/drupal
# Apply executable permissions on the downloaded file:
chmod +x /usr/local/bin/drupal
# Copy configuration files to user home directory:
drupal init --override
# Check and validate system requirements
drupal check
# Download, install and serve Drupal 8:
drupal chain --file=~/.console/chain/quick-start.yml
# Create a new Drupal 8 project:
drupal site:new drupal8.dev
# Lists all available commands:
drupal list
# Update DrupalConsole to the latest version:
drupal self-update
Comments