Skip to content

evroc iam get-access-token

Retrieve a short-lived access token to authenticate against evroc APIs

Retrieve a short-lived access token to authenticate against evroc APIs.

The access token can be used as a Bearer token when calling evroc APIs. It is short-lived and will expire after a few minutes.

Terminal window
evroc iam get-access-token [flags]
Terminal window
# Get access token for the current profile
evroc iam get-access-token
# Use the token in a curl command
curl -H "Authorization: Bearer $(evroc iam get-access-token)" https://api.evroc.com/...
Terminal window
-h, --help help for get-access-token
Terminal window
--config string Path to the evroc config file (default "~/.evroc/config.yaml")