drush pm-updatecodefor drush 7x

Update Drupal core and contrib projects to latest recommended releases.

drush pm-updatecode

  • Aliases

    pm-updatecode has 1 alias/es:

    drush upc

  • Arguments

    pm-updatecode accepts 1 argument/s:

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

  • Options

    pm-updatecode accepts 15 option/s:

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


    --version-control=backup : version-control=backup


    --version-control=bzr : version-control=bzr


    --version-control=svn : version-control=svn

    --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 : package-handler=wget


    --package-handler=git_drupalorg : package-handler=git_drupalorg


    --update-backend : update-backend

    --check-disabled : Check for updates of disabled modules and themes.

    --security-only : Only update modules that have security updates available.


    --update-backend=drush : update-backend=drush


    --update-backend=drupal : update-backend=drupal

  • Examples

    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,existing_version,candidate_version,status_msg"

  • Comments

    comments powered by Disqus