Useful Drupal “drush” commands

Useful Drupal “drush” commands

Drush is a command line utility to provide a scripting interface for Drupal.

Install the latest Drupal version

drush dl drupal #downloads the latest Drupal
drush dl drupal-7.35 #downloads the specified Drupal version
drush site-install standard --account-name=[username] --account-pass=[userpassword] --db-url=mysql://[mysqluser]:[mysqluserpassword]@localhost/[mysqldatabase]

When you’re locked out of your site because you enabled clean URL’s.

drush vset clean_url 0 --yes

Update a Drupal installation to the latest version, including installed extentions.

drush pm-update

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.