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"

Enhancing Nagios to monitor Drupal using Drush commands

Posted by marcus_gbs on September 30, 2010 at 8:04pm

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

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

Posted by John_Buehrer on September 20, 2010 at 7:37am

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

Drush 4.0

Posted by Chris Charlton on September 10, 2010 at 8:43pm

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

What does "pm" stand for?

Posted by lsiden on September 8, 2010 at 4:24am

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

Posted by boombatower on August 5, 2010 at 6:21am
Last updated by boombatower on Mon, 2011年08月15日 10:23

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

Posted by skwashd on July 23, 2010 at 12:02am
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

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

Posted by Chris Charlton on June 25, 2010 at 6:51pm
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

Putting a Drupal site into maintenance mode using Drush 3.0

Posted by Chris Charlton on June 23, 2010 at 10:21pm

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

Ubuntu/Debian .deb install package for drush 3.0

Posted by henrrrik on June 15, 2010 at 8:16am

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

Read more

How do you use Variable overrides in drushrc.php?

Posted by benklocek on June 5, 2010 at 7:49pm

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

Posted by redhatmatt on May 8, 2010 at 3:50am
Last updated by silverwing on Thu, 2011年07月14日 23:59

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

Drush 3 and subversion - my .svn files are disappearing

Posted by pglatz on April 26, 2010 at 11:47pm

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
4 comments Categories:

#!/usr/bin/env drush-script

Posted by okokokok on April 25, 2010 at 1:51pm

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

Installing modules on other platforms using drush

Posted by lloydpearsoniv on April 16, 2010 at 1:47am

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

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

Posted by bwood on April 13, 2010 at 3:49pm

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

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

Posted by Chris Charlton on March 24, 2010 at 6:58pm

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
Categories:

create new db using drush

Posted by marcus_gbs on March 19, 2010 at 7:52pm

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

DRUSH Ver 2 verses Ver 3 Beta

Posted by tsaw on March 6, 2010 at 4:28pm

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
1 comment Categories:

Command to see modules within a project

Posted by eporama on March 6, 2010 at 12:14pm

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
Categories:
Subscribe with RSS Syndicate content

drush

Group organizers

Group notifications

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

AltStyle によって変換されたページ (->オリジナル) /