Travis Carden/Drupal Nebraks: Drush Presentation

  • 2,242 views
Uploaded on

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

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

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
2,242
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
29
Comments
0
Likes
3

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Introducing Drush: Command line productivity for Drupal
  • 2. What is Drush? Drush is a command line shell and Unix scripting interface for Drupal. Introducing Drush: Command line productivity for Drupal
  • 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. What can I do with it?
    • Download and update Drupal core and contributed modules
    • 5. Enable, disable, and uninstall modules
    • 6. Clear caches
    • 7. Run cron
    • 8. Get, set, and delete system variables
    • 9. Execute PHP after a full bootstrap or SQL using site credentials
    ...with a few keystrokes. Introducing Drush: Command line productivity for Drupal
  • 10. Installing Drush What you need:
    • A Linux server (or Windows with some additions. See http://drupal.org/node/594744 ) with PHP CLI 5
    • 11. Shell access and an SSH client (e.g. Terminal for Mac/Linux or Putty for Windows)
    Introducing Drush: Command line productivity for Drupal
  • 12. Installing Drush Getting Drush:
    • Download the latest tarball from http://drupal.org/project/drush
    or
    • Checkout from CVS:
    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. Installing Drush Updating Drush:
    • Download, extract, overwrite, rinse and repeat
    or
    • Update from CVS:
    cvs update -r DRUPAL-6--3-0-RC1 -dP Introducing Drush: Command line productivity for Drupal
  • 14. Installing Drush Subscribing to updates: http://drupal.org/node/97249/release/feed Introducing Drush: Command line productivity for Drupal
  • 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. Configuring Drush
    • Copy example.drushrc.php to drushrc.php
    • 17. Uncomment and modify statements
    31. $options['allow-spaces-in-commands' ] = 1; 43. $options['package-handler'] = 'cvs'; Introducing Drush: Command line productivity for Drupal
  • 18. Demonstration Introducing Drush: Command line productivity for Drupal
  • 19. Other modules that support Drush:
    • Backup and Migrate http://drupal.org/project/backup_migrate
    • 20. XML sitemap http://drupal.org/project/xmlsitemap
    • 21. Node Export http://drupal.org/project/node_export
    • 22. Drush Make http://drupal.org/project/drush_make
    • 23. http://drupal.org/taxonomy/term/4654
    Introducing Drush: Command line productivity for Drupal
  • 24. Learn more: http://drupal.org/project/drush Introducing Drush: Command line productivity for Drupal