Drupal's magical "DRUSH" CLI

By donmc, 28 April, 2012

I have just spent a few hours getting familiar with this cool tool. Drush allows most housekeeping for Drupal sites to be done from a command line - it's a wonderful thing. Just take a look at how much I got done executing this single command:

sudo drush @veo up

And here's what it did for me:


donmc@jbt:/var/www/VEOffice$ sudo drush @veo up
Update information last refreshed: Sat, 04/28/2012 - 16:25

Update status information on all installed and enabled Drupal projects:
 Name                                             Installed version     Proposed        Status
                                                                        version
 AddThis (addthis)                                7.x-2.1-beta1         7.x-2.1-beta1   Up to date
 Apps (apps)                                      7.x-1.0-beta5         7.x-1.0-beta6   Update available
 Backup and Migrate (backup_migrate)              7.x-2.2               7.x-2.2         Up to date
 Backup and Migrate Files (backup_migrate_files)  7.x-1.x-dev           7.x-1.x-dev     Up to date
 Drupal                                           7.12                  7.12            Up to date
 Boxes (boxes)                                    7.x-1.0-beta6         7.x-1.0-beta8   Update available
 CAPTCHA (captcha)                                7.x-1.0-alpha3        7.x-1.0-beta2   Update available
 Colorbox (colorbox)                              7.x-1.2               7.x-1.3         Update available
 OpenPublic (openpublic)                          7.x-1.0-beta8         7.x-1.0-beta8   Up to date
 Comment notify (comment_notify)                  7.x-1.0               7.x-1.0         Up to date
 Conditional Stylesheets (conditional_styles)     7.x-2.0               7.x-2.1         Update available
 Context (context)                                7.x-3.0-beta2         7.x-3.0-beta2   Up to date
 Context Bool Field (context_bool_field)          7.x-1.0-beta1         7.x-1.0-beta1   Up to date
 Context Breadcrumb Current Page                  7.x-1.0-beta2         7.x-1.0-beta2   Up to date
 (context_breadcrumb_current_page)
 Context Field (context_field)                    7.x-1.0-beta2+10-dev  7.x-1.0-beta3   Update available
 Chaos tools (ctools)                             7.x-1.0-rc1           7.x-1.0         SECURITY UPDATE available
 Date (date)                                      7.x-2.0-alpha4        7.x-2.5         Update available
 Default Content (defaultcontent)                 7.x-1.0-alpha4        7.x-1.0-alpha6  Update available
 Delta API (delta)                                7.x-3.0-beta8         7.x-3.0-beta9   Update available
 Diff (diff)                                      7.x-2.0               7.x-2.0         Up to date
 Entity API (entity)                              7.x-1.0-beta10        7.x-1.0-rc2     Update available
 Entity Autocomplete (entity_autocomplete)        7.x-1.0-beta1         7.x-1.0-beta1   Up to date
 Entity cache (entitycache)                       7.x-1.1               7.x-1.1         Up to date
 Features (features)                              7.x-1.0-beta4         7.x-1.0-rc2     Update available
 Fieldgroup (field_group)                         7.x-1.1               7.x-1.1         Up to date
 Follow (follow)                                  7.x-1.0-alpha1+0-dev  7.x-1.0-alpha1  Up to date
 google_analytics                                 7.x-1.2               7.x-1.2         Up to date
 IMCE (imce)                                      7.x-1.5               7.x-1.5         Up to date
 IMCE Wysiwyg API bridge (imce_wysiwyg)           7.x-1.0               7.x-1.0         Up to date
 Link (link)                                      7.x-1.0-beta1         7.x-1.0         Update available
 References (references)                          7.x-2.0-beta3         7.x-2.0         Update available
 Node Reference View Formatter                    7.x-1.0-beta2         7.x-1.0-beta3   Update available
 (node_reference_view_formatter)
 Nodeblock (nodeblock)                            7.x-1.2               7.x-1.2         Up to date
 Node Connect (nodeconnect)                       7.x-1.0-alpha1        7.x-1.0-alpha2  Update available
 Nodequeue (nodequeue)                            7.x-2.0-alpha1        7.x-2.0-beta1   Update available
 Panels (panels)                                  7.x-3.0               7.x-3.2         Update available
 Password policy (password_policy)                7.x-1.0-rc1           7.x-1.0-rc2     Update available
 Pathauto (pathauto)                              7.x-1.0-rc2           7.x-1.0         Update available
 reCAPTCHA (recaptcha)                            7.x-1.7               7.x-1.7         Up to date
 Secure Pages (securepages)                                             7.x-1.x-dev     Installed version not supported
 Strongarm (strongarm)                            7.x-2.0-beta4         7.x-2.0-rc1     Update available
 Token (token)                                    7.x-1.0-beta6         7.x-1.0         Update available
 Twitter Pull (twitter_pull)                      7.x-1.0-rc1           7.x-1.0-rc1     Up to date
 Views (views)                                    7.x-3.0-rc1           7.x-3.3         SECURITY UPDATE available
 Views Boxes (views_boxes)                        7.x-1.0-beta6         7.x-1.0-beta8   Update available
 Webform (webform)                                7.x-3.13              7.x-3.17        SECURITY UPDATE available
 Wysiwyg (wysiwyg)                                7.x-2.1               7.x-2.1         Up to date
 XML sitemap (xmlsitemap)                         7.x-2.0-beta3         7.x-2.0-rc1     Update available
 Omega (omega)                                    7.x-3.0               7.x-3.1         Update available
 Rubik (rubik)                                    7.x-4.0-beta8         7.x-4.0-beta8   Up to date
 Tao (tao)                                        7.x-3.0-beta4         7.x-3.0-beta4   Up to date



