evroc iam get-access-token

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

Synopsis

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.

evroc iam get-access-token [flags]

Examples


# 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/...
		

Options

  -h, --help   help for get-access-token

Options inherited from parent commands

      --config string   Path to the evroc config file (default "~/.evroc/config.yaml")

SEE ALSO