Loading...
Loading...
Initialise a project's App Store Connect context using the `asc init` command. Use this skill when: (1) Saving app context to a project directory: "asc init", "pin my app ID", "set up project context" (2) Auto-detecting the app from an Xcode project: user says "run asc init in my project folder" (3) Searching by app name: "asc init --name 'My App'" (4) Explaining what .asc/project.json is used for (5) Reading saved project context to avoid running asc apps list every session
npx skill4agent add tddworks/asc-cli-skills asc-init.asc/project.jsonasc apps list# Direct (no API list call)
asc init --app-id <id> [--pretty]
# By name (case-insensitive search)
asc init --name "My App" [--pretty]
# Auto-detect from *.xcodeproj/project.pbxproj in cwd
asc init [--pretty]--app-id--name./.asc/project.json{
"appId": "1234567890",
"appName": "My App",
"bundleId": "com.example.myapp"
}{
"data": [
{
"affordances": {
"checkReadiness": "asc versions check-readiness --version-id <id>",
"listAppInfos": "asc app-infos list --app-id 1234567890",
"listBuilds": "asc builds list --app-id 1234567890",
"listVersions": "asc versions list --app-id 1234567890"
},
"appId": "1234567890",
"appName": "My App",
"bundleId": "com.example.myapp"
}
]
}# 1. Run once per project directory
cd /path/to/MyApp
asc init --pretty
# 2. In subsequent sessions, read the saved context
APP_ID=$(jq -r '.appId' .asc/project.json)
# 3. Use normally — no need for asc apps list
asc versions list --app-id "$APP_ID"
asc builds list --app-id "$APP_ID"asc init*.xcodeproj/project.pbxprojPRODUCT_BUNDLE_IDENTIFIER$(PRODUCT_BUNDLE_IDENTIFIER)| Situation | Error |
|---|---|
| |
Auto-detect: no | |
| Auto-detect: bundle IDs don't match any ASC app | |
docs/features/init.md