playstore-cli
Manage Google Play Console metadata, in-app products, subscriptions, screenshots, and release tracks via YAML files. Provides tools for reading and listing Play state, including app info, tracks, listings, IAP, and subscriptions.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@playstore-cliexport IAP state to YAML"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
playstore-cli
A CLI + bundled MCP server for managing Google Play Console metadata, screenshots, one-time products, and subscriptions from YAML files. Designed for teams that want their store listing under version control instead of click-driven through the Play Console website.
What it does:
Pull every per-language listing, one-time product, subscription, base plan, offer, screenshot count, and release-track snapshot into committed YAML.
Push YAML edits back to Play: localised copy, regional prices, availability, subscription base plans + offers.
Create new one-time products + subscriptions from YAML (auto-detected by product id).
Two-way reconcile: pull live state into committed YAML without overwriting hand-edits; field-level diff with paths like
subscriptions/my_sub/base_plans/monthly-auto/regional_configs/US/price/units.Activate / deactivate base plans, sub offers, one-time offers, and purchase options via the
iap statelifecycle command.Migrate existing subscribers when a base-plan price changes.
Same code is exposed as an MCP server so an agent can read/list Play state without shelling out.
Originally extracted from a working Lazy Sudoku setup. Defaults match that layout (
.secret-stuff/+ a splitl10n/metadata/play/for IAP YAML /l10n/metadata/google/for listings + screenshots); downstream projects can either adopt the same conventions (no config needed) or override viaplaystore-cli.config.yaml/ env vars — see Configuration.
Install
npm install -g playstore-cli
# or, from a checkout
cd playstore-cli && npm install && npm run build && npm linkRelated MCP server: Google Play Store MCP
Authentication
You need a Google Play Developer service account with the right roles assigned in Play Console. The JSON key plus the app's package name go in a config file:
# .secret-stuff/playstore-config.yaml (gitignored — never commit)
package_name: "com.your.app"
service_account_key: "play-service-account.json" # filename, relative to .secret-stuff/Drop the downloaded .json next to the config in .secret-stuff/. See docs/auth.md for service-account setup and required roles.
Configuration
The Play side has a quirk the appstore-cli doesn't: the metadata is split across two directories in the Lazy Sudoku layout, and the defaults preserve that. Three knobs let downstream projects either keep the split or unify:
Knob | Default | Holds |
|
|
|
|
|
|
|
|
|
To override, drop a playstore-cli.config.yaml at the worktree root:
# Greenfield project: unify everything under one dir
secrets_dir: config/playstore-secrets
metadata_dir: store-metadata/play
listings_dir: store-metadata/play # same dir → no splitOr via env vars (highest priority):
PLAYSTORE_SECRETS_DIR=...
PLAYSTORE_METADATA_DIR=...
PLAYSTORE_LISTINGS_DIR=...The CLI uses git to find the project root (so secrets live with the main repo, not in worktrees) and the worktree root (so per-branch metadata edits stay local).
Quickstart
# 1. Pull current Play state into YAML
playstore iap export --output l10n/metadata/play/iap.yaml
# 2. Edit the YAML in your editor
$EDITOR l10n/metadata/play/iap.yaml
# 3. Preview the push
playstore iap sync --dry-run
# 4. Push
playstore iap syncSame flow for listings:
playstore listings update --all --dry-run
playstore listings update --allSee docs/workflow.md for the full loop including create, state lifecycle, and price migration.
Commands
App + track info
playstore info # package name, default lang, contact info
playstore tracks list # all release tracks + version codes
playstore tracks show <track> # one track's detailListings
playstore listings list
playstore listings show --lang en-GB
playstore listings update --all [--dry-run]
playstore listings update --lang en-GBIn-App Products + subscriptions
playstore iap list # quick stats
playstore iap show <productId> # full detail (auto-detects type)
playstore iap export --output l10n/metadata/play/iap.yaml # overwrites file
playstore iap sync [--product-id X] [--dry-run] # YAML → Play
playstore iap create [--product-id X] [--dry-run] # provision new
playstore iap pull [--product-id X] [--dry-run] # Play → YAML (additive)
playstore iap diff [--product-id X] # field-level divergence
playstore iap state [--product-id X] [--dry-run] # reconcile lifecycle (active/inactive)
playstore iap migrate-prices --product-id X --base-plan-id Y --regions <list|all> [--cutoff ISO] [--increase-type TYPE]One-time products, subscriptions, base plans, offers, and offer state all round-trip through iap.yaml. See docs/iap-schema.md for the YAML schema.
Screenshots
playstore screenshots list --lang en-GB
playstore screenshots upload --source ./shots --lang en-GB --mode replace
playstore screenshots upload --source ./shots --all --mode replaceModes: replace (drop + re-upload), add (append).
MCP Server
The package ships a bundled MCP server using the same client code as the CLI:
claude mcp add playstore playstore-mcpTools exposed:
Tool | Description |
| Package name, default language, contact info |
| Release tracks + version codes |
| All store listings |
| One listing by language |
| Per-language × phone / 7" / 10" tier counts |
| One-time products via |
| Subscriptions via |
| Full product detail; auto-detects one-time vs subscription |
Auth + paths come from the same config files as the CLI.
Play quirks worth knowing
The Play side has several non-obvious gotchas the CLI works around. Captured in docs/quirks.md:
Legacy
inappproductsAPI is dead. Newer accounts get 403 "migrate to the new publishing API." Usemonetization.onetimeproductsonly.Pricing is concrete
Money { currency_code, units, nanos }per region. No anchor + tier auto-equalise.new_regionsUSD+EUR is the fallback for any region Play opens in future.Region codes are ISO-2 (
US,DE), not ISO-3 like Apple.No "subscription groups" — each subscription stands alone.
One-time PURCHASE OPTIONS have no individual activate/deactivate — only
batchUpdateStates. The CLI'siap statehandles batching for you.regionsVersionis required on every patch. One-time products return it in GET; subscriptions don't. The CLI resolves a shared default by GETting the first YAML-listed one-time product.Newly-created subscriptions land base plans + offers in
DRAFT. Useiap stateto activate them, or flip via Play Console.updateMask: '*'is rejected. The CLI enumerates the patchable fields explicitly.
Project layout
playstore-cli/
├── src/
│ ├── auth.ts # config loading + service-account auth
│ ├── client.ts # SDK wrapper (read + write methods)
│ ├── paths.ts # secrets + metadata + listings path resolution
│ ├── project.ts # git-root discovery
│ ├── types.ts # YAML schema types
│ ├── index.ts # CLI entry (commander)
│ ├── commands/ # one file per command group
│ └── mcp/server.ts # MCP server (stdio)
├── docs/ # auth / workflow / iap-schema / listings-schema / quirks
├── package.json # bin: playstore + playstore-mcp
└── README.md # this fileContributing
See CLAUDE.md for agent-facing development notes.
For human contributors: PRs welcome. Run npx tsc --noEmit to typecheck. There are no unit tests yet — verify against a real Play account via --dry-run flags first.
Licence
MIT.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/zmij/playstore-cli'
If you have feedback or need assistance with the MCP directory API, please join our Discord server