If you are using Drush, you know how powerful this Drupal command-line tool can be. It will deploy and maintain a complete Drupal website in seconds. For the commands to work you have to ensure that Drush is installed on your computer to find out more go to Drush if you are using Debian, it will be in the repositories. The Drush commands below are in the directory of the drupal install when being used.
Clear Drupal Caches.
drush cache-clear
To list Drupals currently installed and enabled modules.
drush pm-list
Enabling a Drupal module.
drush pm-enable
Disable a Drupal module.
drush pm-disable
Reset admin password using Drush.
drush uli
The result of this command will give you URL to paste into your browser you might have to alter the path a little it resets the admin
http:///?q=user/reset/1/1331703617/x4z6ONSNgb8U9fdFeaqBJ6nPoINaqo0Ci8QCUOYx27Q
To manually reset a user username use the following command.
drush upwd --password="newpassword"
Enable and disable themes using Drush
This allows you to use Drush in theme management.
drush http:/// pm-disable drush http:/// pm-enable drush http:/// vset theme_default
Note: <> Is a variable you the developer needs to place in or path.
Update all Contrib modules only
drush pm-update --no-core
- Se connecter ou s'inscrire pour publier un commentaire