drush

Events happening in the community are now at Drupal community events on www.drupal.org.
This group should probably have more organizers. See documentation on this recommendation.

Drush is a shell-based application used to control, manipulate, and administer Drupal sites. On the surface, drush is an excellent tool for updating site modules, but here is a more comprehensive list of features for drush:

  • Quick status report (get Drupal site version)
  • Run cron
  • Clear caches
  • Export site databases (SQL dump)
  • Update site code
  • Update Drupal database (run "update.php")
  • Get Info & Download Any Module & Themes
  • Enable/Disable/Uninstall Modules & Thems
  • Simulate updates/commands
  • Sync environments (perfect for DEV-STAGE-PRODUCTION)
  • plus modules offer drush add-ons, like Module Builder, Devel, Hacked!, plus many more.

You can see a list of some Drush commands available.

View the official list of modules that have Drush add-on commands available.


2009 Drush MVP Award goes to "Drush Make"

marcus_gbs's picture

Enhancing Nagios to monitor Drupal using Drush commands

Are you using or thinking about using Nagios to do system monitoring and are curious at options for monitoring information about your drupal site? Consider using drush to create the custom commands in Nagios.

For more details see: http://www.guidelightsolutions.com/blog/enhancing-nagios-monitor-drupal-...

Read more
John_Buehrer's picture

Run scripts using absolute pathnames & STDIN? (the Unix way)

Hi, may I inquire about (or request) support for running Drush scripts referenced by absolute path names, or fed from STDIN under Unix? This is to facilitate scripting in a common Unix manner. Eg, something like this:

$ drush  -r /Applications/MAMP/htdocs/my_site  scr  /tmp/qq
Read more
Chris Charlton's picture

Drush 4.0

I'd like to start a dialog here about what is slated to be in Drush 4.0, as the HEAD release is 4.0-dev.

Read more
lsiden's picture

What does "pm" stand for?

Can anyone tell me what the 'pm' stands for in all the 'pm-...' Drush commands? It is also used as a filter.

Read more

Drush distro packages

skwashd's picture

Efficiently Managing Many Drupal Sites - 3/4 Sep 2010, Bratislava - Cancelled

Start: 
2010-09-03 09:00 - 2010-09-04 17:00 Europe/Bratislava
Organizers: 
Event type: 
Training (free or commercial)

Dave Hall Consulting has teamed up with with Sven Creative to present an intensive 2 day workshop which teaches participants how to build, deploy and manage Drupal sites in a scalable way. Most sessions will involve an overview of a tool, then attendees will become familar with the tool by using it to complete a task. Time has been allocated to allow people to ask questions and share information about their own development workflows.

Read more
Michael Hofmockel's picture

VMWare Aegir 4 - Alpha 8

Chris Charlton's picture

Which Drush commands would you not be able to live without?

Get project release info
0% (0 votes)
Download projects
21% (7 votes)
Update projects (all or some)
64% (21 votes)
Create/Generate new Drupal site(s)
3% (1 vote)
SQL commands
0% (0 votes)
Alter db variables (VSET/VGET/VDEL)
0% (0 votes)
Clearing caches
6% (2 votes)
Run cron
0% (0 votes)
other/plug-ins
6% (2 votes)
Total votes: 33
Chris Charlton's picture

Putting a Drupal site into maintenance mode using Drush 3.0

I saw someone post to how they run a custom SQL script to put a Drupal site into maintenance mode using Drush's SQL commands, but here's the easier way without any SQL code necessary. Using Drush 3.0 we can turn a site on and off in a split second using the following command:

drush vset site_offline 1

To turn the site back online we run the same command but change the 1 to a 0, like so:

drush vset site_offline 0

*To learn more about the VSET command for Drush just type: drush help vset

Read more
henrrrik's picture

Ubuntu/Debian .deb install package for drush 3.0

The hosting company we use (Cloudnet) have posted a drush 3.0 .deb install package for Ubuntu/Debian.

Read more
benklocek's picture

How do you use Variable overrides in drushrc.php?

How do you use Variable overrides in drushrc.php?

I've got a few ideas from the examples of variables overrides, but I'm curious what uses everyone is using it in dev or production.

I could see using it to set the site title to "DEV" or something, any thing else?

Read more

New RHEL/CentOS Install Notes for Aegir Hosting System

Needing to use RHEL on a project forced me to write up these docs, as I spent days and days (even with druroot already having done CENTOS install months and months before) trying to get the install script to work. After many tries and just starting with CentOS on Rackspace Cloud (pretty standard stuff) I found that this was now the best way to go with all the recent changes and lack of consistent documentation on Aegir on CentOS/RHEL w/ the newest Drush and Drush_make changes.

