drush generatefor drush 9x

Generate boilerplate code for modules/plugins/services etc.

drush generate

  • Aliases

    generate has 1 alias/es:

    drush gen

  • Arguments

    generate accepts 1 argument/s:

    generator : A generator name. Omit to pick from available Generators.

  • Options

    generate accepts 5 option/s:


    --answers : answers


    --directory : directory


    --notify : notify


    --druplicon : druplicon


    --xh-link : xh-link

  • Examples

    Pick from available generators and then run it.

    drush generate

    Generate a controller class for your module.

    drush generate controller

    Generate a Drush commandfile for your module.

    drush generate drush-command-file

  • Comments

    comments powered by Disqus