Skip to content

CLI reference

gmc [global options] <command> [subcommand] [args]

Commands

CommandDescription
gmc doctorDiagnose auth, GCP registration, and Merchant API access
gmc authAuthenticate (login / logout / whoami / test)
gmc configInspect configuration and profiles (path / list / current)
gmc accountsInspect & manage accounts — profile, users, lifecycle, identity, autofeed, shipping, return-policies
gmc productsManage products (list / get / insert / delete)
gmc datasourcesManage data sources / feeds (list / get / create / update / fetch / delete)
gmc inventoryLocal + regional inventory overrides (local / regional · list / insert / delete)
gmc promotionsManage promotions (list / get / insert)
gmc regionsDefine geographic regions for regional inventory + shipping (list / get / create / update / delete)
gmc notificationsWebhook notification subscriptions (list / get / create / update / delete)
gmc quotaInspect daily Merchant API call quota and usage (list)
gmc issuesRender account & product issues with resolution content (account / product)
gmc reportsReports — performance / competitive-visibility / price-competitiveness / check (CI gate) / query (MCQL)
gmc conversionsConversion sources — list / get / create / update / delete / undelete
gmc lfpLocal Feeds Partnership (provider) — stores / inventory / sales / state
gmc feedsFeeds as code (pull / push / diff)
gmc preflightOffline feed-compliance scanner — catch disapprovals before upload
gmc migrateContent API → Merchant API assistant (scopes / products / feed-labels)

Global options

FlagDescription
-j, --jsonEmit machine-readable JSON
-p, --profile <name>Profile to use
-a, --account <id>Account id (overrides the profile)
--no-colorDisable colored output
-V, --versionPrint the version
-h, --helpShow help for a command

See Configuration & profiles for how --profile / --account resolve, the environment variables, and the full exit-code table.

JSON & exit codes

With --json, success prints the result payload bare (a list command wraps its array under a named key, e.g. { "products": [...] }; a single resource prints as-is) and failure prints { "ok": false, "error": { "code", "message", "suggestion" } } — uniform across every command. (Some payloads carry their own ok field — doctor, preflight, migrate scopes, reports check — which is a domain verdict, distinct from the failure envelope.)

Exit codes are classed: 0 success · 1 a gating check failed (e.g. feeds push/migrate products partial failure, reports check breach) · 2 usage · 3 auth · 4 config · 5 Merchant API · 6 preflight (gating compliance findings).

Released under the MIT License.