pp-google-search-console
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGoogle Search Console — Printing Press CLI
Google Search Console — Printing Press CLI
Prerequisites: Install the CLI
前提条件:安装CLI
This skill drives the binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:
google-search-console-pp-cli- Install via the Printing Press installer:
bash
npx -y @mvanhorn/printing-press install google-search-console --cli-only - Verify:
google-search-console-pp-cli --version - Ensure (or
$GOPATH/bin) is on$HOME/go/bin.$PATH
If the install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.3 or newer):
npxbash
go install github.com/mvanhorn/printing-press-library/library/marketing/google-search-console/cmd/google-search-console-pp-cli@latestIf reports "command not found" after install, the install step did not put the binary on . Do not proceed with skill commands until verification succeeds.
--version$PATHA single binary covering search analytics, URL inspection, sitemaps, and site management -- with the agent-native JSON and CSV outputs, --dry-run, exit codes, and offline search every other GSC tool half-implements. The transcendence layer (compare, quick-wins, cannibalization, historical, decaying, outliers, cliff, roll-up, coverage-drift, sitemap-watch, new-queries) runs entirely from the local SQLite store, so the workflows the API can't answer in one call are answered in one command.
本技能驱动二进制文件。在调用本技能的任何命令前,你必须确认CLI已安装。如果未安装,请先执行以下步骤:
google-search-console-pp-cli- 通过Printing Press安装器安装:
bash
npx -y @mvanhorn/printing-press install google-search-console --cli-only - 验证安装:
google-search-console-pp-cli --version - 确保(或
$GOPATH/bin)已添加到$HOME/go/bin环境变量中。$PATH
如果安装失败(无Node环境、离线等),可以直接通过Go安装(要求Go 1.26.3或更高版本):
npxbash
go install github.com/mvanhorn/printing-press-library/library/marketing/google-search-console/cmd/google-search-console-pp-cli@latest如果安装后执行提示“command not found”,说明安装步骤未将二进制文件添加到中。请在验证成功前不要执行技能命令。
--version$PATH这是一个集成了搜索分析、URL检测、站点地图和站点管理的单一二进制工具,支持Agent原生的JSON和CSV输出、、退出码,以及其他GSC工具仅部分实现的离线搜索功能。其核心增强层(对比、快速优化机会、关键词 cannibalization、历史数据、页面衰退、异常值、流量骤降、跨属性汇总、覆盖漂移、站点地图监控、新查询)完全基于本地SQLite存储运行,因此API无法通过单次调用完成的工作流,本工具可通过单个命令完成。
--dry-runWhen to Use This CLI
何时使用本CLI
Reach for this CLI when an agent needs to answer SEO questions for a Google Search Console property without round-tripping to the web UI. It is the right choice for: pulling top queries and pages for any window; comparing periods; finding indexing or sitemap regressions; surfacing page-2 quick wins, decaying pages, or keyword cannibalization; and answering questions about data older than the API's 16-month window once a sync history exists. It is not the right choice for one-off ad-hoc lookups when a sync hasn't run -- start with first.
sync当Agent需要在不往返Web界面的情况下,为Google Search Console属性解答SEO问题时,可使用本CLI。适用于以下场景:提取任意时间窗口的热门查询和页面;对比不同时段数据;发现索引或站点地图退化问题;挖掘第二页快速优化机会、衰退页面或关键词 cannibalization;当存在同步历史时,解答API 16个月窗口之外的历史数据相关问题。如果尚未运行同步操作,不适合用于一次性临时查询——请先执行命令。
syncUnique Capabilities
独特功能
These capabilities aren't available in any other tool for this API.
以下功能是其他同类型API工具所不具备的。
SEO opportunities from local corpus
基于本地语料库的SEO机会
-
— Surface page-2 queries with high impressions and low CTR -- page-2-to-page-1 candidates ranked by upside, computed offline from your synced corpus.
quick-winsReach for this when an agent needs to recommend the top SEO opportunities for a property without re-fetching from the API.bashgoogle-search-console-pp-cli quick-wins sc-domain:example.com --position 8-20 --min-imps 100 --json -
— Find queries where multiple pages compete, ranked by combined impressions -- the keyword-cannibalization audit the GSC web UI doesn't offer.
cannibalizationUse when an agent investigates why a query ranks worse than expected -- surfaces the competing pages on its own URL.bashgoogle-search-console-pp-cli cannibalization sc-domain:example.com --min-imps 50 --top 25 --json -
— Queries or pages with click-through rates that deviate from the observed CTR-by-position curve in your own corpus.
outliersTitle-tag and snippet-rewrite candidates an agent can act on directly -- high impressions, low CTR for their position.bashgoogle-search-console-pp-cli outliers sc-domain:example.com --metric ctr --sigma 2 --top 50 --json
-
—— 展示高曝光、低点击率的第二页查询结果,按优化潜力排序,基于同步到本地的语料库离线计算得出。
quick-wins当Agent需要为某个属性推荐顶级SEO优化机会,且无需从API重新获取数据时,可使用此命令。bashgoogle-search-console-pp-cli quick-wins sc-domain:example.com --position 8-20 --min-imps 100 --json -
—— 找出多个页面竞争同一查询的情况,按总曝光量排序——这是GSC Web界面未提供的关键词 cannibalization 审计功能。
cannibalization当Agent调查某个查询排名低于预期的原因时使用,可展示该查询对应的竞争页面。bashgoogle-search-console-pp-cli cannibalization sc-domain:example.com --min-imps 50 --top 25 --json -
—— 点击率偏离自身语料库中“点击率-排名”曲线的查询或页面。
outliers可直接作为标题标签和摘要改写的候选对象——高曝光量,但对应排名下的点击率偏低。bashgoogle-search-console-pp-cli outliers sc-domain:example.com --metric ctr --sigma 2 --top 50 --json
Time-series analysis
时间序列分析
-
— Period-over-period delta on clicks, impressions, CTR, and position for any dimension -- week-over-week, month-over-month, or arbitrary windows.
compareFirst-line investigation when a property's traffic shifts -- the agent gets the deltas without spelunking two raw queries.bashgoogle-search-console-pp-cli compare sc-domain:example.com --period 28d --vs prev-period --dim query --top 50 --agent --select rows.keys,rows.delta_clicks,rows.delta_position -
— Find the day clicks or impressions cratered, with signature hints matching same-day sitemap regressions or indexing drops.
cliffThe first command an agent should run when a human says 'traffic dropped' -- points at the day and likely cause.bashgoogle-search-console-pp-cli cliff sc-domain:example.com --metric clicks --threshold -25% --window 7d -
— Search analytics for date ranges older than the API's 16-month rolling window -- answer 'is this March-2024 normal?' from cached history.
historicalForecasting and seasonality questions; a one-shot agent can answer 'compared to two years ago' without breaking out a backup file.bashgoogle-search-console-pp-cli historical sc-domain:example.com --start 2023-01-01 --end 2023-12-31 --dim query --top 100
-
—— 对比任意维度下的点击量、曝光量、点击率和排名的时段差异,支持周环比、月环比或任意时间窗口。
compare当某个属性流量发生变化时,可作为首要调查工具——Agent无需查看两次原始查询结果即可获取差异数据。bashgoogle-search-console-pp-cli compare sc-domain:example.com --period 28d --vs prev-period --dim query --top 50 --agent --select rows.keys,rows.delta_clicks,rows.delta_position -
—— 找出点击量或曝光量骤降的日期,并提供当日站点地图退化或索引下降等相关线索。
cliff当用户反馈“流量下降”时,Agent应首先运行此命令——可指出具体日期和可能原因。bashgoogle-search-console-pp-cli cliff sc-domain:example.com --metric clicks --threshold -25% --window 7d -
—— 查询API 16个月滚动窗口之外的搜索分析数据——可从缓存历史中回答“2024年3月的数据是否正常?”这类问题。
historical适用于预测和季节性问题;一次性Agent无需调取备份文件即可回答“与两年前相比情况如何?”bashgoogle-search-console-pp-cli historical sc-domain:example.com --start 2023-01-01 --end 2023-12-31 --dim query --top 100
Cross-property analysis
跨属性分析
-
— Aggregate top queries or pages across every verified property in one command -- the API forces N round-trips.
roll-upAgency workflows where the agent surfaces top performers across a portfolio without writing per-site loops.bashgoogle-search-console-pp-cli roll-up --metric clicks --group-by query --top 50 --last 28d --json
-
—— 通过单个命令汇总所有已验证属性的热门查询或页面——而API需要N次往返调用才能完成。
roll-up适用于代理机构工作流,Agent无需编写逐站点循环即可展示整个组合中的顶级表现者。bashgoogle-search-console-pp-cli roll-up --metric clicks --group-by query --top 50 --last 28d --json
Indexing diagnostics
索引诊断
-
— URLs whose inspection state flipped (indexed → not indexed, robots changed, canonical changed) within a window.
coverage-driftCatches indexing regressions an agent would otherwise miss because the API hides them once the state has flipped back.bashgoogle-search-console-pp-cli coverage-drift sc-domain:example.com --field indexingState --days 30 --json -
— Diff sitemap state between snapshots -- surface new errors, new warnings, content-count drops, and stale lastDownloaded times.
sitemap-watchFriday automation that catches sitemap regressions before the next Monday traffic dip -- runs from local data, no extra API spend.bashgoogle-search-console-pp-cli sitemap-watch sc-domain:example.com --since 7d --json
-
—— 在指定时间窗口内检查状态发生变化的URL(如从已索引变为未索引、robots规则变更、规范URL变更)。
coverage-drift可捕捉Agent可能遗漏的索引退化问题,因为一旦状态恢复,API会隐藏这些变化记录。bashgoogle-search-console-pp-cli coverage-drift sc-domain:example.com --field indexingState --days 30 --json -
—— 对比站点地图快照之间的状态差异,展示新错误、新警告、内容数量下降和过期的lastDownloaded时间。
sitemap-watch可作为周五自动化任务,在周一流量下降前捕捉站点地图退化问题——基于本地数据运行,无需额外API调用开销。bashgoogle-search-console-pp-cli sitemap-watch sc-domain:example.com --since 7d --json
Content workflows
内容工作流
-
— Pages with monotonic click decline over a rolling window, ranked by total impressions × negative slope -- the content-refresh queue.
decayingContent marketers' Thursday refresh queue -- the agent picks update candidates with concrete supporting numbers.bashgoogle-search-console-pp-cli decaying sc-domain:example.com --window 90d --min-imps 500 --top 50 --json -
— Queries that started showing up with impressions in the last N days but didn't exist in the corpus before -- emerging demand.
new-queriesContent-ideas surface for marketers; the agent gets emerging-search trends scoped to this site rather than generic Trends data.bashgoogle-search-console-pp-cli new-queries sc-domain:example.com --since 28d --min-imps 50 --top 100 --json
-
—— 在滚动窗口内点击量持续下降的页面,按总曝光量×负斜率排序——即内容更新优先级队列。
decaying内容营销人员的周四更新队列——Agent可挑选有具体数据支撑的更新候选页面。bashgoogle-search-console-pp-cli decaying sc-domain:example.com --window 90d --min-imps 500 --top 50 --json -
—— 过去N天内首次出现曝光量的查询,且之前未出现在语料库中——即新兴需求。
new-queries为营销人员提供内容创意;Agent可获取针对本网站的新兴搜索趋势,而非通用趋势数据。bashgoogle-search-console-pp-cli new-queries sc-domain:example.com --since 28d --min-imps 50 --top 100 --json
Command Reference
命令参考
url-inspection — Inspect a URL's index status in Google Search
- — Returns Google's view of a single URL: index status, last crawl time, canonical URL (Google-selected vs...
google-search-console-pp-cli url-inspection
webmasters — Manage webmasters
- — Adds a site to the set of the user's sites in Search Console. The site must still be verified separately (via DNS,...
google-search-console-pp-cli webmasters add-site - — Removes a site from the set of the user's Search Console sites. Does not delete data Google has collected.
google-search-console-pp-cli webmasters delete-site - — Deletes a sitemap from the Sitemaps report. Does not stop Google from crawling the sitemap if it's still...
google-search-console-pp-cli webmasters delete-sitemap - — Retrieves information about a specific verified site, including the user's permission level.
google-search-console-pp-cli webmasters get-site - — Retrieves information about a specific sitemap, including warnings, errors, last submitted/downloaded times, and...
google-search-console-pp-cli webmasters get-sitemap - — Lists the sitemaps submitted for this site, or included in the sitemap index file (if
google-search-console-pp-cli webmasters list-sitemapsis provided in...sitemapIndex - — Returns every site (domain property or URL-prefix property) the authenticated user has access to in Search Console,...
google-search-console-pp-cli webmasters list-sites - — Returns clicks, impressions, CTR, and average position grouped by the dimensions you specify (query, page, country,...
google-search-console-pp-cli webmasters query-search-analytics - — Submits a sitemap for a site. The sitemap URL must be an absolute URL on the same site as
google-search-console-pp-cli webmasters submit-sitemap. Submission is...siteUrl
url-inspection —— 检查URL在Google搜索中的索引状态
- —— 返回Google对单个URL的视图:索引状态、最后抓取时间、规范URL(Google选择的与……
google-search-console-pp-cli url-inspection
webmasters —— 管理网站管理员权限
- —— 将站点添加到用户的Search Console站点集合中。站点仍需单独验证(通过DNS……
google-search-console-pp-cli webmasters add-site - —— 从用户的Search Console站点集合中移除站点。不会删除Google收集的数据。
google-search-console-pp-cli webmasters delete-site - —— 从站点地图报告中删除站点地图。如果站点地图仍可访问,不会阻止Google抓取它……
google-search-console-pp-cli webmasters delete-sitemap - —— 获取特定已验证站点的信息,包括用户的权限级别。
google-search-console-pp-cli webmasters get-site - —— 获取特定站点地图的信息,包括警告、错误、最后提交/下载时间,以及……
google-search-console-pp-cli webmasters get-sitemap - —— 列出为该站点提交的站点地图,或站点地图索引文件中包含的站点地图(如果提供了
google-search-console-pp-cli webmasters list-sitemaps参数……sitemapIndex - —— 返回已认证用户在Search Console中有权访问的所有站点(域名属性或URL前缀属性)……
google-search-console-pp-cli webmasters list-sites - —— 返回按指定维度(查询、页面、国家……)分组的点击量、曝光量、点击率和平均排名……
google-search-console-pp-cli webmasters query-search-analytics - —— 为站点提交站点地图。站点地图URL必须是与
google-search-console-pp-cli webmasters submit-sitemap同站点的绝对URL。提交操作……siteUrl
Finding the right command
查找合适的命令
When you know what you want to do but not which command does it, ask the CLI directly:
bash
google-search-console-pp-cli which "<capability in your own words>"which02--help当你知道要做什么但不知道对应命令时,可直接询问CLI:
bash
google-search-console-pp-cli which "<用你自己的语言描述功能>"which02--helpRecipes
使用示例
Top queries with low CTR -- title-tag rewrite candidates
低点击率的热门查询——标题标签改写候选
bash
google-search-console-pp-cli outliers sc-domain:example.com --metric ctr --sigma 2 --top 50 --agent --select rows.keys,rows.position,rows.ctr,rows.expected_ctrPairs --agent (compact NDJSON) with --select to narrow the response so the agent doesn't have to wade through full ApiDataRow objects. Outputs only the dimensions and the CTR delta vs the bucket mean for the position.
bash
google-search-console-pp-cli outliers sc-domain:example.com --metric ctr --sigma 2 --top 50 --agent --select rows.keys,rows.position,rows.ctr,rows.expected_ctr将(紧凑NDJSON格式)与结合使用,可缩小响应范围,避免Agent处理完整的ApiDataRow对象。仅输出维度数据以及该排名下的点击率与分组均值的差异。
--agent--selectWhy did traffic drop yesterday?
昨日流量为何下降?
bash
google-search-console-pp-cli cliff sc-domain:example.com --metric clicks --threshold -20% --window 14d --jsonReturns the days clicks dropped more than 20% versus the prior day, plus same-day signals from sitemaps (new errors) and url_inspections (indexing-state flips). Single command answers the most common SEO post-mortem question.
bash
google-search-console-pp-cli cliff sc-domain:example.com --metric clicks --threshold -20% --window 14d --json返回点击量较前一日下降超过20%的日期,以及当日站点地图(新错误)和URL检测(索引状态变化)的相关信号。单个命令即可回答最常见的SEO事后分析问题。
Cross-property weekly summary
跨属性每周汇总
bash
google-search-console-pp-cli roll-up --metric clicks --group-by query --last 7d --top 25 --csv > weekly.csvAggregates top 25 queries by clicks across every verified property, last 7 days. CSV pipes straight into a spreadsheet or data tool.
bash
google-search-console-pp-cli roll-up --metric clicks --group-by query --last 7d --top 25 --csv > weekly.csv汇总所有已验证属性过去7天内点击量排名前25的查询结果。CSV格式可直接导入电子表格或数据分析工具。
Bulk URL inspection from a file
从文件批量检测URL
bash
google-search-console-pp-cli url-inspection inspect-batch --file urls.txt --site sc-domain:example.com --max-per-day 2000 --jsonStreams NDJSON one inspection per line. Respects the per-property daily quota. Pipe to to surface only problems.
jq 'select(.indexStatusResult.coverageState != "Submitted and indexed")'bash
google-search-console-pp-cli url-inspection inspect-batch --file urls.txt --site sc-domain:example.com --max-per-day 2000 --json以NDJSON格式逐行输出检测结果。遵守每个属性的每日配额限制。可通过管道传递给仅筛选出有问题的结果。
jq 'select(.indexStatusResult.coverageState != "Submitted and indexed")'Cannibalization audit before publishing a new page
发布新页面之前的Cannibalization审计
bash
google-search-console-pp-cli cannibalization sc-domain:example.com --min-imps 50 --top 20 --jsonSurfaces existing queries where multiple pages on the site already compete. Run before publishing a new piece on the same topic -- pick the strongest existing page or consolidate.
bash
google-search-console-pp-cli cannibalization sc-domain:example.com --min-imps 50 --top 20 --json展示网站内已有多个页面竞争同一查询的情况。在发布同一主题的新页面之前运行此命令——选择现有表现最佳的页面或进行内容整合。
Auth Setup
身份验证设置
Google Search Console uses OAuth 2.0. The CLI reads a pre-fetched access token from the GSC_ACCESS_TOKEN environment variable. Generate one from the Google OAuth Playground (https://developers.google.com/oauthplayground/) using scope https://www.googleapis.com/auth/webmasters.readonly for read-only operations or https://www.googleapis.com/auth/webmasters for full read-write (sitemap submit/delete, sites add/delete). Tokens expire after one hour; refresh from the same Playground UI. There is no flow in this CLI by design -- pre-fetched tokens keep the install path simple and match the google-ads house pattern.
auth loginRun to verify setup.
google-search-console-pp-cli doctorGoogle Search Console使用OAuth 2.0。CLI从环境变量中读取预获取的访问令牌。可通过Google OAuth Playground(https://developers.google.com/oauthplayground/)生成令牌,只读操作使用范围`https://www.googleapis.com/auth/webmasters.readonly`,全读写操作(提交/删除站点地图、添加/删除站点)使用范围`https://www.googleapis.com/auth/webmasters`。令牌1小时后过期,可从同一Playground界面刷新。本CLI设计上不包含`auth login`流程——预获取令牌可简化安装路径,与google-ads的通用模式一致。
GSC_ACCESS_TOKEN执行验证设置是否正确。
google-search-console-pp-cli doctorAgent Mode
Agent模式
Add to any command. Expands to: .
--agent--json --compact --no-input --no-color --yes-
Pipeable — JSON on stdout, errors on stderr
-
Filterable —keeps a subset of fields. Dotted paths descend into nested structures; arrays traverse element-wise. Critical for keeping context small on verbose APIs:
--selectbashgoogle-search-console-pp-cli url-inspection --inspection-url https://example.com/resource --agent --select id,name,status -
Previewable —shows the request without sending
--dry-run -
Non-interactive — never prompts, every input is a flag
-
Explicit retries — useonly when an already-existing create should count as success, and
--idempotentonly when a missing delete target should count as success--ignore-missing
在任何命令后添加参数,等效于:。
--agent--json --compact --no-input --no-color --yes-
可管道传输 —— 标准输出为JSON,错误输出到标准错误流
-
可过滤 ——参数可保留字段子集。点路径可深入嵌套结构;数组可遍历元素。对于复杂API,这是保持上下文精简的关键:
--selectbashgoogle-search-console-pp-cli url-inspection --inspection-url https://example.com/resource --agent --select id,name,status -
可预览 ——参数可显示请求内容但不发送
--dry-run -
非交互式 —— 从不提示用户,所有输入均通过标志参数提供
-
显式重试 —— 仅当已存在的创建操作应视为成功时使用;仅当删除目标不存在应视为成功时使用
--idempotent--ignore-missing
Agent Feedback
Agent反馈
When you (or the agent) notice something off about this CLI, record it:
google-search-console-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
google-search-console-pp-cli feedback --stdin < notes.txt
google-search-console-pp-cli feedback list --json --limit 10Entries are stored locally at . They are never POSTed unless is set AND either is passed or . Default behavior is local-only.
~/.google-search-console-pp-cli/feedback.jsonlGOOGLE_SEARCH_CONSOLE_FEEDBACK_ENDPOINT--sendGOOGLE_SEARCH_CONSOLE_FEEDBACK_AUTO_SEND=trueWrite what surprised you, not a bug report. Short, specific, one line: that is the part that compounds.
当你(或Agent)发现本CLI存在问题时,可记录反馈:
google-search-console-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
google-search-console-pp-cli feedback --stdin < notes.txt
google-search-console-pp-cli feedback list --json --limit 10反馈条目存储在本地文件中。除非设置了且传递了参数,或,否则反馈不会被POST发送。默认行为仅存储在本地。
~/.google-search-console-pp-cli/feedback.jsonlGOOGLE_SEARCH_CONSOLE_FEEDBACK_ENDPOINT--sendGOOGLE_SEARCH_CONSOLE_FEEDBACK_AUTO_SEND=true请写下让你感到意外的内容,而非正式的错误报告。简短、具体、一句话即可:这样的反馈价值更高。
Output Delivery
输出交付
Every command accepts . The output goes to the named sink in addition to (or instead of) stdout, so agents can route command results without hand-piping. Three sinks are supported:
--deliver <sink>| Sink | Effect |
|---|---|
| Default; write to stdout only |
| Atomically write output to |
| POST the output body to the URL ( |
Unknown schemes are refused with a structured error naming the supported set. Webhook failures return non-zero and log the URL + HTTP status on stderr.
所有命令均支持参数。输出会发送到指定的接收端,同时(或替代)输出到标准输出,因此Agent无需手动管道即可路由命令结果。支持三种接收端:
--deliver <sink>| 接收端 | 效果 |
|---|---|
| 默认值;仅输出到标准输出 |
| 原子性地将输出写入 |
| 将输出体POST到指定URL( |
不支持的协议会返回结构化错误,并列出支持的接收端类型。Webhook失败时返回非零退出码,并在标准错误流中记录URL和HTTP状态码。
Named Profiles
命名配置文件
A profile is a saved set of flag values, reused across invocations. Use it when a scheduled agent calls the same command every run with the same configuration - HeyGen's "Beacon" pattern.
google-search-console-pp-cli profile save briefing --json
google-search-console-pp-cli --profile briefing url-inspection --inspection-url https://example.com/resource
google-search-console-pp-cli profile list --json
google-search-console-pp-cli profile show briefing
google-search-console-pp-cli profile delete briefing --yesExplicit flags always win over profile values; profile values win over defaults. lists all available profiles under so introspecting agents discover them at runtime.
agent-contextavailable_profiles配置文件是一组保存的标志值,可在多次调用中复用。适用于定时Agent每次运行相同命令且配置相同的场景——即HeyGen的“Beacon”模式。
google-search-console-pp-cli profile save briefing --json
google-search-console-pp-cli --profile briefing url-inspection --inspection-url https://example.com/resource
google-search-console-pp-cli profile list --json
google-search-console-pp-cli profile show briefing
google-search-console-pp-cli profile delete briefing --yes显式标志参数始终优先于配置文件值;配置文件值优先于默认值。会在下列出所有可用配置文件,因此自省Agent可在运行时发现它们。
agent-contextavailable_profilesExit Codes
退出码
| Code | Meaning |
|---|---|
| 0 | Success |
| 2 | Usage error (wrong arguments) |
| 3 | Resource not found |
| 4 | Authentication required |
| 5 | API error (upstream issue) |
| 7 | Rate limited (wait and retry) |
| 10 | Config error |
| 代码 | 含义 |
|---|---|
| 0 | 成功 |
| 2 | 使用错误(参数错误) |
| 3 | 资源未找到 |
| 4 | 需要身份验证 |
| 5 | API错误(上游问题) |
| 7 | 速率限制(请等待并重试) |
| 10 | 配置错误 |
Argument Parsing
参数解析
Parse :
$ARGUMENTS- Empty, , or
help→ show--helpoutputgoogle-search-console-pp-cli --help - Starts with → ends with
install→ MCP installation; otherwise → see Prerequisites abovemcp - Anything else → Direct Use (execute as CLI command with )
--agent
解析的规则:
$ARGUMENTS- 为空、或
help→ 显示--help输出google-search-console-pp-cli --help - 以开头 → 若结尾为
install→ 安装MCP;否则 → 参考上方前提条件中的安装步骤mcp - 其他情况 → 直接使用(添加参数执行CLI命令)
--agent
MCP Server Installation
MCP服务器安装
Install the MCP binary from this CLI's published public-library entry or pre-built release, then register it:
bash
claude mcp add google-search-console-pp-mcp -- google-search-console-pp-mcpVerify:
claude mcp list从本CLI的公开库条目或预构建版本安装MCP二进制文件,然后注册:
bash
claude mcp add google-search-console-pp-mcp -- google-search-console-pp-mcp验证安装:
claude mcp listDirect Use
直接使用
- Check if installed: If not found, offer to install (see Prerequisites at the top of this skill).
which google-search-console-pp-cli - Match the user query to the best command from the Unique Capabilities and Command Reference above.
- Execute with the flag:
--agentbashgoogle-search-console-pp-cli <command> [subcommand] [args] --agent - If ambiguous, drill into subcommand help: .
google-search-console-pp-cli <command> --help
- 检查是否已安装:若未找到,提供安装选项(参见顶部前提条件中的安装步骤)。
which google-search-console-pp-cli - 将用户查询与上方“独特功能”和“命令参考”中的最佳命令匹配。
- 添加参数执行命令:
--agentbashgoogle-search-console-pp-cli <command> [subcommand] [args] --agent - 若存在歧义,查看子命令帮助:。
google-search-console-pp-cli <command> --help