Overview

These are notes on frequently used commands during Drupal module development.

Clearing Cache

drush cr

Importing Translation Files

The following is an example of importing a Japanese language file for a module called itaiji.

drush locale:import ja /app/web/modules/custom/Drupal-module-itaiji/translations/itaiji.ja.po

Reinstalling a Module

drush pm-uninstall itaiji && drush en itaiji