bee auth token
Overview
Section titled “Overview”Print the auth token to stdout
Prints the token for the default space, or the space given by --space. Useful for piping to other commands.
bee auth token [flags]-
-s,--space <hostname> - Space hostname
Examples
Section titled “Examples”Print token for default space
bee auth tokenPrint token for specific space
bee auth token -s xxx.backlog.comUse token in a script
TOKEN=$(bee auth token) && curl -H "X-Api-Key: $TOKEN" https://xxx.backlog.com/api/v2/users/myselfEnvironment variables
Section titled “Environment variables”-
BACKLOG_SPACE - Space hostname