Security and code updates will be made to the following projects: Apps [apps-7.x-1.0-beta6], Boxes [boxes-7.x-1.0-beta8], CAPTCHA [captcha-7.x-1.0-beta2], Colorbox [colorbox-7.x-1.3], Conditional Stylesheets [conditional_styles-7.x-2.1], Context Field [context_field-7.x-1.0-beta3], Chaos tool suite (ctools) [ctools-7.x-1.0], Date [date-7.x-2.5], Default Content [defaultcontent-7.x-1.0-alpha6], Delta [delta-7.x-3.0-beta9], Entity API [entity-7.x-1.0-rc2], Features [features-7.x-1.0-rc2], Link [link-7.x-1.0], References [references-7.x-2.0], Node Reference View Formatter [node_reference_view_formatter-7.x-1.0-beta3], Node Connect [nodeconnect-7.x-1.0-alpha2], Nodequeue [nodequeue-7.x-2.0-beta1], Panels [panels-7.x-3.2], Password policy [password_policy-7.x-1.0-rc2], Pathauto [pathauto-7.x-1.0], Secure Pages [securepages-7.x-1.x-dev], Strongarm [strongarm-7.x-2.0-rc1], Token [token-7.x-1.0], Views [views-7.x-3.3], Views Boxes [views_boxes-7.x-1.0-beta8], Webform [webform-7.x-3.17], XML sitemap [xmlsitemap-7.x-2.0-rc1], Omega - Responsive HTML5 Base Theme [omega-7.x-3.1]

