Service account setup
- In Google Cloud, create a service account and enable the Google Play Android Developer API.
- Download a JSON key.
- In Play Console → Users and permissions, invite the service account email and grant app / account permissions.
- Store the key securely. Do not commit it to source control.
Credential precedence
Resolved in this order:--credentials <path|json>(CLI / MCP flag)GPS_CREDENTIALSorGOOGLE_PLAY_CREDENTIALS(path or inline JSON)GOOGLE_APPLICATION_CREDENTIALS(path)~/.config/gps/config.json→{ "credentialsPath": "/path/to/key.json" }