Skip to main content
GrN.dk

Main navigation

  • Articles
  • Contact
  • Your Digital Project Manager
  • About Greg Nowak
  • Services
  • Portfolio
  • Container
    • Excel Freelancer
    • Kubuntu - tips and tricks
    • Linux Apache MySQL and PHP
    • News
    • Image Gallery
User account menu
  • Log in

Breadcrumb

  1. Home

The Drupal Shell - Drush

The Drupal Shell is an amazing tool if you maintain Drupal web sites and you have shell access to the server, where the Drupal site is hosted. This is also an unvaluable tool if you develop i in Drupal.

Drush 8

Updating drush: composer global update drush/drush

Manual install: http://docs.drush.org/en/8.x/install/

Check latest drush version: https://github.com/drush-ops/drush/releases/

Example procedure:

wget https://github.com/drush-ops/drush/releases/download/8.1.18/drush.phar

chmod +x drush.phar

nano .bashrc 

alias drush='php ~/drush.phar'

source .bashrc

Useful Commands

drush pml --no-core --type=module --status=enabled --pipe | grep webform

drush pml --no-core --type=module --status=enabled --pipe | grep -o -P '(?<=\().*(?=\))'

drush pml --no-core --type=module --status=enabled --pipe | grep -o -P '(?<=\().*(?=\))' | xargs

Drupal 8 disable all non core modules also called extensions: drush pml --no-core --type=module --status=enabled --pipe | grep -o -P '(?<=\().*(?=\))' | xargs drush pmu

Resources

  • Most Powerful Drush Commands
Last modified
2020-06-13

Tags

  • Drupal
  • Drush
  • Log in to post comments

Review Greg on Google

Greg Nowak Google Reviews

 

  • Cloudflare Cache Response Rules Made Origin Header Debt a Paid Cleanup Job
  • Cloudflare Service Key Deprecation Turns Old DNS and SSL Scripts Into a 2026 Cleanup Project
  • Unsupported Theme Contracts Made WordPress 6.9.3 a Paid Troubleshooting Story
  • WordPress Playground Made Faster Reproduction Easier, but Plugin and Hosting Bugs Are Still Paid Troubleshooting
  • Drupal CMS 2.0 Makes Marketing-Site Rebuilds Faster, but Canvas, Recipes, and Governance Are Still Paid Work
RSS feed

GrN.dk web platforms, web optimization, data analysis, data handling and logistics.