Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Global options (see `drush topic core-global-options` for the full list):
-d, --debug Display even more information, including internal messages.
-h, --help This help system.
-n, --no Assume 'no' as answer to all prompts.
-r <path>, --root=<path> Drupal root directory to use (default: current directory).
-s, --simulate Simulate all relevant actions (don't actually change the system).
-l <>, 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.
-y, --yes Assume 'yes' as answer to all prompts.
: (core)
core-config (conf, Edit drushrc, site alias, and Drupal settings.php files.
core-cron (cron) Run all cron hooks in all active modules for specified site.
core-execute (exec, 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.
(status-report, rq)
core-rsync (rsync) Rsync the Drupal tree to/from another server using ssh.
core-status (status, Provides a birds-eye view of the current Drupal installation, if any.
drupal-directory Return path to a given module/theme directory.
help Print this help message. See `drush help help` for more options.
php-eval (eval, ev) Evaluate arbitrary php code after bootstrapping Drupal (if available).
php-script (scr) Run php script(s).
site-install (si) Install Drupal along with modules/themes/configuration using the specified install profile.
updatedb (updb) Apply any database updates required (as with running update.php).
updatedb-status List any pending database updates.
version Show drush version.
All commands in apachesolr: (apachesolr)
solr-delete-index Deletes the content from the index. Can take content types as parameters.
solr-get-env-id Get the default Apache Solr environment ID, or all IDs and names
solr-get-env-name Get the Apache Solr environment name.
solr-get-env-url Get the Apache Solr environment url.
solr-get-last-indexe Get the ID of the last document indexed.
solr-get-next-indexe Get the ID of the next document to be indexed.
solr-index Reindexes content marked for (re)indexing.
solr-mark-all Marks content for reindexing. Can take content types as parameters.
solr-search Search the site for keywords using Apache Solr
solr-set-env-url Set the url for an Apache Solr environment.
solr-variable-delete Delete an Apache Solr environment variable.
solr-variable-get Get a list of Apache Solr environment variable names and values.
solr-variable-set Set an Apache Solr environment variable.
All commands in config: (config)
config-edit (cedit) Open a config file in a text editor. Edits are imported into Drupal after closing editor.
config-get (cget) Display a config value, or a whole configuration object.
config-import (cim) Import config from the file store.
config-list (cli) List config names by prefix.
config-set (cset) Set config value in the active store. This does not invoke config_sync_changes().
All commands in ctools: (ctools)
ctools-export (ctex) Export multiple CTools exportable objects directly to code.
ctools-export-disabl Disable CTools exportables.
e (cted)
ctools-export-enable Enable CTools exportables.
ctools-export-info Show available CTools exportable objects.
ctools-export-revert Revert CTools exportables from changes overridden in the database.
ctools-export-view View CTools exportable object code output.
All commands in devel: (devel)
devel-download Downloads the FirePHP library from
devel-reinstall Disable, Uninstall, and Install a list of projects.
devel-token (token) List available tokens
fn-hook (fnh, hook) List implementations of a given hook and explore source of specified one.
fn-view (fnv) Show the source of specified function or method.
All commands in devel_generate: (devel_generate)
generate-content Create content.
generate-menus Create menus and menu items.
generate-terms Create terms in specified vocabulary.
generate-users Create users.
generate-vocabs Create vocabularies.
All commands in features: (features)
features-add (fa) Add a component to a feature module. (DEPRECATED: use features-export)
features-components List features components.
features-diff (fd) Show the difference between the default and overridden state of a feature.
features-export (fe) Export a feature from your site into a module.
features-list (fl, List all the available features for your site.
features-revert (fr) Revert a feature module on your site.
features-revert-all Revert all enabled feature module on your site.
(fr-all, fra)
features-update (fu) Update a feature module on your site.
features-update-all Update all feature modules on your site.
(fu-all, fua)
All commands in field: (field)
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.
All commands in migrate: (migrate)
migrate-analyze Analyze the source fields for a migration.
migrate-audit (ma) View information on problems in a migration.
migrate-deregister Remove all tracking of a migration
migrate-fields-desti List the fields available for mapping in a destination.
nation (mfd)
migrate-fields-sourc List the fields available for mapping from a source.
e (mfs)
migrate-import (mi) Perform one or more migration processes
migrate-mappings View information on all field mappings in a migration.
migrate-messages View any messages associated with a migration.
migrate-reset-status Reset a active migration's status to idle
migrate-rollback Roll back the destination objects from a given migration
migrate-status (ms) List all migrations with current status.
migrate-stop (mst) Stop an active migration operation
migrate-wipe (mw) Delete all nodes from specified content types.
All commands in pm: (pm)
pm-disable (dis) Disable one or more extensions (modules or themes).
pm-download (dl) Download projects from or other sources.
pm-enable (en) Enable one or more extensions (modules or themes).
pm-info (pmi) Show detailed info for one or more extensions (modules or themes).
pm-list (pml) Show a list of available extensions (modules and themes).
pm-refresh (rf) Refresh update status information.
pm-releasenotes Print release notes for given projects.
pm-releases (rl) Print release information for given projects.
pm-uninstall (pmu) Uninstall one or more modules.
pm-update (up) Update Drupal core and contrib projects and apply any pending database updates (Same as pm-updatecode + updatedb).
pm-updatecode (upc) Update Drupal core and contrib projects to latest recommended releases.
pm-updatestatus Show a report of available minor updates to Drupal core and contrib projects.
All commands in role: (role)
role-add-perm (rap) Grant a specified permission to a role.
role-create (rcrt) Create a new role.
role-delete (rdel) Delete a role.
role-list (rls) Display a list of all roles defined on the system. If a role name is provided as an argument, then all of the permissions of that
role will be listed. If a permission name is provided as an option, then all of the roles that have been granted that permission
will be listed.
role-remove-perm Remove a specified permission from a role.
All commands in sql: (sql)
sql-cli (sqlc) 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 (sqlq) Execute a query against the site database.
sql-sanitize Run sanitization operations on the current database.
sql-sync Copy and import source database to target database. Transfers via rsync.
All commands in terminus: (terminus)
pantheon-aliases Update the Pantheon Drush alias file at ~/.drush/pantheon.aliases.drushrc.php.
pantheon-auth Authenticate against the pantheon dashboard. Required before doing anything else.
pantheon-hostname-ad Add a hostname to a site you control.
pantheon-hostname-re Remove a hostname from a site you control.
pantheon-logout Clear any stored session data.
pantheon-organizatio Add a site to an organization. Org admins only.
pantheon-organizatio Remove a site from an organization. Org admins only.
pantheon-organizatio List the sites for an organization. Org admins only.
n-sites (porg-sites)
pantheon-organizatio List your organization affiliations.
ns (porgs)
pantheon-pp (pp) Direct pseudo-proxy interface. JSON only, for debugging.
pantheon-products Get the list of available Drupal product start-states.
pantheon-site-backup List site backups (and exports).
s (psite-backups)
pantheon-site-clone Clone content from one site environment to another.
pantheon-site-commit Commit changes in an on-server-dev environment.
pantheon-site-connec Set or retrieve the connection mode of a specific site/environment.
pantheon-site-create Create a new site on Pantheon
pantheon-site-dashbo Get the dashboard link for a site.
ard (psite-dash)
pantheon-site-delete Delete a site from Pantheon.
pantheon-site-diffst Get a list of changes (diffstat) to be commited in a remote on-server-dev environment.
at (psite-diffs)
pantheon-site-downlo Download a backup file from a specific site.
pantheon-site-get-ba Get a download link to a specific site backup.
pantheon-site-load-b Load db with a backup file from a specific site.
pantheon-site-make-b Trigger an on-demand backup for a site/environment.
ackup (psite-backup)
pantheon-site-mount Mounts an environment file system to a local directory.
pantheon-site-name Get the site name based on the UUID.
pantheon-site-notifi Get a list of notifications for a site to track ongoing jobs.
pantheon-site-servic Update the service level for the site.
pantheon-site-sql-du Exports the Drupal DB as SQL using mysqldump or equivalent.
mp (psite-sql-dump)
pantheon-site-tunnel Opens a tunnel to a specific site/environment/service.
pantheon-site-tunnel Closes the tunnel to a specific site/environment/service.
pantheon-site-tunnel Get a list of open tunnels.
s (psite-tunnels)
pantheon-site-uuid Get the site UUID based on the name.
pantheon-sites List your Pantheon sites.
All commands in user: (user)
user-add-role (urol) Add a role to the specified user accounts.
user-block (ublk) Block the specified user(s).
user-cancel (ucan) Cancel a user account with the specified name.
user-create (ucrt) Create a user account with the specified name.
user-information Print information about the specified user(s).
user-login (uli) Display a one time login link for the given user account (defaults to uid 1).
user-password (upwd) (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 (uublk) Unblock the specified user(s).
All commands in views: (views)
views-analyze (va) Get a list of all Views analyze warnings
views-dev (vd) Set the Views settings to more developer-oriented values.
views-disable (vdis) Disable the specified views.
views-enable (ven) Enable the specified views.
views-list (vl) Get a list of all views in the system.
views-revert (vr) Revert overridden views to their default state. Make sure to backup first.
Other commands: (archive,boris,cache,colorbox,topic,redirect,image,libraries,make,phpsh,queue,registry_rebuild,runserver,search,shellalias,sitealias,ssh,strongarm,superfish,test,usage,variable,views_bulk_operations,views_data_export,watchdog)
archive-dump (ard, Backup your code, files, and database into a single file.
archive-backup, arb)
archive-restore Expand a site archive into a Drupal web site.
boris-console (bcon) Run an interactive shell in the current Drupal environment.
cache-clear (cc) Clear a specific cache, or all drupal caches.
cache-get (cg) Fetch a cached object and display it.
cache-set (cs) Cache an object expressed in JSON or var_export() format.
colorbox-plugin Download and install the Colorbox plugin.
core-topic (topic) Read detailed documentation on a given topic.
generate-redirects Create redirects.
image-flush Flush all derived images for a given style.
libraries-list Lists registered library information.
make Turns a makefile into a working Drupal codebase.
make-generate Generate a makefile from the current Drupal site.
phpsh-console Run an interactive shell in the current Drupal environment. Requires a working phpsh (
phpsh-ctags (ctags) Generate a "tags" file using exuberant ctags. Requires exuberant ctags.
queue-list Returns a list of all defined queues
queue-run Run a specific queue by name
registry-rebuild Rebuild the registry table (for classes) and the system table (for module locations) in a Drupal install.
runserver (rs) Runs a lightweight built in http server for development.
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.
shell-alias (sha) Print all known shell alias records.
site-alias (sa) Print site alias records for all known site aliases and local sites.
site-set (use) Set a site alias to work on that will persist for the current session.
site-ssh (ssh) Connect to a Drupal site's server via SSH for an interactive session or to run a shell command
strongarm-revert Revert all strongarmed variables from code to the database.
superfish-plugin Downloads the Superfish plugin.
test-clean Clean temporary tables and files.
test-run Run tests. Note that you must use the --uri option.
usage-send (usend) 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 (ushow) 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 (vget) Get a list of some or all site variables and values.
variable-set (vset) Set a variable.
vbo-execute Execute a bulk operation based on a Views Bulk Operations (VBO) view.
vbo-list List all Views Bulk Operations (VBO) views, along with the operations associated with each.
views-data-export Fully executes a views_data_export display of a view and writes the output to file.
watchdog-delete Delete watchdog messages.
(wd-del, wd-delete)
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.
(wd-show, ws)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.