How to update role name progammatically in Drupal 8
If you already have the role object loaded:

$role
  -&gt;set('label', 'New label')
  -&gt;save();


If you don't:

$role = \Drupal::entityTypeManager()
  -&gt;getStorage('user_role')
  -&gt;load('client')
  -&gt;set('label', 'New label')
  -&gt;save();