login
Verifies your API key and saves credentials to ~/.appflight/credentials.json.
Verifies your API key and saves credentials to ~/.appflight/credentials.json.
appflight login
Steps
- Generate a key in the AppFlight mobile app → Settings → API Keys
- Run
appflight login - Paste the key when prompted (input is hidden)
The CLI verifies the key against AppFlight before saving. If verification fails, nothing is written.
Credentials file
Saved to ~/.appflight/credentials.json with 600 permissions (owner read/write only).
{
"apiKey": "appflight_xxxxxxxxxxxx",
"uid": "firebase-uid",
"email": "you@example.com"
}
Warning: Never commit
~/.appflight/credentials.json. For CI/CD, use theAPPFLIGHT_API_KEYenvironment variable instead — nologinstep required.