gplay setup
gplay setup
Section titled “gplay setup”Set up Google Play authentication end-to-end.
gplay setup --auto [flags]One-command setup for Google Play authentication.
With –auto, gplay drives the whole flow via gcloud:
- Install the gcloud CLI if it is missing (Homebrew on macOS, curl on Linux)
- Log you into Google Cloud (gcloud auth login) if needed
- Enable the androidpublisher API
- Create a service account (–sa-name) and download a JSON key
- Store the profile in ~/.gplay/config.json
- Open Play Console for the one manual step: granting the account access
Example: gplay setup –auto # full automated setup gplay setup –auto –project my-gcp-project gplay setup –auto –dry-run # preview commands gplay setup –auto –no-browser # CI/agent friendly (no browser) gplay setup # print manual instructions
| Flag | Description | Default |
|---|---|---|
--auto |
Automate GCP service-account creation using gcloud | false |
--dry-run |
Print the gcloud commands without executing them | false |
--key-out |
Path to write the service-account JSON (defaults to ~/.gplay/<sa>.json) | `` |
--no-browser |
Do not open a browser (for login or the Play Console grant step) | false |
--no-install |
Do not auto-install gcloud when it is missing | false |
--output |
Output format: text (default), json | text |
--pretty |
Pretty-print JSON output | false |
--profile |
gplay auth profile to create | default |
--project |
GCP project ID (defaults to gcloud default) | `` |
--sa-name |
Service account name | play-console-cli |
--set-default |
Set as default profile in config | true |