Settings
Build and submit profiles in eas.json or launchbay.toml, plus the environment variables the daemon reads.
Launchbay reads an app's settings from one file at its root:
launchbay.toml, if the app has one. This is the place for apps without Expo.eas.jsonotherwise, the file Expo apps already have. Field names match EAS, so an existingeas.jsonworks as it is.
Both have the same shape: a build table and a submit table, each holding named profiles. A
profile can extends another. When an app has both files, launchbay.toml wins and eas.json
is ignored. Without either, every profile is the defaults.
[build.production]
env = { API_URL = "https://api.example.com" }
autoIncrement = true
ios = { scheme = "MyApp" }
[build.preview]
extends = "production"
distribution = "internal"
android = { buildType = "apk" }
[submit.production]
ios = { ascApiKeyId = "ABC123", ascApiKeyIssuerId = "00000000-0000-0000-0000-000000000000" }
android = { serviceAccountKeyPath = "play.json", track = "internal" }Build profiles
Chosen with launchbay build --profile (default production). Fields Launchbay doesn't list here
are ignored.
| Field | What it does |
|---|---|
extends | Start from another profile and override it. |
env | Environment variables for the build (strings). Builds also get EXPO_RELEASE=1. |
distribution | internal exports an ad hoc build (iOS) instead of App Store. |
developmentClient | With distribution: internal, a development export, and a Debug build unless overridden. |
channel | EAS Update channel: the build asks expo-updates for this channel's updates (expo-channel-name header), as on EAS. Needs expo-updates configured. |
autoIncrement | Build number one past the highest the store has. ios.autoIncrement and android.autoIncrement override it per platform. |
ios.simulator | Build a simulator .app, no signing. |
ios.buildConfiguration | Xcode configuration, default Release. |
ios.scheme | Xcode scheme, default the app's own. |
ios.enterpriseProvisioning | universal exports with an enterprise profile. |
android.buildType | apk builds an APK instead of an AAB. |
android.gradleCommand | Gradle task instead of :app:bundleRelease. |
Submit profiles
Chosen with --profile on submit and promote (default production), and used for
autoIncrement and store listings too.
| Field | What it does |
|---|---|
ios.ascApiKeyId, ios.ascApiKeyIssuerId | App Store Connect API key. |
ios.ascApiKeyPath | The key's .p8, relative to the app. Without it, ~/.appstoreconnect/private_keys/AuthKey_ID.p8. |
ios.ascAppId | The app's Apple ID. Saves a lookup by bundle id. |
ios.appleTeamId | Team for signing, when the keychain has more than one. |
android.serviceAccountKeyPath | Google Play service account JSON, relative to the app. |
android.track | Track uploads go to, default internal. |
android.releaseStatus | completed, inProgress, draft or halted. |
android.rollout | Staged rollout fraction for uploads. |
android.changesNotSentForReview | Commit edits without sending them for review. |
android.applicationId | Package name, instead of expo.android.package from app.json. |
Environment variables
The daemon reads these, and they win over the file. launchbay service install copies every
LAUNCHBAY_* variable from your shell into the launchd agent, so rerun it after changing them.
| Variable | What it does |
|---|---|
LAUNCHBAY_ASC_KEY_ID, LAUNCHBAY_ASC_ISSUER_ID, LAUNCHBAY_ASC_KEY_PATH | App Store Connect API key. |
LAUNCHBAY_APPLE_TEAM_ID | Apple team for signing. |
LAUNCHBAY_PLAY_SERVICE_ACCOUNT | Google Play service account JSON. |
LAUNCHBAY_ANDROID_KEYSTORE, LAUNCHBAY_ANDROID_KEYSTORE_PASSWORD, LAUNCHBAY_ANDROID_KEY_ALIAS, LAUNCHBAY_ANDROID_KEY_PASSWORD | Upload key for apps without a credentials.json. LAUNCHBAY_ANDROID_KEY_PASSWORD defaults to the keystore password. |
LAUNCHBAY_HOME | Where state lives, default ~/.launchbay. |
LAUNCHBAY_PORT | Daemon port on 127.0.0.1, default 7717. |
Secrets
Values that can't go in git, such as a Sentry auth token, live in your login keychain instead, one
set per app. Every build of that app gets them as environment variables, filling in anything the
profile's env doesn't set.
launchbay secret set SENTRY_AUTH_TOKEN # prompts for the value without echoing it
pbpaste | launchbay secret set SENTRY_AUTH_TOKEN # or pipe it in
launchbay secret ls # names only, never values
launchbay secret rm SENTRY_AUTH_TOKENRun them in the app's folder, or pass --project DIR. A value is stored as a keychain item
(service launchbay) and handed to security on stdin, so it never shows in a process list;
only the names are written to disk, in ~/.launchbay/secrets.json. Values are text.
credentials.json
Android builds sign with the upload key from the app's credentials.json, the layout
eas-cli credentials writes:
{
"android": {
"keystore": {
"keystorePath": "keystores/upload.jks",
"keystorePassword": "...",
"keyAlias": "upload",
"keyPassword": "..."
}
}
}Keep it out of git. Without it, the LAUNCHBAY_ANDROID_* variables above are used, and without
those, the project's own release config.
launchbay.json
Store screenshot capture reads its own launchbay.json; see
Store screenshots.