Skip to content

gplay schema

Query an embedded, offline projection of the Android Publisher API (the Schema index) — does a method exist, what does it send and return, what fields and enums does a type carry.

This command is OFFLINE: it makes no API call and needs no credentials. It queries an index compiled into the binary, derived from the committed Discovery snapshot.

The query matches, case-insensitively, across three projections:

  • the native RPC method id (e.g. edits.tracks.update)
  • a REST path fragment (e.g. tracks/{track})
  • a schema / type name (e.g. Track)

A matched method shows its HTTP method, REST path, parameters, and a one-hop inline expansion of its request/response schema (fields, types, enums, Google's verbatim descriptions); nested types are shown by name. A matched schema is rendered directly.

--list print the compact catalog (id · http · path) of all methods --method GET|POST|PATCH|PUT|DELETE filter the method surface by HTTP verb (combinable)

A query that matches nothing prints a note on stderr and exits 0.

[experimental] — the surface, especially the --output json shape, may still change.

gplay schema [query] [flags]
FlagDescription
--listprint the compact catalog of all methods
--method stringfilter methods by HTTP verb (GET, POST, PATCH, PUT, DELETE)
--output stringoutput format: table, json, or markdown (default: auto — table on TTY, json in pipes/CI)
FlagDescription
--account stringname of a stored Account to use (overrides env and active Account)
--retry intretry transient failures (transport errors, 5xx, 429) up to N times with exponential backoff (default: 0, no retry)
--service-account stringpath to a service-account JSON, or inline JSON content (overrides --account, env, and active Account)
--timeout durationper-request API timeout, e.g. 30s or 2m (default: 60s for control-plane calls, none for uploads)
-v, --verboselog flow steps to stderr (info level)