Grafana-cli get/create admin api token?

Hello team grafana,

Is it possible to get or (if missing) create an API-token from commandline? Or is “reset-admin-password” the only command available?
Thank you very much

Resetting the admin password is the only Grafana command line utility available (source).

You can do almost everything on the command line if you consider making API calls with curl. I think this tutorial shows you how to do what you want:

Here is the relevant HTTP API documentation section: