Getting started with Drush Downloading, installing and extending                     Drupal with Drush
By Kevin BasarabMediacurrent Sr. Drupal Developer                      @kbasarab
What is Drush used for?■   Making Sandwiches■   Downloading Drupal■   Installing Drupal■   Downloading/Installing Modules■...
Making Sandwiches   g sandwiches                    Source: http://drupal.org
Making Sandwiches                    Source: http://drupal.org
Download DrupalDownloading Drupaldrush dl drupalcp -r drupal-7.14/* ./rm -r drupal-7.14Installing Drupaldrush si --db-url=...
Download Drupal■ Downloading Drupaldrush dl drupalcp -r drupal-7.14/* ./rm -r drupal-7.14■ Installing Drupaldrush si --db-...
Install Drupal■ Downloading Drupaldrush dl drupal  ● Optionscp -r drupal-7.14/* ./     ○ --site-mailrm -r○ drupal-7.14    ...
Download Modules■ Downloading Drupaldrush dl drupal  ● Optionscp -r drupal-7.14/* ./     ○ --site-mailrm -r○ drupal-7.14  ...
Enable Modules■ Downloading Drupaldrush dl drupal  ● Optionscp -r drupal-7.14/* ./     ○ --site-mailrm -r○ drupal-7.14    ...
Clear Caches               Source: http://drupal.org
.make files ●   Useful when installing same modules on multiple sites ●   Downloads and installs code, does not setup data...
.make files
.make files ●   Manifest of projects                            Source: http://drupal.org
Alias Files ●   Manifest of projects                            Source: http://drupal.org
Alias Files Usage ●   Sync production, staging or dev database down to local quickly. ●   Push full database changes to pr...
Alias Files Usage ●   Full example: http://drupal.org/node/1401522                                                    Sour...
Archive Backup
MySQL Dump ●   Full example: http://drupal.org/node/1401522                                                    Source: htt...
Update Code
Update DB ●   Full example: http://drupal.org/node/1401522                                                    Source: http...
Bonus Round ●   drush sqlc (MySQL CLI) ●   drush vset/drush vget (Variable set/get) ●   drush fu, drush fr, drush fra (Fea...
Questions?
Upcoming SlideShare
Loading in...5
×

Beginning Drush

1,158

Published on

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

No Downloads
Views
Total Views
1,158
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
19
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Beginning Drush

  1. 1. Getting started with Drush Downloading, installing and extending Drupal with Drush
  2. 2. By Kevin BasarabMediacurrent Sr. Drupal Developer @kbasarab
  3. 3. What is Drush used for?■ Making Sandwiches■ Downloading Drupal■ Installing Drupal■ Downloading/Installing Modules■ Clearing Cache■ Generating/Using .make files■ Aliases/Sync sites■ Backup■ Update
  4. 4. Making Sandwiches g sandwiches Source: http://drupal.org
  5. 5. Making Sandwiches Source: http://drupal.org
  6. 6. Download DrupalDownloading Drupaldrush dl drupalcp -r drupal-7.14/* ./rm -r drupal-7.14Installing Drupaldrush si --db-url=mysql://root:@localhost/drush_demo --account-pass=test --site-name=Drush Demo Source: http://drupal.org
  7. 7. Download Drupal■ Downloading Drupaldrush dl drupalcp -r drupal-7.14/* ./rm -r drupal-7.14■ Installing Drupaldrush si --db-url=mysql://root:@localhost/drush_demo --account-pass=test --site-name=Drush Demo Source: http://drupal.org
  8. 8. Install Drupal■ Downloading Drupaldrush dl drupal ● Optionscp -r drupal-7.14/* ./ ○ --site-mailrm -r○ drupal-7.14 --db-prefix ○ --db-su ○ --db-su-pw■ Installing Drupaldrush si --db-url=mysql://root:@localhost/drush_demo --account-pass=test --site-name=Drush Demo Source: http://drupal.org
  9. 9. Download Modules■ Downloading Drupaldrush dl drupal ● Optionscp -r drupal-7.14/* ./ ○ --site-mailrm -r○ drupal-7.14 --db-prefix ○ --db-su ○ --db-su-pw■ Installing Drupaldrush si --db-url=mysql://root:@localhost/drush_demo --account-pass=test --site-name=Drush Demo Source: http://drupal.org
  10. 10. Enable Modules■ Downloading Drupaldrush dl drupal ● Optionscp -r drupal-7.14/* ./ ○ --site-mailrm -r○ drupal-7.14 --db-prefix ○ --db-su ○ --db-su-pw■ Installing Drupaldrush si --db-url=mysql://root:@localhost/drush_demo --account-pass=test --site-name=Drush Demo Source: http://drupal.org
  11. 11. Clear Caches Source: http://drupal.org
  12. 12. .make files ● Useful when installing same modules on multiple sites ● Downloads and installs code, does not setup database ● Can create from existing site using generate-makefile or build yourself Source: http://drupal.org
  13. 13. .make files
  14. 14. .make files ● Manifest of projects Source: http://drupal.org
  15. 15. Alias Files ● Manifest of projects Source: http://drupal.org
  16. 16. Alias Files Usage ● Sync production, staging or dev database down to local quickly. ● Push full database changes to production, staging or dev. Source: http://drupal.org
  17. 17. Alias Files Usage ● Full example: http://drupal.org/node/1401522 Source: http://drupal.org
  18. 18. Archive Backup
  19. 19. MySQL Dump ● Full example: http://drupal.org/node/1401522 Source: http://drupal.org
  20. 20. Update Code
  21. 21. Update DB ● Full example: http://drupal.org/node/1401522 Source: http://drupal.org
  22. 22. Bonus Round ● drush sqlc (MySQL CLI) ● drush vset/drush vget (Variable set/get) ● drush fu, drush fr, drush fra (Features)
  23. 23. Questions?
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×