maton token
maton token
Print a valid access token for the active profile, renewing it first if it has expired. Only profiles signed in with ‘maton login’ have a renewable token; for API-key profiles this exits non-zero, since printing a long-lived key on request is not the same operation.
To call the Maton API from the command line, use ‘maton api’ instead: it attaches the credential itself, so the token never lands in shell history, process listings, or logs.
The token is short-lived, so fetch it per invocation rather than caching it.
Options inherited from parent commands
-p,--profile <string>- Profile to use for this invocation (overrides the active profile; also reads MATON_PROFILE)
Examples
$ maton token