Skip to main content

How can I change a user's Drupal password with Drush?

Sometimes you just need to download a website at your localhost environment and work on it until you update the live website. It's quite common that you forgot to ask about the admin's password or you just want to update and test other user accounts (if you are not using masquerade module). Here comes drush to the rescue for once more! Simple add this drush upwd USERNAME --password="SOMEPASSWORD" or drush user-password USERNAME --password="SOMEPASSWORD" and you are ready.
drush