pm-updatecode

Update Drupal core and contrib projects to latest recommended releases.

drush pm-updatecode

Aliases:

Arguments:

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

Options:

--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.
--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.
--check-disabled : Check for updates of disabled modules and themes.
--security-only : Only update modules that have security updates available.

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"