Topic

Drush

Drush is a command line interface for your Drupal site. It allows you to perform common administrative tasks in a scripting environment. Using Drush you can do things like clear your cache, import configuration settings, create new users, and enable modules from the command line. Once you become familiar with Drush you will find yourself doing a lot less clicking through your site's backend during development.

Example tasks

  • Perform common site administration commands from the command line.
  • Speed up and improve your daily development workflow.
  • Automate common repetitive manual tasks (like importing configuration files) during the deployment process.

Confidence

A new version of Drush (version 9) is still in active development. The actual process of using Drush and the commands required to administer or manage your site are relatively stable, but until version 9 comes out and becomes the recommended release, some of the tutorials highlighted below may contain some inaccuracies. NOTE: Drupal 8.4 requires at least version 8.1.12 (or higher) of Drush. You can read more about this requirement here.

Drupalize.Me resources

More Guides

We have guides on many Drupal skills and topics.

Explore guides

External resources

  • Installation documentation (docs.drush.org)
    • This is the official installation documentation for the various versions of Drush. Note the caveat about Drush 9 installation. Starting with Drush 8, the recommended installation method for Drush is using Composer. This also means that you have a separate installation of Drush within each codebase.
  • General documentation (docs.drush.org)
    • This will illustrate the various Drush commands you can use once you have the tool installed and available on your system.
  • GitHub repository (github.com)
    • This is where the actual Drush codebase and issue tracker live. The documentation available here in the README.md contains links to the installation and general documentation mentioned above, as well as several additional resources.