Set admin password using drush in drupal

I started using an automated script for my drupal installation, which will generate an admin user. But, after installation I have to edit the password. I won't be able to do this unless I specify my current password. Using the following drush script, I can edit the current pass:

drush upwd admin --password="MY_NEW_PASSWORD"

Drush 9:

drush upwd admin password=password

 

 

Saved you some valuable time?

Buy me a drink 🍺 to keep me motivated to create free content like this!