kctl-gsc
Kodemeio Google Search Console CLI — manage properties, search queries, URL indexing, and SEO reports.
Installation
uv tool install kctl-gsc
Requires kctl-lib>=0.4.0 and Google API client libraries (installed automatically).
Quick Start
# Configure a profile (service account credentials)
kctl-gsc config init
# List all GSC properties
kctl-gsc properties list
# Top queries for the last 28 days
kctl-gsc queries top --days 28
# Inspect a URL's index status
kctl-gsc inspect url https://example.com/page
# Generate an overview report
kctl-gsc reports overview
# Export raw search analytics to CSV
kctl-gsc export csv --output analytics.csv
Command Groups
| Group | Description | Key Commands |
|---|---|---|
properties |
GSC property browsing | list, show |
queries |
Search Analytics (query dimension) | top, search, trends |
pages |
Search Analytics by page | top |
sitemaps |
Sitemap management | list, submit, delete |
inspect |
URL Inspection API | url, bulk, request-index |
reports |
Opinionated SEO reports | overview, product, opportunities, drift |
export |
Raw data export | csv, json |
config |
Profile management | init, add, use, show, validate, remove, set, profiles, current |
doctor |
Diagnostic checks | API connectivity, auth validation |
Global Options
| Option | Short | Description |
|---|---|---|
--profile |
-p |
Config profile name |
--property |
GSC property URI override | |
--credentials-file |
Service account JSON file override | |
--format |
-f |
Output format: pretty, json, csv, yaml |
--json |
Shortcut for --format json |
|
--quiet |
-q |
Suppress info messages |
--no-header |
Omit headers in CSV output | |
--version |
-V |
Show version and exit |
Configuration
Config lives in ~/.config/kodemeio/config.yaml under the gsc service key.
# Interactive setup
kctl-gsc config init
# Add a named profile
kctl-gsc config add --profile production \
--property sc-domain:example.com \
--credentials-file ~/sa-key.json
# Switch active profile
kctl-gsc config use production
# Show current config (secrets masked)
kctl-gsc config show
Development
cd packages/kctl-gsc
uv sync --all-extras
uv run pytest tests/ -v
uv run mypy src/
uv run ruff check src/
uv build
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kctl_gsc-0.9.2.tar.gz
(20.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
kctl_gsc-0.9.2-py3-none-any.whl
(22.9 kB
view details)
File details
Details for the file kctl_gsc-0.9.2.tar.gz.
File metadata
- Download URL: kctl_gsc-0.9.2.tar.gz
- Upload date:
- Size: 20.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e2e6987ca662d13d2ee35bed0e4e2a31817b924b97ff509ba4d0c0bf986ba27
|
|
| MD5 |
a3eb778cb78da9ce4c29b86d88e81559
|
|
| BLAKE2b-256 |
ace42b7a214caaeea003c90d21196a90f343062d391f25d0ac4fe36c6df64ee6
|
File details
Details for the file kctl_gsc-0.9.2-py3-none-any.whl.
File metadata
- Download URL: kctl_gsc-0.9.2-py3-none-any.whl
- Upload date:
- Size: 22.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e87b7af1329354f5267d83c9f98cbbbc3c7279084b13a7905556c3fa80fd415e
|
|
| MD5 |
e0598d27f76bb5f4fb2da3aed6a8bebc
|
|
| BLAKE2b-256 |
6c175c42c470fd0d6acc004e90882eadac092013f9343189bd17ba3463daf0e3
|