Handy Drupal 8 Commands
Jan 30, 2023
With a docker setup, place lando in front of your drush commands.
Drupal forgotten password link login link
lando drush uli
Clear Cache
lando drush cc all
Clear database cache
Especially after updating a module…
lando drush updb
Modules
Install
composer require drupal/<modulename>
lando drush en drupal/<modulename>
Update
composer update
And then update database:
lando drush updb
Disable
lando drush dis [module-name]
MySQL
Dump
lando drush sql-dump - result-file=[file-name.sql]
Import
lando drush sql-drop;
lando drush sql-cli < [file-name.sql]