Google Play authentication (
gps)
Setup checklist
- Create a Google Cloud service account.
- Enable Google Play Android Developer API.
- Invite the SA email in Play Console → Users and permissions with the needed app roles.
- Download the JSON key. Never commit it.
Credential precedence
--credentials <path|json>
GPS_CREDENTIALS / GOOGLE_PLAY_CREDENTIALS
GOOGLE_APPLICATION_CREDENTIALS
~/.config/gps/config.json → { "credentialsPath": "..." }
export GOOGLE_APPLICATION_CREDENTIALS=/secure/path/sa.json
gps whoami
Safety flags
| Flag |
Use when |
--confirm |
Any write (deploy, reply, refund, gps call write ops) |
--read-only |
Inspect-only CLI or MCP sessions |
gps --read-only --package com.example.app tracks list
gps-mcp --read-only --credentials /secure/path/sa.json
Common failures
| Symptom |
Likely cause |
| No credentials found |
Env/path not set |
| 401 / Login Required |
Bad key, wrong library auth, or SA not usable |
| 403 |
SA not invited in Play Console or missing permission |
| Empty reviews |
API window only returns recent reply-eligible reviews |
Always verify with gps whoami before write operations.