code: def create_admin(ctx):
      
  
      try:
          admin = _create_user(ctx)
          admin.roles.append('admin')
  
          admin.save()
          log("Done")
      except KeyError:
          log('User already exists', lvl=warn)
docs: Creates a new local user and assigns admin role