generate:command
Generate commands for the console.
Usage:
drupal generate:command  [options]
gcoAvailable options
| Option | Details | 
|---|---|
--extension  | The name of the Extension (modules, profiles or themes name).  | 
--extension-type  | The type of the Extension (can be module, profile or theme).  | 
--class  | The Class that describes the command. (Must end with the word 'Command').  | 
--name  | The Command name.  | 
--initialize  | Add initialize method.  | 
--interact  | Add interact method.  | 
--container-aware  | Is the command aware of the drupal site installation when executed?  | 
--services  | Load services from the container.  | 
--generator  | Add a Generator class for this command.  | 
Examples
Generate a command specifying the extension name and type, its class and the name.
drupal generate:command  \
  --extension="ExtensionName"  \
  --extension-type="module"  \
  --class="DefaultCommand"  \
  --name="CommandName"