Don't Stress Over Local Passwords

20 April, 2024

Are you working in a multi-server environment, such as local, staging and production? If you don't have User 1 (or some other user) access in your local setup, it's easy to remedy.

Enter drush and its user-password (upwd) command.

Changing a password is a cinch, whether you know the existing one or not, if you have drush access to the site, which you hopefully do, on your local development server.

drush upwd <username> --password="<new password>"

Example:

drush upwd admin --password="let-me-in"

 

  • tip icon. tip
  • D9

    /themes/custom/tac/images/tag-icons/d9-logo.svg
    Drupal 9
    Drupal 9

    D8

    /themes/custom/tac/images/tag-icons/d8-logo.svg
    Drupal 8
    Drupal 8

    D7

    /themes/custom/tac/images/tag-icons/d7-logo.svg
    Drupal 7
    Drupal 7

Login or Register to Comment!