---
name: appitool
description: Use when a task involves the appitool CLI (alias aptl) - building, code signing (match), or releasing (flow) iOS and Android apps, managing App Store Connect, Google Play Console, or Firebase resources such as apps, versions, profiles, certificates, devices, users, screenshots, store metadata, App Distribution, Auth, and Firestore, inspecting a local iOS or Android project, writing release notes from git, sending Slack or KokoNo push notifications, or signing and verifying build provenance.
---

# appitool

appitool is a Swift CLI for iOS and Android builds, code signing, and releases, and for App Store Connect, Google Play Console, and Firebase. `aptl` is a shorter name for the same binary.

## Before running a command

1. Run `appitool <command> [<subcommand> ...] -h`. The live help matches the installed version; trust it over memory and over these notes. `appitool --version` prints the version.
2. For details, fetch only the page you need. If the web is not available, the `-h` output is enough.
   - Index of all pages: https://appitool.appibara.com/llms.txt
   - Everything in one plain-text file: https://appitool.appibara.com/llms-full.txt
   - All commands and shared options: https://appitool.appibara.com/commands/overview
   - One command: https://appitool.appibara.com/commands/<command>, where `<command>` is one of flow, build, check (latest store and distribution build info), match, apple, google, firebase, inspect (local project metadata), clean, notes (release notes from git), kokono (KokoNo push notifications), slack, self-update, attestation (verify build provenance, manage signing keys), skills
   - Environment variables and `.env`: https://appitool.appibara.com/guide/configuration

## Conventions

- Store commands are `<store> <resource> <action>`: `appitool apple users list`, `appitool google metadata upload`. There are no dashed actions such as `list-users`. Some groups are nested deeper (`appitool firebase firestore query`), and `match` always needs `ios` or `android`, then defaults to `sync`: `appitool match ios` runs `match ios sync`.
- Values are options, not positional: `appitool apple metadata upload -f ./store/apple`, not `appitool apple metadata upload ./store/apple`. The one exception is Firestore paths: `appitool firebase firestore get users/alice`.
- Single-letter options mean the same thing in every command: `-d` distribution, `-p` platform, `-b` bundle-id, `-t` type, `-s` scheme, `-c` configuration, `-l` limit, `-o` output, `-e` email, `-f` file, `-r` roles, `-m` message, `-n` name, `-g` google-key, `-k` keystore, `-w` where (a Firestore query filter such as `-w 'status == active'`). Every other option is long-only, such as `--locale`, `--app-version`, `--package-name`, and `--dry-run`.
- Credentials and defaults come from environment variables or a `.env` file in the current directory, for example `APPLE_KEY_ID`, `APPLE_ISSUER_ID`, `APPLE_KEY`, `APPLE_BUNDLE_ID`, `GOOGLE_KEY`, `GOOGLE_PACKAGE_NAME`, and `MATCH_PASSWORD`. The configuration page lists them all.

## Safety

- When a state-changing command offers `--dry-run` (uploads, downloads, deletes, syncs), run it first, show the plan, and continue only if it matches what was asked.
- Never put secrets (key contents, passwords, tokens) on the command line or in output. Use environment variables or `.env`. Passing a file path is fine, for example `-g ./service-account.json` or `-k ./release.keystore`.
- Destructive commands are skipped in CI mode (`--ci`, or detected from CI environment variables). Add `--no-ci` only when the user asked for that destructive action.
- When a command fails, read its error and hint and fix the cause instead of retrying the same command.
