Overview
Bot tokens are credentials designed for automated processes — CI/CD pipelines, containers, deploy scripts — that need to authenticate to FOKS without interactive login. A bot token encodes a user’s key in a compact, script-friendly string with no spaces or special characters.bot-token, and foks bot use is a synonym for foks key use-bot-token.
bot new
Output — a token in the form
name.key, for example:
bot use
The token is resolved in this order:
--tokenflagFOKS_BOT_TOKENenvironment variable- Standard input (prompted if neither above is set)
--token and FOKS_BOT_TOKEN simultaneously is an error.
Typical CI/CD workflow
Step 1 — On a developer machine, create the bot token:Roles for bots
Choose the minimum role needed for the bot’s task:
See team roles for a full description of the
member(n) sub-level system.