Authentication Commands
Manage App Store Connect API credentials and authentication
Overview
Authentication commands manage your App Store Connect API credentials. Credentials are stored securely in the system keychain when available, with a config file fallback.Authentication Resolution
Credentials are resolved in this order:- Selected profile (keychain or config)
- Environment variables (fallback for missing fields)
--strict-auth or ASC_STRICT_AUTH=true to fail when sources are mixed.
Commands
asc auth init
Create a template config.json for authentication.
boolean
default:"false"
Overwrite existing config.json
boolean
default:"false"
Write config.json to
./.asc in the current repo instead of ~/.ascboolean
default:"false"
Open the App Store Connect API keys page in your browser
asc auth login
Register and store App Store Connect API key credentials.
string
required
Friendly name for this key
string
required
App Store Connect API Key ID
string
required
App Store Connect Issuer ID
string
required
Path to private key (.p8) file
boolean
default:"false"
Store credentials in config.json instead of keychain
boolean
default:"false"
When bypassing keychain, write to
./.asc/config.jsonboolean
default:"false"
Validate credentials with a lightweight API request
boolean
default:"false"
Skip JWT and network validation checks
asc auth switch
Switch the default authentication profile.
string
required
Profile name to set as default
asc auth logout
Remove stored API credentials.
boolean
default:"false"
Remove all stored credentials (default behavior)
string
Remove a named credential
asc auth status
Show current authentication status.
string
default:"table"
Output format:
table, jsonboolean
default:"false"
Show detailed storage information
boolean
default:"false"
Validate stored credentials via network
asc auth doctor
Diagnose authentication configuration issues.
string
default:"text"
Output format:
text, jsonboolean
default:"false"
Attempt to fix issues where possible
boolean
default:"false"
Confirm applying fixes (required with
--fix)Environment Variables
ASC_KEY_ID- API Key IDASC_ISSUER_ID- Issuer IDASC_PRIVATE_KEY_PATH- Path to .p8 fileASC_PRIVATE_KEY- PEM-encoded private keyASC_PRIVATE_KEY_B64- Base64-encoded private keyASC_BYPASS_KEYCHAIN- Set to1,true,yes,y, oronto bypass keychainASC_STRICT_AUTH- Set totrue,1,yes,y, oronto fail on mixed credential sourcesASC_PROFILE- Select a named profile