This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

Introducing Cloudways Community Forum. Start Discussions and Get Instant Help From Cloudways Community. JOIN NOW

Common Drupal 7 Drush CommandsJuly 31, 2017

 

In this KB

  • Importance of understanding Drupal configuration via Drush
  • Drupal 7 drush commands and their usage

 

It is essential for every Drupal developer to know how to use configure and use Drupal through Drush as it is a very valuable skill.

To get you started, below are some of the most common Drush commands for Drupal 7.

  • Clear cache: drush cc all

image1

  • Open SQL command-line through Drupal’s credentials: drush sql-cli

image6

  • Enable a module: drush en {name_of_module}

image5

  • Disable a module: drush dis {name_of_module}

image7

  • Update a module: drush up {name_of_module}

image4

  • Update Drupal: drush up drupal
  • Check watchdog (logged events): drush ws

image3

  • Runserver (PHP’s built-in http server for development): drush runserver

image2

The commands above are the ones we think might come in as most useful to you. To learn more about Drush and its commands, read the official documentation.

Please insert Content
Have Questions? Ask From Our Helpful Community

Comments are closed.

Do you still need help?

Our Technical Support team is always at work.