Generate a custom module.
Examples
- drush generate module
- drush generate module --destination=modules/custom
- drush generate module --destination=modules/custom \
--answer="My Module" \
--answer=my_module \
--answer="My custom module" \
--answer=Fields \
--answer=ai,field \
--answer=No \
--answer=No \
--answer=Yes
Option
--destination=path/to/module - by default the module files will be placed in WEBROOT/modules, it is highly likely that you will want to override this, e.g. --destination=modules/custom
For a full list of options ses the Official Docs.
Official docs