How can i create an api key with api chirpstack

I want create an api key for a tenant in chirpstack api grpc
i’m trying to create with python, at first i genarete in the interface, but after i want to generate a new one for every tenant, how can i do this with python, not in a interface

The only way I know to generate API keys besides the UI is to use the CLI:

~ $ chirpstack --help
ChirpStack is an open-source LoRaWAN(TM) Network Server

Usage: chirpstack --config <DIR> [COMMAND]

Commands:
  configfile
          Print the configuration template
  print-ds
          Print the device-session for debugging
  import-lorawan-device-profiles
          Import lorawan-device-profiles repository
  import-legacy-lorawan-devices-repository
          Import legacy lorawan-devices repository
  create-api-key
          Create global API key
  migrate-device-sessions-to-postgres
          Migrate device-sessions from Redis to PostgreSQL
  help
          Print this message or the help of the given subcommand(s)

Options:
  -c, --config <DIR>  Path to configuration directory
  -h, --help          Print help
  -V, --version       Print version
~ $ 

I believe you can create a global API key, which will then allow you to manage tenants with gRPC?