drush pm-updatecode

Update Drupal core and contrib projects to latest recommended releases.

Drush Command

drush pm-updatecode


projects : Optional. A list of installed projects to update.


drush upc


--notes : Show release notes for each project to be updated.
--no-core : Only update modules and skip the core update.
--check-updatedb : Check to see if an updatedb is needed after updating the code. Default is on; use --check-updatedb=0 to disable.
--lock : [object Object]
--version-control=backup : [object Object]
--version-control=bzr : [object Object]
--version-control=svn : [object Object]
--cache : Cache release XML and tarballs or git clones. Git clones use git's --reference option. Defaults to 1 for downloads, and 0 for git.
--package-handler=wget : [object Object]
--package-handler=git_drupalorg : [object Object]
--update-backend : [object Object]
--check-disabled : Check for updates of disabled modules and themes.
--security-only : Only update modules that have security updates available.
--update-backend=drush : [object Object]
--update-backend=drupal : [object Object]


Update contrib projects, but skip core.

drush pm-updatecode --no-core
To show a list of projects with their update status, use pm-updatestatus instead of pm-updatecode.
drush pm-updatestatus --format=csv --list-separator=" " --fields="name,existingversion,candidateversion,status_msg"