Travis Carden/Drupal Nebraks: Drush Presentation

2,514 views
2,441 views

Published on

Travis Carden's Drush presentation at the March 2010 Drupal Nebraska Meetup.

Published in: Technology
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,514
On SlideShare
0
From Embeds
0
Number of Embeds
19
Actions
Shares
0
Downloads
31
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Travis Carden/Drupal Nebraks: Drush Presentation

  1. 1. Introducing Drush: Command line productivity for Drupal
  2. 2. What is Drush? Drush is a command line shell and Unix scripting interface for Drupal. Introducing Drush: Command line productivity for Drupal
  3. 3. What is Drush? Drush is a command line shell and Unix scripting interface for Drupal. In other words... It's a time-saving tool for issuing commands to Drupal via the command line instead of through the browser and for automating common server administration and maintenance tasks. Introducing Drush: Command line productivity for Drupal
  4. 4. What can I do with it? <ul><li>Download and update Drupal core and contributed modules
  5. 5. Enable, disable, and uninstall modules
  6. 6. Clear caches
  7. 7. Run cron
  8. 8. Get, set, and delete system variables
  9. 9. Execute PHP after a full bootstrap or SQL using site credentials </li></ul>...with a few keystrokes. Introducing Drush: Command line productivity for Drupal
  10. 10. Installing Drush What you need: <ul><li>A Linux server (or Windows with some additions. See http://drupal.org/node/594744 ) with PHP CLI 5
  11. 11. Shell access and an SSH client (e.g. Terminal for Mac/Linux or Putty for Windows) </li></ul>Introducing Drush: Command line productivity for Drupal
  12. 12. Installing Drush Getting Drush: <ul><li>Download the latest tarball from http://drupal.org/project/drush </li></ul>or <ul><li>Checkout from CVS: </li></ul>cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib checkout -d DRUPAL-6--3-0-RC1 -r DRUPAL-6--3-0-BETA1 contributions/modules/drush/ Introducing Drush: Command line productivity for Drupal
  13. 13. Installing Drush Updating Drush: <ul><li>Download, extract, overwrite, rinse and repeat </li></ul>or <ul><li>Update from CVS: </li></ul>cvs update -r DRUPAL-6--3-0-RC1 -dP Introducing Drush: Command line productivity for Drupal
  14. 14. Installing Drush Subscribing to updates: http://drupal.org/node/97249/release/feed Introducing Drush: Command line productivity for Drupal
  15. 15. Installing Drush Creating a bash alias: Add to .bashrc or /etc/bashrc: alias drush='php /usr/bin/drush/drush.php' Introducing Drush: Command line productivity for Drupal
  16. 16. Configuring Drush <ul><li>Copy example.drushrc.php to drushrc.php
  17. 17. Uncomment and modify statements </li></ul>31. $options['allow-spaces-in-commands' ] = 1; 43. $options['package-handler'] = 'cvs'; Introducing Drush: Command line productivity for Drupal
  18. 18. Demonstration Introducing Drush: Command line productivity for Drupal
  19. 19. Other modules that support Drush: <ul><li>Backup and Migrate http://drupal.org/project/backup_migrate
  20. 20. XML sitemap http://drupal.org/project/xmlsitemap
  21. 21. Node Export http://drupal.org/project/node_export
  22. 22. Drush Make http://drupal.org/project/drush_make
  23. 23. http://drupal.org/taxonomy/term/4654 </li></ul>Introducing Drush: Command line productivity for Drupal
  24. 24. Learn more: http://drupal.org/project/drush Introducing Drush: Command line productivity for Drupal

×