mcpField
G
gpc-cli-usage

gpc-cli-usage

github.com/androidpoetDevelopment446 installsUpdated 17w ago
Repository

About gpc-cli-usage

gpc-cli-usage is a skill for Agents working with Google Play Console through the gpc command line. It covers command discovery, authentication, output formats, and safety checks for changes.

Key features

  1. 01Command and flag discovery
  2. 02Authentication and profile switching
  3. 03Multiple output formats
  4. 04Dry runs and explicit confirmation
  5. 05Authentication diagnostics

Use cases

  1. 01List apps as JSON for automation
  2. 02Configure service-account credentials and a default package
  3. 03Troubleshoot authentication or API access

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/androidpoet/playconsole-cli-skills --skill gpc-cli-usage

After installing, type/gpc-cli-usagein Claude Code to confirm it loaded.

Details

From the project README

GPC CLI Usage

Use this skill when you need to run or design gpc commands for Google Play Console workflows.

Command discovery

Always confirm commands and flags before running:

gpc --help
gpc tracks --help
gpc bundles upload --help

Flag conventions

  • Use explicit long flags: --package, --track, --output.
  • No interactive prompts; destructive operations require --confirm.
  • Short aliases: -p (package), -o (output), -q (quiet).

Output formats

Default output is minified JSON. Available formats:

gpc apps list -o json          # Default, machine-readable
gpc apps list -o table         # Human-readable columns
gpc apps list -o yaml          # YAML format
gpc apps list -o csv           # CSV for spreadsheets
gpc apps list -o tsv           # Tab-separated
gpc apps list -o minimal       # Compact output
gpc apps list --pretty         # Pretty-print JSON

Use --pretty for debugging. Use -o json (default) for automation and piping to jq.

Authentication

Configure a profile
gpc auth login --credentials /path/to/service-account.json --name myprofile --default-package com.example.app
Switch profiles
gpc auth list
gpc auth current
gpc auth switch --name otherprofile
Environment variables for CI
VariablePurpose
GPC_CREDENTIALS_PATHPath to service account JSON
GPC_CREDENTIALS_B64Base64-encoded credentials
GPC_PACKAGEDefault package name
GPC_PROFILEDefault auth profile
GPC_OUTPUTDefault output format
Diagnostics
gpc doctor              # Check config, credentials, API access
gpc doctor --verbose    # Detailed diagnostic output

Global flags

FlagShortDescription
--package-pApp package name (or GPC_PACKAGE)
--output-oOutput format (json, table, yaml, csv, tsv, minimal)
--prettyPretty-print JSON
--quiet-qSuppress non-essential output
--debugShow API requests/responses
--dry-runPreview without applying changes
--timeoutRequest timeout (default 60s)
--profileAuth profile name

Safety

  • Use --dry-run before destructive operations.
  • Use --confirm flags explicitly; never pipe yes into commands.
  • Check gpc doctor before troubleshooting auth issues.

Agent behavior

  • Always pass --package explicitly unless GPC_PACKAGE is confirmed set.
  • Prefer --output json for parsing; use --output table when showing results to the user.
  • Run gpc doctor first if auth errors occur.

Comments

Markdown supported