Machine-Readable Output
Every command supports --json with deterministic envelopes. Progress logs go to stderr while structured results go to stdout.
Let AI agents or CI runners handle your entire iOS release flow — certificates, profiles, IPA uploads, store metadata, and App Review submission.
Hand it to an AI coding agent, wire it into CI/CD, or run interactively in your terminal. Accounts and configuration are shared seamlessly with the desktop client.
go install github.com/dotcn999/appuploader-clone/cmd/liteship@latestrelease pipeline covers 19 steps with checkpoint resumeAGENTS.md), with --json on every commanduser> Verify signing assets and submit ./build/App.ipa for App Review # Claude Code / Codex running liteship skill $ liteship doctor --for-release --json {"ok":true,"team":"ABCDE12345","cert":"VALID","profile":"VALID"} $ liteship release --ipa ./build/App.ipa --submit --json [11/19] upload ok build 2.3.1 (2026120201) [16/19] compliance ok EXEMPT (ITSAppUsesNonExemptEncryption=false) [18/19] submit ok waitingForReview done · Submitted for App Review (final manual release remains gated)
liteship release[ 1/19] preflight ok[ 2/19] account ok[ 3/19] team reused[ 4/19] bundle exists[ 5/19] certs reused[ 6/19] devices reused[ 7/19] profiles ok[ 8/19] signing ok[ 9/19] app exists[10/19] version ok[11/19] upload ok[12/19] build-wait ok[13/19] metadata ok[14/19] screenshots ok[15/19] previews skipped[16/19] compliance ok[17/19] review-info ok[18/19] submit ok[19/19] testflight okrelease finished; release type is MANUAL
# ubuntu-latest · GitHub Actions Runner $ liteship login --mode apikey --api-key-file AuthKey.json session ready ok (mode=live, team=ABCDE12345) $ liteship doctor --for-release checks passed 6/6 $ liteship release --non-interactive --json --yes {"step":"upload","status":"ok","build":"2026120201"} {"status":"submitted","release_type":"MANUAL","exit_code":0}
Same CLI syntax across AI agents and CI runners
Once installed, Claude Code learns all CLI flags, JSON schemas, and safety rules so you can orchestrate releases in plain English.
liteship skill --install user # Available across all projects liteship skill --install project # Scoped to current workspace
doctor first and creates only missing assets.Agents such as Codex read repo-local instruction files matching the installed CLI version automatically.
liteship skill --format agents > AGENTS.md liteship skill --format claude > CLAUDE.md
For Live mode, store your App Store Connect API Key JSON (AuthKey_*.json) in Secrets and import it before releasing.
# .github/workflows/release.yml
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Release to App Store
env:
ASC_KEY_JSON: ${{ secrets.ASC_API_KEY_JSON }}
run: |
printf '%s' "$ASC_KEY_JSON" > AuthKey.json
liteship login --mode apikey --api-key-file AuthKey.json
liteship doctor --for-release
liteship release --json --yes
Run doctor --for-release before building your archive to fail fast when signing assets or API keys are missing.
Add ASC_API_KEY_FILE as a File variable under Settings → CI/CD → Variables (Masked & Protected).
# .gitlab-ci.yml
release:
image: golang:1.27
stage: deploy
script:
- liteship login --mode apikey --api-key-file "$ASC_API_KEY_FILE"
- liteship doctor --for-release
- liteship release --json --yes
The pipeline stops at review submission; final manual release after approval stays explicitly gated.
liteship init scaffolds your project config for Bundle ID, signing mode, artifact paths, store assets, and release policies without storing secrets.
doctor validates every declared input before uploadliteship init --bundle-id com.example.app --name "My App" liteship doctor --for-release
# liteship.yaml version: 1 app: bundle_id: com.example.app name: My App sku: myapp001 primary_locale: en-US apple: team_id: ABCDE12345 account: dev@example.com paths: build: ./build/App.ipa screenshots: ./store/screenshots metadata: ./store/metadata signing: mode: automatic certificate: distribution profile_type: app-store release: build_wait: true submit: true testflight: true compliance: encryption: false # false if only standard HTTPS/TLS is used
Independent step tracking with resumable checkpoints
.liteship/release-state.json. If the network drops after uploading the IPA, rerunning release resumes from the next unfinished step without re-uploading.Predictable machine codes so agents and CI know whether to retry, fix input, or abort
| Exit Code | Symbol & Meaning | Recommended Handling |
|---|---|---|
| 0 | ok (Success) | Command succeeded; proceed to next step |
| 1 | internal_error (Internal Error) | Inspect stderr and structured --json details |
| 2 | bad_input (Invalid Usage / Input) | Fix command flags or run with --help |
| 3 | not_found (Resource Not Found) | Verify resource ID or create it first |
| 4 | conflict (State Conflict) | Duplicate name/build number or state mismatch |
| 5 | capability_not_supported (Unsupported) | Current account tier or mode does not allow this action |
| 6 | forbidden (Permission Denied) | Check Developer Team role permissions |
| 7 | agreement_required (Agreement Required) | Run liteship agreement accept |
| 8 | rate_limited (Rate Limited) | Back off exponentially and retry |
| 9 | upstream_error (Engine / Upstream Error) | Verify local engine and Apple service connectivity |
| 10 | needs_2fa (Two-Factor Required) | Complete 2FA in console or use an ASC API key |
| 11 | bad_credentials (Invalid Credentials) | Verify Apple ID, app-specific password, or .p8 key |
| 12 | session_expired (Session Expired) | Re-authenticate with liteship login |
| 13 | license_required (License Required) | Activate via liteship license activate |
| 14 | wait_timeout (Timeout) | Processing or network timed out; safe to retry |
| 15 | team_required (Team Selection Needed) | Pass --team or run team activate |
| 130 | interrupted (Interrupted) | Canceled or interrupted by SIGINT; safe to rerun |
Run liteship exit-codes to print this table in JSON or text. Every --json failure sets a matching error.code.
Run any command with --help for full options and examples
| Group | Commands | Purpose |
|---|---|---|
| Account | login / logout / account / team / whoami / api-key / agreement | Apple ID sessions, ASC API keys, team selection, and agreements |
| Project | init / doctor / release | Config scaffolding, readiness checks, and 19-step pipeline |
| Signing | bundle / cert / device / profile / signing | Bundle IDs, certificates, devices, provisioning profiles |
| App & Builds | app / build / upload / files / inspect / install / version | Apps, IPA upload/inspect, OTA/USB install, and versions |
| Storefront | metadata / screenshot / preview / asset / custom-page / page-test | Localized listing text, screenshots, previews, custom pages, A/B tests |
| Review | review / testflight / push | App Review submission, TestFlight beta review, and APNs push tests |
| Operations | iap / pricing / privacy / game-center / settings / udid / license | In-app purchases, pricing, privacy, Game Center, network/license settings |
| Utilities | web / skill / version / engine-version / exit-codes | Launch embedded Web UI, generate agent skills, version & exit codes |
Operate Apple Developer accounts autonomously without ambiguous output or accidental deletion
Every command supports --json with deterministic envelopes. Progress logs go to stderr while structured results go to stdout.
Creating existing resources returns created: false instead of failing half-way through a pipeline.
Credentials come from environment variables or stored local accounts — never plain CLI password arguments.
Destructive actions such as revocation or deletion require --yes outside an interactive TTY.
Automation stops after submitting for App Review unless you explicitly release an approved version.
Error payloads tell agents whether failure is retryable along with suggested follow-up commands.
Keep your AI assistant aligned with your installed CLI version. Re-run after upgrading liteship so flags and schemas never drift.
liteship skill --install user # Install into Claude Code user skills liteship skill --install project # Install for this workspace only liteship skill --format agents # Print AGENTS.md markdown for Codex liteship exit-codes # Print exit code reference