ipatool
$ ipatool Community Med Riskipatool (majd/ipatool) interacts with the iOS App Store APIs from macOS, Linux, or Windows to search apps, list historical versions, acquire free app licenses (purchase), and download decrypted-header .ipa files (download). Built with --format json and --non-interactive flags for scripted automation.
brew install ipatool ipatool streams large .ipa binaries to local disk and manages Apple Storefront session tokens directly via OS keychain or --keychain-passphrase.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
First-class --format json and --non-interactive global flags across search, list-versions, purchase, and download.
- Supports global
--format jsonand--non-interactiveflags - Explicit
--bundle-identifierflag avoids positional ambiguity
Keychain and --keychain-passphrase protect Apple ID sessions, though purchase modifies Apple ID license history without --dry-run.
- Encrypts session tokens in OS keychain or passphrase-protected store
- No
--dry-runbeforepurchaseordownload
Cross-platform Go binary installable via brew install ipatool or GitHub releases on macOS, Linux, and Windows.
- Single static Go binary with cross-platform support
Unique, focused tool for programmatic iOS .ipa acquisition and App Store version inspection.
- Enables headless
.ipaarchival and security analysis pipelines
Well-maintained MIT project (majd/ipatool), though dependent on undocumented Apple App Store endpoints.
- MIT-licensed
majd/ipatoolrepository
Clean Cobra --help reference and README examples, though --keychain-passphrase CI setup needs careful attention.
- Structured
--helpoutput and GitHub README examples
Security, Auth & Guardrails
Persists Apple ID session tokens in the OS keychain or an encrypted passphrase-protected file via --keychain-passphrase on headless Linux.
MIT open-source CLI; requires a valid Apple ID (2FA required on initial auth login).
# ipatool Agent Rules - Always pass `--format json --non-interactive` so commands never hang on TTY prompts. - Run `ipatool search` or `list-versions` before calling `purchase` or `download`. - Only call `purchase` for explicitly approved free bundle IDs.
Agent-Ready Command Recipes
Safe Read-Only Queries
ipatool search "Slack" --format json --non-interactive
Queries the iOS App Store catalog and returns matching bundle identifiers and versions as JSON.
ipatool list-versions --bundle-identifier com.tinyspeck.chatlyio --format json --non-interactive
Lists external version identifiers for an iOS app without downloading any .ipa file.
Controlled Writes & Previews
ipatool download --bundle-identifier com.example.app --output ./out.ipa --format json --non-interactive
Downloads the .ipa package for a licensed bundle ID to ./out.ipa with JSON progress/status output.
Strengths for Agents
- + Clean
--format json --non-interactivesupport makes scripting iOS App Store lookups reliable. - + Works cross-platform on Linux CI runners via
--keychain-passphrase(no macOS required).
Caveats & Pitfalls
- ! Initial
ipatool auth loginrequires interactive Apple ID 2FA verification. - ! Relies on unofficial Apple App Store APIs that may occasionally require CLI updates.