Drush for Developers, Second Edition, takes common challenges in Drupal projects and solves them using Drush. This book starts with the different installation approaches for Drush and its command structure. It then moves on to perhaps the trickiest challenge in Drupal projects: keeping code and configuration together during a project's lifetime. Next, we will deep dive into the tasks needed to keep a website under control and learn how to run, automate, and monitor them effectively.
Error validating and debugging our Drush commands is a must and this book has a whole chapter on that topic. The magic of managing remote Drupal projects through Drush site aliases is explained in the following chapters through a practical example. Finally, the book wraps up by putting in practice all the concepts covered in previous chapters in order to implement a development workflow for a team.
This document will guide you through the installation of Drush using Composer on your shared Linux hosting account. Topics include requesting SSH access to your account, using an SSH Client, general Bash usage, Composer installation and Drush installation.
IDC uses a custom version of drush_choice() and drush_choice_multiple() to add some DX Features on top of them. One of those improvements is the ability to search specific items within a list (single choice, or multiple choice).
Imagine you have a long list ( > 50 items) and you're prompted to select one or more values of that list.
Imagine you're looking for values that contain a similar string in the label (e.g: "field_article_").
Instead of entering them one by one, you can filter the list by that string.
IDC is a small module built on top of Drush (yet as a separate tool) that simplifies the process of creating Interactive Drush commands made of different steps, some of which might depend on data entered by the user on previous steps.
Since it overrides some of Drush's default behaviour to prompt the user for input, and adds some features on top of it, this page (and child pages) will serve to document any non-obvious features or instructions of use.