gddy
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesegddy — GoDaddy domains & DNS CLI
gddy — GoDaddy域名与DNS CLI
gddyIt's separate from GoDaddy's older CLI; it will eventually contain all of that same functionality.
godaddygddy它独立于GoDaddy的旧版 CLI;未来它将整合旧版工具的所有功能。
godaddySetup
安装配置
Install:
bash
undefined安装方式:
bash
undefinedmacOS / Linux / Git Bash / MSYS2 / Cygwin
macOS / Linux / Git Bash / MSYS2 / Cygwin
curl -fsSL https://github.com/godaddy/cli/releases/latest/download/install.sh | bash
curl -fsSL https://github.com/godaddy/cli/releases/latest/download/install.sh | bash
PowerShell
PowerShell
Verify that installation works by running `gddy --version`.
运行 `gddy --version` 验证安装是否成功。Documentation
文档说明
The CLI is self-documenting. Use the following to get more information about its capabilities:
gddy- The flag will give you detailed documentation on any command.
--help - will help you find a command.
gddy search <keywords> - The command will give you a full listing of all commands.
gddy tree - The command lets you view detailed documentation that explains concepts and outlines complex workflows.
gddy guide
gddy- 使用 参数可获取任意命令的详细文档。
--help - 可帮助你查找命令。
gddy search <keywords> - 命令会列出所有可用命令的完整清单。
gddy tree - 命令可查看解释概念、概述复杂工作流程的详细文档。
gddy guide
Authentication
身份验证
Interactive three-legged OAuth happens automatically if there is no auth token, if the auth token is expired, or if additional permissions are required. When you run a command that requires auth, it will open the user's web browser. You can list available OAuth scopes with then log them in with if you want to avoid multiple scope step-up interactions. Run for more auth details or use for a full walkthrough.
gddy auth scopesgddy auth login --scope <a> --scope <b>gddy auth --helpgddy guide authFor non-interactive workflows, you can use a Personal Access Token (PAT) instead. A PAT can be generated by a GoDaddy customer at https://developer.godaddy.com/en/personal-access-token. It can be stored securely with or set in a environment variable.
gddy pat addGDDY_PAT如果没有身份验证令牌、令牌已过期或需要额外权限,交互式三方OAuth将自动触发。当你运行需要身份验证的命令时,会自动打开用户的浏览器。你可以使用 列出可用的OAuth权限范围,若想避免多次权限提升交互,可使用 完成登录。运行 获取更多身份验证详情,或使用 查看完整操作指南。
gddy auth scopesgddy auth login --scope <a> --scope <b>gddy auth --helpgddy guide auth对于非交互式工作流,你可以使用个人访问令牌(PAT)替代。GoDaddy客户可在https://developer.godaddy.com/en/personal-access-token生成PAT,可通过 安全存储,或设置在 环境变量中。
gddy pat addGDDY_PATDomain purchase
域名购买
Domain purchase is a multi-step workflow. Run for a detailed walkthrough. Always confirm with the user before finalizing a purchase — it's real money, and the action is not reversible.
gddy guide domain-purchase域名购买是一个多步骤工作流。运行 查看详细操作指南。在完成购买前务必与用户确认——这涉及真实资金,且操作不可撤销。
gddy guide domain-purchaseDNS management
DNS管理
Valid record types: . and are GoDaddy-managed and read-only — you can list them but not add/set/delete them.
A AAAA ALIAS CAA CNAME MX NS SOA SRV TXTNSSOAbash
gddy dns list example.com --type A
gddy dns add example.com --type A --name www --data 192.0.2.1 --ttl 3600
gddy dns set example.com --type TXT --name @ --data "v=spf1 -all"
gddy dns delete example.com --type A --name wwwaddsetdeleteMXSRV--prioritySRV--port--weight--protocol--serviceCAA--tag--flagsetdelete--dry-run支持的记录类型:。其中和由GoDaddy管理,仅支持查看,无法添加/修改/删除。
A AAAA ALIAS CAA CNAME MX NS SOA SRV TXTNSSOAbash
gddy dns list example.com --type A
gddy dns add example.com --type A --name www --data 192.0.2.1 --ttl 3600
gddy dns set example.com --type TXT --name @ --data "v=spf1 -all"
gddy dns delete example.com --type A --name wwwaddsetdeleteMXSRV--prioritySRV--port--weight--protocol--serviceCAA--tag--flagsetdelete--dry-runPayment Methods
支付方式
gddy payment-methods addcodegddy payment-methods addcodeGlobal flags
全局参数
Use the flag for verbose output, including the full HTTP request/response. Use to see what would happen without making any changes. Humans see human-formatted output; use to see what they see in an interactive TTY. Non-TTY output uses formatting by default. Use if you understand that format to save tokens. Use to override the default environment, or set it permanently with .
--debug--dry-run--human--json--toon--envprodgddy env set <env>使用参数可获取详细输出,包括完整的HTTP请求/响应内容。使用参数可查看预期操作,而不会实际更改任何内容。人类用户会看到格式化的易读输出;在交互式TTY中可使用参数查看该格式。非TTY环境默认使用格式输出。若了解格式,可使用该参数以节省令牌。使用参数可覆盖默认的环境,或通过永久设置环境。
--debug--dry-run--human--json--toon--envprodgddy env set <env>Reference material
参考资料
Read these only when the task needs the detail — they're not needed for common domain/DNS operations:
- — raw GoDaddy Domains API fallback (when
reference/api.mdisn't installed/available, e.g. CI in a non-shell language): base URL/auth, the public OpenAPI specs to fetch and search directly, and the durable gotchas (idempotency keys on registration, the MCP server's read-only/no-auth scope).gddy - — error envelope shape, retry/idempotency rules per HTTP method, and rate-limit headers/handling.
reference/errors-and-limits.md
仅当任务需要详细信息时才阅读以下内容——常规域名/DNS操作无需参考:
- ——GoDaddy域名API的原始备用文档(当
reference/api.md未安装/不可用时,例如非Shell语言的CI环境):包含基础URL/身份验证方式、可直接获取和搜索的公开OpenAPI规范,以及需要注意的持久问题(注册时的幂等键、MCP服务器的只读/无权限范围)。gddy - ——错误信封格式、各HTTP方法的重试/幂等规则,以及速率限制标头和处理方式。
reference/errors-and-limits.md