Skip to content

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 ​

bash
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]

match has no default platform: always pass ios or android. sync is the defaultSubcommand of match ios and match android, so appitool match ios -t adhoc runs appitool match ios sync -t adhoc and appitool match android -k release.keystore runs appitool 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.

SubcommandDestructiveDescription
sync (default)NoSyncs certificates and profiles from Git storage, creating missing or expired ones when writable.
nukeYesRevokes certificates and deletes provisioning profiles of one distribution type on Apple Developer Portal and in Git storage.
pruneYesRemoves certificates and profiles that are revoked on Apple Developer Portal or expired from Git storage.

Shared Options (all match ios subcommands) ​

Option / FlagDefault / .env FallbackDescription
-p, --platform <platform>iosTarget Apple platform: ios, macos, tvos, catalyst.
--silent / --no-silenttrue (--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 / FlagDefault / .env FallbackDescription
-t, --type <type>MATCH_TYPE or appstoreDistribution type: appstore, development, adhoc, enterprise, developer_id.
--identifiers <ids>Auto-discovered from local Xcode projectComma-separated bundle identifiers to sync profiles for.
--forcefalseForce renewal of provisioning profiles even if still valid.
--shallow-clone / --no-shallow-clonetrue for --readonly; false otherwisePerform 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 / FlagDefault / .env FallbackDescription
-t, --type <type>MATCH_TYPE or appstoreDistribution 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 / FlagDefault / .env FallbackDescription
-t, --type <type>MATCH_TYPE or appstoreDistribution type to prune: appstore, development, adhoc, enterprise, developer_id.
--allfalsePrune 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 ​

bash
# 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 development

appitool 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-password are provided) using Match V2 (AES-256-GCM) and pushes it to the Git repository.

Options & Flags ​

Option / FlagDefault / .env FallbackDescription
--package-name <name>GOOGLE_PACKAGE_NAME or Gradle-resolvedTarget Android application package name.
-c, --configuration <type>releaseBuild 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_ALIASKey alias inside keystore.
--keystore-password <pass>ANDROID_KEYSTORE_PASSWORDKeystore password.
--key-password <pass>ANDROID_KEY_PASSWORDKey password.
--silent / --no-silenttrue (--silent)Suppress (--silent) or show (--no-silent) verbose output.

Plus MatchStorageOptions (--match-git-url, --match-git-branch, --match-git-token, --match-password).

Examples ​

bash
# 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 release

appitool 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 / FlagDefault / .env FallbackDescription
--package-name <name>GOOGLE_PACKAGE_NAME or Gradle-resolvedTarget Android application package name.
-c, --configuration <type>releaseBuild type (release or debug).
--alias <name>ANDROID_KEY_ALIAS, then uploadKey alias inside the keystore.
--keystore-password <pass>ANDROID_KEYSTORE_PASSWORD, then a random 32-character passwordKeystore 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 nameCertificate 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>10000Certificate validity (about 27 years). Google Play requires upload keys to be valid until at least October 22, 2033.
--key-size <bits>2048RSA key size: 2048, 3072, or 4096.
-o, --output <path>—Also write the keystore to this path. Never overwrites an existing file.
--silent / --no-silenttrue (--silent)Suppress (--silent) or show (--no-silent) verbose output.

Plus MatchStorageOptions (--match-git-url, --match-git-branch, --match-git-token, --match-password).

Examples ​

bash
# 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

Released under the MIT License.