Drush - Useful commands

Drush commands

Drush is a command line shell and Unix scripting interface for Drupal. You can use drush to download, update and install drupal and it's modules. It also executes SQL queries and DB migrations, clear caches and other useful things such as backup, updates, clear caches etc.

The most common commands are:

  • drush help

          Display a list of available options and commands

  • drush dl project-name

         Downloads the project we want, sush as module, theme or drupal.

  • drush en project-name

         Enable the module or theme.

  • drush up project-name

         Updates the module, theme or drupal

  • drush watchdog-show

         Display recent logs, errors and warnings

The full list of commands can be found at https://drushcommands.com