asc auth
Manage CLI authentication and API keys.
asc auth login
Authenticate with your API key.
Usagebash
# Interactive login (prompts for API key)asc auth login# Provide key directlyasc auth login --key asc_live_xxxxxxxxxx# Use a specific profileasc auth login --profile production --key asc_live_xxx
Options
| Option | Description |
|---|---|
--key, -k | API key to authenticate with |
--profile, -p | Named profile for multiple accounts |
asc auth logout
Remove stored credentials.
Usagebash
# Logout from default profileasc auth logout# Logout from specific profileasc auth logout --profile production# Logout from all profilesasc auth logout --all
asc auth status
Check authentication status and API key validity.
Usagebash
asc auth status# Output:# ✓ Authenticated as: user@example.com# ✓ API Key: asc_live_xxxx...7890# ✓ Organization: Acme Inc# ✓ Plan: Pro# ✓ Key expires: Never
asc auth profiles
List and manage authentication profiles.
Usagebash
# List all profilesasc auth profiles# Output:# NAME STATUS ORGANIZATION# default active Acme Inc# staging valid Acme Inc (Staging)# production valid Acme Inc# Switch active profileasc auth profiles use production
Environment Variables
For CI/CD, use environment variables instead of stored credentials:
| Variable | Description |
|---|---|
ASC_API_KEY | API key for authentication |
ASC_PROFILE | Profile name to use |