code: def cli(obj, id, name, email, password, status, roles, text, email_verified, delete):
      
      client = obj['client']
      if delete:
          client.delete_user(delete)
      elif id:
          if not any([name, email, password, status, roles, text, email_verified]):
              click.echo('Nothing to update.')
              sys.exit(1)
          try:
              r = client.update_user(
                  id, name=name, email=email, password=password, status=status,
                  roles=roles, attributes=None, text=text, email_verified=email_verified
              )
          except Exception as e:
              click.echo('ERROR: {}'.format(e))
              sys.exit(1)
          if r['status'] == 'ok':
              click.echo('Updated.')
          else:
              click.echo(r['message'])
      else:
          if not email:
              raise click.UsageError('Need "--email" to create user.')
          if not password:
              password = click.prompt('Password', hide_input=True)
          try:
              user = client.create_user(
                  name=name, email=email, password=password, status=status,
                  roles=roles, attributes=None, text=text, email_verified=email_verified
              )
          except Exception as e:
              click.echo('ERROR: {}'.format(e))
              sys.exit(1)
          click.echo(user.id)
docs: Create user or update user details, including password reset.