add user via drush drupal 8
drush user-create ntiyiso --mail="ntiyiso.rikhotso@example.com" --password="12345"; drush user-add-role "administrator" ntiyiso
Here is what the above code is Doing:
1. We’re creating a new user called ntiyiso with the email address ntiyiso.rikhotso@example.com and the password 12345.
2. We’re adding the administrator role to the user ntiyiso.