Environment Variables

How the CLI authenticates in CI/CD.

Use this for CI/CD runners where you can't run appflight login interactively.

Reference

VariableDescription
APPFLIGHT_API_KEYAPI key. Takes precedence over ~/.appflight/credentials.json.

APPFLIGHT_API_KEY

export APPFLIGHT_API_KEY=appflight_xxxxxxxxxxxx
appflight upload --flavor stage

Generate the key in AppFlight mobile app → Settings → API Keys, then add it as a secret in your CI platform (GitHub Actions, GitLab CI, etc.).

The key is scoped to your account — keep it out of version control and rotate it in the mobile app if it leaks.