Intro to Drush
  “DRUpalSHell”
 Drupal Down Under 2011: Brisbane



Matthew Lechleider
 PhamilyDev.net
Drush?

    Command and scripting interface for Drupal.

    Commands for modules, themes, profiles,
    translations, and more!

    Runs update.php, executes sql, DB migrations,
    runs cron or clears cache.

    NOT a module.

    NOT Drupal version specific.

    NOT for end users.
Command Line??

    Scary at first, but your new best friend.


    Basic Commands:
      cd “change directory”
      ls “list”
      mv “move”
      rm “remove”
      cp “copy”
      tar/gzip “compression similar to zip”
      chown “change ownership”
Installation
                     Minimum of PHP 5.2


    Linux                     
                                  Windows

    −   php5-cli                  −   gzip, libarchive
    −   chmod u+x drush           −   tar and wget
    −   Alias or link “ln”            executables
                                  −   drush.bat
                                  −   php.exe
Gotcha!

    Need a copy of the PEAR Console_Table

    File and user permissions

    First time, manually run “./drush”

    If alias, must refresh .bashrc

      “source .bashrc”
Why?

    Drush status

    Drush help

    Drush pm-info

    Drush pm-enable

    Drush pm-disable

    Drush cron

    Drush cache-clear
End.

     Thanks DDU!

Matthew@Lechleider.com

    PhamilyDev.net

2011 - DDU - Intro to Drush

  • 1.
    Intro to Drush “DRUpalSHell” Drupal Down Under 2011: Brisbane Matthew Lechleider PhamilyDev.net
  • 2.
    Drush?  Command and scripting interface for Drupal.  Commands for modules, themes, profiles, translations, and more!  Runs update.php, executes sql, DB migrations, runs cron or clears cache.  NOT a module.  NOT Drupal version specific.  NOT for end users.
  • 3.
    Command Line??  Scary at first, but your new best friend.  Basic Commands: cd “change directory” ls “list” mv “move” rm “remove” cp “copy” tar/gzip “compression similar to zip” chown “change ownership”
  • 4.
    Installation Minimum of PHP 5.2  Linux  Windows − php5-cli − gzip, libarchive − chmod u+x drush − tar and wget − Alias or link “ln” executables − drush.bat − php.exe
  • 5.
    Gotcha!  Need a copy of the PEAR Console_Table  File and user permissions  First time, manually run “./drush”  If alias, must refresh .bashrc “source .bashrc”
  • 6.
    Why?  Drush status  Drush help  Drush pm-info  Drush pm-enable  Drush pm-disable  Drush cron  Drush cache-clear
  • 7.
    End. Thanks DDU! Matthew@Lechleider.com PhamilyDev.net