Free Sample
+ Collection

Drush User’s Guide

Juan Pablo Novillo Requena

A practical guide to Drush, Drupal’s command line interface, helping you work with your Drupal sites more effectively with this book and ebook.
RRP $17.99
RRP $29.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849517980
Paperback140 pages

About This Book

  • Stop clicking around administration pages and start issuing commands straight to your Drupal sites.
  • Write your own commands, hook in to alter existing ones and extend the toolkit with a long list of contributed modules.
  • A practical guide full of examples and step-by-step instructions to start using Drush right from Chapter 1.

Use the hashtag #PacktDrush on Twitter to discuss the book with the author, fellow readers, and Packt.

Who This Book Is For

Drupal developers or themers who understand Drupal administration’s basic concepts. Drush can make building any kind of website quicker and easier, no matter if it is a development environment, beta, a simple blog or a complex system.

Table of Contents

Chapter 1: Installation and Basic Usage
Installation requirements
Installation for Linux and Unix (including Mac)
Installation on Windows
Drush command structure
Telling Drush which site to work with
Chapter 2: Executing Drush Commands
Downloading and installing Drupal (site-install)
Configuring a site (variable-set and variable-get)
Working with projects (pm-X and user-X)
Creating users and user roles
Clearing out cached data and image styles (cache-clear and image-flush)
Running cron (core-cron)
Working with a site's database (sql-X commands)
Backing up and restoring entire websites (archive-dump and archive-restore)
Monitoring watchdog messages (watchdog-X)
Chapter 3: Customizing Drush
Writing a custom command
Altering and reacting to existing commands
Executing custom PHP scripts
Type less and do more with Drush Site Aliases
Using configuration files
Optimizing the terminal for Drush
Chapter 4: Extending Drush
Backing up and migrating sites
Reinstall, inspect modules, and generate data
Working with features
Managing views from the command line
Generating a custom module codebase
Packaging module information in make files

What You Will Learn

  • Learn how to install Drush on different systems, and download and install a full Drupal site in seconds.
  • Understand Drush’s command structure with options and arguments.
  • Discover how to set a site to maintenance mode and other common settings with just one command.
  • Back up and restore code, files and databases into one file.
  • Learn to write your own Drush commands and name sites by aliases for even shorter commands.
  • Manage modules and users, monitor messages and run automated tests.

In Detail

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.

Drush User’s Guide 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.

Become a Drush expert by exploring its command toolkit; customizing it to suit your needs, and extending it with contributed modules.

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.

Drush User’s guide has everything you need to extend your use of the command line to easily build and manage your Drupal sites.


Read More