How to Add Drush Commands to your Module

Coding and Development
Experience Level: 

Everyone that has ever spent anytime learning to use Drush knows that it can greatly streamline the Drupal workflow.

What many Drush users may not know is how relatively simple it is to add one or more Drush Commands to an existing custom Drupal Module.

The bulk of this session will involve a live demonstration that will consist of extending a (relatively) simple custom module to support one or more Drush Commands along with corollary Arguments, Options and Aliases.

Of course, there will be an introductory explanation of the overall process, along with a run-down of the requisite terminology. There may even be an attempt at explaining the motivation and strategy for what to extend with Drush.

There will be no attempt to dazzle with complexity -- indeed, the opposite! By keeping things as simple as possible the goal will be to lay bare the building blocks that let you hit the ground running and leave any complexity for later as you dig deeper to solve actual problems within the Drush solution space.

Learning Objectives & Outcomes: 

A simple Node Listing (custom) module will be the starting point where Attendees will be able to see each step along the way as that module is extended to include one or more Drush commands.

The objective is that Attendees can see the uncluttered scaffolding of drush commands, arguments and options so that they can apply them to various use cases on their own.

Attendees will be able to gather a github module with various Git-Tags that represent various Steps in the Presentation so that all may recreate the steps demonstrated on their own after the fact.

Platinum Sponsors

Gold Sponsors