Home Page Icon
Home Page
Table of Contents for
Drush User's Guide
Close
Drush User's Guide
by Juan Pablo Novillo Requena
Drush User's Guide
Drush User's Guide
Drush User's Guide
Credits
About the Author
About the Reviewer
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Installation and Basic Usage
Introduction
Installation requirements
Installing php-cli on Debian and Ubuntu
Installing php-cli on Mac
Installation for Linux and Unix (including Mac)
The installation process
Installation on Windows
Automatic installation
Manual installation
Installing required libraries
Replacing the TAR Library
Installing Drush
Configure environment variables
Verify the installation
Configuring php.ini
Drush command structure
Executing a command
Providing arguments to a command
Modifying a command's behavior through options
Command aliases
Telling Drush which site to work with
Explicit methods
Summary
2. Executing Drush Commands
Downloading and installing Drupal (site-install)
Configuring a site (variable-set and variable-get)
Listing available variables
Setting new values to variables
Deleting variables
Finding variables by name
Working with projects (pm-X and user-X)
Viewing project information
Downloading and enabling modules
Choosing a specific version of a project
Disabling and uninstalling modules
Viewing information about downloaded projects
Upgrading modules
Creating users and user roles
Clearing out cached data and image styles (cache-clear and image-flush)
Flushing the cache
Deleting generated images from an image style
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
3. Customizing Drush
Writing a custom command
Writing our command
Analyzing the definition of our command
Analyzing the implementation of our command
Validating input
Altering and reacting to existing commands
Altering an existing command
Executing custom PHP scripts
Executing PHP code from the command line
Executing PHP scripts
Type less and do more with Drush Site Aliases
Configuring a Local Alias
Organizing Site Aliases within our system
Interacting with remote sites
Grouping related Site Aliases
Creating a Grouped Alias file with our Local Site Alias
Adding a Site Alias for the development site
Things we can do with remote Site Aliases
Synchronizing databases
Synchronizing directories
Sharing configuration within Grouped Aliases
Using configuration files
Optimizing the terminal for Drush
Saving Drush CLI configuration into our profile
Summary
4. Extending Drush
Backing up and migrating sites
Installing the module and looking at the help information
Generate and restore a backup
Reinstall, inspect modules, and generate data
Installing the module
Reinstalling modules
Inspecting source code
Searching for hook implementations
Viewing source code of functions and methods
Generating users and nodes
Working with features
Managing views from the command line
Generating a custom module codebase
Packaging module information in make files
Installing Drush Make
Generating a make file out of an existing site
Gathering information about our site and writing a make file
Loading contents from the make file into a Drupal installation
Summary
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Cover
Next
Next Chapter
Drush User's Guide
Drush User's Guide
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset