Summary

We have covered two aspects of Drush customization in this chapter: scripts (either commands or actual PHP scripts) and configuration for Drush or Drupal sites.

This chapter started with a step guide on how to write custom Drush commands and execute scripts against a bootstrapped Drupal site. Then, hooks for altering commands were presented as a great tool to perform extra tasks. Finally, the various ways to configure how Drush should behave system-wide or site-wide were explained with some examples: configuration files are short cuts to set command default options while site aliases give us the power to manage remote sites with short commands and synchronize sites easily.

Drush is highly configurable and once you get some practice using the contents covered in this chapter you will end up with a much more powerful Drush.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.81.240