← 返回 Skills 市场
nmadeleidev

Bing Webmaster CLI

作者 Gregory Potemkin · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
345
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install bing-webmaster-cli
功能描述
Use this skill when working with this repository's `bwm` CLI, including Bing Webmaster API key setup, CLI authentication, site listing, traffic stats, URL in...
使用说明 (SKILL.md)

Bing Webmaster CLI Skill

Use this skill to operate and troubleshoot the bwm CLI in this repository.

When To Use

Use this skill when the task involves any of:

  • creating or rotating a Bing Webmaster API key
  • authenticating this CLI with env var or local stored key
  • listing sites in Bing Webmaster
  • fetching site/URL traffic stats
  • checking whether a URL is indexed and why not
  • submitting URLs for indexing

Prerequisites

  • Python environment with this project installed (bwm command available)
  • Bing Webmaster Tools account with access to at least one site
  • Bing Webmaster API key

Install This CLI

Recommended (pipx, global bwm command):

python3 -m pip install --user pipx
python3 -m pipx ensurepath
pipx install bing-webmaster-cli
bwm --version

From source (development):

python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
bwm --help

From source (pipx, editable):

pipx install -e /absolute/path/to/bing_webmaster_cli
bwm --help

Create API Key (Bing Webmaster)

As of February 26, 2026, create a Bing Webmaster API key using these steps:

  1. Open Bing Webmaster Tools: https://www.bing.com/webmasters/
  2. Sign in and open account/API access settings.
  3. Generate a new API key.
  4. Copy and securely store the key.

Reference:

  • https://learn.microsoft.com/en-us/bingwebmaster/getting-access

Authenticate This CLI

Environment variable (recommended for CI/ephemeral usage)

export BING_WEBMASTER_API_KEY="\x3Cyour_api_key>"
bwm auth whoami

Local stored key

bwm auth login --api-key "\x3Cyour_api_key>"
bwm auth whoami

Interactive prompt:

bwm auth login

Clear local key:

bwm auth clear

Optional: Set Default Site

bwm config set default-site https://example.com/
bwm config get default-site

When set, commands that accept --site can omit it.

Command Reference

Top-level:

  • bwm --version
  • bwm --help

auth

  • bwm auth login [--api-key TEXT]
  • bwm auth whoami [--output table|json]
  • bwm auth clear

config

  • bwm config set default-site SITE_URL
  • bwm config get default-site

site

  • bwm site list [--output table|json|csv] [--csv-path FILE]

stats

  • bwm stats site [--site SITE] [--start-date YYYY-MM-DD] [--end-date YYYY-MM-DD] [--output table|json|csv] [--csv-path FILE]
  • bwm stats url [--site SITE] --url URL [--start-date YYYY-MM-DD] [--end-date YYYY-MM-DD] [--output table|json|csv] [--csv-path FILE]

url

  • bwm url check-index [--site SITE] --url URL [--output table|json] [--explain]
  • bwm url submit [--site SITE] [--url URL]... [--file FILE] [--output table|json]

Quick Examples

# List sites
bwm site list --output json

# Site stats for a date window
bwm stats site \
  --site https://example.com/ \
  --start-date 2026-02-01 \
  --end-date 2026-02-26

# URL stats
bwm stats url \
  --site https://example.com/ \
  --url https://example.com/page \
  --output json

# URL index check with richer explanation
bwm url check-index \
  --site https://example.com/ \
  --url https://example.com/page \
  --output json \
  --explain

# Submit one URL
bwm url submit --site https://example.com/ --url https://example.com/new-page

# Submit batch from file
bwm url submit --site https://example.com/ --file ./urls.txt

Troubleshooting

  • Auth error: No API key found...

    • set BING_WEBMASTER_API_KEY or run bwm auth login.
  • No site specified. Pass --site or set one...

    • pass --site or set default site with bwm config set default-site ....
  • URL appears blocked in Bing UI while simple API fields are sparse

    • run bwm url check-index --explain ... to get best-effort diagnostics from API signals.

Config Paths And Overrides

