Drush is a command line shell and scripting interface for Drupal. It provides commands to install, update, and manage Drupal sites. Drush commands can be used to install Drupal, download modules, enable or disable modules, perform database backups, synchronize databases and files between environments, and more. Drush integrates with features like Backup and Migrate and can be used to manage remote Drupal sites using site aliases.
Report
Share
Report
Share
1 of 13
More Related Content
Drush
1. DRUSH
Suryanto Rachmat
Drupalcamp Indonesia 2012
2. ABOUT ME
• 5 years experience with Drupal
• irc.freenode.net #drupal-id: suryanto
• Twitter: suryanto_r
• Fulltime Drupal Freelancer
5. WHAT'S IT FOR?
• Install Drupal • Much, much more
• Perform Updates
• Download/enable/disable modules
• Synchronize databases/files
• Backups
• Queries
6. INSTALLATION
• Linux package management
• Extract tarball from drupal.org
• Homebrew
• Windows Installer
• PEAR
7. GETTING STARTED
• To get a list of commands
drush OR drush help
• To get help on a command
drush help <command>
• Even more documentation
drush topic
8. NEW TO DRUSH 5.X
• Windows compatibility and installer • Better dumping/syncing
• Drush make now included
• Bash completion script
• Built-in webserver
• Better multisite handling
• Remote sessions
9. INTEGRATIONS!
• Backup and Migrate
• Devel
• Features
• Omega and Zen themes
• Many, many more
10. SITE ALIASES
Aliases are commonly used to define short names for
local or remote Drupal installations
Managing remote sites with drush aliases
Commands like
drush @staging pm-update
drush @staging cc all
11. SYNC DRUPAL SITES
//update the codebase using whatever source control system you prefer.
git pull
//import the database using drush
drush sql-sync @dci.prod @dci.dev
//sync the files directory using drush
drush rsync @dci.prod:%files/ @dci.dev:%files/