コンテンツにスキップ

bee auth token

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.

Terminal window
bee auth token [flags]
-s , --space <hostname>
Space hostname

Print token for default space

Terminal window
bee auth token

Print token for specific space

Terminal window
bee auth token -s xxx.backlog.com

Use token in a script

Terminal window
TOKEN=$(bee auth token) && curl -H "X-Api-Key: $TOKEN" https://xxx.backlog.com/api/v2/users/myself
BACKLOG_SPACE
Space hostname