gplay-signinglisted
Install: claude install-skill PollyGlot/google-play-cli-skills
# gplay signing (self-hosted Play App Signing key)
Two experimental commands, `signing enroll` and `signing rotate`, both
irreversible and `--confirm`-gated. They drive the `appsigning` API for apps
whose signing key lives in the developer's own Google Cloud KMS instance.
Shared conventions are in `gplay-cli-usage`.
## The wall: self-hosted keys only
The API handles self-hosted KMS keys only; a Google-managed key is enrolled
and rotated in the Play Console. When the user has no Cloud KMS key, point
them at the Console and stop. The IAM prerequisite on the key is in
`enroll --help`.
## Enroll
```bash
# an app that has already published to Open testing or Production
gplay signing enroll --kms-key projects/p/locations/l/keyRings/r/cryptoKeys/k/cryptoKeyVersions/1 --confirm
# a brand-new app (never published to Open testing or Production)
gplay signing enroll --new-app --kms-key <resource> --kms-cert cert.pem --confirm
# register the CI upload certificate in the same call
gplay signing enroll --kms-key <resource> --upload-cert upload.pem --confirm
```
Record the SHA256 from the output: it is what an API-key restriction or a
Firebase/Maps console asks for.
## Rotate
```bash
apksigner rotate --out lineage.bin --old-signer ... --new-signer ...
gplay signing rotate --kms-key <new resource> --kms-cert new-cert.pem \
--lineage lineage.bin --reason routine-key-upgrade --confirm
```
The lineage from `apksigner rotate` is signed by both the old and the new
key; `--reason` val