Book Image

Drush User's Guide

By : Juan Pablo Novillo Requena
Book Image

Drush User's Guide

By: Juan Pablo Novillo Requena

Overview of this book

<p>Drush is a command line interface for Drupal. Most of the tasks for building and maintaining a website are repetitive and involve filling in forms on administration pages. The majority of these tasks can be achieved with a single Drush command, shortening the development and maintenance time of a project drastically.</p> <p><em>Drush User's Guide</em> will allow you to be more productive and efficient in building and maintaining your Drupal sites through the command line. You will learn to install Drush on different platforms, and manage and configure your Drupal site by learning how to use and create Drush commands.</p> <p>Become a Drush expert by exploring its command toolkit; customizing it to suit your needs, and extending it with contributed modules.</p> <p>The command line will allow you to download, enable and upgrade Drupal projects in seconds. Back up your files, code and data in one single file, clear the cache, interact with databases, and deploy sites to remote machines - all using simply the command line. Use Drush with your own commands or alter existing ones; and extend the toolkit with a long list of contributed modules.</p> <p><em>Drush User's Guide</em> has everything you need to extend your use of the command line to easily build and manage your Drupal sites.</p>
Table of Contents (10 chapters)

Packaging module information in make files


Drush Make packages module information so you can build a Drupal installation with a set of downloaded modules. By turning the make file into an installation profile, you can go one step further by enabling modules and preconfiguring the Drupal site, which leads to ready to use Drupal distributions such as Open Atrium (http://openatrium.com), Open Public (http://drupal.org/project/openpublic), or Commons (http://drupal.org/project/commons).

Now we will create our own Drupal distribution. Let's suppose that we have been working on a site for promoting our favorite music festival. There is stuff in this site that we would like to use in future festival websites. We will first install Drush Make and then generate a make file out of our existing site.

Installing Drush Make

If you are using Drush 5 or installed Drush in Windows through the installer, you can skip this step because Drush 5 incorporates Drush Make.

Drush Make has commands that do not...