Drush Core Commands

Primary tabs

Drupal 7 drush core commands

Bookmark to learn: Login to use bookmarks.

Bookmark to learn: Login to use bookmarks.

Add to collection ... add Drush Core Commands to your collections:

Help using Flashcards ...just like in real life ;)

  1. Look at the card, do you know this one? Click to flip the card and check yourself.
  2. Mark card Right or Wrong, this card will be removed from the deck and your score kept.
  3. At any point you can Shuffle, Reveal cards and more via Deck controls.
  4. Continue to reveal the wrong cards until you have correctly answered the entire deck. Good job!
  5. Via the Actions button you can Shuffle, Unshuffle, Flip all Cards, Reset score, etc.
  6. Come back soon, we'll keep your score.
    “Repetition is the mother of all learning.”
  7. Signed in users can Create, Edit, Import, Export decks and more!.

Bookmark to learn: Login to use bookmarks.

Share via these services ...

Email this deck:

Right: #
Wrong: #
# Right & # Wrong of #

archive-dump
(ard, archive-backup, arb)

Backup your code, files, and database into a single file.

archive-restore
(arr)

Expand a site archive into a Drupal web site.

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.

core-config
(conf, config)

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)

Execute a shell command. Usually used with a site alias.

core-quick-drupal
(qd)

Download, install, serve and login to Drupal with minimal configuration and dependencies.

core-requirements
(status-report, rq)

Provides information about things that may be wrong in your Drupal installation, if any.

core-rsync
(rsync)

Rsync the Drupal tree to/from another server using ssh.

core-status
(status, st)

Provides a birds-eye view of the current Drupal installation, if any.

core-topic
(topic)

Read detailed documentation on a given topic.

drupal-directory
(dd)

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
(eval, ev)

Evaluate arbitrary php code after bootstrapping Drupal (if available).

php-script
(scr)

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
(selfupdate)

Check to see if there is a newer Drush release available.

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-install
(si)

Install Drupal along with modules/themes/configuration using the specified install profile.

site-reset

Reset a persistently set site.

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

test-clean

Clean temporary tables and files.

test-run

Run tests. Note that you must use the --uri option.

updatedb
(updb)

Apply any database updates required (as with running update.php).

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
(vdel)

Delete a variable.

variable-get
(vget)

Get a list of some or all site variables and values.

variable-set
(vset)

Set a variable.

version

Show drush version.

watchdog-delete
(wd-del, wd-delete)

Delete watchdog messages.

watchdog-list
(wd-list)

Show available message types and severity levels. A prompt will ask for a choice to show watchdog messages.

watchdog-show
(wd-show, ws)

Show watchdog messages.