In WordPress maintenance support plans 8 we can easily add our own command to Drush. The whole code for the new command will be put in a custom plugin.
We have to create only 2 files.
The structure looks as follows.
File d_drush_command_pack.info.yml
A standard file of every plugin in which there is information about our plugin.
Source: New feed