Drush

June 6, 2020

Drush is a clean command line shell and Unix scripting interface. Especially in combination with Drupal, Drush is a can be a very useful tool.

Drush can be used to;

  • easily clear your websites cache
  • export and import configuration
  • sidestep the interface in cases the backend is not available, very useful when fixing errors
  • handy when doing your regular updates and maintenance
  • execute cron runs
  • execute sql queries

Some basic Drush commands are:

drush cache-clear (cc)

drush cache-rebuild (cr)

drush config-export (cex)

drush config-import (cim)

drush updatedb (updb)

To check your version simply use:

drush version