$npx -y skills add rorkai/app-store-connect-cli-skills --skill asc-build-lifecycleTrack build processing, find latest builds, and clean up old builds with asc. Use when managing build retention or waiting on processing.
| 1 | # asc build lifecycle |
| 2 | |
| 3 | Use this skill to manage build state, processing, and retention. |
| 4 | |
| 5 | ## Find the right build |
| 6 | - Latest build: |
| 7 | - `asc builds info --app "APP_ID" --latest --version "1.2.3" --platform IOS` |
| 8 | - Next safe build number: |
| 9 | - `asc builds next-build-number --app "APP_ID" --version "1.2.3" --platform IOS` |
| 10 | - Recent builds: |
| 11 | - `asc builds list --app "APP_ID" --sort -uploadedDate --limit 10` |
| 12 | |
| 13 | ## Inspect processing state |
| 14 | - `asc builds info --build-id "BUILD_ID"` |
| 15 | |
| 16 | ## Distribution flows |
| 17 | - Prefer end-to-end: |
| 18 | - `asc publish testflight --app "APP_ID" --ipa "./app.ipa" --group "GROUP_ID" --wait` |
| 19 | - `asc publish appstore --app "APP_ID" --ipa "./app.ipa" --version "1.2.3" --wait --submit --confirm` |
| 20 | |
| 21 | ## Cleanup |
| 22 | - Preview expiration: |
| 23 | - `asc builds expire-all --app "APP_ID" --older-than 90d --dry-run` |
| 24 | - Apply expiration: |
| 25 | - `asc builds expire-all --app "APP_ID" --older-than 90d --confirm` |
| 26 | - Single build: |
| 27 | - `asc builds expire --build-id "BUILD_ID" --confirm` |
| 28 | |
| 29 | ## Notes |
| 30 | - `asc builds upload` prepares upload operations only; use `asc publish` for end-to-end flows. |
| 31 | - For long processing times, use `--wait`, `--poll-interval`, and `--timeout` where supported. |