Note: A backup of your project will be stored to backups directory if it is not managed by a supported version control system.
Note: If you have made any modifications to any file that belongs to one of these projects, you will have to migrate those modifications after updating.
Do you really want to continue with the update process? (y/n): y
Project apps was updated successfully. Installed version is now 7.x-1.0-beta6.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/apps.                               [ok]
Project boxes was updated successfully. Installed version is now 7.x-1.0-beta8.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/boxes.                              [ok]
Project captcha was updated successfully. Installed version is now 7.x-1.0-beta2.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/captcha.                            [ok]
Project colorbox was updated successfully. Installed version is now 7.x-1.3.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/colorbox.                           [ok]
Project conditional_styles was updated successfully. Installed version is now 7.x-2.1.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/conditional_styles.                 [ok]
Project context_field was updated successfully. Installed version is now 7.x-1.0-beta3.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/context_field.                      [ok]
Project ctools was updated successfully. Installed version is now 7.x-1.0.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/ctools.                             [ok]
Project date was updated successfully. Installed version is now 7.x-2.5.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/date.                               [ok]
Project defaultcontent was updated successfully. Installed version is now 7.x-1.0-alpha6.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/defaultcontent.                     [ok]
Project delta was updated successfully. Installed version is now 7.x-3.0-beta9.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/delta.                              [ok]
Project entity was updated successfully. Installed version is now 7.x-1.0-rc2.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/entity.                             [ok]
Project features was updated successfully. Installed version is now 7.x-1.0-rc2.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/features.                           [ok]
Project link was updated successfully. Installed version is now 7.x-1.0.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/link.                               [ok]
Project references was updated successfully. Installed version is now 7.x-2.0.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/references.                         [ok]
Project node_reference_view_formatter was updated successfully. Installed version is now 7.x-1.0-beta3.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/node_reference_view_formatter.      [ok]
Project nodeconnect was updated successfully. Installed version is now 7.x-1.0-alpha2.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/nodeconnect.                        [ok]
Project nodequeue was updated successfully. Installed version is now 7.x-2.0-beta1.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/nodequeue.                          [ok]
Project panels was updated successfully. Installed version is now 7.x-3.2.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/panels.                             [ok]
Project password_policy was updated successfully. Installed version is now 7.x-1.0-rc2.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/password_policy.                    [ok]
Project pathauto was updated successfully. Installed version is now 7.x-1.0.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/pathauto.                           [ok]
Project securepages was updated successfully. Installed version is now 7.x-1.x-dev.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/securepages.                        [ok]
Project strongarm was updated successfully. Installed version is now 7.x-2.0-rc1.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/strongarm.                          [ok]
Project token was updated successfully. Installed version is now 7.x-1.0.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/token.                              [ok]
Project views was updated successfully. Installed version is now 7.x-3.3.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/views.                              [ok]
Project views_boxes was updated successfully. Installed version is now 7.x-1.0-beta8.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/views_boxes.                        [ok]
Project webform was updated successfully. Installed version is now 7.x-3.17.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/webform.                            [ok]
Project xmlsitemap was updated successfully. Installed version is now 7.x-2.0-rc1.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/modules/xmlsitemap.                         [ok]
Project omega was updated successfully. Installed version is now 7.x-3.1.
Backups were saved into the directory /home/donmc/drush-backups/VEOffice/20120428202647/themes/omega.                               [ok]

donmc@jbt:/var/www/VEOffice$ sudo drush @veo updatedb
No database updates required                                                                                                        [success]
Finished performing updates.                                                                                                        [ok]
donmc@jbt:/var/www/VEOffice$ sudo drush @veo up
Update information last refreshed: Sat, 04/28/2012 - 16:27

