Drush User’s Guide

A practical guide to Drush, Drupal’s command line interface, helping you work with your Drupal sites more effectively with this book and ebook.
Preview in Mapt

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.
Mapt Subscription
FREE
$20.83/m after trial
eBook
$12.60
RRP $17.99
Save 29%
Print + eBook
$29.99
RRP $29.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$12.60
$29.99
$20.83p/m after trial
RRP $17.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Drush User’s Guide Book Cover
Drush User’s Guide
$ 17.99
$ 12.60
IBM Lotus Notes 8.5 User Guide: LITE Book Cover
IBM Lotus Notes 8.5 User Guide: LITE
$ 9.99
$ 7.00
Buy 2 for $19.60
Save $8.38
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781849517980
Paperback140 pages

Book Description

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.

Table of Contents

Chapter 1: Installation and Basic Usage
Introduction
Installation requirements
Installation for Linux and Unix (including Mac)
Installation on Windows
Drush command structure
Telling Drush which site to work with
Summary
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)
Summary
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
Summary
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
Summary

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.

Authors

Table of Contents

Chapter 1: Installation and Basic Usage
Introduction
Installation requirements
Installation for Linux and Unix (including Mac)
Installation on Windows
Drush command structure
Telling Drush which site to work with
Summary
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)
Summary
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
Summary
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
Summary

Book Details

ISBN 139781849517980
Paperback140 pages
Read More

Read More Reviews

Recommended for You

Drupal 7 Module Development Book Cover
Drupal 7 Module Development
$ 26.99
$ 18.90
Drupal 7 Views Cookbook Book Cover
Drupal 7 Views Cookbook
$ 31.99
$ 22.40
Drupal 7 Themes Book Cover
Drupal 7 Themes
$ 23.99
$ 16.80
Responsive Web Design with HTML5 and CSS3 Book Cover
Responsive Web Design with HTML5 and CSS3
$ 23.99
$ 4.80
Drupal Rules How-to Book Cover
Drupal Rules How-to
$ 12.99
$ 9.10
Drupal 7 Development by Example Beginner’s Guide Book Cover
Drupal 7 Development by Example Beginner’s Guide
$ 29.99
$ 21.00