Prepare an App Store version
prepare_versionCreate, reuse, or rename an App Store version for a given version string; optionally attach a build and set release type.
Instructions
Makes sure an App Store version with this version string is being prepared: reuses it if it exists, renames the version currently being prepared, or creates a new one (Apple copies the metadata from the previous version). Optionally attaches a build and sets the release type.
Changes App Store Connect (needs ASC_WRITE=1). Safe to re-run: steps already done are skipped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | App ID, bundle ID or exact app name. Defaults to ASC_APP_ID, or to the only app the key can see. | |
| build | No | Build to attach: number, ID or "latest". Must be processed (VALID). | |
| dry_run | No | If true, return the plan without changing anything. | |
| platform | No | Platform. Defaults to IOS. | |
| release_type | No | ||
| version_string | Yes | ||
| earliest_release_date | No | For SCHEDULED: ISO 8601 date-time. |