A unified CLI and release orchestration engine for Apple App Store Connect, Apple Developer Portal, Google Play Console, Firebase (App Distribution, Authentication, Cloud Firestore), and Git-backed code signing.
Full documentation: appitool.appibara.com (also as llms.txt for AI agents).
- Release pipeline (
flow): a 7-stage pipeline (setup➔prebuild➔build➔postbuild➔prerelease➔release➔postrelease) for iOS and Android, with automatic build number increments, optional--app-version/--build-numberoverrides, and a check that stops App Store releases of an already released version. - Distribution: TestFlight / App Store Connect, the Google Play internal track, and Firebase App Distribution.
- Git-backed code signing (
match): encrypted sync of iOS certificates and profiles and Android keystores through a private Git repository (Fastlane Match V1/V2 compatible), plus Android keystore creation withoutkeytool. - Store and Firebase management: App Store Connect apps, versions, identifiers, capabilities, profiles, certificates, devices, users, invitations, store assets, and listing metadata; Google Play store assets, listing text, users, and invitations; Firebase apps, App Distribution releases and groups, Auth users, and Cloud Firestore.
- Build provenance:
flow --attestsigns SLSA provenance for the built artifact with Sigstore (keyless in GitHub Actions, or with your own key), andattestation verifychecks it. - Notifications: Slack (webhook or bot token) and KokoNo, with optional end-to-end encryption.
- Release notes: categorized Markdown notes from Git conventional commits.
- Self-update:
self-updateupgrades the binary in place after SHA256 and build provenance checks (sigstore-swift, cross-checked withghwhen installed). - Dry runs:
--dry-runshows what would happen without building or changing remote state. - CI guard (
--ci/--no-ci): in CI (CI,GITHUB_ACTIONS,GITLAB_CI, ...), destructive commands (* delete,* prune,devices disable,invitations cancel,users revoke,match ios nuke/prune) are skipped as a no-op with exit code0. - Agent skill:
skills installadds a shortSKILL.mdso coding agents (Claude Code, Codex, Cursor, ...) use appitool correctly.
curl -fsSL https://raw.githubusercontent.com/appibara-ltd/appitool/main/install.sh | bashThe installer puts the binary in /usr/local/bin (or ~/.local/bin when that is not writable), adds an aptl symlink next to it, and makes sure it is on your $PATH.
GitHub API rate limits: in CI or on shared networks, pass
GITHUB_TOKEN(orGH_TOKEN):curl -fsSL https://raw.githubusercontent.com/appibara-ltd/appitool/main/install.sh | GITHUB_TOKEN=$(gh auth token) bash
Check the installation:
appitool --versionRequirements: Swift 6.4+ (macOS 26+ or Linux).
git clone https://github.com/appibara-ltd/appitool.git
cd appitool
swift build -c release && strip .build/release/appitool
ln -sf "$(pwd)/.build/release/appitool" /usr/local/bin/appitoolappitool self-update --check # only check for a newer release
appitool self-update # upgrade to the latest release
appitool self-update --force # reinstall the latest release
# Verify the build provenance of a release archive you downloaded yourself
appitool attestation verify -f appitool-darwin-arm64.tar.gzOptions are resolved in this order:
- Command-line options (e.g.
-b, --bundle-id,-d, --distribution) - Environment variables
- A
.envfile in the current directory
Start from the template:
cp .env.example .envThe most used variables:
# Apple App Store Connect
APPLE_KEY_ID=2X9R4HXF34
APPLE_ISSUER_ID=57246542-96fe-1a63-e053-0824d011072a
APPLE_KEY=./AuthKey_2X9R4HXF34.p8
APPLE_BUNDLE_ID=com.example.app
# Google Play / Firebase service account
GOOGLE_KEY=./service-account.json
GOOGLE_PACKAGE_NAME=com.example.app
# Firebase App Distribution (adhoc)
FIREBASE_IOS_APP_ID=1:1234567890:ios:abcdef1234567890
FIREBASE_ANDROID_APP_ID=1:1234567890:android:abcdef1234567890
# Match code signing
MATCH_GIT_URL=git@github.com:example/certificates.git
MATCH_PASSWORD=your_match_password
# Notifications
SLACK_URL=https://hooks.slack.com/services/...
KOKONO_URL=https://kokono.me/notify?token=...
KOKONO_E2E_PUBLIC_KEY=your_optional_public_keyEvery variable is listed in .env.example and the configuration guide.
Run appitool -h or appitool <command> [<subcommand> ...] -h for the live options of your installed version. Full reference: Command overview.
| Command | Subcommands / resources | Description |
|---|---|---|
flow |
ios, android |
Runs the 7-stage release pipeline. |
build |
ios, android |
Builds iOS (.xcarchive / .ipa) and Android (.aab / .apk) artifacts. |
check |
ios, android |
Shows app info and the latest build number from App Store Connect, Google Play, or Firebase. |
match |
ios, android |
Syncs, prunes, nukes, or adds Git-encrypted certificates, profiles, and keystores, and creates Android keystores. |
apple |
apps, versions, identifiers, capabilities, profiles, certificates, devices, users, invitations, assets, metadata, categories |
Manages App Store Connect and the Developer Portal. |
google |
apps, signing-certs, users, invitations, assets, metadata |
Manages Google Play Console apps, signing certificates, users, invitations, store assets, and listing text. |
firebase |
apps, fingerprints, releases, groups, users, firestore |
Manages Firebase apps, App Distribution, Auth users, and Cloud Firestore. |
inspect |
— | Shows local iOS and Android identifiers, versions, build numbers, and flavors (--json available). |
clean |
— | Removes cached builds, Xcode DerivedData, and downloaded store assets under ~/.appitool. |
notes |
— | Generates release notes from Git conventional commits. |
slack |
— | Sends a Slack message through a webhook or a bot token. |
kokono |
— | Sends a KokoNo push notification (optionally E2E encrypted). |
self-update |
— | Updates the appitool binary. |
attestation |
verify, keys create |
Verifies build provenance attestations and creates signing keys for them. |
skills |
install |
Installs the appitool agent skill. |
Store commands follow appitool <store> <resource> <action>, e.g. appitool apple users list. Values are always options, except Firestore paths (appitool firebase firestore get users/alice). -d, --distribution takes appstore, adhoc, or development.
# iOS to TestFlight / App Store Connect
appitool flow ios -d appstore
# Android to Firebase App Distribution
appitool flow android -d adhoc
# Set the version and build number yourself
appitool flow ios -d appstore --app-version 1.2.0 --build-number 42
# Show what would happen without building or uploading
appitool flow ios --dry-run| Stage | Name | What it does |
|---|---|---|
| 1 | setup |
Reads the project, resolves the bundle ID / package name, syncs signing assets, fetches the latest store build number, and (with -d appstore) checks the version was not already released. |
| 2 | prebuild |
Sets the next build number (max(store, project) + 1, or --build-number) and prepares signing. |
| 3 | build |
Runs xcodebuild or Gradle and records the artifacts. |
| 4 | postbuild |
Checks the artifact and, with --attest, signs its build provenance. |
| 5 | prerelease |
Generates store release notes from Git history (or --release-notes). |
| 6 | release |
Uploads to App Store Connect / TestFlight, the Google Play internal track, or Firebase App Distribution. |
| 7 | postrelease |
Pushes the release tag and sends Slack / KokoNo notifications. |
See Flow architecture for details.
appitool check ios -d appstore -b com.example.app
appitool check android -d appstore --package-name com.example.app
appitool build ios -d appstore
appitool build android -d appstore --package-name com.example.appappitool match ios -t appstore
appitool match ios -t adhoc --readonly --identifiers "com.example.app,com.example.app.widget"
appitool match ios prune --all
appitool match ios nuke -t development
appitool match android # download the stored keystore
appitool match android -k ./release.keystore # add an existing keystore
appitool match android create --common-name "Example Ltd" -o ./release.keystoreSee Code signing (Match).
appitool apple apps list -b com.example.app
appitool apple assets upload -b com.example.app --locale en-US -t iphone-67 -f ./screenshots/ios/en-US/
appitool google assets upload --package-name com.example.app --locale en-US -t phone -f ./screenshots/android/en-US/
appitool firebase releases list -p ios -l 10
appitool firebase firestore query users -w 'status == active'appitool inspect -p ios -c Release --json
appitool clean --derived-data --dry-run
appitool notes --from v0.8.0 --to v0.9.0 -o CHANGELOG_DRAFT.md
appitool slack -m "Build completed successfully."
appitool kokono -m "Confidential deployment completed." --e2e "your_public_key"
appitool skills installThe test suite (Swift Testing) runs fully offline: App Store Connect, Google Play, and Firebase calls are answered by in-process HTTP stubs (Tests/appitoolTests/Support/HTTPStubs.swift), and file work happens in temporary directories.
swift test --enable-code-coverage
node scripts/coverage.mjs "$(swift test --show-codecov-path)" --markdownCoverage per module is on Codecov (components in codecov.yml). Code that drives real system tools or user state is intentionally not unit-tested: the macOS keychain, xcodebuild / Gradle builds, Match Git clones under ~/.appitool, provisioning profile installation, and self-update binary replacement.
- Tests (
.github/workflows/tests.yml) run on every pull request and on demand (Run workflow, orgh workflow run tests.yml --ref main). They upload coverage to Codecov and check that the static Linux (x86_64) binary still builds. - Releases (
.github/workflows/release.yml) start from av*tag, or from Run workflow with an existing tag. The tag must matchversion:inSources/appitool/appitool.swift. The release reruns the tests on the tagged commit (without Codecov), builds macOS arm64 and Linux x86_64 / arm64, attests the archives, and publishes the GitHub release. - Dependencies (
.github/workflows/dependencies.yml) run weekly, update Swift packages, and open a pull request when the tests pass.
This project is licensed under the MIT License. See the LICENSE file for details.
