Drupal Drush Common Commands

Primary tabs

Tim Bottman's picture

Use these flashcards to help familiarize yourself common Drush commands to help you manage your Drupal install.

Bookmark to learn: Login to use bookmarks.

Bookmark to learn: Login to use bookmarks.

Add to collection ... add Drupal Drush Common 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 #

cache clear (cc)

Clear all caches.

cron

Run all cron hooks.

disable (dis)

Disable one or more modules.

download (dl)

Download core Drupal and projects like CCK, Zen, etc.

enable (en)

Enable one or more modules.

eval

Evaluate arbitrary php code after bootstrapping Drupal.

help

Print this help message. Use --filter to limit command list to one command file (e.g. --filter=pm)

info

Release information for a project

refresh (rf)

Refresh update status information

sql cli (sqlc)

Open a SQL command-line interface using Drupal’s credentials. sql conf Print database connection details.

sql connect

A string for connecting to the DB.

sql dump

Exports the Drupal DB as SQL using mysqldump.

sql load

Copy source database to target database.

sql query (sqlq)

Execute a query against the site database.

status (st)

Provides a birds-eye view of the current Drupal installation, if any. statusmodules (sm) Show module enabled/disabled status

sync

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

test clean

Delete leftover tables and files from prior test runs.

test mail

Run all tests and mail the results to your team.

uninstall

Uninstall one or more modules.

update (up)

Update your project code and apply any database updates required (update.php)

updatecode (upc)

Update your project code. Moves existing project files to the backup directory specified in the config.

updatedb (updb)

Execute the update.php process from the command line. 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.

watchdog delete (wd)

Delete all messages or only those of a specified type.

watchdog show (ws)

Shows recent watchdog log messages. Optionally filter for a specific type.