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
ivo

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: http://docs.grafana.org/tutorials/api_org_token_howto/

Here is the relevant HTTP API documentation section: http://docs.grafana.org/http_api/auth/#create-api-key