Update status information on all installed and enabled Drupal projects:
 Name                                             Installed version  Proposed        Status
                                                                     version
 AddThis (addthis)                                7.x-2.1-beta1      7.x-2.1-beta1   Up to date
 Apps (apps)                                      7.x-1.0-beta6      7.x-1.0-beta6   Up to date
 Backup and Migrate (backup_migrate)              7.x-2.2            7.x-2.2         Up to date
 Backup and Migrate Files (backup_migrate_files)  7.x-1.x-dev        7.x-1.x-dev     Up to date
 Drupal                                           7.12               7.12            Up to date
 Boxes (boxes)                                    7.x-1.0-beta8      7.x-1.0-beta8   Up to date
 CAPTCHA (captcha)                                7.x-1.0-beta2      7.x-1.0-beta2   Up to date
 Colorbox (colorbox)                              7.x-1.3            7.x-1.3         Up to date
 OpenPublic (openpublic)                          7.x-1.0-beta8      7.x-1.0-beta8   Up to date
 Comment notify (comment_notify)                  7.x-1.0            7.x-1.0         Up to date
 Conditional Stylesheets (conditional_styles)     7.x-2.1            7.x-2.1         Up to date
 Context (context)                                7.x-3.0-beta2      7.x-3.0-beta2   Up to date
 Context Bool Field (context_bool_field)          7.x-1.0-beta1      7.x-1.0-beta1   Up to date
 Context Breadcrumb Current Page                  7.x-1.0-beta2      7.x-1.0-beta2   Up to date
 (context_breadcrumb_current_page)
 Context Field (context_field)                    7.x-1.0-beta3      7.x-1.0-beta3   Up to date
 Chaos tools (ctools)                             7.x-1.0            7.x-1.0         Up to date
 Date (date)                                      7.x-2.5            7.x-2.5         Up to date
 Default Content (defaultcontent)                 7.x-1.0-alpha6     7.x-1.0-alpha6  Up to date
 Delta API (delta)                                7.x-3.0-beta9      7.x-3.0-beta9   Up to date
 Diff (diff)                                      7.x-2.0            7.x-2.0         Up to date
 Entity API (entity)                              7.x-1.0-rc2        7.x-1.0-rc2     Up to date
 Entity Autocomplete (entity_autocomplete)        7.x-1.0-beta1      7.x-1.0-beta1   Up to date
 Entity cache (entitycache)                       7.x-1.1            7.x-1.1         Up to date
 Features (features)                              7.x-1.0-rc2        7.x-1.0-rc2     Up to date
 Fieldgroup (field_group)                         7.x-1.1            7.x-1.1         Up to date
 Follow (follow)                                  7.x-1.0-alpha1+0-  7.x-1.0-alpha1  Up to date
                                                  dev
 google_analytics                                 7.x-1.2            7.x-1.2         Up to date
 IMCE (imce)                                      7.x-1.5            7.x-1.5         Up to date
 IMCE Wysiwyg API bridge (imce_wysiwyg)           7.x-1.0            7.x-1.0         Up to date
 Link (link)                                      7.x-1.0            7.x-1.0         Up to date
 References (references)                          7.x-2.0            7.x-2.0         Up to date
 Node Reference View Formatter                    7.x-1.0-beta3      7.x-1.0-beta3   Up to date
 (node_reference_view_formatter)
 Nodeblock (nodeblock)                            7.x-1.2            7.x-1.2         Up to date
 Node Connect (nodeconnect)                       7.x-1.0-alpha2     7.x-1.0-alpha2  Up to date
 Nodequeue (nodequeue)                            7.x-2.0-beta1      7.x-2.0-beta1   Up to date
 Panels (panels)                                  7.x-3.2            7.x-3.2         Up to date
 Password policy (password_policy)                7.x-1.0-rc2        7.x-1.0-rc2     Up to date
 Pathauto (pathauto)                              7.x-1.0            7.x-1.0         Up to date
 reCAPTCHA (recaptcha)                            7.x-1.7            7.x-1.7         Up to date
 Secure Pages (securepages)                       7.x-1.x-dev        7.x-1.x-dev     Up to date
 Strongarm (strongarm)                            7.x-2.0-rc1        7.x-2.0-rc1     Up to date
 Token (token)                                    7.x-1.0            7.x-1.0         Up to date
 Twitter Pull (twitter_pull)                      7.x-1.0-rc1        7.x-1.0-rc1     Up to date
 Views (views)                                    7.x-3.3            7.x-3.3         Up to date
 Views Boxes (views_boxes)                        7.x-1.0-beta8      7.x-1.0-beta8   Up to date
 Webform (webform)                                7.x-3.17           7.x-3.17        Up to date
 Wysiwyg (wysiwyg)                                7.x-2.1            7.x-2.1         Up to date
 XML sitemap (xmlsitemap)                         7.x-2.0-rc1        7.x-2.0-rc1     Up to date
 Omega (omega)                                    7.x-3.1            7.x-3.1         Up to date
 Rubik (rubik)                                    7.x-4.0-beta8      7.x-4.0-beta8   Up to date
 Tao (tao)                                        7.x-3.0-beta4      7.x-3.0-beta4   Up to date

No code updates available.