You can get a list of Civi-related Drush commands simply by typing drush
on the command line. Excerpt:
All commands in civicrm: (civicrm)
civicrm-api (cvapi) CLI access to CiviCRM APIs. It can return pretty-printor json formatted data.
civicrm-enable-debug Enable CiviCRM Debugging.
civicrm-ext-disable (ced) Disable a CiviCRM extension.
civicrm-ext-install (cei) Install a CiviCRM extension.
civicrm-ext-list (cel) List of CiviCRM extensions enabled.
civicrm-ext-uninstall (ceui)Uninstall a CiviCRM extension.
civicrm-install Install a new instance of CiviCRM.
civicrm-member-records Run the CiviMember UpdateMembershipRecord cron (civicrm-member-records).
civicrm-process-mail-queue Process pending CiviMail mailing jobs.
civicrm-rest (cvr) Rest interface for accessing CiviCRM APIs. It can return xml or json formatted data.
civicrm-restore Restore CiviCRM codebase and database back from the specified backup directory.
civicrm-sql-cli (cvsqlc) Open a SQL command-line interface using CiviCRM's credentials.
civicrm-sql-conf Print CiviCRM database connection details.
civicrm-sql-connect A string for connecting to the CiviCRM DB.
civicrm-sql-dump Exports the CiviCRM DB as SQL using mysqldump.
civicrm-sql-query Execute a query against the CiviCRM database.
civicrm-update-cfg (cvupcfg)Update config_backend to correct config settings, especially when the CiviCRM site has been cloned / migrated.
civicrm-upgrade (cvup) Replace CiviCRM codebase with new specified tarfile and upgrade database by executing the CiviCRM upgrade process - civicrm/upgrade?reset=1.
civicrm-upgrade-db (cvupdb) Execute the civicrm/upgrade?reset=1 process from the command line.
Personally I usually download the tarfile manually, replace the civicrm
directory in the modules folder (backing up as needed, e.g. drush civicrm-sql-dump > ~/filename.sql
) and then use drush cvupdb
to run the database upgrade.
Practice on a dev server first, though! :)