search-console-axi 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,6 +4,18 @@
4
4
 
5
5
  Google Search Console reporting, URL inspection, and preview-gated Indexing API notifications for agents. `search-console-axi` is an [AXI](https://github.com/kunchenguid/axi) CLI. Output uses compact [TOON](https://toonformat.dev/) format. Requires Node.js 22.12 or newer.
6
6
 
7
+ ```sh
8
+ npx skills add Dematom1/search-console-axi --skill search-console-axi -g
9
+ ```
10
+
11
+ No install needed: tell your agent "Execute `npx -y search-console-axi` to read Google Search Console clicks, impressions, top queries and URL indexing status."
12
+
13
+ Either way, Google credentials are required first: see [Authentication](#authentication).
14
+
15
+ ### Optional
16
+
17
+ Install the CLI globally:
18
+
7
19
  ```sh
8
20
  npm i -g search-console-axi
9
21
  search-console-axi --help
@@ -20,16 +32,31 @@ The CLI validates credential JSON locally and authenticates through `google-auth
20
32
  3. Load its JSON key from your secret manager into `SEARCH_CONSOLE_AXI_SA_KEY`. Never commit the key.
21
33
  4. In Search Console, add the service-account email under **Settings > Users and permissions** with Restricted access.
22
34
 
23
- For local key files, set `GOOGLE_APPLICATION_CREDENTIALS` or run `search-console-axi setup service-account <key.json>`. Credential precedence is `SEARCH_CONSOLE_AXI_SA_KEY`, `GOOGLE_APPLICATION_CREDENTIALS` (with `google_application_credentials` as a fallback alias), the saved path configured by `setup service-account`, then user ADC. Credential files must contain `authorized_user` or `service_account` JSON; service-account registration and `SEARCH_CONSOLE_AXI_SA_KEY` require `service_account` JSON. To switch from a saved key to ADC, run `search-console-axi setup uninstall`; this also removes the CLI's saved quota-project setting. Set the ADC quota project with `gcloud auth application-default set-quota-project <project>` or use `GOOGLE_CLOUD_QUOTA_PROJECT`.
35
+ For local key files, set `GOOGLE_APPLICATION_CREDENTIALS` or run `search-console-axi setup service-account <key.json>`. Credential precedence is `SEARCH_CONSOLE_AXI_SA_KEY`, `GOOGLE_APPLICATION_CREDENTIALS` (with `google_application_credentials` as a fallback alias), the saved path configured by `search-console-axi setup service-account`, then user ADC. Credential files must contain `authorized_user` or `service_account` JSON; service-account registration and `SEARCH_CONSOLE_AXI_SA_KEY` require `service_account` JSON. To switch from a saved key to ADC, run `search-console-axi setup uninstall`; this also removes the CLI's saved quota-project setting. Set the ADC quota project with `gcloud auth application-default set-quota-project <project>` or use `GOOGLE_CLOUD_QUOTA_PROJECT`.
24
36
 
25
37
  Run `search-console-axi setup` to check credentials and accessible sites. `search-console-axi setup status` reports local credential configuration, not API access or token validity. It includes the credential type and available account email, never credential contents. `search-console-axi setup uninstall` removes only the CLI's local configuration. Registration, saved quota-project updates, and removal re-read the configuration before reporting success.
26
38
 
27
- Invalid setup arguments, malformed config, and malformed or unsupported credential data produce `VALIDATION_ERROR` with exit code 2. Config I/O failures produce `CONFIG_ERROR`; missing or unreadable credential-file paths produce `AUTH_CONFIG_ERROR`, both with exit code 1 and repair guidance. `setup status` instead reports invalid config or credentials as `auth.status: invalid` with exit code 0; config I/O failures remain errors. Missing credentials produce setup guidance with `auth.status: not configured` for `setup`, `setup check`, and `setup status`.
39
+ Invalid setup arguments, malformed config, and malformed or unsupported credential data produce `VALIDATION_ERROR` with exit code 2. Config I/O failures produce `CONFIG_ERROR`; missing or unreadable credential-file paths produce `AUTH_CONFIG_ERROR`, both with exit code 1 and repair guidance. `search-console-axi setup status` instead reports invalid config or credentials as `auth.status: invalid` with exit code 0; config I/O failures remain errors. Missing credentials produce setup guidance with `auth.status: not configured` for `search-console-axi setup`, `search-console-axi setup check`, and `search-console-axi setup status`.
28
40
 
29
41
  ## Read Search Console
30
42
 
31
43
  Run `search-console-axi` for the default site's last seven complete days of clicks, impressions, CTR, position, top queries and pages, and low-CTR opportunities. Set a default site with `search-console-axi setup site <site-url>`. Reports resolve the site from `--site`, `SEARCH_CONSOLE_AXI_SITE`, the saved default, then the first verified site. Use `search-console-axi inspect <url>` to inspect indexing for a URL; `--site` is optional and uses the same resolution order. Reporting and inspection do not modify Search Console data; setup may write or remove local configuration.
32
44
 
45
+ ## Read and submit sitemaps
46
+
47
+ ```sh
48
+ search-console-axi sitemaps list --site sc-domain:example.com
49
+ search-console-axi sitemaps get https://example.com/sitemap.xml --site sc-domain:example.com
50
+ search-console-axi sitemaps submit https://example.com/sitemap.xml --site sc-domain:example.com
51
+ search-console-axi sitemaps submit https://example.com/sitemap.xml --site sc-domain:example.com --confirm
52
+ ```
53
+
54
+ Reads use the same credentials and site resolution as reports. Lists include the path, type, `isSitemapsIndex`, `lastSubmitted`, `lastDownloaded` (last read), `isPending`, derived status, errors, warnings, and `contents[]` counts. Status is derived from pending/error fields, not the Search Console UI's status text. Discovered pages are `contents[].submitted` counts by content type; the API has no separate UI discovered-pages column, so no total across content types is invented. `contents[].indexed` is deprecated and is shown only as returned, not reliable index coverage. Missing fields are null (unknown), not zero.
55
+
56
+ Submit requires an explicit `--site` naming the exact property, even if a default is configured. Without `--confirm`, it previews the exact property, sitemap and PUT request locally without credentials or network access. With `--confirm`, it submits once, without retries. An acknowledgement does not guarantee a crawl or indexing. If the outcome is unknown, use `sitemaps get` before retrying.
57
+
58
+ Submission requests `https://www.googleapis.com/auth/webmasters`; reads still request only `webmasters.readonly`. Read-only user ADC cannot submit: explicitly reauthorize your own Desktop OAuth client with the write scope. Existing refresh tokens are never silently widened. The authenticated account also needs permission to submit sitemaps on the property; Restricted access is not sufficient. No confirmed live submissions should be used for development or tests.
59
+
33
60
  ## Send Indexing API notifications
34
61
 
35
62
  Google supports the [Indexing API](https://developers.google.com/search/apis/indexing-api/v3/using-api) only for pages with `JobPosting` or `BroadcastEvent` embedded in `VideoObject` structured data. Job-posting pages fit this scope. It is not a general-purpose indexing API. A successful submission acknowledges a notification, not a crawl or index guarantee.
@@ -48,13 +75,13 @@ search-console-axi indexing quota
48
75
 
49
76
  `publish` and `batch` are local previews until `--confirm`. Previews list every explicit URL target, the notification count, and the HTTP request count without loading credentials or calling Google. Batch input contains one absolute HTTP or HTTPS URL per line; blank lines are ignored. Duplicate URLs remain separate requests. URLs with embedded credentials, fragments, or whitespace are rejected. All input is validated before any submission. Each multipart batch contains at most 100 notifications, and each notification consumes quota separately.
50
77
 
51
- Before `--type deleted`, the page must return HTTP 404 or 410 or contain a `noindex` directive. `status` reads `urlNotifications.getMetadata`: the last notification times, not the page's indexing status. Use `inspect` for index status.
78
+ Before `--type deleted`, the page must return HTTP 404 or 410 or contain a `noindex` directive. `status` reads `urlNotifications.getMetadata`: the last notification times, not the page's indexing status. Use `search-console-axi inspect` for index status.
52
79
 
53
80
  Confirmed batches report every URL as `submitted`, `failed`, or `unknown`, with an HTTP status where available. Any failed or unknown result sets exit code 1. Authentication, API, and transport errors omit raw server messages and credential contents. A 403 explains the owner, API enablement, and scope requirements; a 429 explains quota exhaustion. Requests are not automatically retried. An unknown outcome may already have reached Google; check notification status before retrying. Successful URLs in a partially failed batch must not be resubmitted blindly.
54
81
 
55
82
  ### Read project quota
56
83
 
57
- The Indexing API has no usage endpoint. `indexing quota` reads effective limits from Service Usage and today's observed request counts from Cloud Monitoring. The selected project is the configured quota project sent with requests, or the credential's `project_id` if no override exists. The output identifies that project and the source. User ADC without either project requires `setup --quota-project <project>`.
84
+ The Indexing API has no usage endpoint. `search-console-axi indexing quota` reads effective limits from Service Usage and today's observed request counts from Cloud Monitoring. The selected project is the configured quota project sent with requests, or the credential's `project_id` if no override exists. The output identifies that project and the source. User ADC without either project requires `search-console-axi setup --quota-project <project>`.
58
85
 
59
86
  Quota reads request `cloud-platform.read-only` and `monitoring.read` OAuth scopes. User ADC with `cloud-platform` also supports both endpoints. Limits require `serviceusage.quotas.get`; usage requires `monitoring.timeSeries.list` on the selected project. These optional IAM permissions are separate from Search Console ownership. The Service Usage and Cloud Monitoring APIs must be enabled.
60
87
 
package/dist/src/cli.js CHANGED
@@ -4,13 +4,14 @@ import { command as setup } from "./commands/setup.js";
4
4
  import { command as report } from "./commands/report.js";
5
5
  import { command as inspect } from "./commands/inspect.js";
6
6
  import { command as indexing } from "./commands/indexing.js";
7
+ import { command as sitemaps } from "./commands/sitemaps.js";
7
8
  import { usage } from "./args.js";
8
9
  import { helpText } from "./help.js";
9
10
  import { getAuthClient, setupCommand } from "./auth.js";
10
11
  import { runHome } from "./google.js";
11
12
  import { resolveSite } from "./site.js";
12
- const description = "Google Search Console reporting, URL inspection, and preview-gated Indexing API notifications for agents";
13
- export const commands = [setup, report, inspect, indexing];
13
+ const description = "Google Search Console reporting, sitemaps, URL inspection, and preview-gated Indexing API notifications for agents";
14
+ export const commands = [setup, report, inspect, indexing, sitemaps];
14
15
  const registry = new Map(commands.map((command) => [command.name, command]));
15
16
  export function getCommandHelp(args) {
16
17
  if (!args.length)
@@ -53,7 +54,7 @@ export async function runAxiCli(args = process.argv.slice(2)) {
53
54
  return;
54
55
  }
55
56
  const [name, ...rest] = args;
56
- if (name === "--version") {
57
+ if (name === "--version" || name === "-v" || name === "-V") {
57
58
  const { readFileSync } = await import("node:fs");
58
59
  process.stdout.write(`${JSON.parse(readFileSync(new URL("../../package.json", import.meta.url), "utf8")).version}\n`);
59
60
  return;
@@ -0,0 +1,221 @@
1
+ import { AxiError } from "axi-sdk-js";
2
+ import { encode } from "@toon-format/toon";
3
+ import { getAuthClient } from "../auth.js";
4
+ import { parseArgs, usage } from "../args.js";
5
+ import { helpText } from "../help.js";
6
+ import { resolveSite, validateSite } from "../site.js";
7
+ const writeScope = "https://www.googleapis.com/auth/webmasters";
8
+ const note = "lastDownloaded is last read. Status is derived from isPending/errors, not the UI status text. Discovered pages are contents[].submitted by content type; no total is invented. indexed is deprecated and not reliable index coverage. Missing API fields are null (unknown), not zero.";
9
+ function isObject(value) {
10
+ return value !== null && typeof value === "object" && !Array.isArray(value);
11
+ }
12
+ function object(value) {
13
+ return isObject(value) ? value : {};
14
+ }
15
+ function urlInput(value) {
16
+ try {
17
+ const url = new URL(value);
18
+ if (!/^https?:\/\//i.test(value) ||
19
+ url.username ||
20
+ url.password ||
21
+ /[\\#\s]/.test(value) ||
22
+ [...value].some((char) => char.charCodeAt(0) < 32 || char.charCodeAt(0) === 127))
23
+ usage("Sitemap must be an absolute HTTP(S) URL without credentials, fragments, or whitespace");
24
+ }
25
+ catch {
26
+ usage("Sitemap must be an absolute HTTP(S) URL without credentials, fragments, or whitespace");
27
+ }
28
+ return value;
29
+ }
30
+ function count(value) {
31
+ if (typeof value === "string" && /^\d+$/.test(value))
32
+ return value;
33
+ return typeof value === "number" && Number.isSafeInteger(value) && value >= 0 ? String(value) : null;
34
+ }
35
+ function sitemap(value) {
36
+ const data = object(value);
37
+ const errors = count(data.errors);
38
+ return {
39
+ path: typeof data.path === "string" ? data.path : null,
40
+ type: typeof data.type === "string" ? data.type : null,
41
+ isSitemapsIndex: typeof data.isSitemapsIndex === "boolean" ? data.isSitemapsIndex : null,
42
+ lastSubmitted: typeof data.lastSubmitted === "string" ? data.lastSubmitted : null,
43
+ lastDownloaded: typeof data.lastDownloaded === "string" ? data.lastDownloaded : null,
44
+ isPending: typeof data.isPending === "boolean" ? data.isPending : null,
45
+ status: data.isPending === true
46
+ ? "pending"
47
+ : errors !== null && BigInt(errors) > 0n
48
+ ? "errors"
49
+ : data.isPending === false && errors === "0"
50
+ ? "success"
51
+ : "unknown",
52
+ errors,
53
+ warnings: count(data.warnings),
54
+ contents: Array.isArray(data.contents)
55
+ ? data.contents.map((value) => {
56
+ const item = object(value);
57
+ return {
58
+ type: typeof item.type === "string" ? item.type : null,
59
+ submitted: count(item.submitted),
60
+ indexed: count(item.indexed),
61
+ };
62
+ })
63
+ : null,
64
+ };
65
+ }
66
+ export async function run(args) {
67
+ const [action, ...rest] = args;
68
+ if (!["list", "get", "submit"].includes(action ?? ""))
69
+ usage("Expected sitemaps list, get, or submit; run search-console-axi sitemaps --help");
70
+ const writing = action === "submit";
71
+ const parsed = parseArgs(rest, ["--site", "--quota-project"], writing ? ["--confirm"] : []);
72
+ if (parsed.positionals.length !== (action === "list" ? 0 : 1))
73
+ usage("Use sitemaps list or sitemaps get|submit <sitemap-url> [--site <property>]");
74
+ const flag = parsed.flags.get("--site");
75
+ const requestedSite = typeof flag === "string" ? validateSite(flag) : undefined;
76
+ const target = action === "list" ? undefined : urlInput(parsed.positionals[0]);
77
+ if (writing && !requestedSite)
78
+ usage("sitemaps submit requires --site <exact-property> so the preview names the explicit writable target");
79
+ const endpoint = (site) => `https://searchconsole.googleapis.com/webmasters/v3/sites/${encodeURIComponent(site)}/sitemaps${target ? `/${encodeURIComponent(target)}` : ""}`;
80
+ if (writing && !parsed.flags.has("--confirm"))
81
+ return encode({
82
+ mode: "preview",
83
+ site: requestedSite,
84
+ path: target,
85
+ method: "PUT",
86
+ url: endpoint(requestedSite),
87
+ request_count: 1,
88
+ help: ["Repeat the same command with --confirm to submit this exact property and sitemap"],
89
+ });
90
+ try {
91
+ const quota = parsed.flags.get("--quota-project");
92
+ const auth = await getAuthClient({
93
+ quotaProject: typeof quota === "string" ? quota : undefined,
94
+ ...(writing ? { scopes: [writeScope] } : {}),
95
+ });
96
+ // Writes use the exact explicit property, never resolve it to a different property.
97
+ let site = requestedSite;
98
+ if (!writing) {
99
+ const resolution = await resolveSite(auth, requestedSite);
100
+ if (resolution.kind === "unavailable")
101
+ usage("No verified Search Console sites visible; configure --site or grant access");
102
+ site = resolution.site;
103
+ }
104
+ const response = await auth.client.request({
105
+ url: endpoint(site),
106
+ method: writing ? "PUT" : "GET",
107
+ retry: false,
108
+ });
109
+ if (writing)
110
+ return encode({
111
+ mode: "submitted",
112
+ site,
113
+ path: target,
114
+ note: "Submission acknowledged; not a crawl or indexing guarantee",
115
+ });
116
+ if (action === "get") {
117
+ if (!isObject(response.data))
118
+ throw new AxiError("Search Console returned an invalid sitemap response", "SITEMAPS_ERROR");
119
+ return encode({ site, sitemap: sitemap(response.data), note });
120
+ }
121
+ const data = response.data;
122
+ if (!isObject(data) ||
123
+ (data.sitemap !== undefined && !Array.isArray(data.sitemap)) ||
124
+ (data.nextPageToken !== undefined && typeof data.nextPageToken !== "string"))
125
+ throw new AxiError("Search Console returned an invalid sitemap list", "SITEMAPS_ERROR");
126
+ const sitemaps = Array.isArray(data.sitemap) ? [...data.sitemap] : [];
127
+ let pageToken = data.nextPageToken;
128
+ const seenPageTokens = new Set();
129
+ while (typeof pageToken === "string" && pageToken.length > 0) {
130
+ if (seenPageTokens.has(pageToken))
131
+ throw new AxiError("Search Console returned a repeated sitemap page token", "SITEMAPS_ERROR");
132
+ seenPageTokens.add(pageToken);
133
+ const page = await auth.client.request({
134
+ url: endpoint(site),
135
+ method: "GET",
136
+ retry: false,
137
+ params: { pageToken },
138
+ });
139
+ const pageData = page.data;
140
+ if (!isObject(pageData) ||
141
+ (pageData.sitemap !== undefined && !Array.isArray(pageData.sitemap)) ||
142
+ (pageData.nextPageToken !== undefined && typeof pageData.nextPageToken !== "string"))
143
+ throw new AxiError("Search Console returned an invalid sitemap list", "SITEMAPS_ERROR");
144
+ if (Array.isArray(pageData.sitemap))
145
+ sitemaps.push(...pageData.sitemap);
146
+ pageToken = pageData.nextPageToken;
147
+ }
148
+ const mapped = sitemaps.map(sitemap);
149
+ return encode({
150
+ site,
151
+ count: mapped.length,
152
+ sitemaps: mapped,
153
+ note,
154
+ help: [
155
+ "search-console-axi sitemaps get <sitemap-url> --site " + site,
156
+ "search-console-axi sitemaps list --site " + site,
157
+ ],
158
+ });
159
+ }
160
+ catch (error) {
161
+ if (error instanceof AxiError)
162
+ throw error;
163
+ const response = object(object(error).response);
164
+ const info = object(object(response.data).error);
165
+ const reasons = [
166
+ ...(Array.isArray(info.details) ? info.details : []),
167
+ ...(Array.isArray(info.errors) ? info.errors : []),
168
+ ].map((item) => object(item).reason);
169
+ const scope = writing ? writeScope : "https://www.googleapis.com/auth/webmasters.readonly";
170
+ const message = reasons.includes("ACCESS_TOKEN_SCOPE_INSUFFICIENT") || reasons.includes("insufficientPermissions")
171
+ ? `Credentials lack the required OAuth scope ${scope}; reauthorize user ADC explicitly. Existing refresh tokens cannot gain scopes automatically`
172
+ : response.status === 403
173
+ ? `Search Console access denied; check property permissions, API enablement, and required OAuth scope ${scope}`
174
+ : response.status === 404
175
+ ? "Sitemap or property not found; check the exact property and sitemap URL"
176
+ : response.status === 429
177
+ ? "Search Console quota exceeded; wait before retrying"
178
+ : "Sitemaps authentication or API request failed; check credentials and network";
179
+ throw new AxiError(message, "SITEMAPS_ERROR", [
180
+ "Run search-console-axi sitemaps --help. Writes are not retried; after an unknown outcome, use sitemaps get before resubmitting",
181
+ ]);
182
+ }
183
+ }
184
+ export const name = "sitemaps";
185
+ const commonFlags = {
186
+ "--site <property>": "Property; reads default to configured or first verified site; submit requires exact property",
187
+ "--quota-project <id>": "Set quota project",
188
+ "--help": "Show help",
189
+ };
190
+ export const help = helpText(name, {
191
+ purpose: "List/get submitted sitemaps or preview/submit a sitemap. " + note,
192
+ flags: commonFlags,
193
+ examples: [
194
+ "search-console-axi sitemaps list",
195
+ "search-console-axi sitemaps get https://example.com/sitemap.xml",
196
+ "search-console-axi sitemaps submit https://example.com/sitemap.xml --site sc-domain:example.com",
197
+ ],
198
+ next: ["search-console-axi sitemaps submit --help"],
199
+ });
200
+ export const command = {
201
+ name,
202
+ help,
203
+ subcommands: Object.fromEntries(["list", "get", "submit"].map((action) => [
204
+ action,
205
+ helpText(`sitemaps ${action}`, {
206
+ purpose: action === "submit"
207
+ ? `Preview without credentials; --confirm submits with ${writeScope}. No automatic scope widening or retries.`
208
+ : note,
209
+ flags: {
210
+ ...commonFlags,
211
+ ...(action === "list" ? {} : { "<sitemap-url>": "Required absolute HTTP(S) sitemap URL" }),
212
+ ...(action === "submit" ? { "--confirm": "Submit the exact previewed property and sitemap" } : {}),
213
+ },
214
+ examples: [
215
+ `search-console-axi sitemaps ${action}${action === "list" ? "" : " https://example.com/sitemap.xml"} --site sc-domain:example.com`,
216
+ ],
217
+ next: [],
218
+ }),
219
+ ])),
220
+ run,
221
+ };
package/dist/src/site.js CHANGED
@@ -59,7 +59,9 @@ export async function resolveSite(auth, flag) {
59
59
  };
60
60
  if (requested && !verified.some((entry) => matches(requested.site, entry.siteUrl)))
61
61
  return usage(`Selected site '${requested.site}' is not a verified property`);
62
- const selectedCandidate = requested && verified.find((entry) => matches(requested.site, entry.siteUrl));
62
+ const selectedCandidate = requested &&
63
+ (verified.find((entry) => entry.siteUrl === requested.site) ??
64
+ verified.find((entry) => matches(requested.site, entry.siteUrl)));
63
65
  const selected = selectedCandidate
64
66
  ? { site: selectedCandidate.siteUrl, site_source: requested.source }
65
67
  : selectVerifiedSite(verified.map((entry) => entry.siteUrl), candidates);
package/package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "name": "search-console-axi",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Google Search Console reporting and preview-gated Indexing API CLI for agents",
5
5
  "type": "module",
6
+ "keywords": [
7
+ "search-console-axi",
8
+ "google-search-console",
9
+ "search-console",
10
+ "seo",
11
+ "indexing-api",
12
+ "agent",
13
+ "axi",
14
+ "cli",
15
+ "claude-code",
16
+ "codex",
17
+ "skills"
18
+ ],
6
19
  "license": "MIT",
7
20
  "repository": "git+https://github.com/Dematom1/search-console-axi.git",
8
21
  "homepage": "https://github.com/Dematom1/search-console-axi#readme",
@@ -28,7 +41,7 @@
28
41
  "scripts": {
29
42
  "build": "tsc -p tsconfig.json",
30
43
  "typecheck": "tsc -p tsconfig.json --noEmit",
31
- "lint": "eslint .",
44
+ "lint": "oxlint .",
32
45
  "format:check": "prettier --check .",
33
46
  "test": "npm run build && node --test \"test/**/*.test.js\"",
34
47
  "prepack": "npm run build"
@@ -39,12 +52,10 @@
39
52
  "google-auth-library": "11.3.2"
40
53
  },
41
54
  "devDependencies": {
42
- "@eslint/js": "9.39.5",
43
55
  "@types/node": "22.20.5",
44
- "eslint": "9.39.5",
56
+ "oxlint": "1.93.0",
45
57
  "prettier": "3.9.10",
46
- "typescript": "5.9.3",
47
- "typescript-eslint": "8.69.0"
58
+ "typescript": "5.9.3"
48
59
  },
49
- "gitHead": "f070d5de6dd3da87b4b35881479317c26903ec7d"
60
+ "gitHead": "82c795b4c7a2f3760b0d2d37c9f5394ce6f41711"
50
61
  }
@@ -1,14 +1,18 @@
1
1
  ---
2
2
  name: search-console-axi
3
- description: Read Google Search Console performance, inspect URL indexing, or submit job-page Indexing API notifications.
3
+ description: See which Google Search Console queries and pages drive clicks, find low-CTR opportunities, read or safely submit sitemaps, check whether a URL is indexed, and safely notify Google about job-posting pages (preview before submit).
4
4
  ---
5
5
 
6
6
  # search-console-axi
7
7
 
8
- Use `search-console-axi` for Google Search Console reporting, URL inspection, and preview-gated Indexing API notifications. Output is compact TOON. See the [README](../../README.md#authentication) for authentication setup.
8
+ Use `search-console-axi` for Google Search Console reporting, URL inspection, and preview-gated Indexing API notifications. Output is compact TOON. See the [README](https://github.com/Dematom1/search-console-axi/blob/main/README.md#authentication) for authentication setup.
9
9
 
10
- Run `search-console-axi` for the default site's clicks, impressions, CTR, average position, top queries/pages, and low-CTR opportunities. Run `search-console-axi setup` to check access. Run `search-console-axi inspect <url>` to inspect index status; `--site` is optional. See the [README usage guide](../../README.md#read-search-console) for site selection.
10
+ If `search-console-axi` is not installed globally (`command -v search-console-axi` finds nothing), prefix every command below with `npx -y`, for example `npx -y search-console-axi setup`.
11
11
 
12
- Run `search-console-axi indexing --help` for notification commands. `indexing publish <url> --type updated|deleted` and `indexing batch <file|-> --type updated|deleted` preview every URL until `--confirm`. Only pages with JobPosting or BroadcastEvent embedded in VideoObject structured data qualify. Service accounts must own the Search Console property. `indexing status <url>` reads notification receipt metadata, not index status. `indexing quota` reports readable project limits and observed requests today, with permission guidance when unavailable.
12
+ Run `search-console-axi` for the default site's clicks, impressions, CTR, average position, top queries/pages, and low-CTR opportunities. Run `search-console-axi setup` to check access. Run `search-console-axi inspect <url>` to inspect index status; `--site` is optional. See the [README usage guide](https://github.com/Dematom1/search-console-axi/blob/main/README.md#read-search-console) for site selection.
13
13
 
14
- See the [README authentication guide](../../README.md#authentication) for credential setup and security guidance.
14
+ Run `search-console-axi sitemaps list [--site <property>]` for submitted sitemaps and `sitemaps get <sitemap-url>` for one. Output includes last-read dates, pending/error-derived status, errors/warnings and per-content-type submitted counts (discovered pages); indexed counts are deprecated, and missing fields are unknown, not zero. `search-console-axi sitemaps submit <sitemap-url> --site <exact-property>` previews without credentials; add `--confirm` to submit. Submission requires the `https://www.googleapis.com/auth/webmasters` scope and property write permissions. Read-only ADC must be explicitly reauthorized, never silently widened.
15
+
16
+ Run `search-console-axi indexing --help` for notification commands. `search-console-axi indexing publish <url> --type updated|deleted` and `search-console-axi indexing batch <file|-> --type updated|deleted` preview every URL until `--confirm`. Only pages with JobPosting or BroadcastEvent embedded in VideoObject structured data qualify. Service accounts must own the Search Console property. `search-console-axi indexing status <url>` reads notification receipt metadata, not index status. `search-console-axi indexing quota` reports readable project limits and observed requests today, with permission guidance when unavailable.
17
+
18
+ See the [README authentication guide](https://github.com/Dematom1/search-console-axi/blob/main/README.md#authentication) for credential setup and security guidance.