Useful Drush Commands
Log out all active Users:
drush sql-query 'TRUNCATE TABLE sessions;'
Log out all active Users:
drush sql-query 'TRUNCATE TABLE sessions;'
Drush can be used for installing website programmatically. However after installation, you might want to update the synchronization. Install Drupal database: Installs drupal when executed inside the drupal folder.drush site-install --db-url=mysql://dbuser:dbpass@localhost/dbname --account-name=admin --account-pass=secret -y
Remove Shortcut links:drush ev '\Drupal::entityTypeManager()->getStorage("shortcut_set")->load("default")->delete();'
curl -sS https://getcomposer.org/installer | phpmv composer.phar /usr/local/bin/composer
ln -s /usr/local/bin/composer /usr/bin/composergit clone https://github.com/drush-ops/drush.git /usr/local/src/drush
cd /usr/local/src/drushdrush php-eval "ji_custom($node);"vbo-execute Execute a bulk operation based on a Views Bulk Operations (VBO) view.
vbo-list List all Views Bulk Operations (VBO) views, along with the operations associated with each.