search-console-cli
v1.9.2
Published
Bun CLI for Google Search Console API
Maintainers
Readme
Google Search Console CLI (Bun)
A Bun-powered command line app for Google Search Console data, SEO diagnostics, and automation workflows.
What it does
- Query Search Console analytics with filters and dimensions.
- Analyze trends, anomalies, drop attribution, and forecasts.
- Manage sites and sitemaps.
- Inspect indexing status and run PageSpeed checks.
- Generate SEO opportunity reports (striking distance, low CTR, cannibalization, quick wins).
Prerequisites
- Bun installed (
bun --version) - A Google Cloud service account JSON key
- Service account added to your Search Console property
Quick Start
- Install dependencies:
bun install- Build:
bun run build- Run setup wizard:
bun run dist/setup.js- Export credentials path:
export GOOGLE_APPLICATION_CREDENTIALS="/absolute/path/to/service-account.json"- Run a command:
bun run dist/index.js sites_listCLI Usage
search-console <command> [--flag value]
search-console <command> --input '{"key":"value"}'Examples
search-console sites_list
search-console analytics_performance_summary --site-url https://example.com --days 28
search-console analytics_query --input '{"siteUrl":"https://example.com","startDate":"2026-01-01","endDate":"2026-01-31","dimensions":["query"],"limit":10}'
search-console seo_quick_wins --site-url https://example.com --days 28 --min-impressions 100Command groups
sites_*: list/add/delete/get propertiessitemaps_*: list/submit/delete/get sitemapsanalytics_*: query, summaries, trends, anomalies, advanced time-seriesinspection_*: URL indexing inspectionpagespeed_*: Lighthouse and Core Web Vitalsseo_*: opportunity and recommendation workflowsseo_primitive_*: low-level utility SEO calculationsschema_validate: Schema.org validation
Development
bun run typecheck
bun run testLicense
MIT
