Don't Stress Over Local Passwords

17 May, 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>"


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


  • tip icon. tip
  • D9

    Drupal 9
    Drupal 9


    Drupal 8
    Drupal 8


    Drupal 7
    Drupal 7

Login or Register to Comment!