Drush More  Beer Less  Effort
Drush   More Beer, Less Effort Overview *   Install *  Basic Commands *  Advanced Commands *  Drush SQL Commands *  Drush ...
Drush   More Beer, Less Effort Install
Drush   More Beer, Less Effort http://www.drupal.org/project/drush Drush   More Beer, Less Effort Install Browse Drush Pro...
Drush   More Beer, Less Effort wget http://ftp.drupal.org/files/projects/drush-All-Versions-3.0.tar.gz Install Download La...
Drush   More Beer, Less Effort tar xvzf drush-All-Versions-3.0.tar.gz Install Uncompress Drush Package
Drush   More Beer, Less Effort ln -s /path/to/drush/drush.php /usr/bin/drush Install Create symbolic link to Drush Script
Drush   More Beer, Less Effort vim /etc/php5/cli/php.ini Install max_execution_time = 90 max_input_time = 180 max_input_ne...
Drush   More Beer, Less Effort Basic Commands
Drush   More Beer, Less Effort cd /var/www/drupal/sites/sitename Basic Commands Go to your site directory
Drush   More Beer, Less Effort drush help Basic Commands Show information about drush sysntax
Drush   More Beer, Less Effort drush help <command> Basic Commands Show command-specific information
Drush   More Beer, Less Effort drush st Basic Commands Show some useful information about your site and server configuration
Drush   More Beer, Less Effort drush sm Basic Commands Show a list of available modules and themes
Drush   More Beer, Less Effort drush pm-info <project> ... Basic Commands Show detailed info about projects
Drush   More Beer, Less Effort drush pm-releases <project> ... Basic Commands Show all releases about a project (module, t...
Drush   More Beer, Less Effort drush dl <project> <project>... Basic Commands Download Drupal Core, modules, themes, profi...
Drush   More Beer, Less Effort drush en <project> <project>... Basic Commands Enable modules and themes and it's dependant...
Drush   More Beer, Less Effort drush dis <project> <project>... Basic Commands Disable modules and themes and it's dependa...
Drush   More Beer, Less Effort drush pm-uninstall <project>... Basic Commands Uninstall modules and themes (Must disable b...
Drush   More Beer, Less Effort Advanced Commands
Drush   More Beer, Less Effort drush cron Advanced Commands Run all cron hooks in all active modules
Drush   More Beer, Less Effort drush cc Advanced Commands Delete specific Drupal cache or all caches
Drush   More Beer, Less Effort drush updb Advanced Commands Run update.php script as a web browser
Drush   More Beer, Less Effort drush up Advanced Commands Display available update information and allow updating of all i...
Drush   More Beer, Less Effort drush upc Advanced Commands Display available update information and allow updating of all ...
Drush   More Beer, Less Effort drush eval ”php code” Advanced Commands Run php code in the context of Drupal
Drush   More Beer, Less Effort Drush SQL Commands
Drush   More Beer, Less Effort drush sql-conf Drush SQL Commands Show database connection details
Drush   More Beer, Less Effort drush sql-connect Drush SQL Commands Database connection string
Drush   More Beer, Less Effort drush sqlq ”query” Drush SQL Commands Execute query against the site database
Drush   More Beer, Less Effort drush sqlc Drush SQL Commands Open a SQL command-line interface using Drupal's credentials
Drush   More Beer, Less Effort drush sql-dump Drush SQL Commands Exports the Drupal database using mysqldump
Drush   More Beer, Less Effort Drush Shell Commands
Drush   More Beer, Less Effort drush cli Drush Shell Commands Enter a new shell optimized for drush use CTRL+D for Exit
Drush   More Beer, Less Effort drush> cdd Drush Shell Commands Navigate to your Drupal root directory
Drush   More Beer, Less Effort drush> cdd <module> Drush Shell Commands Navigate to module directory
Drush   More Beer, Less Effort drush> lsd Drush Shell Commands List your Drupal root directory content
Drush   More Beer, Less Effort drush> lsd <module> Drush Shell Commands List module directory content
Drush   More Beer, Less Effort drush> sa Drush Shell Commands List all alias records known to Drush
Drush   More Beer, Less Effort drush> on @alias <command> Drush Shell Commands Executes command on @alias site
Drush   More Beer, Less Effort Drush Log Messages
Drush   More Beer, Less Effort drush wd-show Drush Log Messages Show watchdog messages
Drush   More Beer, Less Effort drush wd-list Drush Log Messages Show available message types and severity levels
Drush   More Beer, Less Effort drush wd-del Drush Log Messages Delete watchdog messages
Drush   More Beer, Less Effort Third Party Commands
Drush   More Beer, Less Effort Devel module Third Party Commands Some third party modules provide more Drush commands that...
Drush   More Beer, Less Effort drush genc <nodes> <max-comments> Third Party Commands Generate nodes and comments automati...
Drush   More Beer, Less Effort drush gent <vid> <num-terms> Third Party Commands Generate taxonomy terms for a given vocab...
Drush   More Beer, Less Effort drush genu <num-users> Third Party Commands Generate user accounts
Drush   More Beer, Less Effort Questions?
Upcoming SlideShare
Loading in...5
×

Drush - More Beer, Less Effort

4,554

Published on

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,554
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
53
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide

Drush - More Beer, Less Effort

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

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

×