pp-namecheap
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese<!-- GENERATED FILE — DO NOT EDIT.
This file is a verbatim mirror of library/developer-tools/namecheap/SKILL.md,
regenerated post-merge by tools/generate-skills/. Hand-edits here are
silently overwritten on the next regen. Edit the library/ source instead.
See AGENTS.md "Generated artifacts: registry.json, cli-skills/". -->
<!-- 生成文件 — 请勿编辑。
此文件是library/developer-tools/namecheap/SKILL.md的精确镜像,
由tools/generate-skills/在合并后重新生成。此处的手动编辑会在下次重新生成时被静默覆盖。请改为编辑library/下的源文件。
参见AGENTS.md中的“生成产物:registry.json、cli-skills/”。 -->
Namecheap — Printing Press CLI
Namecheap — 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:
namecheap-pp-cli- Install via the Printing Press installer:
bash
npx -y @mvanhorn/printing-press install namecheap --cli-only - Verify:
namecheap-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/developer-tools/namecheap/cmd/namecheap-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$PATHCurated OpenAPI description for Namecheap's XML API. The real API uses a single
endpoint () with a query parameter plus Namecheap's
query-string authentication parameters (, , , ).
Generation uses command-shaped pseudo paths that are normalized back to
by the Namecheap printed CLI patch layer.
/xml.responseCommandApiUserApiKeyUserNameClientIp/xml.response该技能驱动二进制文件。在调用此技能的任何命令之前,您必须确认CLI已安装。如果未安装,请先进行安装:
namecheap-pp-cli- 通过Printing Press安装程序安装:
bash
npx -y @mvanhorn/printing-press install namecheap --cli-only - 验证:
namecheap-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/developer-tools/namecheap/cmd/namecheap-pp-cli@latest如果安装后执行提示“command not found”,说明安装步骤未将二进制文件添加到中。在验证成功前,请不要继续执行技能命令。
--version$PATH针对Namecheap XML API的精选OpenAPI描述。实际API使用单一端点(),搭配查询参数以及Namecheap的查询字符串认证参数(、、、)。
生成过程使用命令形伪路径,这些路径会被Namecheap打印CLI补丁层标准化回。
/xml.responseCommandApiUserApiKeyUserNameClientIp/xml.responseWhen Not to Use This CLI
何时不应使用此CLI
Do not activate this CLI for requests that require creating, updating, deleting, publishing, commenting, upvoting, inviting, ordering, sending messages, booking, purchasing, or changing remote state. This printed CLI exposes read-only commands for inspection, export, sync, and analysis.
请勿针对需要创建、更新、删除、发布、评论、点赞、邀请、下单、发送消息、预订、购买或更改远程状态的请求激活此CLI。该打印CLI仅暴露用于查看、导出、同步和分析的只读命令。
Command Reference
命令参考
dns — Manage dns
- — Runs
namecheap-pp-cli dns get-email-forwarding.namecheap.domains.dns.getEmailForwarding - — Runs
namecheap-pp-cli dns get-hosts.namecheap.domains.dns.getHosts - — Get DNS nameserver type and nameservers.
namecheap-pp-cli dns get-list - — Runs
namecheap-pp-cli dns set-custom.namecheap.domains.dns.setCustom - — Switch a domain to Namecheap default DNS.
namecheap-pp-cli dns set-default - — Runs
namecheap-pp-cli dns set-hosts; HostName1/RecordType1/Address1/TTL1 style parameters can be passed via...namecheap.domains.dns.setHosts
domains — Manage domains
- — Check domain availability for one or more domains.
namecheap-pp-cli domains check - — Runs
namecheap-pp-cli domains create. This is a mutating paid operation; use dry-run unless intentionally registering.namecheap.domains.create - — Runs
namecheap-pp-cli domains get-contacts.namecheap.domains.getContacts - — Runs
namecheap-pp-cli domains get-infofor a domain.namecheap.domains.getInfo - — Runs
namecheap-pp-cli domains get-listwith paging and optional filters.namecheap.domains.getList - — Runs
namecheap-pp-cli domains get-registrar-lock.namecheap.domains.getRegistrarLock - — Runs
namecheap-pp-cli domains get-tld-list.namecheap.domains.getTldList - — Runs
namecheap-pp-cli domains renew. Mutating paid operation.namecheap.domains.renew - — Runs
namecheap-pp-cli domains set-registrar-lock.namecheap.domains.setRegistrarLock
ssl — Manage ssl
- — Get SSL certificate information.
namecheap-pp-cli ssl get-info - — Runs
namecheap-pp-cli ssl get-list.namecheap.ssl.getList - — Parse a certificate signing request.
namecheap-pp-cli ssl parse-csr
users — Manage users
- — Runs
namecheap-pp-cli users address-get-info.namecheap.users.address.getInfo - — Runs
namecheap-pp-cli users address-get-list.namecheap.users.address.getList - — Runs
namecheap-pp-cli users get-balances.namecheap.users.getBalances - — Runs
namecheap-pp-cli users get-pricing.namecheap.users.getPricing
dns — 管理DNS
- — 执行
namecheap-pp-cli dns get-email-forwarding。namecheap.domains.dns.getEmailForwarding - — 执行
namecheap-pp-cli dns get-hosts。namecheap.domains.dns.getHosts - — 获取DNS域名服务器类型和域名服务器。
namecheap-pp-cli dns get-list - — 执行
namecheap-pp-cli dns set-custom。namecheap.domains.dns.setCustom - — 将域名切换为Namecheap默认DNS。
namecheap-pp-cli dns set-default - — 执行
namecheap-pp-cli dns set-hosts;可通过...传递HostName1/RecordType1/Address1/TTL1格式的参数。namecheap.domains.dns.setHosts
domains — 管理域名
- — 检查一个或多个域名的可用性。
namecheap-pp-cli domains check - — 执行
namecheap-pp-cli domains create。这是一项会修改状态的付费操作;除非有意注册,否则请使用dry-run模式。namecheap.domains.create - — 执行
namecheap-pp-cli domains get-contacts。namecheap.domains.getContacts - — 针对某个域名执行
namecheap-pp-cli domains get-info。namecheap.domains.getInfo - — 执行带分页和可选过滤器的
namecheap-pp-cli domains get-list。namecheap.domains.getList - — 执行
namecheap-pp-cli domains get-registrar-lock。namecheap.domains.getRegistrarLock - — 执行
namecheap-pp-cli domains get-tld-list。namecheap.domains.getTldList - — 执行
namecheap-pp-cli domains renew。这是一项会修改状态的付费操作。namecheap.domains.renew - — 执行
namecheap-pp-cli domains set-registrar-lock。namecheap.domains.setRegistrarLock
ssl — 管理SSL证书
- — 获取SSL证书信息。
namecheap-pp-cli ssl get-info - — 执行
namecheap-pp-cli ssl get-list。namecheap.ssl.getList - — 解析证书签名请求。
namecheap-pp-cli ssl parse-csr
users — 管理用户
- — 执行
namecheap-pp-cli users address-get-info。namecheap.users.address.getInfo - — 执行
namecheap-pp-cli users address-get-list。namecheap.users.address.getList - — 执行
namecheap-pp-cli users get-balances。namecheap.users.getBalances - — 执行
namecheap-pp-cli users get-pricing。namecheap.users.getPricing
Finding the right command
查找合适的命令
When you know what you want to do but not which command does it, ask the CLI directly:
bash
namecheap-pp-cli which "<capability in your own words>"which02--help当您知道要执行的操作但不知道对应的命令时,可直接询问CLI:
bash
namecheap-pp-cli which "<用您自己的语言描述功能>"which02--helpAuth Setup
认证设置
Run to print the URL and steps for getting a key (add to open the URL). Then set:
namecheap-pp-cli auth setup--launchbash
export NAMECHEAP_API_KEY="<your-key>"Or persist it in .
~/.config/namecheap-pp-cli/config.tomlRun to verify setup.
namecheap-pp-cli doctor执行以打印获取密钥的URL和步骤(添加可打开该URL)。然后设置:
namecheap-pp-cli auth setup--launchbash
export NAMECHEAP_API_KEY="<您的密钥>"或者将其持久化到中。
~/.config/namecheap-pp-cli/config.toml执行以验证设置是否正确。
namecheap-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:
--selectbashnamecheap-pp-cli dns get-email-forwarding --agent --select id,name,status -
Previewable —shows the request without sending
--dry-run -
Offline-friendly — sync/search commands can use the local SQLite store when available
-
Non-interactive — never prompts, every input is a flag
-
Read-only — do not use this CLI for create, update, delete, publish, comment, upvote, invite, order, send, or other mutating requests
在任何命令后添加。这会展开为:。
--agent--json --compact --no-input --no-color --yes-
可管道传输 — 标准输出为JSON,错误输出到标准错误
-
可过滤 —保留字段子集。点路径可深入嵌套结构;数组会遍历每个元素。对于冗长的API,这对缩小上下文至关重要:
--selectbashnamecheap-pp-cli dns get-email-forwarding --agent --select id,name,status -
可预览 —显示请求但不发送
--dry-run -
离线友好 — 同步/搜索命令在可用时可使用本地SQLite存储
-
非交互式 — 从不提示,所有输入均为标志参数
-
只读 — 请勿使用此CLI执行创建、更新、删除、发布、评论、点赞、邀请、下单、发送或其他会修改状态的请求
Response envelope
响应信封
Commands that read from the local store or the API wrap output in a provenance envelope:
json
{
"meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
"results": <data>
}Parse for data and to know whether it's live or local. A human-readable summary is printed to stderr only when stdout is a terminal AND no machine-format flag (, , , , , ) is set — piped/agent consumers and explicit-format runs get pure JSON on stdout.
.results.meta.sourceN results (live)--json--csv--compact--quiet--plain--select从本地存储或API读取数据的命令会将输出包装在来源信封中:
json
{
"meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
"results": <数据>
}解析获取数据,通过判断数据是实时的还是本地的。仅当标准输出为终端且未设置机器格式标志(、、、、、)时,才会将人类可读的摘要打印到标准错误 — 管道/Agent消费者和显式格式运行时,标准输出仅为纯JSON。
.results.meta.source--json--csv--compact--quiet--plain--selectN results (live)Agent Feedback
Agent反馈
When you (or the agent) notice something off about this CLI, record it:
namecheap-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
namecheap-pp-cli feedback --stdin < notes.txt
namecheap-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.
~/.namecheap-pp-cli/feedback.jsonlNAMECHEAP_FEEDBACK_ENDPOINT--sendNAMECHEAP_FEEDBACK_AUTO_SEND=trueWrite what surprised you, not a bug report. Short, specific, one line: that is the part that compounds.
当您(或Agent)发现此CLI存在问题时,请记录下来:
namecheap-pp-cli feedback "--since标志是包含性的,但文档说是排他性的"
namecheap-pp-cli feedback --stdin < notes.txt
namecheap-pp-cli feedback list --json --limit 10反馈条目存储在本地中。除非设置了且传递了或设置了,否则反馈绝不会被POST提交。默认行为仅存储在本地。
~/.namecheap-pp-cli/feedback.jsonlNAMECHEAP_FEEDBACK_ENDPOINT--sendNAMECHEAP_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.
每个命令都接受参数。输出会除了(或代替)标准输出外发送到指定的sink,以便Agent无需手动管道即可路由命令结果。支持三种sink:
--deliver <sink>| Sink | 效果 |
|---|---|
| 默认值;仅写入标准输出 |
| 原子性地将输出写入 |
| 将输出体POST到指定URL(当使用 |
未知的scheme会被拒绝,并返回结构化错误,列出支持的类型。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.
namecheap-pp-cli profile save briefing --json
namecheap-pp-cli --profile briefing dns get-email-forwarding
namecheap-pp-cli profile list --json
namecheap-pp-cli profile show briefing
namecheap-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”模式。
namecheap-pp-cli profile save briefing --json
namecheap-pp-cli --profile briefing dns get-email-forwarding
namecheap-pp-cli profile list --json
namecheap-pp-cli profile show briefing
namecheap-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--helpoutputnamecheap-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输出namecheap-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 namecheap-pp-mcp -- namecheap-pp-mcpVerify:
claude mcp list从此CLI已发布的公共库条目或预构建版本安装MCP二进制文件,然后注册:
bash
claude mcp add namecheap-pp-mcp -- namecheap-pp-mcp验证:
claude mcp listDirect Use
直接使用
- Check if installed: If not found, offer to install (see Prerequisites at the top of this skill).
which namecheap-pp-cli - Match the user query to the best command from the Unique Capabilities and Command Reference above.
- Execute with the flag:
--agentbashnamecheap-pp-cli <command> [subcommand] [args] --agent - If ambiguous, drill into subcommand help: .
namecheap-pp-cli <command> --help
- 检查是否已安装:若未找到,提供安装选项(参见顶部前提条件部分)。
which namecheap-pp-cli - 将用户查询与上述独特功能和命令参考中最匹配的命令进行匹配。
- 带标志执行:
--agentbashnamecheap-pp-cli <命令> [子命令] [参数] --agent - 若存在歧义,查看子命令帮助:。",
namecheap-pp-cli <命令> --help