Look up any game and find what to play next - RAWG search, ratings, franchise order, tag-matched recommendations with remake-aware title resolution, plus IsThereAnyDeal historical price tracking and currency-localised storefront prices, built for agents.
Quick Start
game-goat-pp-cli auth set-token
# optional: store an IsThereAnyDeal key for prices/price-history
echo "$ITAD_API_KEY" | game-goat-pp-cli auth set-token --provider itad
game-goat-pp-cli games search "hollow knight" --json
game-goat-pp-cli ratings "hollow knight" --json
game-goat-pp-cli ratings 3498 --json
game-goat-pp-cli similar "hollow knight" --json
game-goat-pp-cli price-history "hollow knight" --json
game-goat-pp-cli prices "hollow knight" --country GB --json
Unique Features
These capabilities aren't available in any other tool for this API.
similar — Games like : the seed's own studio first, then its defining gameplay tag (roguelite, metroidvania) found by tag-neighborhood co-occurrence, then a confidence-floored genre join. Every row carries its tier and a reason.
retention — Community completion and drop verdict for one game from RAWG added_by_status counts (needs RAWG_API_KEY).
price-history — Historical price tracking for one game: all-time / 1-year / 3-month lows, the current best storefront price, a dated change log, and a buy-now verdict, localised to a --country currency (needs ITAD_API_KEY).
prices — Current prices across storefronts, cheapest first, with a --deals-only filter and the all-time low for context, localised to a --country currency (needs ITAD_API_KEY).
Recipes
Games like one you loved
game-goat-pp-cli similar "Megabonk" --json --select results.name,results.tier,results.reason
Play a franchise in order
game-goat-pp-cli series "zelda" --json
Pin a remake when titles collide
game-goat-pp-cli ratings "resident evil 4" --year 2023 --json
A pinned --year is a hard constraint on the title too: if no game with that exact title was released in that year, the command reports not-found (drop --year or pass a RAWG id) rather than resolving a different game from the same year.
Will people actually finish it?
game-goat-pp-cli retention "elden ring" --json
Is now the cheapest it has ever been?
game-goat-pp-cli price-history "elden ring" --json
Historical lows (all-time, 1 year, 3 months), the current best storefront price, and a dated change log. Prices are localised to --country (ISO 3166-1 alpha-2; default ITAD_COUNTRY or US), so --country GB returns GBP. Requires an IsThereAnyDeal key — the ITAD_API_KEY env var or one stored via auth set-token --provider itad; get a free key at https://isthereanydeal.com/apps/.
What does it cost where I live?
game-goat-pp-cli prices "elden ring" --country GB --deals-only --json
Current price at every storefront, cheapest first, plus the all-time low for context. --deals-only keeps just active discounts; --limit caps the rows.
Usage
Run game-goat-pp-cli --help for the full command reference and flag list.
Paths & environment variables
This CLI separates local files into four path kinds:
| Kind | Contents |
|---|
config | User-editable settings such as config.toml and saved profiles |
data | Durable local data: credentials.toml, data.db, cookies, browser-session proof files, and other auth sidecars |
state | Runtime state such as persisted queries, jobs, and teach.log |
cache | Regenerable HTTP/cache files |
Each kind resolves independently. The ladder is:
- Per-kind env var:
GAME_GOAT_CONFIG_DIR, GAME_GOAT_DATA_DIR, GAME_GOAT_STATE_DIR, or GAME_GOAT_CACHE_DIR
--home <dir> for this invocation
GAME_GOAT_HOME for a flat relocated root
- XDG env vars:
XDG_CONFIG_HOME, XDG_DATA_HOME, XDG_STATE_HOME, XDG_CACHE_HOME
- Platform defaults matching existing installs
For containers and agent sandboxes, prefer a single relocated root:
export GAME_GOAT_HOME=/srv/game-goat
game-goat-pp-cli doctor
Under GAME_GOAT_HOME=/srv/game-goat, the four dirs resolve to /srv/game-goat/config, /srv/game-goat/data, /srv/game-goat/state, and /srv/game-goat/cache.
MCP servers do not receive CLI flags from the host. Put relocation in the host env block:
{
"mcpServers": {
"game-goat": {
"command": "game-goat-pp-mcp",
"env": {
"GAME_GOAT_HOME": "/srv/game-goat"
}
}
}
}
Precedence matters in fleets: an ambient per-kind variable such as GAME_GOAT_DATA_DIR overrides an explicit --home for that kind. Use GAME_GOAT_HOME or the per-kind variables for durable fleet relocation; treat --home as the weaker per-invocation lever.
Relocation is one-way. Unsetting GAME_GOAT_HOME does not move files back to platform defaults, and doctor cannot find credentials left under a former root. Move the files manually before unsetting relocation variables.
Existing installs keep working because the platform-default rung matches the legacy layout. On the first auth write, stored secrets leave config.toml and are consolidated into credentials.toml under the data directory. Run game-goat-pp-cli doctor --fail-on warn to check path and credential-location warnings in automation.
Commands
creator-roles
Manage creator roles
game-goat-pp-cli creator-roles - Get a list of creator positions (jobs).
creators
Manage creators
game-goat-pp-cli creators list - Get a list of game creators.
game-goat-pp-cli creators read - Get details of the creator.
developers
Manage developers
game-goat-pp-cli developers list - Get a list of game developers.
game-goat-pp-cli developers read - Get details of the developer.
games
Manage games
game-goat-pp-cli games list - Get a list of games.
game-goat-pp-cli games read - Get details of the game.
genres
Manage genres
game-goat-pp-cli genres list - Get a list of video game genres.
game-goat-pp-cli genres read - Get details of the genre.
platforms
Manage platforms
game-goat-pp-cli platforms list - Get a list of video game platforms.
game-goat-pp-cli platforms lists-parents-list - For instance, for PS2 and PS4 the “parent platform” is PlayStation.
game-goat-pp-cli platforms read - Get details of the platform.
publishers
Manage publishers
game-goat-pp-cli publishers list - Get a list of video game publishers.
game-goat-pp-cli publishers read - Get details of the publisher.
stores
Manage stores
game-goat-pp-cli stores list - Get a list of video game storefronts.
game-goat-pp-cli stores read - Get details of the store.
tags
Manage tags
game-goat-pp-cli tags list - Get a list of tags.
game-goat-pp-cli tags read - Get details of the tag.
Self-learning loop
This CLI caches per-question discovery so repeat queries skip the walk and structurally similar queries get answered via entity substitution. The loop also self-captures: every invocation is journaled locally, and failed-flag corrections plus fresh teaches surface as candidates on the next recall for confirm/reject judgment. Agents call recall before discovery and fire teach & after answering. See the ## Automatic learning section in SKILL.md for the full protocol.
game-goat-pp-cli recall <query> - Look up cached resources for a query before running discovery
game-goat-pp-cli teach - Record a query -> resource mapping (silent on success, safe to background with &)
game-goat-pp-cli learnings list - Inspect taught rows
game-goat-pp-cli learnings forget <query> - Undo a teach
game-goat-pp-cli learnings candidates - List auto-captured candidates awaiting confirm/reject
game-goat-pp-cli learnings stats - Local loop metrics: recall hit rate, teach-to-reuse, playbook resolution, candidate counts
game-goat-pp-cli teach-pattern - Install a query/resource template up front
game-goat-pp-cli teach-lookup - Add an entity mapping (e.g. country code, team alias) for pattern substitution
Pass --no-learn or set GAME_GOAT_NO_LEARN=true to disable the loop for deterministic flows.
The local store's schema version stamp is one-way: once this version of game-goat-pp-cli opens the database, older binaries refuse it with a version error — upgrade the binary rather than downgrading.
Output Formats
# Human-readable table (default in terminal, JSON when piped)
game-goat-pp-cli creator-roles
# JSON for scripting and agents
game-goat-pp-cli creator-roles --json
# Filter to specific fields
game-goat-pp-cli creator-roles --json --select id,name,slug
# Dry run — show the request without sending
game-goat-pp-cli creator-roles --dry-run
# Agent mode — JSON + compact + no prompts in one flag
game-goat-pp-cli creator-roles --agent
Agent Usage
This CLI is designed for AI agent consumption:
- Non-interactive - never prompts, every input is a flag
- Pipeable -
--json output to stdout, errors to stderr
- Filterable -
--select <field>[,<field>...] returns only fields you need
- Previewable -
--dry-run shows the request without sending
- Read-only by default - this CLI does not create, update, delete, publish, send, or mutate remote resources
- Offline-friendly - sync/search commands can use the local SQLite store when available
- Agent-safe by default - no colors or formatting unless
--human-friendly is set
Exit codes: 0 success, 2 usage error, 3 not found, 4 auth error, 5 API error, 6 local store miss, 7 rate limited, 10 config error.
Health Check
game-goat-pp-cli doctor
Verifies configuration, credentials, and connectivity to the API.
Configuration
Run game-goat-pp-cli doctor to see the resolved config, data, state, and cache directories. The platform-default config path is ~/.config/game-goat-pp-cli/config.toml; --home, GAME_GOAT_HOME, and per-kind env vars can relocate it.
Static request headers can be configured under headers; per-command header overrides take precedence.
Environment variables:
| Name | Kind | Required | Description |
|---|
RAWG_API_KEY | per_call | Yes for live RAWG commands | Set to your API credential. Local search and analytics over synced data work without it. |
agentcookie (optional)
If you use agentcookie to sync secrets across machines, this CLI auto-adopts agentcookie-managed credentials with no extra setup. When the daemon writes to this CLI's config, game-goat-pp-cli doctor reports agentcookie: detected (managing credentials) and auth status labels the credential source as agentcookie. Skip this section if you don't use agentcookie - the CLI works the same as any other.
Troubleshooting
Authentication errors (exit code 4)
- Run
game-goat-pp-cli doctor to check credentials
- Verify the environment variable is set:
echo $RAWG_API_KEY
Not found errors (exit code 3)
- Check the resource ID is correct
- Run the
list command to see available items
Sources & Inspiration
This CLI was built by studying these projects and resources:
Generated by CLI Printing Press