I had pointed my domain name at mediatemple vps, so I simply setup an A record there to point to my Rackspace Instances IP. (If you have not checked out rackspace cloud vs. Amazon's "interesting" offerings you seriously should.) Then I went and added DNS entry on Rackspace clouds DNS tab. So I setup the hostname on the instance (ssh in) like:

Read more
pglatz's picture

Drush 3 and subversion - my .svn files are disappearing

I love drush, but since moving to version 3 recently, I'm having problems with drush up.

I use subversion for version control, and when I try to run update, the first thing it does is to move the entire directory of any module that needs updates to the backups tree. This sounds like a good idea, but unfortunately my .svn files are moved too, giving me subversion errors, and essentially losing my historical changelog.

Read more
okokokok's picture

#!/usr/bin/env drush-script

I want my drush scripts to be executable (without typing drush php-script NAMEOFSCRIPT.php) so I created a file /usr/local/bin/drush-script: drush php-script $1

chmod +x NAMEOFSCRIPT.php

and NAMEOFSCRIPT.php now starts with #!/usr/bin/env drush-script

Now it would be nice to get rid of the drush-script file. Unfortunately #!/usr/bin/env drush php-script doesn't work as it will look for the file 'drush php-script' instead of passing php-script as the first parameter. Is there a way to pass this parameter in some other way?

Read more
lloydpearsoniv's picture

Installing modules on other platforms using drush

Everything on my aegir 0.4 alpha 6 installation is running fine. I just have one issue. When i install modules into the hostmaster platform, i have no problems but if i try to install modules to other platforms using drush, i get this error. "Drush command could not be completed"

when i download to the hostmaster platform:

:~/hostmaster-0.4-alpha6$ drush dl acquia_prosper
Project acquia_prosper (6.x-1.0-beta4) downloaded to [success]
/var/aegir/hostmaster-0.4-alpha6/sites/all/themes/acquia_prosper.
:~/hostmaster-0.4-alpha6$ drush dl skinr fusion

Read more
bwood's picture

DrupalCon Aegir BOF Scheduled: Mon 4/19 2:45-3:45

We have a room with AV on Mon 4/19 2:45-3:45 Room 206. Please reply here if you have thoughts about the agenda.

If needed I can talk about the UC Berkeley use case anddo an informal demo of stuff I've been working on with Puppet and my Aegir 0.3 "helper" shell scripts like move_db.php and clone_site.sh...

But I'd love it if others propose agenda/discussion items. This is my first DrupalCON BOF so not sure how much organization is needed. Help me out! :-)

http://sf2010.drupal.org/conference/birds-feather

Read more
Chris Charlton's picture

Drush 3.0: Blog post from Development Seed outlines new ways to Drush

This blog post shows off some great new ways Drush 3.0 is better than earlier releases. http://developmentseed.org/blog/2010/mar/10/drush-30-more-powerful-flexi...

It's a good read to get ready for updating to the next level of Drush's Drupal power.

Read more
marcus_gbs's picture

create new db using drush

I'm using Drupal 6.x.

While I have my own shell script that will create a new database to use with a new drupal install, I would like to do this with drush.

Drush has some sql commands, but they seem to be for post creation.

I've looked inside the drush 3 beta and found the drush_core_pre_site_install() function, but I don't see where it is exposed. I tried to guess at a command name (pre-site-install), but those attempts failed. Another function in that same file, drush_core_site_install gave me an error message that it requires Drupal 7.

Read more
tsaw's picture

DRUSH Ver 2 verses Ver 3 Beta

I just noticed something that I hadn't seen before in Drush...

Using Version 2 - I downloaded ckeditor and that worked fine. I then installed using drush en ckeditor - and it actually downloaded and install the extra software into the library folder for me. Love it!!!

Then on another site - I installed Ver 3 beta and tried the same - it downloaded ckeditor but when I tried to enable it - all it did was enable and not download and install the extra software into the library folder. I had to do that manually.

Any thoughts?

Read more
eporama's picture

Command to see modules within a project

Is there any drush command to see which modules are included within a project? You can download a project, "cck", for example, and you need to enable "content", "text", "fieldgroup", etc. The only way I've found to see what "cck" packaged was to do a statusmodules command and see what changed (or to look directly for .info files within the folder).

Read more
Subscribe with RSS Syndicate content

drush

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: