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

Drush - More Beer, Less Effort

on

  • 4,645 views

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

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

Statistics

Views

Total Views
4,645
Views on SlideShare
4,554
Embed Views
91

Actions

Likes
4
Downloads
47
Comments
0

6 Embeds 91

http://nextleveldrupal.local 32
http://nextleveldrupal.com 27
http://worldofdrupal.local 16
http://www.nextleveldrupal.com 8
http://www.linkedin.com 7
https://si0.twimg.com 1

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

Usage Rights

CC Attribution-NonCommercial-ShareAlike LicenseCC Attribution-NonCommercial-ShareAlike LicenseCC Attribution-NonCommercial-ShareAlike License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Drush - More Beer, Less Effort Drush - More Beer, Less Effort Presentation Transcript

    • Drush More Beer Less Effort
    • Drush More Beer, Less Effort Overview * Install * Basic Commands * Advanced Commands * Drush SQL Commands * Drush Shell Commands * Drush Log Messages * Third Party Commands
    • 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 Project Web Site
    • Drush More Beer, Less Effort wget http://ftp.drupal.org/files/projects/drush-All-Versions-3.0.tar.gz Install Download Latest Drush Package
    • 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_nesting_level = 64 memory_limit = 256M
    • 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, theme, profile, translation)
    • 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
    • Drush More Beer, Less Effort drush en <project> <project>... Basic Commands Enable modules and themes and it's dependant modules as well
    • Drush More Beer, Less Effort drush dis <project> <project>... Basic Commands Disable modules and themes and it's dependant modules as well
    • Drush More Beer, Less Effort drush pm-uninstall <project>... Basic Commands Uninstall modules and themes (Must disable before uninstall them)
    • 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 installed projects to the specified version
    • 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
    • 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 become available automatically
    • Drush More Beer, Less Effort drush genc <nodes> <max-comments> Third Party Commands Generate nodes and comments automatically
    • Drush More Beer, Less Effort drush gent <vid> <num-terms> Third Party Commands Generate taxonomy terms for a given vocabulary
    • Drush More Beer, Less Effort drush genu <num-users> Third Party Commands Generate user accounts
    • Drush More Beer, Less Effort Questions?