How to assign a role to a user with drush

I had to use this on one of our projects. A handy command to quickly assign a user a role in Drupal with Drush:

drush user:role:add administrator --uid=4

 

 

Saved you some valuable time?

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