Community Documentation

Update Drupal core and contrib modules with Drush and SVN

Last updated May 1, 2012. Created by jutulen on May 1, 2012.
Log in to edit this page.

Drush has integration with SVN which makes it easy to update a module and automatically commit the new version of the code to SVN.
In this example we use Drush to update a fictional module named "modulename" and then commit the changes to SVN along with a commit message for the SVN log:

drush up modulename --svnsync --svncommit --svnmessage="svn commit message."

To update all outdated Drupal core and contrib modules modules:

drush up --svnsync --svncommit --svnmessage="svn commit message."

About this page

Drupal version
Drupal 6.x
Level
Beginner, Intermediate
Audience
Contributors, Programmers, Site administrators
Keywords
drush, SVN
Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.
nobody click here