Skip to content

drupal install

Paulo Maia Carvalho edited this page May 20, 2026 · 1 revision

drupal-install

Install a contrib module from Drupal.org via Composer and enable it with Drush.

Usage

/drupal-install token
/drupal-install admin_toolbar
/drupal-install module=pathauto

What it does

  1. Runs composer require drupal/<module> inside the project root.
  2. Runs drush en <module> to enable the module.
  3. Runs drush cr to rebuild caches.
  4. Reports the installed version.

Notes

  • The module name must match the Drupal.org machine name (the part after drupal/ on Packagist).
  • Composer resolves the latest version compatible with your installed Drupal core.
  • If the module has sub-modules, only the base module is enabled. Enable sub-modules manually with /drupal-db-query or by asking the agent.

Examples

/drupal-install admin_toolbar
/drupal-install token
/drupal-install pathauto
/drupal-install metatag
/drupal-install redirect

Related skills

Clone this wiki locally