---
name: gog-searchconsole
description: "Google Search Console via the gog CLI: run search-analytics queries, list verified sites, and list/submit/delete sitemaps. Use for SEO/search-performance reporting and sitemap management with JSON output."
---

# gog searchconsole

Search Console reads and sitemap writes with parseable output. Pick the account
on every call with `--account <email>` (or set `GOG_ACCOUNT`). Requires the
Search Console API enabled for the account.

## Reads

```bash
gog --account you@example.com searchconsole sites list --json
gog --account you@example.com searchconsole searchanalytics query --site 'https://example.com/' \
  --start-date 2026-05-01 --end-date 2026-05-31 --dimensions query --json
gog --account you@example.com searchconsole sitemaps list --site 'https://example.com/' --json
```

## Writes

```bash
gog --account you@example.com searchconsole sitemaps submit --site 'https://example.com/' --feedpath sitemap.xml
gog --account you@example.com searchconsole sitemaps delete --site 'https://example.com/' --feedpath sitemap.xml --force
```

## Safety

- `sitemaps delete` removes a submitted sitemap and needs `--force`; analytics
  and `sites`/`sitemaps list` are read-only.
- stdout is data (`--json`/`--plain`); hints go to stderr. `--no-input` in automation.

## Discovery

`gog searchconsole --help` · `gog searchconsole <cmd> --help` · `gog schema searchconsole <cmd> --json`
Reference: <https://gogcli.sh/>
