code: def create_role(*_, **kwargs):
      
      click.echo(green('\nCreating new role:'))
      click.echo(green('-' * 40))
  
      with get_app().app_context():
          role = Role(**kwargs)
          result = role_service.save(role)
          if not isinstance(result, Role):
              print_validation_errors(result)
  
          click.echo(green('Created: ') + str(role) + '\n')
docs: Create user role