Drupal 11 cheatsheet

Drupal 11: Modules and themes

6 common Drupal 11 tasks.

Download a module

Add a contributed module to the project with Composer.

composer require drupal/admin_toolbar

Enable a module

Install a downloaded module on the site.

vendor/bin/drush pm:install admin_toolbar

Uninstall a module

Uninstall a module and remove its data.

vendor/bin/drush pm:uninstall admin_toolbar

Caution: Removes the module's data. Export configuration and back up the database first.

List enabled modules

Show the modules that are installed.

vendor/bin/drush pm:list --status=enabled

Install a theme

Install a theme so it can be selected or set as default.

vendor/bin/drush theme:install claro

Set the default theme

Make an installed theme the site's default.

vendor/bin/drush config:set system.theme default olivero

Was this page helpful?