appitool match
Synchronizes, prunes, nukes, or adds encrypted code signing certificates, provisioning profiles, and Android keystores stored in a Git repository, and creates new Android keystores. Fully compatible with Fastlane Match V1 (AES-256-CBC) and V2 (AES-256-GCM) encryption.
Synopsis
appitool match ios [sync] [options]
appitool match ios nuke [options]
appitool match ios prune [options]
appitool match android [sync] [options]
appitool match android create [options]
matchhas no default platform: always passiosorandroid.syncis thedefaultSubcommandofmatch iosandmatch android, soappitool match ios -t adhocrunsappitool match ios sync -t adhocandappitool match android -k release.keystorerunsappitool match android sync -k release.keystore. Actions (sync,nuke,prune,create) are subcommands; distribution types are always passed with-t, --type.
appitool match ios
Groups the Apple code signing actions. Each action is its own subcommand with its own options.
| Subcommand | Destructive | Description |
|---|---|---|
sync (default) | No | Syncs certificates and profiles from Git storage, creating missing or expired ones when writable. |
nuke | Yes | Revokes certificates and deletes provisioning profiles of one distribution type on Apple Developer Portal and in Git storage. |
prune | Yes | Removes certificates and profiles that are revoked on Apple Developer Portal or expired from Git storage. |
Shared Options (all match ios subcommands)
| Option / Flag | Default / .env Fallback | Description |
|---|---|---|
-p, --platform <platform> | ios | Target Apple platform: ios, macos, tvos, catalyst. |
--silent / --no-silent | true (--silent) | Suppress (--silent) or show (--no-silent) verbose logging. |
Plus AppleCredentialsOptions (--apple-key-id, --apple-issuer-id, --apple-key) and GlobalCIOptions (--ci / --no-ci).
appitool match ios sync
| Option / Flag | Default / .env Fallback | Description |
|---|---|---|
-t, --type <type> | MATCH_TYPE or appstore | Distribution type: appstore, development, adhoc, enterprise, developer_id. |
--identifiers <ids> | Auto-discovered from local Xcode project | Comma-separated bundle identifiers to sync profiles for. |
--force | false | Force renewal of provisioning profiles even if still valid. |
--shallow-clone / --no-shallow-clone | true for --readonly; false otherwise | Perform shallow Git clone (--depth 1). |
--team-name <name> | — | Apple Developer Team Name (used as certificate CN when generating a new certificate). |
Plus MatchOptions (--match-git-url, --match-git-branch, --match-git-token, --match-password, --keychain-name, --keychain-password, --team-id, --readonly; --readonly defaults to false in match ios sync).
sync is not destructive, so it runs normally in CI mode.
appitool match ios nuke
| Option / Flag | Default / .env Fallback | Description |
|---|---|---|
-t, --type <type> | MATCH_TYPE or appstore | Distribution type to nuke: appstore, development, adhoc, enterprise, developer_id. |
Plus MatchStorageOptions (--match-git-url, --match-git-branch, --match-git-token, --match-password).
Requires App Store Connect API credentials. Skipped as a no-op (exit code 0) in CI mode unless --no-ci is passed.
appitool match ios prune
| Option / Flag | Default / .env Fallback | Description |
|---|---|---|
-t, --type <type> | MATCH_TYPE or appstore | Distribution type to prune: appstore, development, adhoc, enterprise, developer_id. |
--all | false | Prune across all distribution types (cannot be combined with -t, --type). |
Plus MatchStorageOptions (--match-git-url, --match-git-branch, --match-git-token, --match-password).
Requires App Store Connect API credentials. Skipped as a no-op (exit code 0) in CI mode unless --no-ci is passed.
Examples
# Sync App Store certificates and profiles (creates missing if writable)
appitool match ios -t appstore
# Read-only CI sync for Ad-Hoc profiles across specific bundle IDs
appitool match ios sync -t adhoc --readonly --identifiers "com.example.app,com.example.app.widget"
# Prune revoked/expired assets across all profile types from Git storage
appitool match ios prune --all
# Nuke development certificates and profiles on portal and Git repo
appitool match ios nuke -t developmentappitool match android
Groups the Android keystore actions: sync (default) and create.
appitool match android sync
Syncs an encrypted Android keystore (.keystore, .jks, .p12) from Git storage or encrypts and adds a local keystore + metadata JSON into Git storage.
Modes
- Sync Mode (default): Clones and decrypts
android/<configuration>/<packageName>.<keystore|jks|p12>and<packageName>.json, copying the keystore into~/.appitool/android/keystores/<packageName>.keystore. - Add Mode (
-k, --keystore): Encrypts the local keystore (and optional credential metadata JSON when--alias,--keystore-password, and--key-passwordare provided) using Match V2 (AES-256-GCM) and pushes it to the Git repository.
Options & Flags
| Option / Flag | Default / .env Fallback | Description |
|---|---|---|
--package-name <name> | GOOGLE_PACKAGE_NAME or Gradle-resolved | Target Android application package name. |
-c, --configuration <type> | release | Build type (release or debug). |
-k, --keystore <path> | — | Path to local keystore file to encrypt and add to Match Git storage (omit to sync). |
--alias <name> | ANDROID_KEY_ALIAS | Key alias inside keystore. |
--keystore-password <pass> | ANDROID_KEYSTORE_PASSWORD | Keystore password. |
--key-password <pass> | ANDROID_KEY_PASSWORD | Key password. |
--silent / --no-silent | true (--silent) | Suppress (--silent) or show (--no-silent) verbose output. |
Plus MatchStorageOptions (--match-git-url, --match-git-branch, --match-git-token, --match-password).
Examples
# Add and encrypt a local release keystore with credentials metadata
appitool match android \
--package-name com.example.app \
-k ./android/app/release.keystore \
--alias upload \
--keystore-password "store_secret" \
--key-password "key_secret"
# Sync release keystore from Match Git repository
appitool match android --package-name com.example.app -c releaseappitool match android create
Creates a new signing keystore and adds it to Match Git storage, without keytool or a JDK. The keystore is a PKCS#12 file in the same layout keytool -genkeypair -storetype PKCS12 writes, so Gradle, keytool, and Google Play read it like any other keystore:
- an RSA key (2048 bits by default) and a self-signed SHA-256 certificate with a Subject Key Identifier,
- the key encrypted with PBES2 (PBKDF2-HMAC-SHA256, AES-256-CBC), the certificate encrypted the same way,
- an HMAC-SHA256 integrity check.
With PKCS#12 the key password is the keystore password, so there is no --key-password.
The keystore and its metadata JSON (alias and password) are encrypted and pushed exactly like sync -k, and the keystore is also copied to ~/.appitool/android/keystores/<packageName>.keystore. match android sync, build android, and flow android then use it with no extra options.
A keystore that already exists in Match for the same package and build type is never replaced: replacing a release key breaks app updates. To replace one on purpose, add it with match android sync -k <path>.
Options & Flags
| Option / Flag | Default / .env Fallback | Description |
|---|---|---|
--package-name <name> | GOOGLE_PACKAGE_NAME or Gradle-resolved | Target Android application package name. |
-c, --configuration <type> | release | Build type (release or debug). |
--alias <name> | ANDROID_KEY_ALIAS, then upload | Key alias inside the keystore. |
--keystore-password <pass> | ANDROID_KEYSTORE_PASSWORD, then a random 32-character password | Keystore password, also the key password. At least 6 characters. A generated password is stored only in the encrypted Match metadata and is never printed. |
--common-name <name> | package name | Certificate common name (CN). |
--organizational-unit <name> | — | Certificate organizational unit (OU). |
--organization <name> | — | Certificate organization (O). |
--locality <name> | — | Certificate locality or city (L). |
--state <name> | — | Certificate state or province (ST). |
--country <code> | — | Certificate two-letter country code (C), e.g. TR. |
--validity-days <days> | 10000 | Certificate validity (about 27 years). Google Play requires upload keys to be valid until at least October 22, 2033. |
--key-size <bits> | 2048 | RSA key size: 2048, 3072, or 4096. |
-o, --output <path> | — | Also write the keystore to this path. Never overwrites an existing file. |
--silent / --no-silent | true (--silent) | Suppress (--silent) or show (--no-silent) verbose output. |
Plus MatchStorageOptions (--match-git-url, --match-git-branch, --match-git-token, --match-password).
Examples
# Create the release upload key with a generated password
appitool match android create --package-name com.example.app \
--organization "Example Ltd" --country TR
# Create it with your own password and keep a local copy
appitool match android create --package-name com.example.app \
--keystore-password "store_secret" -o ./release.keystore
# Check it with keytool (optional)
keytool -list -v -keystore ./release.keystore -alias upload