10
Drush: The Drupal Shell Utility Trevor Mckeown Founder & Owner Sublime Technologies [email protected]

Drush : The Drupal Shell Utility

  • Upload
    giolla

  • View
    37

  • Download
    1

Embed Size (px)

DESCRIPTION

Drush : The Drupal Shell Utility. Trevor Mckeown Founder & Owner Sublime Technologies [email protected]. What is Drush ?. What is Drush ? Drush Stands for Drupal Shell What is a shell? Not something found at the sea. Also interchangeable with the term command prompt - PowerPoint PPT Presentation

Citation preview

Page 1: Drush :  The Drupal Shell Utility

Drush: The Drupal Shell Utility

Trevor MckeownFounder & Owner

Sublime [email protected]

Page 2: Drush :  The Drupal Shell Utility

What is Drush?

• What is Drush? Drush Stands for Drupal Shell• What is a shell? Not something found at the

sea. Also interchangeable with the term command prompt

• It’s a way to interact with Drupal via the command prompt

Page 3: Drush :  The Drupal Shell Utility

Running Scripts via the Command Prompt

• Drush is just a php script that you run on the command prompt

• Many languages you can run on the command prompt

• Examples: Ruby, php, perl, python, and of course bash it’s self

• Small Demo

Page 4: Drush :  The Drupal Shell Utility

Drush Installation

• Download Drush• Place it somewhere you will remember• Symbolic link drush to an path in your $PATH

variable• Change directory into a drupal base directory• If settings.php is in sites/defaults directory

your all set otherwise use the –l and –r options

Page 5: Drush :  The Drupal Shell Utility

Drush Configuration Files

• See examples directory under the root drush directory

• drushrc.php file for setting common options like -l or -r or many more options. See example.drushrc.php

• aliases.drushrc.php or similar file for setting up aliases like @prod @dev @staging. See example.aliases.drushrc.php

Page 6: Drush :  The Drupal Shell Utility

Drush configuration files continued …

• drush.ini for over riding php.ini• An example.bashrc file• Something about sandwiches• A sample command for writing your own

commands

Page 7: Drush :  The Drupal Shell Utility

What can Drush do from me?

• A lot ..• Scripting out deployments including rsync• Database management• Backing up the site and database• User management: add, block, and assign roles

to users• Site management: clear cache, run cron, run

database updates, install drupal (D7)

Page 8: Drush :  The Drupal Shell Utility

What can Drush do for me?

• Many modules extend Drush and add additional commands

• Features• Views• Devel• Drush Make• Node Export• Many more!

Page 9: Drush :  The Drupal Shell Utility

DEMO

Page 10: Drush :  The Drupal Shell Utility

Thank You!

Comments, Questions, Concerns

Trevor [email protected]