Core drush commands
archive-dump | Backup your code, files, and database into a single file. |
archive-restore | Expand a site archive into a Drupal web site. |
cache-clear | Clear a specific cache, or all drupal caches. |
cache-get | Fetch a cached object and display it. |
cache-set | Cache an object expressed in JSON or var_export() format. |
core-config | Edit drushrc, site alias, and Drupal settings.php files. |
core-cron | Run all cron hooks in all active modules for specified site. |
core-execute | Execute a shell command. Usually used with a site alias. |
core-quick-drupal | Download, install, serve and login to Drupal with minimal configuration and dependencies. |
core-requirements | Provides information about things that may be wrong in your Drupal installation, if any. |
core-rsync | Rsync the Drupal tree to/from another server using ssh. |
core-status | Provides a birds-eye view of the current Drupal installation, if any. |
core-topic | Read detailed documentation on a given topic. |
drupal-directory | Return path to a given module/theme directory. |
help | Print this help message. See `drush help help` for more options. |
image-flush | Flush all derived images for a given style. |
php-eval | Evaluate arbitrary php code after bootstrapping Drupal (if available). |
php-script | Run php script(s). |
queue-list | Returns a list of all defined queues |
queue-run | Run a specific queue by name |
search-index | Index the remaining search items without wiping the index. |
search-reindex | Force the search index to be rebuilt. |
search-status | Show how many items remain to be indexed out of the total. |
self-update | Check to see if there is a newer Drush release available. |
shell-alias | Print all known shell alias records. |
site-alias | Print site alias records for all known site aliases and local sites. |
site-install | Install Drupal along with modules/themes/configuration using the specified install profile. |
site-reset | Reset a persistently set site. |
site-set | Set a site alias to work on that will persist for the current session. |
site-ssh | Connect to a Drupal site's server via SSH for an interactive session or to run a shell command |
test-clean | Clean temporary tables and files. |
test-run | Run tests. Note that you must use the --uri option. |
updatedb | Apply any database updates required (as with running update.php). |
usage-send | Send anonymous Drush usage information to statistics logging site. Usage statistics contain the Drush command name and the Drush option names, but no arguments or option values. |
usage-show | Show Drush usage information that has been logged but not sent. Usage statistics contain the Drush command name and the Drush option names, but no arguments or option values. |
variable-delete | Delete a variable. |
variable-get | Get a list of some or all site variables and values. |
variable-set | Set a variable. |
version | Show drush version. |
watchdog-delete | Delete watchdog messages. |
watchdog-list | Show available message types and severity levels. A prompt will ask for a choice to show watchdog messages. |
watchdog-show | Show watchdog messages. |
Runserver commands
runserver | Runs a lightweight built in http server for development. |
Field commands
field-clone | Clone a field and all its instances. |
field-create | Create fields and instances. Returns urls for field editing. |
field-delete | Delete a field and its instances. |
field-info | View information about fields, field_types, and widgets. |
field-update | Return URL for field editing web page. |
Project manager commands
pm-disable | Disable one or more extensions (modules or themes). |
pm-download | Download projects from drupal.org or other sources. |
pm-enable | Enable one or more extensions (modules or themes). |
pm-info | Show detailed info for one or more extensions (modules or themes). |
pm-list | Show a list of available extensions (modules and themes). |
pm-refresh | Refresh update status information. |
pm-releasenotes | Print release notes for given projects. |
pm-releases | Print release information for given projects. |
pm-uninstall | Uninstall one or more modules. |
pm-update | Update Drupal core and contrib projects and apply any pending database updates (Same as pm-updatecode + updatedb). |
pm-updatecode | Update Drupal core and contrib projects to latest recommended releases. |
SQL commands
sql-cli | Open a SQL command-line interface using Drupal's credentials. |
sql-connect | A string for connecting to the DB. |
sql-create | Create a database. |
sql-drop | Drop all tables in a given database. |
sql-dump | Exports the Drupal DB as SQL using mysqldump or equivalent. |
sql-query | Execute a query against the site database. |
sql-sync | Copy and import source database to target database. Transfers via rsync. |
User commands
user-add-role | Add a role to the specified user accounts. |
user-block | Block the specified user(s). |
user-cancel | Cancel a user account with the specified name. |
user-create | Create a user account with the specified name. |
user-information | Print information about the specified user(s). |
user-login | Display a one time login link for the given user account (defaults to uid 1). |
user-password | (Re)Set the password for the user account with the specified name. |
user-remove-role | Remove a role from the specified user accounts. |
user-unblock | Unblock the specified user(s). |
Other commands
make | Turns a makefile into a working Drupal codebase. |
make-generate | Generate a makefile from the current Drupal site. |
Global Options (see `drush topic core-global-options` for the full list)
-r <path>, --root=<path> | Drupal root directory to use (default: current directory). |
-l <http://example.com:8888>, --uri=<http://example.com:8888> | URI of the drupal site to use (only needed in multisite environments or when running on an alternate port). |
-v, --verbose | Display extra information about the command. |
-d, --debug | Display even more information, including internal messages. |
-y, --yes | Assume 'yes' as answer to all prompts. |
-n, --no | Assume 'no' as answer to all prompts. |
-s, --simulate | Simulate all relevant actions (don't actually change the system). |
-p, --pipe | Emit a compact representation of the command for scripting. |
-h, --help | This help system. |
--version | Show drush version. |
--php=</path/to/file> | The absolute path to your PHP intepreter, if not 'php' in the path. |
-ia, --interactive | Force interactive mode for commands run on multiple targets (e.g. `drush @site1,@site2 cc --ia`). |