Your SlideShare is downloading. ×
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Drush - More Beer, Less Effort
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Drush - More Beer, Less Effort

4,514

Published on

Drush - A Drupal Shell Introduction of the principal and useful commands.

Drush - A Drupal Shell Introduction of the principal and useful commands.

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

No Downloads
Views
Total Views
4,514
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
53
Comments
0
Likes
4
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. Drush More Beer Less Effort
  • 2. Drush More Beer, Less Effort Overview * Install * Basic Commands * Advanced Commands * Drush SQL Commands * Drush Shell Commands * Drush Log Messages * Third Party Commands
  • 3. Drush More Beer, Less Effort Install
  • 4. Drush More Beer, Less Effort http://www.drupal.org/project/drush Drush More Beer, Less Effort Install Browse Drush Project Web Site
  • 5. Drush More Beer, Less Effort wget http://ftp.drupal.org/files/projects/drush-All-Versions-3.0.tar.gz Install Download Latest Drush Package
  • 6. Drush More Beer, Less Effort tar xvzf drush-All-Versions-3.0.tar.gz Install Uncompress Drush Package
  • 7. Drush More Beer, Less Effort ln -s /path/to/drush/drush.php /usr/bin/drush Install Create symbolic link to Drush Script
  • 8. Drush More Beer, Less Effort vim /etc/php5/cli/php.ini Install max_execution_time = 90 max_input_time = 180 max_input_nesting_level = 64 memory_limit = 256M
  • 9. Drush More Beer, Less Effort Basic Commands
  • 10. Drush More Beer, Less Effort cd /var/www/drupal/sites/sitename Basic Commands Go to your site directory
  • 11. Drush More Beer, Less Effort drush help Basic Commands Show information about drush sysntax
  • 12. Drush More Beer, Less Effort drush help <command> Basic Commands Show command-specific information
  • 13. Drush More Beer, Less Effort drush st Basic Commands Show some useful information about your site and server configuration
  • 14. Drush More Beer, Less Effort drush sm Basic Commands Show a list of available modules and themes
  • 15. Drush More Beer, Less Effort drush pm-info <project> ... Basic Commands Show detailed info about projects
  • 16. Drush More Beer, Less Effort drush pm-releases <project> ... Basic Commands Show all releases about a project (module, theme, profile, translation)
  • 17. Drush More Beer, Less Effort drush dl <project> <project>... Basic Commands Download Drupal Core, modules, themes, profiles, translations to a site specific directory or default site directory
  • 18. Drush More Beer, Less Effort drush en <project> <project>... Basic Commands Enable modules and themes and it's dependant modules as well
  • 19. Drush More Beer, Less Effort drush dis <project> <project>... Basic Commands Disable modules and themes and it's dependant modules as well
  • 20. Drush More Beer, Less Effort drush pm-uninstall <project>... Basic Commands Uninstall modules and themes (Must disable before uninstall them)
  • 21. Drush More Beer, Less Effort Advanced Commands
  • 22. Drush More Beer, Less Effort drush cron Advanced Commands Run all cron hooks in all active modules
  • 23. Drush More Beer, Less Effort drush cc Advanced Commands Delete specific Drupal cache or all caches
  • 24. Drush More Beer, Less Effort drush updb Advanced Commands Run update.php script as a web browser
  • 25. Drush More Beer, Less Effort drush up Advanced Commands Display available update information and allow updating of all installed projects to the specified version
  • 26. Drush More Beer, Less Effort drush upc Advanced Commands Display available update information and allow updating of all installed project code to the specified version
  • 27. Drush More Beer, Less Effort drush eval ”php code” Advanced Commands Run php code in the context of Drupal
  • 28. Drush More Beer, Less Effort Drush SQL Commands
  • 29. Drush More Beer, Less Effort drush sql-conf Drush SQL Commands Show database connection details
  • 30. Drush More Beer, Less Effort drush sql-connect Drush SQL Commands Database connection string
  • 31. Drush More Beer, Less Effort drush sqlq ”query” Drush SQL Commands Execute query against the site database
  • 32. Drush More Beer, Less Effort drush sqlc Drush SQL Commands Open a SQL command-line interface using Drupal's credentials
  • 33. Drush More Beer, Less Effort drush sql-dump Drush SQL Commands Exports the Drupal database using mysqldump
  • 34. Drush More Beer, Less Effort Drush Shell Commands
  • 35. Drush More Beer, Less Effort drush cli Drush Shell Commands Enter a new shell optimized for drush use CTRL+D for Exit
  • 36. Drush More Beer, Less Effort drush> cdd Drush Shell Commands Navigate to your Drupal root directory
  • 37. Drush More Beer, Less Effort drush> cdd <module> Drush Shell Commands Navigate to module directory
  • 38. Drush More Beer, Less Effort drush> lsd Drush Shell Commands List your Drupal root directory content
  • 39. Drush More Beer, Less Effort drush> lsd <module> Drush Shell Commands List module directory content
  • 40. Drush More Beer, Less Effort drush> sa Drush Shell Commands List all alias records known to Drush
  • 41. Drush More Beer, Less Effort drush> on @alias <command> Drush Shell Commands Executes command on @alias site
  • 42. Drush More Beer, Less Effort Drush Log Messages
  • 43. Drush More Beer, Less Effort drush wd-show Drush Log Messages Show watchdog messages
  • 44. Drush More Beer, Less Effort drush wd-list Drush Log Messages Show available message types and severity levels
  • 45. Drush More Beer, Less Effort drush wd-del Drush Log Messages Delete watchdog messages
  • 46. Drush More Beer, Less Effort Third Party Commands
  • 47. Drush More Beer, Less Effort Devel module Third Party Commands Some third party modules provide more Drush commands that become available automatically
  • 48. Drush More Beer, Less Effort drush genc <nodes> <max-comments> Third Party Commands Generate nodes and comments automatically
  • 49. Drush More Beer, Less Effort drush gent <vid> <num-terms> Third Party Commands Generate taxonomy terms for a given vocabulary
  • 50. Drush More Beer, Less Effort drush genu <num-users> Third Party Commands Generate user accounts
  • 51. Drush More Beer, Less Effort Questions?

×