auth
Authentication and credential management commands.
advncd login
Authenticate with Google Cloud via the Advncd auth broker.
advncd login
Opens a browser to complete OAuth. On approval, stores app tokens locally.
Flags:
| Flag | Description |
|---|---|
--auth-base-url | Override the auth broker base URL |
Environment variable:
export ADVNCD_AUTH_BASE_URL="https://your-broker.example.com"
advncd login
See Authentication for full details.
advncd logout
Revoke the current session in the auth broker and delete local credentials.
advncd logout
After logout, run advncd login to re-authenticate.
advncd status
Show the current auth and config state.
advncd status
Output includes:
- App token validity and expiry
- Auth broker connectivity
- Configured project ID and region
- Required API readiness
advncd auth print-access-token
Print a valid short-lived GCP access token. Useful for debugging or scripting.
advncd auth print-access-token
The token is minted on demand and valid for a short window. You can pipe it to other tools:
TOKEN=$(advncd auth print-access-token)
curl -H "Authorization: Bearer $TOKEN" \
"https://run.googleapis.com/v2/projects/my-project/locations/europe-west1/services"
Credential storage
Credentials are stored under os.UserConfigDir()/advncd/:
| File | Contents |
|---|---|
credentials.json | App access token, refresh token, expiry, email, auth broker URL |
config.json | Default project ID and region |
registry.json | Local deployment records |
Paths by OS:
| OS | Path |
|---|---|
| macOS | ~/Library/Application Support/advncd/ |
| Linux | ~/.config/advncd/ |
| Windows | %AppData%\advncd\ |
File permissions: directory 0700, credential files 0600.