Travis Carden/Drupal Nebraks: Drush Presentation
Upcoming SlideShare
Loading in...5
×
 

Travis Carden/Drupal Nebraks: Drush Presentation

on

  • 3,040 views

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

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

Statistics

Views

Total Views
3,040
Views on SlideShare
3,022
Embed Views
18

Actions

Likes
3
Downloads
29
Comments
0

2 Embeds 18

http://localhost:8080 12
http://www.slideshare.net 6

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Travis Carden/Drupal Nebraks: Drush Presentation Travis Carden/Drupal Nebraks: Drush Presentation Presentation Transcript

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