Drush 5.0NEW FEATURES. NEW POWERS.
Chris Charlton
Author • Community Leader • Drupal ContributorCo-Inventor of the iHoodie for iPad
http://xtnd.ushttp://chrischarlton.us
@charltonweb
AT THE END: Super Geeky Stuff
NOW: New Features
Drush for Windowsinstaller sponsored by Microsoft
Drush for Windows
Drush for Windowsinstaller sponsored by Microsoft
Drush Makenow in Drush core
Drush Make
drush make my_fav_modules.make
Drush Make Example
DrushMake.me
Drush for Windowsinstaller sponsored by Microsoft
Drush Makenow in Drush core
Autocompleteninjas use the TAB key
Autocompleteninjas use the TAB key
Easier multisite controltype --uri less
drush site-set example.com
Drush Site Set Example
Autocompleteninjas use the TAB key
Easier multisite controltype --uri less
Site archivingzip a site & restore elsewhere
drush archive-dump example.com --destination=/backups/example.com.tar
drush archive-restore ./example.com.tar
Drush Site Archiving Example
Site archivingzip a site & restore elsewhere
Shell command aliasescode-free customization
$options['shell-aliases']['pull'] = '!git pull';$options['shell-aliases']['noncore'] = 'pm-list --no-core';
$options['shell-aliases']['sync-dev'] = '!drush sql-sync @prod @dev && drush rsync @prod:%files @dev:%files'
$options['shell-aliases']['restart-apache'] = '!sudo /etc/init.d/apache2 restart'
Drush Shell Aliases Examples
Site archivingzip a site & restore elsewhere
Custom command aliasescode-free customization
NOW: Drupal Fundamentals
Download Modules, Themes, anythingone command will change your life
drush dl admin_menu devel zen
Download Modules & Themes
Download Modules, Themes, anythingone command will change your life
Update all Modules & Drupal coreokay, two commands will change your life
drush up
drush up admin_menu
Update all site modules & Drupal core
Download Modules, Themes, anythingone command will change your life
Update all Modules & Drupal coreokay, two commands will change your life
Manage Modules & Themesenable, disable, uninstall effortlessly
drush en admin_menu
drush en admin_menu devel metatag
Enable Modules
Manage Modules & Themesenable, disable, uninstall effortlessly
Control user accountschange passwords in 0.1 seconds
drush user-password 1 --password=“abc123”
Reset User Password
Manage Modules & Themesenable, disable, uninstall effortlessly
Control user accountschange passwords in 0.1 seconds
Clear cacheswork. flush. repeat.
drush cc
drush cc all
Clear Cache
Clear cacheswork. flush. repeat.
Run croncron.php who?
drush cron
Run Cron
Clear cacheswork. flush. repeat.
Run croncron.php who?
Site aliasesgive sites nicknames
drush @dev status
drush example.com status
Site Aliases
Site aliasesgive sites nicknames
Read Watchdog logswho let the logs out
drush watchdog-show
Run Cron
Id Date Severity Type Message 2 20/Apr 16:21 info system session expired. 1 20/Apr 16:20 info system node 13 published.
Site aliasesgive sites nicknames
Read Watchdog logswho let the logs out
Sync files & databasesninjas do it silently
drush rsync @prod @dev
drush rsync @prod @dev --include-conf
drush rsync @prod:%files @dev:%files
Sync Files
drush sql-sync @prod @dev
Sync Databases
Sync files & databasesninjas do it silently
Connect to database serversit’s practically teleportation
drush sql-cli
drush sql-connect
Run Cron
Sync files & databasesninjas do it silently
Connect to database serversit’s practically teleportation
NOW: Here Be Dragons (Geek Alert)
Manage queuesbe master of your domain
Flush image styles“oh, there it is”
DrushRC commands folder/sites/all/drush
Built-in PHP web serverself propellant Drush
Usage trackingyou flushed caches 777 times yesterday
Quick Drupalboot up new Drupal sites just to show off