Defaults:

  • credentials: ~/.config/bing-webmaster-cli/credentials.json
  • app config: ~/.config/bing-webmaster-cli/config.json

Env overrides:

  • BING_WEBMASTER_API_KEY
  • BWM_CONFIG_DIR
  • BWM_CREDENTIALS_FILE
  • BWM_APP_CONFIG_FILE
  • BWM_API_BASE_URL
安全使用建议
This skill appears to be a straightforward usage guide for a local 'bwm' (Bing Webmaster) CLI. Before installing or using it: 1) Verify the bwm package source (PyPI project page or upstream repo) before running pipx install or pip install -e; 2) Confirm where credentials will be stored (~/.config/bing-webmaster-cli/credentials.json) and set restrictive file permissions (600) so API keys aren't world-readable; 3) Prefer injecting BING_WEBMASTER_API_KEY via CI secrets or ephemeral env variables rather than pasting into shared machines; 4) Check BWM_API_BASE_URL if you must override it — ensure it points to Microsoft endpoints, not a custom host; 5) Note the metadata omission: the SKILL.md references env vars and config paths that the registry did not declare — treat that as a documentation/metadata mismatch and verify the CLI behavior locally before granting credentials.
功能分析
Type: OpenClaw Skill Name: bing-webmaster-cli Version: 1.0.0 The skill bundle is benign. It provides instructions for installing and using a command-line interface (CLI) tool for Bing Webmaster. All commands and instructions in SKILL.md are standard for Python package management (pipx, pip) and for interacting with a CLI tool, including setting environment variables for API keys. There is no evidence of prompt injection attempts, data exfiltration, persistence mechanisms, or other malicious behaviors. The documentation of configuration paths and environment variables is for user information, not an instruction for the agent to access or exfiltrate sensitive data.
能力评估
Purpose & Capability
Name/description match the content: the skill documents use of a local 'bwm' CLI for API key setup, auth, site listing, stats, index checks and URL submission. Nothing in the instructions asks for unrelated cloud or system privileges.
Instruction Scope
SKILL.md instructs the agent/operator to set/use environment variables (BING_WEBMASTER_API_KEY, BWM_* overrides) and read/write config files under ~/.config/bing-webmaster-cli — but the skill metadata declared no required env vars or config paths. Instructions otherwise stay within the CLI's scope and do not request unrelated data exfiltration or external endpoints.
Install Mechanism
No install spec in the registry; the SKILL.md recommends standard pipx/pip installation commands. There are no downloads from arbitrary URLs or extract steps in the skill itself.
Credentials
The skill describes using/storing a Bing Webmaster API key and lists env overrides and credential/config file paths — this is proportional to the stated purpose. However, the registry metadata did not list these env vars or config paths as required, creating a mismatch the user should be aware of.
Persistence & Privilege
Skill is instruction-only, not always-enabled, and does not request persistent or elevated platform privileges. It does reference storing credentials under the user's config directory (expected for a CLI).
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install bing-webmaster-cli
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /bing-webmaster-cli 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of bing-webmaster-cli skill. - Provides guidance for installing and authenticating the `bwm` CLI tool. - Supports listing sites, fetching site/URL stats, and URL index status/explanation. - Includes instructions for Bing Webmaster API key setup. - Details usage of CLI commands for common tasks, including troubleshooting tips. - Explains config options and environment variable overrides.
元数据
Slug bing-webmaster-cli
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Bing Webmaster CLI 是什么?

Use this skill when working with this repository's `bwm` CLI, including Bing Webmaster API key setup, CLI authentication, site listing, traffic stats, URL in... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 345 次。

如何安装 Bing Webmaster CLI?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install bing-webmaster-cli」即可一键安装,无需额外配置。

Bing Webmaster CLI 是免费的吗?

是的,Bing Webmaster CLI 完全免费(开源免费),可自由下载、安装和使用。

Bing Webmaster CLI 支持哪些平台?

Bing Webmaster CLI 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Bing Webmaster CLI?

由 Gregory Potemkin(@nmadeleidev)开发并维护,当前版本 v1.0.0。

💬 留言讨论