Authentication and context
Interactive browser login
cli_ token in
~/.superflag/credentials.json with mode 0600; the directory is mode 0700.
Noninteractive token resolution
The CLI resolves credentials in this order:SUPERFLAG_TOKEN--token-fileorSUPERFLAG_TOKEN_FILE- browser-login credentials in
~/.superflag/credentials.json
SUPERFLAG_TOKEN. Do not print or
copy the credentials JSON into logs.
Token files must be current-user-owned regular files, not symlinks, with mode
0600 or stricter:
Select app and environment
~/.superflag/context.json. For agents and CI, explicit
selectors are easier to audit and prevent accidental cross-environment work:
not_found.
Duplicate human-readable app names fail as ambiguous_target and include
immutable-ID remediation; the CLI never selects the first match or substitutes
a similarly named target.
Credential scope
cli_ tokens are user-scoped. admin_ keys are app-scoped and can authenticate
management automation. sdk_ and pub_ keys are environment-scoped delivery
credentials, not general CLI login tokens.