P. 1
Drush 4 Cheat Sheet

Drush 4 Cheat Sheet

|Views: 4,867|Likes:
Published by wizzlern
A cheat sheet with frequently used Drush command. Control Drupal from the command line and write shell script to automate your Drupal routines. Download one from http://wizzlern.nl/drupal/drush-4-cheat-sheet
For Drush version 4.
A cheat sheet with frequently used Drush command. Control Drupal from the command line and write shell script to automate your Drupal routines. Download one from http://wizzlern.nl/drupal/drush-4-cheat-sheet
For Drush version 4.

More info:

Categories:Types, Business/Law
Published by: wizzlern on Jun 16, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

12/19/2012

pdf

text

original

drush image-flush style style Flush derived images of this style; name or number.

--all = All styles.

drush search-index Index the remaining search items. CORE: DEVELOPMENT drush php-eval code drush eval code code Run this PHP code after bootstrapping Drupal.

drush search-reindex options Drush 4 options --immediate Rebuild search index now. Don't wait for cron. CORE: SITE drush core-status drush status Status of the Drupal installation. drush help command command A drush command to get help about. drush site-install profile options drush si argument options profile Install Drupal with this install profile. e.g. 'expert'.

HELP drush Show all available drush commands.

drush eval "print_r(language_list ());" drush php-script file options drush scr file options file options --script-path Execute this PHP file after bootstrapping Drupal. Path to PHP script file. drush watchdog-show message options drush wd-show message options drush variable-delete variable drush vdel variable variable Drupal variable name or name starting with 'variable'. message options --count --severity --type --tail Watchdog message to show. Number of messages. Message severity. Message type. Continuously show messages. CORE: DEPLOYMENT drush core-rsync source destination drush variable-set variable drush vset variable variable Drupal variable name or name starting with 'variable'. drush rsync source destination source destination options --mode --include-conf --exclude-sites --exclude-path --include-path Rsync path or site alias of source installation. Rsync path or site alias of source installation. rsync flags. Rsync settings.php. Exclude sites/ except sites/all/. List of paths to exclude. List of paths to include.

drush topic topic More drush documentation. Recommended topic Drush help topic, number or name. GLOBAL OPTIONS -v, --verbose -d, --debug -y, --yes -n, --no -s, --simulate -p, --pipe -h, --help Display extra information. Display even more information. Assume 'yes' at prompts. Assume 'no' at prompts. Don't actually make changes. Compact output for scripting. Command help

options --db-url Drupal 5/6 style db URL. --account-name User account name. --account-pass User password. --account-mail User email address. --locale Language codes. --site-name Site name. --site-mail Site email address. drush site-upgrade @target options drush sup @target options Run a major version upgrade of the current Drupal installation. Source installation will not change. target Alias definition for upgraded site. options --replace Replace target if exists. --reuse Reuse target if exists. drush updatedb drush updb Apply required database updates (as update.php). drush core-cron drush cron Run cron.

drush variable-get variable drush vget variable variable (part of) Drupal variable name.

drush --yes en views views_ui CORE: CACHE drush cache-clear type drush cc type type Cache type; name or number. 1: all 2: theme registry 3: menu 8: registry 9: node access

drush watchdog-delete message options drush wd-del message options message options --severity --type Message to delete. Message severity. Message type.

drush site-alias options drush sa @alias options alias Show this site alias definition.

!

June 2011!

Drush 4!

www.wizzlern.nl/drupal/cheat-sheets

CORE: DRUSH drush selfupdate options Update drush to latest version. options --dev Allow update to dev-release drush version Show drush version. PROJECT MANAGER drush pm-download project options drush dl project options project options --destination --notes --dev --select One or more modules or themes. Specify the project path. Show release notes. Download development release. Select the version to download

drush pm-list options drush pml options options --status --core --no-core Filter by status. Show only core modules. Show non core modules.

SQL drush sql-cli options drush sqlc options Open a SQL command-line for Drupal's database. drush sql-connect options Returns the database connection string. drush sql-drop options Drop all tables in a given database. options --result-file Save DB to this file. drush sql-dump options Exports the Drupal database as SQL. drush sql-query options drush sqlq options Execute a query against the Drupal database. options --result-file Save DB to this file. --gzip Compress using gzip. drush sql-sync source target options drush user-password user options drush upwd user options (Re)set the password of a user account. user User name. options --password New password. ALIAS drush @alias.name command alias.name command Site alias name as defined in a Drush alias file. A drush command.

drush pml --status="Disabled,Not installed" drush pm-refresh drush rf Refresh update status information. drush pm-releasenotes project drush rln project project One or more modules or themes.

drush pm-releases project options drush rl project options Show available releases for given projects. project One or more modules or themes. options --dev Show only dev releases. --all Show all releases. drush pm-update project options drush up project options Update Drupal core and projects and apply any pending database updates. project One or more modules or themes. options --notes Show release notes. --security-only Only update projects with security releases. drush pm-updatecode project options drush upc project options Update Drupal core and projects to latest recommended releases. (No database updates.) project One or more modules or themes. options --notes Show release notes. --security-only Only update projects with security releases.

drush dl views token wysiwyg drush dl og-1.3 drush dl webform --select drush pm-enable project drush en project project One or more modules or themes. Use * wildcard at end of name.

source target options --tables-list --cache

Subdirectory in sites or site alias of source. Subdirectory in sites or site alias of target.

drush pm-disable project drush dis project project One or more modules or themes. Use * wildcard at end of name.

drush pm-uninstall module module One or more modules.

List of tables to transfer. Don't use DB dump if older than 'cache' hours. --no-cache Don't use DB dump. --no-dump Don't create DB dump file. --sanitize Sanitize email and passwords. --sanitize-password Password to assign. --sanitize-email Email address to assign. USER COMMANDS

drush @example.live sql-dump --result-file=~/example-live.sql DRUSH MAKE (MODULE) drush make makefile target options Setup a Drupal installation using a makefile. makefile Make file (with path). target Target site root directory. DOCUMENTATION Find all about Drush at http://drush.ws.

drush pm-info project drush pmi project project One or more modules or themes. Use * wildcard at end of name.

drush user-information user drush uinf user user User names, uids or emails.

!

June 2011!

Drush 4!

www.wizzlern.nl/drupal/cheat-sheets

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->