Last Updated: February 25, 2016
·
5.299K
· luukyb

Create a new administrator account in drupal with drush

Create your new user:

$ drush user-create your_user_name --mail="your_user_email@email.com" --password="your user password"

Assign the role administrator to your user:

$ drush user-add-role "administrator" your_user_name