What problem does it solve?
This Skill empowers developers to leverage Drush commands for efficient Drupal development, including scaffolding, self-verification, debugging, and entity operations, significantly reducing manual effort and errors.
Core Features & Use Cases
- Scaffolding: Generate boilerplate code for modules, controllers, forms, entities, and plugins using
drush generate.
- Self-Verification: Verify routes, services, permissions, and config using dedicated Drush commands.
- Debugging: Utilize
watchdog:show, watchdog:tail, and core:status for effective troubleshooting.
- Entity Operations: Manage entities via the API using
entity:create, entity:save, and php-eval.
- Use Case: After creating a new content entity, use
drush generate entity:content to scaffold it, then drush cr to clear caches, and finally drush route --name=my_module.entity_list to verify the new route.
Quick Start
Use drush generate to scaffold a new Drupal module called my_module.