frankyonnetti
12/12/2013 - 6:24 PM

#drush #terminal commands

#drush #terminal commands

# Get list of commands
$ drush help

# Add flag to end of `fu` comment to increase version number
--version-increment

# Fix for blocked users
# https://www.drupal.org/node/1023440
$ drush php-eval 'db_query("DELETE FROM `flood`");'

# Get an admin login link
$ drush uli

# Set the password for any user
$ drush upwd admin --password="admin"

# review modules:
$ drush pml

# review enabled modules:
$ drush pml --status="Enabled"

# search for the Path module:
$drush pml | grep path

# or core:
$drush pml | grep core

# or all enabled:
$ drush pml | grep Enabled

# download and install a module:
$ drush dl views

# enable new installed modules:
$ drush en views

# Get theme setting for profile.info using theme name:
$ drush vget THEME NAME

# or get all theme info
$ drush vget theme

# install Drupal
$ drush dl drupal

# update drupal core
$ drush up drupal

#### update eveything at once
$ drush up