Install
openclaw skills install google-search-console-cliUse this skill when working with this repository's `gsc` CLI, including Google Cloud OAuth client setup, CLI authentication, troubleshooting auth/config issu...
openclaw skills install google-search-console-cliUse this skill to operate and troubleshoot the gsc CLI in this repository.
Use this skill when the task involves any of:
gsc command available)Recommended (pipx, global gsc command):
python3 -m pip install --user pipx
python3 -m pipx ensurepath
pipx install google-search-console-cli
gsc --version
From source (development):
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
gsc --help
From source (pipx, editable):
pipx install -e /absolute/path/to/google-search-console-cli
gsc --help
As of February 26, 2026, create OAuth client credentials in Google Cloud Console using these steps:
External for personal/testing usage (or Internal for Workspace org-only)APIs & Services -> Credentials.Create credentials -> OAuth client ID.Desktop app.client_secret_*.json).Notes:
Preferred login flow:
gsc auth login --client-secret /absolute/path/to/client_secret.json
Useful auth options:
--readonly: request readonly scope only (webmasters.readonly)--no-launch-browser: print the auth URL without auto-opening a browserVerify credentials:
gsc auth whoami
gsc doctor
Default storage paths:
~/.config/gsc-cli/credentials.json~/.config/gsc-cli/config.jsonEnv overrides:
GSC_CREDENTIALS_FILEGSC_APP_CONFIG_FILEGSC_CONFIG_DIRgsc config set default-site sc-domain:example.com
gsc config get default-site
When set, commands that accept --site can omit it.
Top-level:
gsc --versiongsc --helpgsc doctorauthgsc auth login --client-secret FILE [--readonly] [--no-launch-browser]gsc auth whoami [--output table|json]configgsc config set default-site SITE_URLgsc config get default-sitesitegsc site list [--output table|json|csv] [--csv-path FILE]gsc site get [--site SITE] [--output table|json|csv] [--csv-path FILE]gsc site add [--site SITE]SITE example: sc-domain:example.com.
sitemapgsc sitemap list [--site SITE] [--sitemap-index TEXT] [--output table|json|csv] [--csv-path FILE]gsc sitemap get [--site SITE] --feedpath TEXT [--output table|json|csv] [--csv-path FILE]gsc sitemap submit [--site SITE] --feedpath TEXTgsc sitemap delete [--site SITE] --feedpath TEXT--feedpath alias: --path.
urlgsc url inspect [--site SITE] --url URL [--language-code CODE] [--output table|json|csv] [--csv-path FILE]Defaults:
--language-code en-USanalyticsgsc analytics query --start-date YYYY-MM-DD --end-date YYYY-MM-DD [options]Options:
--site SITE--dimension country|date|device|hour|page|query|searchAppearance (repeatable)--type discover|googleNews|image|news|video|web--aggregation-type auto|byNewsShowcasePanel|byPage|byProperty--row-limit 1..25000--start-row >=0--data-state all|final|hourly_all--filter dimension:operator:expression (repeatable)--output table|json|csv--csv-path FILESupported filter dimensions:
country, device, page, query, searchAppearanceSupported filter operators:
contains, equals, notContains, notEquals, includingRegex, excludingRegexConstraint:
--aggregation-type byProperty cannot be combined with page dimension or page filter.# List properties
gsc site list
# Get one property
gsc site get --site sc-domain:example.com
# List sitemaps
gsc sitemap list --site sc-domain:example.com
# Inspect one URL
gsc url inspect --site sc-domain:example.com --url https://example.com/page --output json
# Analytics query
gsc analytics query \
--site sc-domain:example.com \
--start-date 2026-01-01 \
--end-date 2026-01-31 \
--dimension date \
--dimension query \
--filter query:contains:brand
Auth error: Stored credentials do not include required scope ...
--readonly.No local OAuth credentials found...
gsc auth login --client-secret <path>No site specified. Pass --site or set one...
--site or set default via gsc config set default-site ...API failures / uncertain setup state
gsc doctor first, then address failing checks.