cf 1.0.0-beta.28 → 1.0.0-beta.29

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.
Files changed (328) hide show
  1. package/README.md +10 -3
  2. package/dist/_meta/commands.json +2240 -3181
  3. package/dist/_meta/hand-written-commands.json +38 -8
  4. package/dist/_meta/schemas.json +1683 -2505
  5. package/dist/{abuse-reports-D9edOyag.mjs → abuse-reports-DqXYX_6F.mjs} +10 -10
  6. package/dist/{access-CKCCSrrU.mjs → access-Cte4yyIz.mjs} +1 -1
  7. package/dist/{accounts-CNb9U9bK.mjs → accounts-G-x-_cEx.mjs} +58 -57
  8. package/dist/{acm-CdKTAToZ.mjs → acm-Bg3HqMGG.mjs} +7 -7
  9. package/dist/{addressing-eZI_C-b0.mjs → addressing-BwEofGEm.mjs} +46 -46
  10. package/dist/{agent-memory-BBHCEE7h.mjs → agent-memory-DhwZ2KRw.mjs} +15 -15
  11. package/dist/{ai-Csl_QNwv.mjs → ai-DWWRIQIt.mjs} +16 -16
  12. package/dist/{ai-audit-DlqWsQi-.mjs → ai-audit-CMEBz6ZP.mjs} +3 -3
  13. package/dist/ai-gateway-D2s0isU-.mjs +76 -0
  14. package/dist/ai-search-a0uqr9yJ.mjs +74 -0
  15. package/dist/{ai-security-DvU2iYkY.mjs → ai-security-H_RqjRoL.mjs} +4 -4
  16. package/dist/alerting-Bgp9rE4I.mjs +52 -0
  17. package/dist/analytics-CFYM82FD.mjs +17 -0
  18. package/dist/{analytics-engine-BlIecoOe.mjs → analytics-engine-BLiEaLxb.mjs} +2 -2
  19. package/dist/{api-security-DZ7GWOqD.mjs → api-security-B0YtHglt.mjs} +63 -63
  20. package/dist/{argo-Bh0_cj49.mjs → argo-BPwbzHY7.mjs} +7 -7
  21. package/dist/{artifacts-VZJWVq_6.mjs → artifacts-B6UwC2PH.mjs} +20 -20
  22. package/dist/{audit-logs-B8cGL4B9.mjs → audit-logs-kG97iEnI.mjs} +2 -2
  23. package/dist/auth-Czr8ChBB.mjs +2 -0
  24. package/dist/auth-DA1PHaHi.mjs +2 -0
  25. package/dist/auth-Dwfa4S3h.mjs +7 -0
  26. package/dist/{auth-token-DW4dJVdj.mjs → auth-token-CE3Wa5-b.mjs} +1 -1
  27. package/dist/{autoconfig-C0ynlGHf.mjs → autoconfig-B4tFR6ua.mjs} +120 -116
  28. package/dist/{basin-catalog-TehR1sKZ.mjs → basin-catalog-DzVEPupy.mjs} +17 -17
  29. package/dist/{billing-B2KusU6g.mjs → billing-TERxOuLR.mjs} +11 -11
  30. package/dist/{blocks-BFulF68V.mjs → blocks-C3Im7AT0.mjs} +1 -1
  31. package/dist/body-parser-HN91kAf0.mjs +2 -0
  32. package/dist/{body-unions-DNs981Ia.mjs → body-unions-D9OSaf4M.mjs} +1 -1
  33. package/dist/{bot-management-CXHXgrQC.mjs → bot-management-SZw9jTOC.mjs} +4 -4
  34. package/dist/{botnet-feed-UyK7Rfp6.mjs → botnet-feed-DjdAeUtb.mjs} +5 -5
  35. package/dist/brand-protection-BpA7Gmf1.mjs +18 -0
  36. package/dist/browser-run-BvjfMK3f.mjs +40 -0
  37. package/dist/build-CCwo_ydV.mjs +2 -0
  38. package/dist/{build-FFxzigo4.mjs → build-yQOzZg6Z.mjs} +1 -1
  39. package/dist/builds-tMa3sbQU.mjs +62 -0
  40. package/dist/{cache-BacNNtLu.mjs → cache-b_EPh6Is.mjs} +18 -18
  41. package/dist/cf-DmvZ2L51.mjs +18 -0
  42. package/dist/{chunk-DSGVRFIS-BaNZNW-M.mjs → chunk-DSGVRFIS-Cj7pO-YQ.mjs} +1 -1
  43. package/dist/chunk-Q5KVZMHK-WOCEMyET.mjs +363 -0
  44. package/dist/cli-Cc7ujzAy.mjs +4 -0
  45. package/dist/{client-side-security-bzB9JosR.mjs → client-side-security-DVkeCzcC.mjs} +14 -14
  46. package/dist/{cloud-connector-BHtf37R5.mjs → cloud-connector-MVf4acRR.mjs} +3 -3
  47. package/dist/{cloudflared-QDdHMUEY.mjs → cloudflared-BOkMl8Gm.mjs} +1 -1
  48. package/dist/cloudforce-one-KrCfQbRx.mjs +318 -0
  49. package/dist/{command-D895kdlh.mjs → command-BQbZw4Kx.mjs} +1 -1
  50. package/dist/command-BVct0Dvr.mjs +2 -0
  51. package/dist/{command-DeutqL1n.mjs → command-C4_lMRkw.mjs} +1 -1
  52. package/dist/command-CJ3ldWrA.mjs +2 -0
  53. package/dist/command-CyOdBNur.mjs +2 -0
  54. package/dist/command-D2XkyO1e.mjs +2 -0
  55. package/dist/command-DHODgfFZ.mjs +2 -0
  56. package/dist/command-DIIaZx_f.mjs +2 -0
  57. package/dist/command-DONwHpqZ.mjs +2 -0
  58. package/dist/command-DdYnSf-8.mjs +2 -0
  59. package/dist/command-DqOU7Ql2.mjs +2 -0
  60. package/dist/{command-CbxXc5IW.mjs → command-HW7k43qu.mjs} +1 -1
  61. package/dist/command-NqM0lo4a.mjs +2 -0
  62. package/dist/command-bwVDyMv4.mjs +2 -0
  63. package/dist/command-yzqs4m83.mjs +2 -0
  64. package/dist/{completions-BvdKtzsX.mjs → completions-0YKvIyBT.mjs} +2 -2
  65. package/dist/{connector-interrupts-dUPW6Ya_.mjs → connector-interrupts-CsunbRsr.mjs} +3 -3
  66. package/dist/{connector-telemetry-events-DWVCqnhn.mjs → connector-telemetry-events-DmQPD7xC.mjs} +3 -3
  67. package/dist/{connector-telemetry-snapshots-CeMP3qeI.mjs → connector-telemetry-snapshots-C62iHjC9.mjs} +3 -3
  68. package/dist/{connectors-DZFGNw3i.mjs → connectors-Bg0MU6ZT.mjs} +7 -7
  69. package/dist/{containers-DCzQCo79.mjs → containers-BiA_bpPR.mjs} +22 -21
  70. package/dist/{content-scan-XhnNJqXf.mjs → content-scan-4SA2nacB.mjs} +6 -6
  71. package/dist/{context-BY1Eh_Qe.mjs → context-BGm5_wTT.mjs} +1 -1
  72. package/dist/{cps-CohlxvuN.mjs → cps-WDmD3V5I.mjs} +3 -3
  73. package/dist/csam-scanner-Rmy-hBEA.mjs +8 -0
  74. package/dist/{custom-csrs-BVdMQjYq.mjs → custom-csrs-D-lvkyRV.mjs} +5 -5
  75. package/dist/{custom-hostnames-r-CxhSa1.mjs → custom-hostnames-B5BQX5m6.mjs} +12 -12
  76. package/dist/{custom-nameservers-CapMDyly.mjs → custom-nameservers-CZrRjcjx.mjs} +4 -4
  77. package/dist/{custom-pages-BVIniWfq.mjs → custom-pages-CWwjtfbj.mjs} +10 -10
  78. package/dist/d1-N81q-FAr.mjs +50 -0
  79. package/dist/{delegate-CcL6RoGw.mjs → delegate-livNdiwK.mjs} +1 -1
  80. package/dist/delegate.mjs +1 -1
  81. package/dist/deploy-Ok4ncy06.mjs +2 -0
  82. package/dist/deploy-context-B_lLfxt7.mjs +55 -0
  83. package/dist/deploy-input-JZlEJwKB.mjs +2 -0
  84. package/dist/dev-DxbkJkzc.mjs +4 -0
  85. package/dist/{diagnostics-C3nqxsAO.mjs → diagnostics-DlJzpO8b.mjs} +7 -7
  86. package/dist/dialog-CD94-Kzw.mjs +2 -0
  87. package/dist/discover-D9FNaCDK.mjs +2 -0
  88. package/dist/discover-DGsMj9ZN.mjs +2 -0
  89. package/dist/{dist-D-ihn_mV.mjs → dist-BxhwE-W1.mjs} +193 -193
  90. package/dist/{dls-N1x8sAK3.mjs → dls-5OXuxLAB.mjs} +8 -8
  91. package/dist/{dns-DATWP-PF.mjs → dns-Burep9O7.mjs} +59 -69
  92. package/dist/{dns-firewall-n3Y2ui6W.mjs → dns-firewall-hUHaQ0DE.mjs} +8 -8
  93. package/dist/docs-BFVK88kB.mjs +3 -0
  94. package/dist/{dry-run-kJbjn4kG.mjs → dry-run-qsnRlRk6.mjs} +1 -1
  95. package/dist/{durable-objects-DHK9w-vO.mjs → durable-objects-D6R8S2Dk.mjs} +3 -3
  96. package/dist/email-auth--2KCzZNA.mjs +6 -0
  97. package/dist/email-routing-DzaExfVf.mjs +44 -0
  98. package/dist/{email-security-DK_SJ0yi.mjs → email-security-DwQJszzy.mjs} +71 -71
  99. package/dist/{email-sending-CTQafGec.mjs → email-sending-mQd2qB-o.mjs} +21 -21
  100. package/dist/errors-C_bGcR0X.mjs +11 -0
  101. package/dist/field-extractors-MVOizTlB.mjs +8 -0
  102. package/dist/{firewall-CW-fAI9m.mjs → firewall-DtSIlkfL.mjs} +19 -19
  103. package/dist/{flagship-RiLnDwfJ.mjs → flagship-9E5gwNki.mjs} +12 -12
  104. package/dist/{fraud-DvfBBTe8.mjs → fraud-DjqhVJdf.mjs} +3 -3
  105. package/dist/generate-BzOnRBij.mjs +2 -0
  106. package/dist/generate-DfxZtpn9.mjs +2 -0
  107. package/dist/{global-options-DiKj2cQy.mjs → global-options-4pyD17hd.mjs} +1 -1
  108. package/dist/{google-tag-gateway-C5WYsSXv.mjs → google-tag-gateway-BM5GmCZa.mjs} +3 -3
  109. package/dist/gt-BV-jij5q.mjs +4 -0
  110. package/dist/healthchecks-CEZ5f3XJ.mjs +20 -0
  111. package/dist/{hyperdrive-Ch6klUp3.mjs → hyperdrive-Da8hCcUw.mjs} +12 -12
  112. package/dist/{iam-LlGEzRCq.mjs → iam-BK6N7NdQ.mjs} +31 -31
  113. package/dist/{images-C5WqUXkK.mjs → images-3bCWE6Ml.mjs} +33 -33
  114. package/dist/index.mjs +1 -1
  115. package/dist/init-BgCF9K8h.mjs +43 -0
  116. package/dist/{intel-vcWyslaX.mjs → intel-BQ58CJLt.mjs} +30 -30
  117. package/dist/{interactive-BCDFSPtq.mjs → interactive-JBA3qOUa.mjs} +9 -9
  118. package/dist/{internal-BhV9WjLp.mjs → internal-CWPz0sBF.mjs} +2 -2
  119. package/dist/{ips-CqHjVsqd.mjs → ips-3WYegiVW.mjs} +2 -2
  120. package/dist/{k2-CZT2Pd5J.mjs → k2-Bc_hjmiv.mjs} +5 -5
  121. package/dist/{kv-Ipa7dnvF.mjs → kv-DbShBhhg.mjs} +6 -6
  122. package/dist/{lazy-command-DbKVgdGT.mjs → lazy-command-CbGyEqFK.mjs} +1 -1
  123. package/dist/leaked-credential-checks-DgPefxP9.mjs +16 -0
  124. package/dist/{live-C9L1bNuE.mjs → live-BTtMv1a6.mjs} +2 -2
  125. package/dist/load-balancers-C2hg52WA.mjs +84 -0
  126. package/dist/{local-DIJ7SIKC.mjs → local-B3zt9PXR.mjs} +1 -1
  127. package/dist/local-DRxctCh9.mjs +2 -0
  128. package/dist/local-runtime-BOnDiMDc.mjs +2 -0
  129. package/dist/{log-BWdaOGOW.mjs → log-Brx-wjJW.mjs} +3 -3
  130. package/dist/log-DBAHla_W.mjs +2 -0
  131. package/dist/login-CK3nn9a5.mjs +2 -0
  132. package/dist/{login-DG5ebyab.mjs → login-DiR-buzS.mjs} +3 -3
  133. package/dist/{logpush-C5Gw7F_9.mjs → logpush-CitvUX-J.mjs} +22 -22
  134. package/dist/{logs-y3REfHbb.mjs → logs-CfWHu4Ir.mjs} +14 -16
  135. package/dist/{magic-network-monitoring-BZBGZB6M.mjs → magic-network-monitoring-gU6yzzML.mjs} +17 -17
  136. package/dist/{magic-transit-BPV_POf5.mjs → magic-transit-B3JY9u5o.mjs} +139 -139
  137. package/dist/{managed-defense-BaUBSUcz.mjs → managed-defense-C_EQ-NYp.mjs} +9 -9
  138. package/dist/managed-transforms-DIGl6JkM.mjs +8 -0
  139. package/dist/{mcp-RPtrISTy.mjs → mcp-DqhQJVaz.mjs} +15 -15
  140. package/dist/{mesh-DZ4QHBPE.mjs → mesh-DXVZBNDC.mjs} +12 -12
  141. package/dist/{migrate-CRIUqGi2.mjs → migrate-CmXyk9vX.mjs} +1 -1
  142. package/dist/{monetization-CVZqM8Xo.mjs → monetization-CWg-mySr.mjs} +9 -9
  143. package/dist/{network-interconnects-9nS5jL__.mjs → network-interconnects-DhfKL5tG.mjs} +17 -19
  144. package/dist/{network-DLt2JUo1.mjs → network-jtgq5eb4.mjs} +24 -24
  145. package/dist/o11y-eYYs59X9.mjs +88 -0
  146. package/dist/oauth-BgDZMd72.mjs +5 -0
  147. package/dist/{oauth-Cidoyxfp.mjs → oauth-V37G-PaV.mjs} +1 -1
  148. package/dist/{observability-C-KNh__y.mjs → observability-CB72eC4T.mjs} +2 -2
  149. package/dist/{ohttp-gateway-B5nCl4s3.mjs → ohttp-gateway-K9ToEft8.mjs} +4 -4
  150. package/dist/{organizations-DbeeWUL4.mjs → organizations-BllV7l_c.mjs} +18 -19
  151. package/dist/output-hFMAotFl.mjs +2 -0
  152. package/dist/package-oNVeacC9.mjs +2 -0
  153. package/dist/page-rules-BVmi-ZFW.mjs +35 -0
  154. package/dist/pages-5spcBpX1.mjs +48 -0
  155. package/dist/{pay-per-crawl-EHYtSKxX.mjs → pay-per-crawl-BgsdGcBi.mjs} +18 -18
  156. package/dist/{pay-per-use-wdEhl8k4.mjs → pay-per-use-CzmI1kEA.mjs} +16 -16
  157. package/dist/pipelines-CbtmLRxt.mjs +40 -0
  158. package/dist/{precursor-Dx8lN4UJ.mjs → precursor-Dk8YOKf_.mjs} +2 -2
  159. package/dist/previews-Bv1HMMtO.mjs +6 -0
  160. package/dist/progress-DE_G09u2.mjs +2 -0
  161. package/dist/project-settings-D_S-UC8I.mjs +3 -0
  162. package/dist/prompt-D274Im1O.mjs +4 -0
  163. package/dist/{queues-DgMc7Z6A.mjs → queues-DGCYUr4g.mjs} +26 -26
  164. package/dist/{r2-BpTVicIq.mjs → r2-DtCk-Nfi.mjs} +51 -51
  165. package/dist/{radar-DW-S1VUh.mjs → radar-1CwqOsMZ.mjs} +150 -150
  166. package/dist/raw-fetch-DhlyWQtk.mjs +2 -0
  167. package/dist/{ready-d0li0X6r.mjs → ready-CcoEA7M7.mjs} +2 -2
  168. package/dist/{realtime-DMKHLYF4.mjs → realtime-DFUxwIG5.mjs} +80 -81
  169. package/dist/registrar-Cl1snz8z.mjs +43 -0
  170. package/dist/{registrar-sandbox-lVLB1-mC.mjs → registrar-sandbox-Cne9BVCZ.mjs} +9 -9
  171. package/dist/{reporting-WX8P3Y0k.mjs → reporting-D9FC-Z-3.mjs} +7 -7
  172. package/dist/request-headers-Bopp5lH_.mjs +2 -0
  173. package/dist/request-tracers-CSSB9_aW.mjs +4 -0
  174. package/dist/{resource-sharing-B2ZSt_cA.mjs → resource-sharing-D8yuzJm7.mjs} +18 -18
  175. package/dist/{rules-CB0QQTB3.mjs → rules-DzmOQ3MB.mjs} +8 -8
  176. package/dist/rulesets-DsTGcgbc.mjs +42 -0
  177. package/dist/{rum-BZ_24qZU.mjs → rum-DrJLI93T.mjs} +14 -14
  178. package/dist/run-C5yPsiO2.mjs +2 -0
  179. package/dist/run-CXWkMU3x.mjs +2 -0
  180. package/dist/schema-CfZOW8Zw.mjs +2 -0
  181. package/dist/{schema-cache-5NkOj7Y3.mjs → schema-cache-CtqAs0PP.mjs} +1 -1
  182. package/dist/schema-flags-DO3kLYBu.mjs +4 -0
  183. package/dist/{scim-DchxaJfE.mjs → scim-0OufLKru.mjs} +8 -8
  184. package/dist/{secrets-store-oAft1cFE.mjs → secrets-store-BQeLzFxv.mjs} +11 -11
  185. package/dist/{security-insights-DMm0qg_m.mjs → security-insights-D2pj8-O-.mjs} +20 -20
  186. package/dist/{security-txt-CIt0494b.mjs → security-txt-SKtgW4n-.mjs} +4 -4
  187. package/dist/session-COdP8BXD.mjs +2 -0
  188. package/dist/shared-D_2KLpP3.mjs +2 -0
  189. package/dist/{signed-url-gNangfwc.mjs → signed-url-CcE2zQ4Y.mjs} +2 -2
  190. package/dist/smart-shield-Dod9Gs6T.mjs +22 -0
  191. package/dist/snippets-DrrdpLnS.mjs +18 -0
  192. package/dist/spawn-DNf-Ge8d.mjs +5 -0
  193. package/dist/{spectrum-DLYIHelC.mjs → spectrum-CHBGZbZF.mjs} +11 -11
  194. package/dist/{speed-DugG9Tm9.mjs → speed-vOlHyG3v.mjs} +11 -11
  195. package/dist/sql-BCuLxGSf.mjs +4 -0
  196. package/dist/src-ByCoEqOw.mjs +133 -0
  197. package/dist/{ssl-Bg4X3WGk.mjs → ssl-BA_dcVwF.mjs} +60 -62
  198. package/dist/startup-profile-CyQk_f_L.mjs +2 -0
  199. package/dist/{startup-profile-DZL2DC44.mjs → startup-profile-uh-F0HRS.mjs} +3 -3
  200. package/dist/state-B6r-b_-d.mjs +2 -0
  201. package/dist/{state-mr5ux1Nb.mjs → state-CTLznbVs.mjs} +1 -1
  202. package/dist/static-assets-DGDoaJf1.mjs +386 -0
  203. package/dist/stream-CzlqY8hq.mjs +89 -0
  204. package/dist/{tags-SKz2odE_.mjs → tags-BLeaslAb.mjs} +8 -8
  205. package/dist/telemetry-COlodX5Z.mjs +2 -0
  206. package/dist/{telemetry-B4zmCpT0.mjs → telemetry-DF7A5Bpk.mjs} +1 -1
  207. package/dist/{tenant-custom-nameservers-BhkhBerL.mjs → tenant-custom-nameservers-C5rh6jPf.mjs} +4 -4
  208. package/dist/{tenants-DD-GMq0K.mjs → tenants-CRirmhxS.mjs} +3 -3
  209. package/dist/{tools-KW_4hvzY.mjs → tools-BRjRgZnj.mjs} +1 -1
  210. package/dist/tunnels-nLfIWPYT.mjs +27 -0
  211. package/dist/{turnstile-DhSU_Xar.mjs → turnstile-CZjXtBCr.mjs} +10 -10
  212. package/dist/ui-dWsVmFCG.mjs +2 -0
  213. package/dist/{update-check-HltjTMDE.mjs → update-check-CXMdVBhW.mjs} +1 -1
  214. package/dist/{update-check-CRttabfu.mjs → update-check-D_Oky9-u.mjs} +1 -1
  215. package/dist/update-check-worker.mjs +1 -1
  216. package/dist/{url-normalization-K7gkmPvG.mjs → url-normalization-DTKgJHE8.mjs} +4 -4
  217. package/dist/url-scanner-9XW3zLaU.mjs +16 -0
  218. package/dist/user-Bk1BIqZ5.mjs +103 -0
  219. package/dist/{vectorize-BTBerJME.mjs → vectorize-CgOfmWYq.mjs} +15 -15
  220. package/dist/version-CcuBNjqg.mjs +2 -0
  221. package/dist/waiting-rooms-C3nTKfK9.mjs +52 -0
  222. package/dist/{web-assets-LHPQsrnY.mjs → web-assets-CWU3jrit.mjs} +29 -29
  223. package/dist/{web3-BsOio0Ae.mjs → web3-CRpQ5sl4.mjs} +13 -13
  224. package/dist/workers-BZMvamn0.mjs +39 -0
  225. package/dist/{workers-for-platforms-BGp6yr6P.mjs → workers-for-platforms-C7F2ev-5.mjs} +18 -18
  226. package/dist/{workers-vpc-D8lefWDo.mjs → workers-vpc-ztEKvWmq.mjs} +6 -6
  227. package/dist/{workflows-B-ZIG3y7.mjs → workflows-Dd88_Nqc.mjs} +24 -24
  228. package/dist/{wrangler-migration-6E6wT_LZ.mjs → wrangler-migration-BzMTJPdI.mjs} +294 -294
  229. package/dist/zaraz-BFK0p28R.mjs +22 -0
  230. package/dist/{zero-trust-BZDXM5r6.mjs → zero-trust-Cdjfp0Ie.mjs} +441 -455
  231. package/dist/{zones-B-UV_DGE.mjs → zones-DDn5jk6I.mjs} +51 -51
  232. package/package.json +19 -19
  233. package/dist/ai-gateway-Lj4On37s.mjs +0 -74
  234. package/dist/ai-search-BxyhS3X7.mjs +0 -74
  235. package/dist/alerting-r0G2X9y9.mjs +0 -52
  236. package/dist/analytics-C6bfqm-W.mjs +0 -17
  237. package/dist/auth-B-h0BHg7.mjs +0 -2
  238. package/dist/auth-B6tswVxH.mjs +0 -2
  239. package/dist/auth-clmqFEWU.mjs +0 -7
  240. package/dist/body-parser-DoewLePl.mjs +0 -2
  241. package/dist/brand-protection-kv1ba80i.mjs +0 -14
  242. package/dist/browser-run-D-vRoZmf.mjs +0 -40
  243. package/dist/build-BzJGqb2o.mjs +0 -2
  244. package/dist/builds-BbxINHRP.mjs +0 -64
  245. package/dist/cf-BQ_LRiut.mjs +0 -18
  246. package/dist/chunk-SOBRPAPT-QTjnHSNs.mjs +0 -363
  247. package/dist/cli-B7vslRfu.mjs +0 -4
  248. package/dist/cloudforce-one-DWBPQDA3.mjs +0 -318
  249. package/dist/command-AVwd7XjE.mjs +0 -2
  250. package/dist/command-B87T_f2f.mjs +0 -2
  251. package/dist/command-CEHhi3t0.mjs +0 -2
  252. package/dist/command-CYmQE79n.mjs +0 -2
  253. package/dist/command-Ce8CVLth.mjs +0 -2
  254. package/dist/command-CqDudQZs.mjs +0 -2
  255. package/dist/command-D4YcwpVp.mjs +0 -2
  256. package/dist/command-D9Qyi1B0.mjs +0 -2
  257. package/dist/command-Dl9ICrRK.mjs +0 -2
  258. package/dist/command-DtCSe8Hy.mjs +0 -2
  259. package/dist/command-DwzVtmb3.mjs +0 -2
  260. package/dist/command-wtBubtZ4.mjs +0 -2
  261. package/dist/containers-B06OGOEB.mjs +0 -380
  262. package/dist/csam-scanner-BV4bHq8v.mjs +0 -8
  263. package/dist/d1-nJCOJZb8.mjs +0 -50
  264. package/dist/deploy-DJMnWFNk.mjs +0 -2
  265. package/dist/deploy-context-YCW3eqP1.mjs +0 -56
  266. package/dist/deploy-input-CQLBXFEB.mjs +0 -2
  267. package/dist/dev-GsYHvMah.mjs +0 -4
  268. package/dist/dialog-D5lus4M4.mjs +0 -2
  269. package/dist/discover-6kAmVMPp.mjs +0 -2
  270. package/dist/discover-C06Syc2B.mjs +0 -2
  271. package/dist/docs-CRc_WOXh.mjs +0 -3
  272. package/dist/email-auth-ptdqNSTZ.mjs +0 -6
  273. package/dist/email-domains-uL22-zRY.mjs +0 -14
  274. package/dist/email-routing-CV43rMJC.mjs +0 -44
  275. package/dist/errors-VG1mgwJl.mjs +0 -11
  276. package/dist/field-extractors-jcZ_bAGc.mjs +0 -8
  277. package/dist/generate-CeeWW3eX.mjs +0 -3
  278. package/dist/generate-D6V4Q58z.mjs +0 -2
  279. package/dist/gt-BQkaDQDq.mjs +0 -3
  280. package/dist/healthchecks-BA1fmzTm.mjs +0 -20
  281. package/dist/init-EVsjBrOz.mjs +0 -43
  282. package/dist/leaked-credential-checks-EzT4TTjO.mjs +0 -16
  283. package/dist/load-balancers-Cb3VkSfc.mjs +0 -84
  284. package/dist/local-D5Vq6ooZ.mjs +0 -2
  285. package/dist/local-runtime-BZjgkacr.mjs +0 -2
  286. package/dist/log-DZfik9Jk.mjs +0 -2
  287. package/dist/login-DRJugxya.mjs +0 -2
  288. package/dist/managed-transforms-CjkjLzMC.mjs +0 -8
  289. package/dist/o11y-ySxrnP1Z.mjs +0 -88
  290. package/dist/oauth-CFVUl-Wv.mjs +0 -4
  291. package/dist/output-BZQEl3mK.mjs +0 -2
  292. package/dist/package-B7RgwuFR.mjs +0 -2
  293. package/dist/page-rules-DRw763O1.mjs +0 -38
  294. package/dist/pages-DfQnxiTk.mjs +0 -48
  295. package/dist/pipelines-DbyrI6F4.mjs +0 -40
  296. package/dist/previews-DEVNSip2.mjs +0 -6
  297. package/dist/progress-yvPscjYg.mjs +0 -2
  298. package/dist/project-settings-nBMEx1f-.mjs +0 -3
  299. package/dist/prompt-CEpZ-lQZ.mjs +0 -4
  300. package/dist/raw-fetch-Cl5spWC3.mjs +0 -2
  301. package/dist/registrar-D23gfKBi.mjs +0 -43
  302. package/dist/request-headers-C0FpeBhz.mjs +0 -2
  303. package/dist/request-tracers-qd7XOAka.mjs +0 -4
  304. package/dist/rulesets-DmqwixUC.mjs +0 -42
  305. package/dist/run-BOKI1uWa.mjs +0 -2
  306. package/dist/run-DBqOjD1P.mjs +0 -2
  307. package/dist/schema-Dj9STsWI.mjs +0 -2
  308. package/dist/schema-flags-CXm9iIv6.mjs +0 -4
  309. package/dist/session-vzNfUhPl.mjs +0 -2
  310. package/dist/shared-MK-_lkbn.mjs +0 -2
  311. package/dist/smart-shield-Boy_qbqd.mjs +0 -22
  312. package/dist/snippets-DdoDYXW-.mjs +0 -18
  313. package/dist/spawn-B5F4OIHG.mjs +0 -5
  314. package/dist/sql-Bb56llsb.mjs +0 -4
  315. package/dist/src-BoSDeQ9m.mjs +0 -133
  316. package/dist/startup-profile-DQVkZZpb.mjs +0 -2
  317. package/dist/state-DW3QZtfh.mjs +0 -2
  318. package/dist/stream-BuZYDbNR.mjs +0 -89
  319. package/dist/telemetry-DkDUr4KK.mjs +0 -2
  320. package/dist/tunnels-D90ztENM.mjs +0 -27
  321. package/dist/ui-xjCox-gU.mjs +0 -2
  322. package/dist/url-scanner-BRdWwka4.mjs +0 -16
  323. package/dist/user-Cmb1_Wu5.mjs +0 -103
  324. package/dist/version-6Bpy6Bgt.mjs +0 -2
  325. package/dist/waiting-rooms-LymmKIGr.mjs +0 -52
  326. package/dist/workers-BnLiOjZf.mjs +0 -39
  327. package/dist/workers-builds-sKpITeRk.mjs +0 -14
  328. package/dist/zaraz-BBKki5WS.mjs +0 -22
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-DIJ7SIKC.mjs";import{i as n,n as r}from"./auth-B-h0BHg7.mjs";import{a as i,i as a,t as o}from"./context-BY1Eh_Qe.mjs";import{t as s}from"./output-BZQEl3mK.mjs";import{t as c}from"./dry-run-kJbjn4kG.mjs";import{t as l}from"./progress-yvPscjYg.mjs";import{t as u}from"./run-BOKI1uWa.mjs";import"./telemetry-DkDUr4KK.mjs";import{a as d,n as f,t as p}from"./body-parser-DoewLePl.mjs";import{n as m,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g,n as _}from"./prompt-CEpZ-lQZ.mjs";import{n as v,t as y}from"./raw-fetch-Cl5spWC3.mjs";var ee={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/dnssec`};function b(e){return e.usage(`$0 dns dnssec delete
2
+ import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-DA1PHaHi.mjs";import{t as r}from"./dry-run-qsnRlRk6.mjs";import{a as i,i as a,t as o}from"./context-BGm5_wTT.mjs";import{t as s}from"./output-hFMAotFl.mjs";import{t as c}from"./progress-DE_G09u2.mjs";import{a as l,n as u}from"./prompt-D274Im1O.mjs";import{t as d}from"./run-CXWkMU3x.mjs";import"./telemetry-COlodX5Z.mjs";import{o as f,r as p,t as m}from"./body-parser-HN91kAf0.mjs";import{n as h,t as g}from"./input-validation-D7z60HJH.mjs";import{n as ee,t as te}from"./raw-fetch-DhlyWQtk.mjs";import{t as _}from"./local-B3zt9PXR.mjs";var ne={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/dnssec`};function re(e){return e.usage(`$0 dns dnssec delete
3
3
 
4
- Delete DNSSEC.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const x={command:`delete`,describe:`Delete DNSSEC records`,builder:b,handler:async e=>u({command:`dns dnssec delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){c({command:`cf dns dnssec delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dnssec`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,!await _({force:!!e.force}))return;let i=await l(`Deleting`,async()=>t.send(ee,{zone_id:n}));s(i,{successLabel:`Deleted`})})};var S={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/dnssec`,body:`json`};function te(e){return e.usage(`$0 dns dnssec edit
4
+ Delete DNSSEC.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const ie={command:`delete`,describe:`Delete DNSSEC records`,builder:re,handler:async e=>d({command:`dns dnssec delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){r({command:`cf dns dnssec delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dnssec`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),i=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=i,!await u({force:!!e.force}))return;let o=await c(`Deleting`,async()=>t.send(ne,{zone_id:i}));s(o,{successLabel:`Deleted`})})};var v={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/dnssec`,body:`json`};function ae(e){return e.usage(`$0 dns dnssec edit
5
5
 
6
6
  Enable or disable DNSSEC.`).option(`dnssec-multi-signer`,{type:`boolean`,description:`If true, multi-signer DNSSEC is enabled on the zone, allowing multiple
7
7
  providers to serve a DNSSEC-signed zone at the same time.
@@ -19,134 +19,124 @@ NSEC3 records when transferring in from an external provider.
19
19
  If dnssec_presigned is instead set to false (default), NSEC3 records will be
20
20
  generated and signed at request time.
21
21
 
22
- See [DNSSEC with NSEC3](https://developers.cloudflare.com/dns/dnssec/enable-nsec3/) for details.`}).option(`status`,{type:`string`,description:`Status of DNSSEC, based on user-desired state and presence of necessary records.`,choices:[`active`,`disabled`]}).coerce(`status`,e=>m(e,`status`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ne={command:`edit`,describe:`Edit DNSSEC Status`,builder:te,handler:async e=>u({command:`dns dnssec edit`,classification:{safeFlags:[`dnssec-multi-signer`,`dnssec-presigned`,`dnssec-use-nsec3`,`status`,`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns dnssec edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dnssec`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({dnssec_multi_signer:e[`dnssec-multi-signer`],dnssec_presigned:e[`dnssec-presigned`],dnssec_use_nsec3:e[`dnssec-use-nsec3`],status:e.status}):f(e.body)});return}let t=e.body===void 0?void 0:f(e.body),n=await r(e),i=await a({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=i,e.body!==void 0){let e=t,r=await l(`Updating`,async()=>n.send(S,{body:e,zone_id:i}));s(r,{successLabel:`Updated`});return}let o=p({dnssec_multi_signer:e[`dnssec-multi-signer`],dnssec_presigned:e[`dnssec-presigned`],dnssec_use_nsec3:e[`dnssec-use-nsec3`],status:e.status}),u=await l(`Updating`,async()=>n.send(S,{body:o,zone_id:i}));s(u,{successLabel:`Updated`})})};var re={method:`GET`,path:t=>e`/zones/${t.zone_id}/dnssec`};function ie(e){return e.usage(`$0 dns dnssec get
22
+ See [DNSSEC with NSEC3](https://developers.cloudflare.com/dns/dnssec/enable-nsec3/) for details.`}).option(`status`,{type:`string`,description:`Status of DNSSEC, based on user-desired state and presence of necessary records.`,choices:[`active`,`disabled`]}).coerce(`status`,e=>h(e,`status`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const oe={command:`edit`,describe:`Edit DNSSEC Status`,builder:ae,handler:async e=>d({command:`dns dnssec edit`,classification:{safeFlags:[`dnssec-multi-signer`,`dnssec-presigned`,`dnssec-use-nsec3`,`status`,`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf dns dnssec edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dnssec`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?m({dnssec_multi_signer:e[`dnssec-multi-signer`],dnssec_presigned:e[`dnssec-presigned`],dnssec_use_nsec3:e[`dnssec-use-nsec3`],status:e.status}):p(e.body)});return}let t=e.body===void 0?void 0:p(e.body),i=await n(e),o=await a({zone:e.zone},i,{quiet:e.quiet});if(e.zoneId=o,e.body!==void 0){let e=t,n=await c(`Updating`,async()=>i.send(v,{body:e,zone_id:o}));s(n,{successLabel:`Updated`});return}let l=m({dnssec_multi_signer:e[`dnssec-multi-signer`],dnssec_presigned:e[`dnssec-presigned`],dnssec_use_nsec3:e[`dnssec-use-nsec3`],status:e.status}),u=await c(`Updating`,async()=>i.send(v,{body:l,zone_id:o}));s(u,{successLabel:`Updated`})})};var se={method:`GET`,path:t=>e`/zones/${t.zone_id}/dnssec`};function ce(e){return e.usage(`$0 dns dnssec get
23
23
 
24
- Details about DNSSEC status and configuration.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ae={command:`get`,describe:`DNSSEC Details`,builder:ie,handler:async e=>u({command:`dns dnssec get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns dnssec get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dnssec`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n;let i=await l(`Loading`,async()=>t.send(re,{zone_id:n}));s(i,{successLabel:`Loaded`})})};var oe={method:`GET`,path:t=>e`/zones/${t.zone_id}/dnssec/zsk`};function se(e){return e.usage(`$0 dns dnssec list zsks
24
+ Details about DNSSEC status and configuration.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const le={command:`get`,describe:`DNSSEC Details`,builder:ce,handler:async e=>d({command:`dns dnssec get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf dns dnssec get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dnssec`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),i=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=i;let o=await c(`Loading`,async()=>t.send(se,{zone_id:i}));s(o,{successLabel:`Loaded`})})};var ue={method:`GET`,path:t=>e`/zones/${t.zone_id}/dnssec/zsk`};function de(e){return e.usage(`$0 dns dnssec list zsks
25
25
 
26
- List the Zone Signing Keys (ZSKs) that DNSSEC uses for the zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ce={command:`zsks`,describe:`List DNSSEC ZSKs`,builder:se,handler:async e=>u({command:`dns dnssec list zsks`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns dnssec list zsks`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dnssec/zsk`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n;let i=await l(`Loading`,async()=>t.send(oe,{zone_id:n}));s(i,{successLabel:`Loaded`})})},le={command:`list`,describe:`Operations for dnssec.list`,builder:e=>e.command(ce).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ue={command:`dnssec`,describe:`Operations for dnssec`,builder:e=>e.command(x).command(ne).command(ae).command(le).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var de={method:`GET`,path:t=>e`/v2/${t.domain}/settings`,errors:{404:`NotFoundError`,500:`InternalServerError`}};function fe(e){return e.usage(`$0 dns domainconnect get-domain-settings <domain>
26
+ List the Zone Signing Keys (ZSKs) that DNSSEC uses for the zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const fe={command:`zsks`,describe:`List DNSSEC ZSKs`,builder:de,handler:async e=>d({command:`dns dnssec list zsks`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf dns dnssec list zsks`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dnssec/zsk`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),i=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=i;let o=await c(`Loading`,async()=>t.send(ue,{zone_id:i}));s(o,{successLabel:`Loaded`})})},pe={command:`list`,describe:`Operations for dnssec.list`,builder:e=>e.command(fe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},me={command:`dnssec`,describe:`Operations for dnssec`,builder:e=>e.command(ie).command(oe).command(le).command(pe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var y={method:`POST`,path:t=>e`/zones/${t.zone_id}/dns_records/batch`,query:[`include_shadow_metadata`],body:`json`};function he(e){return e.usage(`$0 dns records batch
27
27
 
28
- Checks whether a domain is in Quicksilver and returns its settings.`).positional(`domain`,{type:`string`,description:`Domain name.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const pe={command:`get-domain-settings <domain>`,describe:`Provide settings if domain is served by Cloudflare`,builder:fe,handler:async e=>u({command:`dns domainconnect get-domain-settings`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns domainconnect get-domain-settings`,method:`GET`,url:`https://api.cloudflare.com/client/v4/v2/${e.domain==null?`<domain>`:encodeURIComponent(String(e.domain))}/settings`,pathParams:{domain:String(e.domain??``)},bodyKind:`none`});return}let t=await r(e),n=await l(`Loading`,async()=>t.send(de,{domain:e.domain}));s(n,{successLabel:`Loaded`})})};function me(e){return e.usage(`$0 dns domainconnect get-heartbeat
28
+ Send a Batch of DNS Record API calls to be executed together. Notes: - Although Cloudflare will execute the batched operations in a single database transaction, Cloudflare's distributed KV store must treat each record change as a single key-value pair. This means that the propagation of changes is not atomic. See [the documentation](https://developers.cloudflare.com/dns/manage-dns-records/how-to/batch-record-changes/ "Batch DNS records") for more information. - The operations you specify within the /batch request body are always executed in the following order: - Deletes - Patches - Puts - Posts`).option(`include-shadow-metadata`,{type:`boolean`,description:"Whether to include shadow metadata in the `meta` field of each record in the response. See [Shadowed records](https://developers.cloudflare.com/dns/manage-dns-records/reference/shadowed-records)."}).option(`deletes`,{type:`string`,description:`The deletes field. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"id"?: string}]. ? marks optional keys.`}).option(`patches`,{type:`string`,description:`The patches field. Provide as a JSON array of objects or @path/to/file.json. Shape: [({"id": string} & (({"comment"?: string, "name"?: string, "proxied"?: boolean, "settings"?: {...}, "tags"?: [string], ...more} & {"content"?: string, "private_routing"?: boolean, "type"?: "A"}) | ...more))]. ? marks optional keys.`}).option(`posts`,{type:`string`,description:`The posts field. Provide as a JSON array of objects or @path/to/file.json. Shape: [(({"comment"?: string, "name"?: string, "proxied"?: boolean, "settings"?: {...}, "tags"?: [string], ...more} & {"content"?: string, "private_routing"?: boolean, "type"?: "A"}) | ...more)]. ? marks optional keys.`}).option(`puts`,{type:`string`,description:`The puts field. Provide as a JSON array of objects or @path/to/file.json. Shape: [({"id": string} & (({"comment"?: string, "name"?: string, "proxied"?: boolean, "settings"?: {...}, "tags"?: [string], ...more} & {"content"?: string, "private_routing"?: boolean, "type"?: "A"}) | ...more))]. ? marks optional keys.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ge={command:`batch`,describe:`Batch DNS Records`,builder:he,handler:async e=>d({command:`dns records batch`,classification:{safeFlags:[`include-shadow-metadata`,`dry-run`]}},e,async()=>{let t={include_shadow_metadata:e[`include-shadow-metadata`]};if(e.dryRun){r({command:`cf dns records batch`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records/batch`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`json`,body:e.body===void 0?m({deletes:f(e.deletes,`deletes`),patches:f(e.patches,`patches`),posts:f(e.posts,`posts`),puts:f(e.puts,`puts`)}):p(e.body)});return}let i=e.body===void 0?void 0:p(e.body),o=await n(e),l=await a({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=l,e.body!==void 0){let e=i;new URLSearchParams(Object.entries(t).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let n=await c(`Creating`,async()=>o.send(y,{body:e,zone_id:l,...t}));s(n,{successLabel:`Created`});return}let u=m({deletes:f(e.deletes,`deletes`),patches:f(e.patches,`patches`),posts:f(e.posts,`posts`),puts:f(e.puts,`puts`)});new URLSearchParams(Object.entries(t).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let d=await c(`Creating`,async()=>o.send(y,{body:u,zone_id:l,...t}));s(d,{successLabel:`Created`})})};var _e={method:`POST`,path:t=>e`/zones/${t.zone_id}/dns_records`,query:[`include_shadow_metadata`],body:`json`};function b(e){return e.usage(`$0 dns records create
29
29
 
30
- Used by Kubernetes readiness and liveness probes, and CI builder by executing test/staging.sh.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const he={command:`get-heartbeat`,describe:`Heartbeat response`,builder:me,handler:async e=>u({command:`dns domainconnect get-heartbeat`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns domainconnect get-heartbeat`,method:`GET`,url:`https://api.cloudflare.com/client/v4/_heartbeat`,pathParams:{},bodyKind:`none`});return}await r(e);let t=await l(`Loading`,async()=>y(`/_heartbeat`,{method:`GET`,local:e.local===!0,persistTo:e.persistTo}));v(t.toString(`utf-8`))})};var ge={method:`GET`,path:t=>e`/v2/provconf/${t.provider}/${t.service}/${t.account}`,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`}};function _e(e){return e.usage(`$0 dns domainconnect get-provider-configuration <account>
30
+ Create a new DNS record for a zone. Notes: - A/AAAA records cannot exist on the same name as CNAME records. - NS records cannot exist on the same name as any other record type. - Domain names are always represented in Punycode, even if Unicode characters were used when creating the record.`).option(`include-shadow-metadata`,{type:`boolean`,description:"Whether to include shadow metadata in the `meta` field of each record in the response. See [Shadowed records](https://developers.cloudflare.com/dns/manage-dns-records/reference/shadowed-records)."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const x={command:`create`,describe:`Create DNS Record`,builder:b,handler:async e=>d({command:`dns records create`,classification:{safeFlags:[`include-shadow-metadata`,`dry-run`]}},e,async()=>{let t={include_shadow_metadata:e[`include-shadow-metadata`]};if(e.dryRun){r({command:`cf dns records create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`json`,body:e.body===void 0?void 0:p(e.body)});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`);let i=e.body===void 0?void 0:p(e.body),o=await n(e),l=await a({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=l,e.body!==void 0){let e=i;new URLSearchParams(Object.entries(t).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let n=await c(`Creating`,async()=>o.send(_e,{body:e,zone_id:l,...t}));s(n,{successLabel:`Created`})}})};var S={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/dns_records/${t.dns_record_id}`};function C(e){return e.usage(`$0 dns records delete <dns-record-id>
31
31
 
32
- Provides Stratus with extra information about domain connect provider(s).`).positional(`account`,{type:`string`,description:`Account ID.`,demandOption:!0}).option(`provider`,{type:`string`,description:`Provider ID.`,demandOption:!0}).option(`service`,{type:`string`,description:`Service ID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const C={command:`get-provider-configuration <account>`,describe:`Serve a provider configuration`,builder:_e,handler:async e=>u({command:`dns domainconnect get-provider-configuration`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns domainconnect get-provider-configuration`,method:`GET`,url:`https://api.cloudflare.com/client/v4/v2/provconf/${e.provider==null?`<provider>`:encodeURIComponent(String(e.provider))}/${e.service==null?`<service>`:encodeURIComponent(String(e.service))}/${e.account==null?`<account>`:encodeURIComponent(String(e.account))}`,pathParams:{provider:String(e.provider??``),service:String(e.service??``),account:String(e.account??``)},bodyKind:`none`});return}let t=await r(e),n=await l(`Loading`,async()=>t.send(ge,{provider:e.provider,service:e.service,account:e.account}));s(n,{successLabel:`Loaded`})})};var w={method:`GET`,path:t=>e`/v2/domainTemplates/providers/${t.provider}/services/${t.service}`,query:[`dump`],errors:{404:`NotFoundError`}};function T(e){return e.usage(`$0 dns domainconnect get-provider-template <service>
32
+ Permanently removes a DNS record from the zone.`).positional(`dns-record-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const w={command:`delete <dns-record-id>`,describe:`Delete DNS Record`,builder:C,handler:async e=>d({command:`dns records delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){r({command:`cf dns records delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records/${e[`dns-record-id`]==null?`<dns-record-id>`:encodeURIComponent(String(e[`dns-record-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"dns-record-id":String(e[`dns-record-id`]??``)},bodyKind:`none`});return}let t=await n(e),i=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=i,!await u({force:!!e.force}))return;let o=await c(`Deleting`,async()=>t.send(S,{zone_id:i,dns_record_id:e[`dns-record-id`]}));s(o,{successLabel:`Deleted`})})};var T={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/dns_records/${t.dns_record_id}`,query:[`include_shadow_metadata`],body:`json`};function E(e){return e.usage(`$0 dns records edit <dns-record-id>
33
33
 
34
- Providers are the external parties that are configured to interact with Cloudflare.`).positional(`service`,{type:`string`,description:`Service name.`,demandOption:!0}).option(`provider`,{type:`string`,description:`Provider name.`,demandOption:!0}).option(`dump`,{type:`string`,description:`Dump raw template.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`get-provider-template <service>`,describe:`Serve a provider template`,builder:T,handler:async e=>u({command:`dns domainconnect get-provider-template`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={dump:e.dump};if(e.dryRun){c({command:`cf dns domainconnect get-provider-template`,method:`GET`,url:`https://api.cloudflare.com/client/v4/v2/domainTemplates/providers/${e.provider==null?`<provider>`:encodeURIComponent(String(e.provider))}/services/${e.service==null?`<service>`:encodeURIComponent(String(e.service))}`,pathParams:{provider:String(e.provider??``),service:String(e.service??``)},query:t,bodyKind:`none`});return}let n=await r(e),i=await l(`Loading`,async()=>n.send(w,{provider:e.provider,service:e.service,...t}));s(i,{successLabel:`Loaded`})})};var D={method:`POST`,path:()=>`/v1/verify`,body:`json`,response:!1,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`,502:`BadGatewayError`}};function O(e){return e.usage(`$0 dns domainconnect post-verify
34
+ Update an existing DNS record. Notes: - A/AAAA records cannot exist on the same name as CNAME records. - NS records cannot exist on the same name as any other record type. - Domain names are always represented in Punycode, even if Unicode characters were used when creating the record.`).positional(`dns-record-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`include-shadow-metadata`,{type:`boolean`,description:"Whether to include shadow metadata in the `meta` field of each record in the response. See [Shadowed records](https://developers.cloudflare.com/dns/manage-dns-records/reference/shadowed-records)."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const D={command:`edit <dns-record-id>`,describe:`Update DNS Record`,builder:E,handler:async e=>d({command:`dns records edit`,classification:{safeFlags:[`include-shadow-metadata`,`dry-run`]}},e,async()=>{let t={include_shadow_metadata:e[`include-shadow-metadata`]};if(e.dryRun){r({command:`cf dns records edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records/${e[`dns-record-id`]==null?`<dns-record-id>`:encodeURIComponent(String(e[`dns-record-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"dns-record-id":String(e[`dns-record-id`]??``)},query:t,bodyKind:`json`,body:e.body===void 0?void 0:p(e.body)});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`);let i=e.body===void 0?void 0:p(e.body),o=await n(e),l=await a({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=l,e.body!==void 0){let n=i;new URLSearchParams(Object.entries(t).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let r=await c(`Updating`,async()=>o.send(T,{body:n,zone_id:l,dns_record_id:e[`dns-record-id`],...t}));s(r,{successLabel:`Updated`})}})};function O(e){return e.usage(`$0 dns records export
35
35
 
36
- Validates a Domain Connect signed request using DNS TXT public keys.`).option(`domain`,{type:`string`,description:`The domain field`}).option(`hash`,{type:`string`,description:`The hash field`}).option(`sig`,{type:`string`,description:`The sig field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const k={command:`post-verify`,describe:`Request domain connect validation`,builder:O,handler:async e=>u({command:`dns domainconnect post-verify`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns domainconnect post-verify`,method:`POST`,url:`https://api.cloudflare.com/client/v4/v1/verify`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({domain:m(e.domain,`domain`,`text`),hash:m(e.hash,`hash`,`text`),sig:m(e.sig,`sig`,`text`)}):f(e.body)});return}let t=e.body===void 0?void 0:f(e.body),n=await r(e);if(e.body!==void 0){let e=t,r=await l(`Creating`,async()=>n.send(D,{body:e}));s(r,{successLabel:`Created`});return}let i=p({domain:m(e.domain,`domain`,`text`),hash:m(e.hash,`hash`,`text`),sig:m(e.sig,`sig`,`text`)}),a=await l(`Creating`,async()=>n.send(D,{body:i}));s(a,{successLabel:`Created`})})},A={command:`domainconnect`,describe:`Operations for domainconnect`,builder:e=>e.command(pe).command(he).command(C).command(E).command(k).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var j={method:`POST`,path:t=>e`/zones/${t.zone_id}/dns_records/batch`,query:[`include_shadow_metadata`],body:`json`};function M(e){return e.usage(`$0 dns records batch
36
+ You can export your [BIND config](https://en.wikipedia.org/wiki/Zone_file "Zone file") through this endpoint. See [the documentation](https://developers.cloudflare.com/dns/manage-dns-records/how-to/import-and-export/ "Import and export records") for more information.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const k={command:`export`,describe:`Export DNS Records`,builder:O,handler:async e=>d({command:`dns records export`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf dns records export`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records/export`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e);e.zoneId=await a({zone:e.zone},t,{quiet:e.quiet});let i=await c(`Loading`,async()=>te(`/zones/${e.zoneId}/dns_records/export`,{method:`GET`,local:e.local===!0,persistTo:e.persistTo}));ee(i.toString(`utf-8`))})};var A={method:`GET`,path:t=>e`/zones/${t.zone_id}/dns_records/${t.dns_record_id}`,query:[`include_shadow_metadata`]};function j(e){return e.usage(`$0 dns records get <dns-record-id>
37
37
 
38
- Send a Batch of DNS Record API calls to be executed together. Notes: - Although Cloudflare will execute the batched operations in a single database transaction, Cloudflare's distributed KV store must treat each record change as a single key-value pair. This means that the propagation of changes is not atomic. See [the documentation](https://developers.cloudflare.com/dns/manage-dns-records/how-to/batch-record-changes/ "Batch DNS records") for more information. - The operations you specify within the /batch request body are always executed in the following order: - Deletes - Patches - Puts - Posts`).option(`include-shadow-metadata`,{type:`boolean`,description:"Whether to include shadow metadata in the `meta` field of each record in the response. See [Shadowed records](https://developers.cloudflare.com/dns/manage-dns-records/reference/shadowed-records)."}).option(`deletes`,{type:`string`,description:`The deletes field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`patches`,{type:`string`,description:`The patches field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`posts`,{type:`string`,description:`The posts field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`puts`,{type:`string`,description:`The puts field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const N={command:`batch`,describe:`Batch DNS Records`,builder:M,handler:async e=>u({command:`dns records batch`,classification:{safeFlags:[`include-shadow-metadata`,`dry-run`]}},e,async()=>{let t={include_shadow_metadata:e[`include-shadow-metadata`]};if(e.dryRun){c({command:`cf dns records batch`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records/batch`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`json`,body:e.body===void 0?p({deletes:d(e.deletes,`deletes`),patches:d(e.patches,`patches`),posts:d(e.posts,`posts`),puts:d(e.puts,`puts`)}):f(e.body)});return}let n=e.body===void 0?void 0:f(e.body),i=await r(e),o=await a({zone:e.zone},i,{quiet:e.quiet});if(e.zoneId=o,e.body!==void 0){let e=n;new URLSearchParams(Object.entries(t).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let r=await l(`Creating`,async()=>i.send(j,{body:e,zone_id:o,...t}));s(r,{successLabel:`Created`});return}let u=p({deletes:d(e.deletes,`deletes`),patches:d(e.patches,`patches`),posts:d(e.posts,`posts`),puts:d(e.puts,`puts`)});new URLSearchParams(Object.entries(t).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let m=await l(`Creating`,async()=>i.send(j,{body:u,zone_id:o,...t}));s(m,{successLabel:`Created`})})};var P={method:`POST`,path:t=>e`/zones/${t.zone_id}/dns_records`,query:[`include_shadow_metadata`],body:`json`};function F(e){return e.usage(`$0 dns records create
38
+ Retrieves details for a specific DNS record in the zone.`).positional(`dns-record-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`include-shadow-metadata`,{type:`boolean`,description:"Whether to include shadow metadata in the `meta` field of each record in the response. See [Shadowed records](https://developers.cloudflare.com/dns/manage-dns-records/reference/shadowed-records)."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const M={command:`get <dns-record-id>`,describe:`DNS Record Details`,builder:j,handler:async e=>d({command:`dns records get`,classification:{safeFlags:[`include-shadow-metadata`,`dry-run`]}},e,async()=>{let t={include_shadow_metadata:e[`include-shadow-metadata`]};if(e.dryRun){r({command:`cf dns records get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records/${e[`dns-record-id`]==null?`<dns-record-id>`:encodeURIComponent(String(e[`dns-record-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"dns-record-id":String(e[`dns-record-id`]??``)},query:t,bodyKind:`none`});return}let i=await n(e),o=await a({zone:e.zone},i,{quiet:e.quiet});e.zoneId=o;let l=await c(`Loading`,async()=>i.send(A,{zone_id:o,dns_record_id:e[`dns-record-id`],...t}));s(l,{successLabel:`Loaded`})})};function N(e){return e.usage(`$0 dns records import
39
39
 
40
- Create a new DNS record for a zone. Notes: - A/AAAA records cannot exist on the same name as CNAME records. - NS records cannot exist on the same name as any other record type. - Domain names are always represented in Punycode, even if Unicode characters were used when creating the record.`).option(`include-shadow-metadata`,{type:`boolean`,description:"Whether to include shadow metadata in the `meta` field of each record in the response. See [Shadowed records](https://developers.cloudflare.com/dns/manage-dns-records/reference/shadowed-records)."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const I={command:`create`,describe:`Create DNS Record`,builder:F,handler:async e=>u({command:`dns records create`,classification:{safeFlags:[`include-shadow-metadata`,`dry-run`]}},e,async()=>{let t={include_shadow_metadata:e[`include-shadow-metadata`]};if(e.dryRun){c({command:`cf dns records create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`json`,body:e.body===void 0?void 0:f(e.body)});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`);let n=e.body===void 0?void 0:f(e.body),i=await r(e),o=await a({zone:e.zone},i,{quiet:e.quiet});if(e.zoneId=o,e.body!==void 0){let e=n;new URLSearchParams(Object.entries(t).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let r=await l(`Creating`,async()=>i.send(P,{body:e,zone_id:o,...t}));s(r,{successLabel:`Created`})}})};var ve={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/dns_records/${t.dns_record_id}`};function ye(e){return e.usage(`$0 dns records delete <dns-record-id>
40
+ You can upload your [BIND config](https://en.wikipedia.org/wiki/Zone_file "Zone file") through this endpoint. It assumes that cURL is called from a location with bind_config.txt (valid BIND config) present. See [the documentation](https://developers.cloudflare.com/dns/manage-dns-records/how-to/import-and-export/ "Import and export records") for more information.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`}).option(`proxied`,{type:`string`,description:"Whether or not proxiable records should receive the performance and security benefits of Cloudflare. The value should be either `true` or `false`."})}const P={command:`import`,describe:`Import DNS Records`,builder:N,handler:async e=>d({command:`dns records import`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf dns records import`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records/import`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`multipart`,body:{body:e.body,file:e.file,proxied:e.proxied}});return}if(e.body===void 0&&e.file===void 0&&e.proxied===void 0)throw Error(`--body or --file is required for this command. Pass --body '<value>' or --file path/to/file.`);let i=await n(e);if(e.zoneId=await a({zone:e.zone},i,{quiet:e.quiet}),e.file!==void 0||e.body!==void 0||e.proxied!==void 0){let n=new FormData;if(e.file!==void 0){let t=g(e.file);n.append(`file`,new Blob([t]),e.file.split(/[\\/]/).filter(Boolean).pop())}else e.body!==void 0&&n.append(`file`,e.body);e.proxied!==void 0&&n.append(`proxied`,String(h(e.proxied,`proxied`,`text`)??``));let r=await c(`Creating`,async()=>t(i,`POST`,`/zones/${e.zoneId}/dns_records/import`,{body:n}));s(r,{successLabel:`Created`})}else if(e.body!==void 0){let n=h(e.body,`body`,`binary`),r=await c(`Creating`,async()=>t(i,`POST`,`/zones/${e.zoneId}/dns_records/import`,{body:n,headers:{"Content-Type":`multipart/form-data`}}));s(r,{successLabel:`Created`})}})};var F={method:`GET`,path:t=>e`/zones/${t.zone_id}/dns_records`,query:/* @__PURE__ */ `name,name.exact,name.contains,name.startswith,name.endswith,type,content,content.exact,content.contains,content.startswith,content.endswith,proxied,match,comment,comment.present,comment.absent,comment.exact,comment.contains,comment.startswith,comment.endswith,tag,tag.present,tag.absent,tag.exact,tag.contains,tag.startswith,tag.endswith,search,tag_match,page,per_page,order,direction,include_shadow_metadata,shadowed_by_name,shadowing_name`.split(`,`)};function I(e){return e.usage(`$0 dns records list
41
41
 
42
- Permanently removes a DNS record from the zone.`).positional(`dns-record-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const be={command:`delete <dns-record-id>`,describe:`Delete DNS Record`,builder:ye,handler:async e=>u({command:`dns records delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){c({command:`cf dns records delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records/${e[`dns-record-id`]==null?`<dns-record-id>`:encodeURIComponent(String(e[`dns-record-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"dns-record-id":String(e[`dns-record-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,!await _({force:!!e.force}))return;let i=await l(`Deleting`,async()=>t.send(ve,{zone_id:n,dns_record_id:e[`dns-record-id`]}));s(i,{successLabel:`Deleted`})})};var xe={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/dns_records/${t.dns_record_id}`,query:[`include_shadow_metadata`],body:`json`};function Se(e){return e.usage(`$0 dns records edit <dns-record-id>
42
+ List, search, sort, and filter a zones' DNS records.`).option(`name`,{type:`string`,description:"Exact value of the DNS record name. This is a convenience alias for `name.exact`."}).option(`name-exact`,{type:`string`,description:`Exact value of the DNS record name. Name filters are case-insensitive.`}).option(`name-contains`,{type:`string`,description:`Substring of the DNS record name. Name filters are case-insensitive.`}).option(`name-startswith`,{type:`string`,description:`Prefix of the DNS record name. Name filters are case-insensitive.`}).option(`name-endswith`,{type:`string`,description:`Suffix of the DNS record name. Name filters are case-insensitive.`}).option(`type`,{type:`string`,description:`Record type.`,choices:[`A`,`AAAA`,`CAA`,`CERT`,`CNAME`,`DNSKEY`,`DS`,`HTTPS`,`LOC`,`MX`,`NAPTR`,`NS`,`OPENPGPKEY`,`PTR`,`SMIMEA`,`SRV`,`SSHFP`,`SVCB`,`TLSA`,`TXT`,`URI`]}).option(`content`,{type:`string`,description:"Exact value of the DNS record content. This is a convenience alias for `content.exact`."}).option(`content-exact`,{type:`string`,description:`Exact value of the DNS record content. Content filters are case-insensitive.`}).option(`content-contains`,{type:`string`,description:`Substring of the DNS record content. Content filters are case-insensitive.`}).option(`content-startswith`,{type:`string`,description:`Prefix of the DNS record content. Content filters are case-insensitive.`}).option(`content-endswith`,{type:`string`,description:`Suffix of the DNS record content. Content filters are case-insensitive.`}).option(`proxied`,{type:`boolean`,description:`Whether the record is receiving the performance and security benefits of Cloudflare.`}).option(`match`,{type:`string`,description:"Whether to match all search requirements or at least one (any). If set to `all`, acts like a logical AND between filters. If set to `any`, acts like a logical OR instead. Note that the interaction between tag filters is controlled by the `tag-match` parameter instead.",choices:[`any`,`all`]}).option(`comment`,{type:`string`,description:"Exact value of the DNS record comment. This is a convenience alias for `comment.exact`."}).option(`comment-present`,{type:`string`,description:`If this parameter is present, only records *with* a comment are returned.`}).option(`comment-absent`,{type:`string`,description:`If this parameter is present, only records *without* a comment are returned.`}).option(`comment-exact`,{type:`string`,description:`Exact value of the DNS record comment. Comment filters are case-insensitive.`}).option(`comment-contains`,{type:`string`,description:`Substring of the DNS record comment. Comment filters are case-insensitive.`}).option(`comment-startswith`,{type:`string`,description:`Prefix of the DNS record comment. Comment filters are case-insensitive.`}).option(`comment-endswith`,{type:`string`,description:`Suffix of the DNS record comment. Comment filters are case-insensitive.`}).option(`tag`,{type:`string`,description:"Condition on the DNS record tag.\n\nParameter values can be of the form `<tag-name>:<tag-value>` to search for an exact `name:value` pair, or just `<tag-name>` to search for records with a specific tag name regardless of its value.\n\nThis is a convenience shorthand for the more powerful `tag.<predicate>` parameters.\nExamples:\n- `tag=important` is equivalent to `tag.present=important`\n- `tag=team:DNS` is equivalent to `tag.exact=team:DNS`"}).option(`tag-present`,{type:`string`,description:`Name of a tag which must be present on the DNS record. Tag filters are case-insensitive.`}).option(`tag-absent`,{type:`string`,description:`Name of a tag which must *not* be present on the DNS record. Tag filters are case-insensitive.`}).option(`tag-exact`,{type:`string`,description:"A tag and value, of the form `<tag-name>:<tag-value>`. The API will only return DNS records that have a tag named `<tag-name>` whose value is `<tag-value>`. Tag filters are case-insensitive."}).option(`tag-contains`,{type:`string`,description:"A tag and value, of the form `<tag-name>:<tag-value>`. The API will only return DNS records that have a tag named `<tag-name>` whose value contains `<tag-value>`. Tag filters are case-insensitive."}).option(`tag-startswith`,{type:`string`,description:"A tag and value, of the form `<tag-name>:<tag-value>`. The API will only return DNS records that have a tag named `<tag-name>` whose value starts with `<tag-value>`. Tag filters are case-insensitive."}).option(`tag-endswith`,{type:`string`,description:"A tag and value, of the form `<tag-name>:<tag-value>`. The API will only return DNS records that have a tag named `<tag-name>` whose value ends with `<tag-value>`. Tag filters are case-insensitive."}).option(`search`,{type:`string`,description:"Allows searching in multiple properties of a DNS record simultaneously. This parameter is intended for human users, not automation. Its exact behavior is intentionally left unspecified and is subject to change in the future. This parameter works independently of the `match` setting. For automated searches, please use the other available parameters."}).option(`tag-match`,{type:`string`,description:"Whether to match all tag search requirements or at least one (any). If set to `all`, acts like a logical AND between tag filters. If set to `any`, acts like a logical OR instead. Note that the regular `match` parameter is still used to combine the resulting condition with other filters that aren't related to tags.",choices:[`any`,`all`]}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of DNS records per page.`}).option(`order`,{type:`string`,description:`Field to order DNS records by.`,choices:[`type`,`name`,`content`,`ttl`,`proxied`]}).option(`direction`,{type:`string`,description:`Direction to order DNS records in.`,choices:[`asc`,`desc`]}).option(`include-shadow-metadata`,{type:`boolean`,description:"Whether to include shadow metadata in the `meta` field of each record in the response. See [Shadowed records](https://developers.cloudflare.com/dns/manage-dns-records/reference/shadowed-records)."}).option(`shadowed-by-name`,{type:`string`,description:"Filters the response to records at or below the specified NS delegation name. NS, DS, and NSEC records at the delegation name are excluded because they are not shadowed by that delegation. Those record types are included only when they exist below the delegation. The value must be a non-apex subdomain of the zone. Requires `include_shadow_metadata=true`. See [Shadowed records](https://developers.cloudflare.com/dns/manage-dns-records/reference/shadowed-records)."}).option(`shadowing-name`,{type:`string`,description:`Returns NS records that shadow the given name, searching at the name itself and each of its ancestor names within the zone, excluding the zone apex. The value must be a subdomain of the zone; the zone apex is not accepted. See [Shadowed records](https://developers.cloudflare.com/dns/manage-dns-records/reference/shadowed-records).`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ve={command:`list`,describe:`List DNS Records`,builder:I,handler:async e=>d({command:`dns records list`,classification:{safeFlags:[`type`,`proxied`,`match`,`tag-match`,`order`,`direction`,`include-shadow-metadata`,`dry-run`]}},e,async()=>{let t={name:e.name,"name.exact":e[`name-exact`],"name.contains":e[`name-contains`],"name.startswith":e[`name-startswith`],"name.endswith":e[`name-endswith`],type:e.type,content:e.content,"content.exact":e[`content-exact`],"content.contains":e[`content-contains`],"content.startswith":e[`content-startswith`],"content.endswith":e[`content-endswith`],proxied:e.proxied,match:e.match,comment:e.comment,"comment.present":e[`comment-present`],"comment.absent":e[`comment-absent`],"comment.exact":e[`comment-exact`],"comment.contains":e[`comment-contains`],"comment.startswith":e[`comment-startswith`],"comment.endswith":e[`comment-endswith`],tag:e.tag,"tag.present":e[`tag-present`],"tag.absent":e[`tag-absent`],"tag.exact":e[`tag-exact`],"tag.contains":e[`tag-contains`],"tag.startswith":e[`tag-startswith`],"tag.endswith":e[`tag-endswith`],search:e.search,tag_match:e[`tag-match`],page:e.page,per_page:e[`per-page`],order:e.order,direction:e.direction,include_shadow_metadata:e[`include-shadow-metadata`],shadowed_by_name:e[`shadowed-by-name`],shadowing_name:e[`shadowing-name`]};if(e.dryRun){r({command:`cf dns records list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`none`});return}let i=await n(e),o=await a({zone:e.zone},i,{quiet:e.quiet});e.zoneId=o;let l=await c(`Loading`,async()=>i.send(F,{zone_id:o,...t}));s(l,{successLabel:`Loaded`})})};var ye={method:`GET`,path:t=>e`/zones/${t.zone_id}/dns_records/scan/review`};function be(e){return e.usage(`$0 dns records scan-list
43
43
 
44
- Update an existing DNS record. Notes: - A/AAAA records cannot exist on the same name as CNAME records. - NS records cannot exist on the same name as any other record type. - Domain names are always represented in Punycode, even if Unicode characters were used when creating the record.`).positional(`dns-record-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`include-shadow-metadata`,{type:`boolean`,description:"Whether to include shadow metadata in the `meta` field of each record in the response. See [Shadowed records](https://developers.cloudflare.com/dns/manage-dns-records/reference/shadowed-records)."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Ce={command:`edit <dns-record-id>`,describe:`Update DNS Record`,builder:Se,handler:async e=>u({command:`dns records edit`,classification:{safeFlags:[`include-shadow-metadata`,`dry-run`]}},e,async()=>{let t={include_shadow_metadata:e[`include-shadow-metadata`]};if(e.dryRun){c({command:`cf dns records edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records/${e[`dns-record-id`]==null?`<dns-record-id>`:encodeURIComponent(String(e[`dns-record-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"dns-record-id":String(e[`dns-record-id`]??``)},query:t,bodyKind:`json`,body:e.body===void 0?void 0:f(e.body)});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`);let n=e.body===void 0?void 0:f(e.body),i=await r(e),o=await a({zone:e.zone},i,{quiet:e.quiet});if(e.zoneId=o,e.body!==void 0){let r=n;new URLSearchParams(Object.entries(t).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let a=await l(`Updating`,async()=>i.send(xe,{body:r,zone_id:o,dns_record_id:e[`dns-record-id`],...t}));s(a,{successLabel:`Updated`})}})};function we(e){return e.usage(`$0 dns records export
44
+ Retrieves the list of DNS records discovered up to this point by the asynchronous scan. These records are temporary until explicitly accepted or rejected via \`POST /scan/review\`. Additional records may be discovered by the scan later.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const xe={command:`scan-list`,describe:`List Scanned DNS Records`,builder:be,handler:async e=>d({command:`dns records scan-list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf dns records scan-list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records/scan/review`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),i=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=i;let o=await c(`Loading`,async()=>t.send(ye,{zone_id:i}));s(o,{successLabel:`Loaded`})})};var L={method:`POST`,path:t=>e`/zones/${t.zone_id}/dns_records/scan/review`,body:`json`};function Se(e){return e.usage(`$0 dns records scan-review
45
45
 
46
- You can export your [BIND config](https://en.wikipedia.org/wiki/Zone_file "Zone file") through this endpoint. See [the documentation](https://developers.cloudflare.com/dns/manage-dns-records/how-to/import-and-export/ "Import and export records") for more information.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Te={command:`export`,describe:`Export DNS Records`,builder:we,handler:async e=>u({command:`dns records export`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns records export`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records/export`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await r(e);e.zoneId=await a({zone:e.zone},t,{quiet:e.quiet});let n=await l(`Loading`,async()=>y(`/zones/${e.zoneId}/dns_records/export`,{method:`GET`,local:e.local===!0,persistTo:e.persistTo}));v(n.toString(`utf-8`))})};var Ee={method:`GET`,path:t=>e`/zones/${t.zone_id}/dns_records/${t.dns_record_id}`,query:[`include_shadow_metadata`]};function De(e){return e.usage(`$0 dns records get <dns-record-id>
46
+ Accept or reject DNS records found by the DNS records scan. Accepted records will be permanently added to the zone, while rejected records will be permanently deleted.`).option(`accepts`,{type:`string`,description:`The accepts field. Provide as a JSON array of objects or @path/to/file.json. Shape: [(({"comment"?: string, "name"?: string, "proxied"?: boolean, "settings"?: {...}, "tags"?: [string], ...more} & {"content"?: string, "private_routing"?: boolean, "type"?: "A"}) | ...more)]. ? marks optional keys.`}).option(`rejects`,{type:`string`,description:`The rejects field. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"id"?: string}]. ? marks optional keys.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Ce={command:`scan-review`,describe:`Review Scanned DNS Records`,builder:Se,handler:async e=>d({command:`dns records scan-review`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf dns records scan-review`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records/scan/review`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?m({accepts:f(e.accepts,`accepts`),rejects:f(e.rejects,`rejects`)}):p(e.body)});return}let t=e.body===void 0?void 0:p(e.body),i=await n(e),o=await a({zone:e.zone},i,{quiet:e.quiet});if(e.zoneId=o,e.body!==void 0){let e=t,n=await c(`Creating`,async()=>i.send(L,{body:e,zone_id:o}));s(n,{successLabel:`Created`});return}let l=m({accepts:f(e.accepts,`accepts`),rejects:f(e.rejects,`rejects`)}),u=await c(`Creating`,async()=>i.send(L,{body:l,zone_id:o}));s(u,{successLabel:`Created`})})};var we={method:`POST`,path:t=>e`/zones/${t.zone_id}/dns_records/scan/trigger`};function Te(e){return e.usage(`$0 dns records scan-trigger
47
47
 
48
- Retrieves details for a specific DNS record in the zone.`).positional(`dns-record-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`include-shadow-metadata`,{type:`boolean`,description:"Whether to include shadow metadata in the `meta` field of each record in the response. See [Shadowed records](https://developers.cloudflare.com/dns/manage-dns-records/reference/shadowed-records)."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Oe={command:`get <dns-record-id>`,describe:`DNS Record Details`,builder:De,handler:async e=>u({command:`dns records get`,classification:{safeFlags:[`include-shadow-metadata`,`dry-run`]}},e,async()=>{let t={include_shadow_metadata:e[`include-shadow-metadata`]};if(e.dryRun){c({command:`cf dns records get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records/${e[`dns-record-id`]==null?`<dns-record-id>`:encodeURIComponent(String(e[`dns-record-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"dns-record-id":String(e[`dns-record-id`]??``)},query:t,bodyKind:`none`});return}let n=await r(e),i=await a({zone:e.zone},n,{quiet:e.quiet});e.zoneId=i;let o=await l(`Loading`,async()=>n.send(Ee,{zone_id:i,dns_record_id:e[`dns-record-id`],...t}));s(o,{successLabel:`Loaded`})})};function ke(e){return e.usage(`$0 dns records import
48
+ Initiates an asynchronous scan for common DNS records on your domain. Note that this **does not** automatically add records to your zone. The scan runs in the background, and results can be reviewed later using the \`/scan/review\` endpoints. Useful if you haven't updated your nameservers yet.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ee={command:`scan-trigger`,describe:`Trigger DNS Record Scan`,builder:Te,handler:async e=>d({command:`dns records scan-trigger`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf dns records scan-trigger`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records/scan/trigger`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),i=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=i;let o=await c(`Creating`,async()=>t.send(we,{zone_id:i}));s(o,{successLabel:`Created`})})};var De={method:`POST`,path:t=>e`/zones/${t.zone_id}/dns_records/scan`};function Oe(e){return e.usage(`$0 dns records scan
49
49
 
50
- You can upload your [BIND config](https://en.wikipedia.org/wiki/Zone_file "Zone file") through this endpoint. It assumes that cURL is called from a location with bind_config.txt (valid BIND config) present. See [the documentation](https://developers.cloudflare.com/dns/manage-dns-records/how-to/import-and-export/ "Import and export records") for more information.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`}).option(`proxied`,{type:`string`,description:"Whether or not proxiable records should receive the performance and security benefits of Cloudflare. The value should be either `true` or `false`."})}const Ae={command:`import`,describe:`Import DNS Records`,builder:ke,handler:async e=>u({command:`dns records import`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns records import`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records/import`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`multipart`,body:{body:e.body,file:e.file,proxied:e.proxied}});return}if(e.body===void 0&&e.file===void 0&&e.proxied===void 0)throw Error(`--body or --file is required for this command. Pass --body '<value>' or --file path/to/file.`);let t=await r(e);if(e.zoneId=await a({zone:e.zone},t,{quiet:e.quiet}),e.file!==void 0||e.body!==void 0||e.proxied!==void 0){let r=new FormData;if(e.file!==void 0){let t=h(e.file);r.append(`file`,new Blob([t]),e.file.split(/[\\/]/).filter(Boolean).pop())}else e.body!==void 0&&r.append(`file`,e.body);e.proxied!==void 0&&r.append(`proxied`,String(m(e.proxied,`proxied`,`text`)??``));let i=await l(`Creating`,async()=>n(t,`POST`,`/zones/${e.zoneId}/dns_records/import`,{body:r}));s(i,{successLabel:`Created`})}else if(e.body!==void 0){let r=m(e.body,`body`,`binary`),i=await l(`Creating`,async()=>n(t,`POST`,`/zones/${e.zoneId}/dns_records/import`,{body:r,headers:{"Content-Type":`multipart/form-data`}}));s(i,{successLabel:`Created`})}})};var je={method:`GET`,path:t=>e`/zones/${t.zone_id}/dns_records`,query:/* @__PURE__ */ `name,name.exact,name.contains,name.startswith,name.endswith,type,content,content.exact,content.contains,content.startswith,content.endswith,proxied,match,comment,comment.present,comment.absent,comment.exact,comment.contains,comment.startswith,comment.endswith,tag,tag.present,tag.absent,tag.exact,tag.contains,tag.startswith,tag.endswith,search,tag_match,page,per_page,order,direction,include_shadow_metadata,shadowed_by_name,shadowing_name`.split(`,`)};function Me(e){return e.usage(`$0 dns records list
50
+ Scan for common DNS records on your domain and automatically add them to your zone. Useful if you haven't updated your nameservers yet.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ke={command:`scan`,describe:`Scan DNS Records`,builder:Oe,handler:async e=>d({command:`dns records scan`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf dns records scan`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records/scan`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),i=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=i;let o=await c(`Creating`,async()=>t.send(De,{zone_id:i}));s(o,{successLabel:`Created`})})};var Ae={method:`PUT`,path:t=>e`/zones/${t.zone_id}/dns_records/${t.dns_record_id}`,query:[`include_shadow_metadata`],body:`json`};function je(e){return e.usage(`$0 dns records update <dns-record-id>
51
51
 
52
- List, search, sort, and filter a zones' DNS records.`).option(`name`,{type:`string`,description:"Exact value of the DNS record name. This is a convenience alias for `name.exact`."}).option(`name-exact`,{type:`string`,description:`Exact value of the DNS record name. Name filters are case-insensitive.`}).option(`name-contains`,{type:`string`,description:`Substring of the DNS record name. Name filters are case-insensitive.`}).option(`name-startswith`,{type:`string`,description:`Prefix of the DNS record name. Name filters are case-insensitive.`}).option(`name-endswith`,{type:`string`,description:`Suffix of the DNS record name. Name filters are case-insensitive.`}).option(`type`,{type:`string`,description:`Record type.`,choices:[`A`,`AAAA`,`CAA`,`CERT`,`CNAME`,`DNSKEY`,`DS`,`HTTPS`,`LOC`,`MX`,`NAPTR`,`NS`,`OPENPGPKEY`,`PTR`,`SMIMEA`,`SRV`,`SSHFP`,`SVCB`,`TLSA`,`TXT`,`URI`]}).option(`content`,{type:`string`,description:"Exact value of the DNS record content. This is a convenience alias for `content.exact`."}).option(`content-exact`,{type:`string`,description:`Exact value of the DNS record content. Content filters are case-insensitive.`}).option(`content-contains`,{type:`string`,description:`Substring of the DNS record content. Content filters are case-insensitive.`}).option(`content-startswith`,{type:`string`,description:`Prefix of the DNS record content. Content filters are case-insensitive.`}).option(`content-endswith`,{type:`string`,description:`Suffix of the DNS record content. Content filters are case-insensitive.`}).option(`proxied`,{type:`boolean`,description:`Whether the record is receiving the performance and security benefits of Cloudflare.`}).option(`match`,{type:`string`,description:"Whether to match all search requirements or at least one (any). If set to `all`, acts like a logical AND between filters. If set to `any`, acts like a logical OR instead. Note that the interaction between tag filters is controlled by the `tag-match` parameter instead.",choices:[`any`,`all`]}).option(`comment`,{type:`string`,description:"Exact value of the DNS record comment. This is a convenience alias for `comment.exact`."}).option(`comment-present`,{type:`string`,description:`If this parameter is present, only records *with* a comment are returned.`}).option(`comment-absent`,{type:`string`,description:`If this parameter is present, only records *without* a comment are returned.`}).option(`comment-exact`,{type:`string`,description:`Exact value of the DNS record comment. Comment filters are case-insensitive.`}).option(`comment-contains`,{type:`string`,description:`Substring of the DNS record comment. Comment filters are case-insensitive.`}).option(`comment-startswith`,{type:`string`,description:`Prefix of the DNS record comment. Comment filters are case-insensitive.`}).option(`comment-endswith`,{type:`string`,description:`Suffix of the DNS record comment. Comment filters are case-insensitive.`}).option(`tag`,{type:`string`,description:"Condition on the DNS record tag.\n\nParameter values can be of the form `<tag-name>:<tag-value>` to search for an exact `name:value` pair, or just `<tag-name>` to search for records with a specific tag name regardless of its value.\n\nThis is a convenience shorthand for the more powerful `tag.<predicate>` parameters.\nExamples:\n- `tag=important` is equivalent to `tag.present=important`\n- `tag=team:DNS` is equivalent to `tag.exact=team:DNS`"}).option(`tag-present`,{type:`string`,description:`Name of a tag which must be present on the DNS record. Tag filters are case-insensitive.`}).option(`tag-absent`,{type:`string`,description:`Name of a tag which must *not* be present on the DNS record. Tag filters are case-insensitive.`}).option(`tag-exact`,{type:`string`,description:"A tag and value, of the form `<tag-name>:<tag-value>`. The API will only return DNS records that have a tag named `<tag-name>` whose value is `<tag-value>`. Tag filters are case-insensitive."}).option(`tag-contains`,{type:`string`,description:"A tag and value, of the form `<tag-name>:<tag-value>`. The API will only return DNS records that have a tag named `<tag-name>` whose value contains `<tag-value>`. Tag filters are case-insensitive."}).option(`tag-startswith`,{type:`string`,description:"A tag and value, of the form `<tag-name>:<tag-value>`. The API will only return DNS records that have a tag named `<tag-name>` whose value starts with `<tag-value>`. Tag filters are case-insensitive."}).option(`tag-endswith`,{type:`string`,description:"A tag and value, of the form `<tag-name>:<tag-value>`. The API will only return DNS records that have a tag named `<tag-name>` whose value ends with `<tag-value>`. Tag filters are case-insensitive."}).option(`search`,{type:`string`,description:"Allows searching in multiple properties of a DNS record simultaneously. This parameter is intended for human users, not automation. Its exact behavior is intentionally left unspecified and is subject to change in the future. This parameter works independently of the `match` setting. For automated searches, please use the other available parameters."}).option(`tag-match`,{type:`string`,description:"Whether to match all tag search requirements or at least one (any). If set to `all`, acts like a logical AND between tag filters. If set to `any`, acts like a logical OR instead. Note that the regular `match` parameter is still used to combine the resulting condition with other filters that aren't related to tags.",choices:[`any`,`all`]}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of DNS records per page.`}).option(`order`,{type:`string`,description:`Field to order DNS records by.`,choices:[`type`,`name`,`content`,`ttl`,`proxied`]}).option(`direction`,{type:`string`,description:`Direction to order DNS records in.`,choices:[`asc`,`desc`]}).option(`include-shadow-metadata`,{type:`boolean`,description:"Whether to include shadow metadata in the `meta` field of each record in the response. See [Shadowed records](https://developers.cloudflare.com/dns/manage-dns-records/reference/shadowed-records)."}).option(`shadowed-by-name`,{type:`string`,description:"Filters the response to records at or below the specified NS delegation name. NS, DS, and NSEC records at the delegation name are excluded because they are not shadowed by that delegation. Those record types are included only when they exist below the delegation. The value must be a non-apex subdomain of the zone. Requires `include_shadow_metadata=true`. See [Shadowed records](https://developers.cloudflare.com/dns/manage-dns-records/reference/shadowed-records)."}).option(`shadowing-name`,{type:`string`,description:`Returns NS records that shadow the given name, searching at the name itself and each of its ancestor names within the zone, excluding the zone apex. The value must be a subdomain of the zone; the zone apex is not accepted. See [Shadowed records](https://developers.cloudflare.com/dns/manage-dns-records/reference/shadowed-records).`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ne={command:`list`,describe:`List DNS Records`,builder:Me,handler:async e=>u({command:`dns records list`,classification:{safeFlags:[`type`,`proxied`,`match`,`tag-match`,`order`,`direction`,`include-shadow-metadata`,`dry-run`]}},e,async()=>{let t={name:e.name,"name.exact":e[`name-exact`],"name.contains":e[`name-contains`],"name.startswith":e[`name-startswith`],"name.endswith":e[`name-endswith`],type:e.type,content:e.content,"content.exact":e[`content-exact`],"content.contains":e[`content-contains`],"content.startswith":e[`content-startswith`],"content.endswith":e[`content-endswith`],proxied:e.proxied,match:e.match,comment:e.comment,"comment.present":e[`comment-present`],"comment.absent":e[`comment-absent`],"comment.exact":e[`comment-exact`],"comment.contains":e[`comment-contains`],"comment.startswith":e[`comment-startswith`],"comment.endswith":e[`comment-endswith`],tag:e.tag,"tag.present":e[`tag-present`],"tag.absent":e[`tag-absent`],"tag.exact":e[`tag-exact`],"tag.contains":e[`tag-contains`],"tag.startswith":e[`tag-startswith`],"tag.endswith":e[`tag-endswith`],search:e.search,tag_match:e[`tag-match`],page:e.page,per_page:e[`per-page`],order:e.order,direction:e.direction,include_shadow_metadata:e[`include-shadow-metadata`],shadowed_by_name:e[`shadowed-by-name`],shadowing_name:e[`shadowing-name`]};if(e.dryRun){c({command:`cf dns records list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`none`});return}let n=await r(e),i=await a({zone:e.zone},n,{quiet:e.quiet});e.zoneId=i;let o=await l(`Loading`,async()=>n.send(je,{zone_id:i,...t}));s(o,{successLabel:`Loaded`})})};var Pe={method:`GET`,path:t=>e`/zones/${t.zone_id}/dns_records/scan/review`};function Fe(e){return e.usage(`$0 dns records scan-list
53
-
54
- Retrieves the list of DNS records discovered up to this point by the asynchronous scan. These records are temporary until explicitly accepted or rejected via \`POST /scan/review\`. Additional records may be discovered by the scan later.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ie={command:`scan-list`,describe:`List Scanned DNS Records`,builder:Fe,handler:async e=>u({command:`dns records scan-list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns records scan-list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records/scan/review`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n;let i=await l(`Loading`,async()=>t.send(Pe,{zone_id:n}));s(i,{successLabel:`Loaded`})})};var L={method:`POST`,path:t=>e`/zones/${t.zone_id}/dns_records/scan/review`,body:`json`};function Le(e){return e.usage(`$0 dns records scan-review
55
-
56
- Accept or reject DNS records found by the DNS records scan. Accepted records will be permanently added to the zone, while rejected records will be permanently deleted.`).option(`accepts`,{type:`string`,description:`The accepts field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`rejects`,{type:`string`,description:`The rejects field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Re={command:`scan-review`,describe:`Review Scanned DNS Records`,builder:Le,handler:async e=>u({command:`dns records scan-review`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns records scan-review`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records/scan/review`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({accepts:d(e.accepts,`accepts`),rejects:d(e.rejects,`rejects`)}):f(e.body)});return}let t=e.body===void 0?void 0:f(e.body),n=await r(e),i=await a({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=i,e.body!==void 0){let e=t,r=await l(`Creating`,async()=>n.send(L,{body:e,zone_id:i}));s(r,{successLabel:`Created`});return}let o=p({accepts:d(e.accepts,`accepts`),rejects:d(e.rejects,`rejects`)}),u=await l(`Creating`,async()=>n.send(L,{body:o,zone_id:i}));s(u,{successLabel:`Created`})})};var ze={method:`POST`,path:t=>e`/zones/${t.zone_id}/dns_records/scan/trigger`};function Be(e){return e.usage(`$0 dns records scan-trigger
57
-
58
- Initiates an asynchronous scan for common DNS records on your domain. Note that this **does not** automatically add records to your zone. The scan runs in the background, and results can be reviewed later using the \`/scan/review\` endpoints. Useful if you haven't updated your nameservers yet.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ve={command:`scan-trigger`,describe:`Trigger DNS Record Scan`,builder:Be,handler:async e=>u({command:`dns records scan-trigger`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns records scan-trigger`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records/scan/trigger`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n;let i=await l(`Creating`,async()=>t.send(ze,{zone_id:n}));s(i,{successLabel:`Created`})})};var He={method:`POST`,path:t=>e`/zones/${t.zone_id}/dns_records/scan`};function Ue(e){return e.usage(`$0 dns records scan
59
-
60
- Scan for common DNS records on your domain and automatically add them to your zone. Useful if you haven't updated your nameservers yet.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const We={command:`scan`,describe:`Scan DNS Records`,builder:Ue,handler:async e=>u({command:`dns records scan`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns records scan`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records/scan`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n;let i=await l(`Creating`,async()=>t.send(He,{zone_id:n}));s(i,{successLabel:`Created`})})};var Ge={method:`PUT`,path:t=>e`/zones/${t.zone_id}/dns_records/${t.dns_record_id}`,query:[`include_shadow_metadata`],body:`json`};function Ke(e){return e.usage(`$0 dns records update <dns-record-id>
61
-
62
- Overwrite an existing DNS record. Notes: - A/AAAA records cannot exist on the same name as CNAME records. - NS records cannot exist on the same name as any other record type. - Domain names are always represented in Punycode, even if Unicode characters were used when creating the record.`).positional(`dns-record-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`include-shadow-metadata`,{type:`boolean`,description:"Whether to include shadow metadata in the `meta` field of each record in the response. See [Shadowed records](https://developers.cloudflare.com/dns/manage-dns-records/reference/shadowed-records)."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const qe={command:`update <dns-record-id>`,describe:`Overwrite DNS Record`,builder:Ke,handler:async e=>u({command:`dns records update`,classification:{safeFlags:[`include-shadow-metadata`,`dry-run`]}},e,async()=>{let t={include_shadow_metadata:e[`include-shadow-metadata`]};if(e.dryRun){c({command:`cf dns records update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records/${e[`dns-record-id`]==null?`<dns-record-id>`:encodeURIComponent(String(e[`dns-record-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"dns-record-id":String(e[`dns-record-id`]??``)},query:t,bodyKind:`json`,body:e.body===void 0?void 0:f(e.body)});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`);let n=e.body===void 0?void 0:f(e.body),i=await r(e),o=await a({zone:e.zone},i,{quiet:e.quiet});if(e.zoneId=o,e.body!==void 0){let r=n;new URLSearchParams(Object.entries(t).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let a=await l(`Updating`,async()=>i.send(Ge,{body:r,zone_id:o,dns_record_id:e[`dns-record-id`],...t}));s(a,{successLabel:`Updated`})}})},Je={command:`records`,describe:`Operations for records`,builder:e=>e.command(N).command(I).command(be).command(Ce).command(Te).command(Oe).command(Ae).command(Ne).command(We).command(Ie).command(Re).command(Ve).command(qe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var R={method:`PATCH`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/dns_settings`,body:`json`};function Ye(e){return e.usage(`$0 dns settings account edit
52
+ Overwrite an existing DNS record. Notes: - A/AAAA records cannot exist on the same name as CNAME records. - NS records cannot exist on the same name as any other record type. - Domain names are always represented in Punycode, even if Unicode characters were used when creating the record.`).positional(`dns-record-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`include-shadow-metadata`,{type:`boolean`,description:"Whether to include shadow metadata in the `meta` field of each record in the response. See [Shadowed records](https://developers.cloudflare.com/dns/manage-dns-records/reference/shadowed-records)."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Me={command:`update <dns-record-id>`,describe:`Overwrite DNS Record`,builder:je,handler:async e=>d({command:`dns records update`,classification:{safeFlags:[`include-shadow-metadata`,`dry-run`]}},e,async()=>{let t={include_shadow_metadata:e[`include-shadow-metadata`]};if(e.dryRun){r({command:`cf dns records update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records/${e[`dns-record-id`]==null?`<dns-record-id>`:encodeURIComponent(String(e[`dns-record-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"dns-record-id":String(e[`dns-record-id`]??``)},query:t,bodyKind:`json`,body:e.body===void 0?void 0:p(e.body)});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`);let i=e.body===void 0?void 0:p(e.body),o=await n(e),l=await a({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=l,e.body!==void 0){let n=i;new URLSearchParams(Object.entries(t).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let r=await c(`Updating`,async()=>o.send(Ae,{body:n,zone_id:l,dns_record_id:e[`dns-record-id`],...t}));s(r,{successLabel:`Updated`})}})},Ne={command:`records`,describe:`Operations for records`,builder:e=>e.command(ge).command(x).command(w).command(D).command(k).command(M).command(P).command(ve).command(ke).command(xe).command(Ce).command(Ee).command(Me).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var R={method:`PATCH`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/dns_settings`,body:`json`};function Pe(e){return e.usage(`$0 dns settings account edit
63
53
 
64
54
  Update DNS settings for an account or zone
65
55
 
66
- Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).option(`enforce-dns-only`,{type:`boolean`,description:`When enabled, forces all proxied DNS records in the account to behave as DNS-only at the edge, regardless of each record's individual proxy setting. Note that this account-level override does not modify the records themselves; it only affects how they are served at the edge. See more on [Enforce DNS-only](https://developers.cloudflare.com/dns/proxy-status/enforce-dns-only).`}).option(`zone-defaults-flatten-all-cnames`,{type:`boolean`,description:`Whether to flatten all CNAME records in the zone. Note that, due to DNS limitations, a CNAME record at the zone apex will always be flattened.`}).option(`zone-defaults-internal-dns-reference-zone-id`,{type:`string`,description:`The ID of the zone to fallback to.`}).option(`zone-defaults-multi-provider`,{type:`boolean`,description:`Whether to enable multi-provider DNS, which causes Cloudflare to activate the zone even when non-Cloudflare NS records exist, and to respect NS records at the zone apex during outbound zone transfers.`}).option(`zone-defaults-ns-ttl`,{type:`number`,description:`The time to live (TTL) of the zone's nameserver (NS) records.`}).option(`zone-defaults-secondary-overrides`,{type:`boolean`,description:`Allows a Secondary DNS zone to use (proxied) override records and CNAME flattening at the zone apex.`}).option(`zone-defaults-soa-expire`,{type:`number`,description:`Time in seconds of being unable to query the primary server after which secondary servers should stop serving the zone.`}).option(`zone-defaults-soa-min-ttl`,{type:`number`,description:`The time to live (TTL) for negative caching of records within the zone.`}).option(`zone-defaults-soa-mname`,{type:`string`,description:`The primary nameserver, which may be used for outbound zone transfers. If null, a Cloudflare-assigned value will be used.`}).option(`zone-defaults-soa-refresh`,{type:`number`,description:`Time in seconds after which secondary servers should re-check the SOA record to see if the zone has been updated.`}).option(`zone-defaults-soa-retry`,{type:`number`,description:`Time in seconds after which secondary servers should retry queries after the primary server was unresponsive.`}).option(`zone-defaults-soa-rname`,{type:`string`,description:`The email address of the zone administrator, with the first label representing the local part of the email address.`}).option(`zone-defaults-soa-ttl`,{type:`number`,description:`The time to live (TTL) of the SOA record itself.`}).option(`zone-defaults-zone-mode`,{type:`string`,description:`Whether the zone mode is a regular or CDN/DNS only zone.`,choices:[`standard`,`cdn_only`,`dns_only`]}).coerce(`zone-defaults-zone-mode`,e=>m(e,`zone-defaults-zone-mode`,`text`)).option(`zone-defaults-nameservers-type`,{type:`string`,description:`Nameserver type`,choices:[`cloudflare.standard`,`cloudflare.advanced`,`cloudflare.standard.random`,`custom.account`,`custom.tenant`]}).coerce(`zone-defaults-nameservers-type`,e=>m(e,`zone-defaults-nameservers-type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Xe={command:`edit`,describe:`Update DNS Settings`,builder:Ye,handler:async e=>u({command:`dns settings account edit`,classification:{safeFlags:[`enforce-dns-only`,`zone-defaults-flatten-all-cnames`,`zone-defaults-multi-provider`,`zone-defaults-secondary-overrides`,`zone-defaults-zone-mode`,`zone-defaults-nameservers-type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf dns settings account edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/dns_settings`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`json`,body:e.body===void 0?p({enforce_dns_only:e[`enforce-dns-only`],zone_defaults:{flatten_all_cnames:e[`zone-defaults-flatten-all-cnames`],internal_dns:{reference_zone_id:m(e[`zone-defaults-internal-dns-reference-zone-id`],`zone-defaults-internal-dns-reference-zone-id`,`text`)},multi_provider:e[`zone-defaults-multi-provider`],ns_ttl:e[`zone-defaults-ns-ttl`],secondary_overrides:e[`zone-defaults-secondary-overrides`],soa:{expire:e[`zone-defaults-soa-expire`],min_ttl:e[`zone-defaults-soa-min-ttl`],mname:m(e[`zone-defaults-soa-mname`],`zone-defaults-soa-mname`,`text`),refresh:e[`zone-defaults-soa-refresh`],retry:e[`zone-defaults-soa-retry`],rname:m(e[`zone-defaults-soa-rname`],`zone-defaults-soa-rname`,`text`),ttl:e[`zone-defaults-soa-ttl`]},zone_mode:e[`zone-defaults-zone-mode`],nameservers:{type:e[`zone-defaults-nameservers-type`]}}}):f(e.body)});return}let n=e.body===void 0?void 0:f(e.body),u=await r(e),d=e.zone===void 0?`accounts`:`zones`,h=d===`zones`?await a({zone:e.zone},u,{quiet:e.quiet}):e.local?t:await o();if(d===`zones`?e.zoneId=h:e.accountId=h,e.body!==void 0){let e=n,t=await l(`Updating`,async()=>u.send(R,{body:e,account_or_zone:d,account_or_zone_id:h}));s(t,{successLabel:`Updated`});return}let g=p({enforce_dns_only:e[`enforce-dns-only`],zone_defaults:{flatten_all_cnames:e[`zone-defaults-flatten-all-cnames`],internal_dns:{reference_zone_id:m(e[`zone-defaults-internal-dns-reference-zone-id`],`zone-defaults-internal-dns-reference-zone-id`,`text`)},multi_provider:e[`zone-defaults-multi-provider`],ns_ttl:e[`zone-defaults-ns-ttl`],secondary_overrides:e[`zone-defaults-secondary-overrides`],soa:{expire:e[`zone-defaults-soa-expire`],min_ttl:e[`zone-defaults-soa-min-ttl`],mname:m(e[`zone-defaults-soa-mname`],`zone-defaults-soa-mname`,`text`),refresh:e[`zone-defaults-soa-refresh`],retry:e[`zone-defaults-soa-retry`],rname:m(e[`zone-defaults-soa-rname`],`zone-defaults-soa-rname`,`text`),ttl:e[`zone-defaults-soa-ttl`]},zone_mode:e[`zone-defaults-zone-mode`],nameservers:{type:e[`zone-defaults-nameservers-type`]}}}),_=await l(`Updating`,async()=>u.send(R,{body:g,account_or_zone:d,account_or_zone_id:h}));s(_,{successLabel:`Updated`})})};var Ze={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/dns_settings`};function Qe(e){return e.usage(`$0 dns settings account get
56
+ Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).option(`enforce-dns-only`,{type:`boolean`,description:`When enabled, forces all proxied DNS records in the account to behave as DNS-only at the edge, regardless of each record's individual proxy setting. Note that this account-level override does not modify the records themselves; it only affects how they are served at the edge. See more on [Enforce DNS-only](https://developers.cloudflare.com/dns/proxy-status/enforce-dns-only).`}).option(`zone-defaults-flatten-all-cnames`,{type:`boolean`,description:`Whether to flatten all CNAME records in the zone. Note that, due to DNS limitations, a CNAME record at the zone apex will always be flattened.`}).option(`zone-defaults-internal-dns-reference-zone-id`,{type:`string`,description:`The ID of the zone to fallback to.`}).option(`zone-defaults-multi-provider`,{type:`boolean`,description:`Whether to enable multi-provider DNS, which causes Cloudflare to activate the zone even when non-Cloudflare NS records exist, and to respect NS records at the zone apex during outbound zone transfers.`}).option(`zone-defaults-ns-ttl`,{type:`number`,description:`The time to live (TTL) of the zone's nameserver (NS) records.`}).option(`zone-defaults-secondary-overrides`,{type:`boolean`,description:`Allows a Secondary DNS zone to use (proxied) override records and CNAME flattening at the zone apex.`}).option(`zone-defaults-soa-expire`,{type:`number`,description:`Time in seconds of being unable to query the primary server after which secondary servers should stop serving the zone.`}).option(`zone-defaults-soa-min-ttl`,{type:`number`,description:`The time to live (TTL) for negative caching of records within the zone.`}).option(`zone-defaults-soa-mname`,{type:`string`,description:`The primary nameserver, which may be used for outbound zone transfers. If null, a Cloudflare-assigned value will be used.`}).option(`zone-defaults-soa-refresh`,{type:`number`,description:`Time in seconds after which secondary servers should re-check the SOA record to see if the zone has been updated.`}).option(`zone-defaults-soa-retry`,{type:`number`,description:`Time in seconds after which secondary servers should retry queries after the primary server was unresponsive.`}).option(`zone-defaults-soa-rname`,{type:`string`,description:`The email address of the zone administrator, with the first label representing the local part of the email address.`}).option(`zone-defaults-soa-ttl`,{type:`number`,description:`The time to live (TTL) of the SOA record itself.`}).option(`zone-defaults-zone-mode`,{type:`string`,description:`Whether the zone mode is a regular or CDN/DNS only zone.`,choices:[`standard`,`cdn_only`,`dns_only`]}).coerce(`zone-defaults-zone-mode`,e=>h(e,`zone-defaults-zone-mode`,`text`)).option(`zone-defaults-nameservers-type`,{type:`string`,description:`Nameserver type`,choices:[`cloudflare.standard`,`cloudflare.advanced`,`cloudflare.standard.random`,`custom.account`,`custom.tenant`]}).coerce(`zone-defaults-nameservers-type`,e=>h(e,`zone-defaults-nameservers-type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Fe={command:`edit`,describe:`Update DNS Settings`,builder:Pe,handler:async e=>d({command:`dns settings account edit`,classification:{safeFlags:[`enforce-dns-only`,`zone-defaults-flatten-all-cnames`,`zone-defaults-multi-provider`,`zone-defaults-secondary-overrides`,`zone-defaults-zone-mode`,`zone-defaults-nameservers-type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,a=e.zone??t??`<account-id>`;r({command:`cf dns settings account edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/${n}/${a}/dns_settings`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(a)},bodyKind:`json`,body:e.body===void 0?m({enforce_dns_only:e[`enforce-dns-only`],zone_defaults:{flatten_all_cnames:e[`zone-defaults-flatten-all-cnames`],internal_dns:{reference_zone_id:h(e[`zone-defaults-internal-dns-reference-zone-id`],`zone-defaults-internal-dns-reference-zone-id`,`text`)},multi_provider:e[`zone-defaults-multi-provider`],ns_ttl:e[`zone-defaults-ns-ttl`],secondary_overrides:e[`zone-defaults-secondary-overrides`],soa:{expire:e[`zone-defaults-soa-expire`],min_ttl:e[`zone-defaults-soa-min-ttl`],mname:h(e[`zone-defaults-soa-mname`],`zone-defaults-soa-mname`,`text`),refresh:e[`zone-defaults-soa-refresh`],retry:e[`zone-defaults-soa-retry`],rname:h(e[`zone-defaults-soa-rname`],`zone-defaults-soa-rname`,`text`),ttl:e[`zone-defaults-soa-ttl`]},zone_mode:e[`zone-defaults-zone-mode`],nameservers:{type:e[`zone-defaults-nameservers-type`]}}}):p(e.body)});return}let t=e.body===void 0?void 0:p(e.body),l=await n(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},l,{quiet:e.quiet}):e.local?_:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,e.body!==void 0){let e=t,n=await c(`Updating`,async()=>l.send(R,{body:e,account_or_zone:u,account_or_zone_id:d}));s(n,{successLabel:`Updated`});return}let f=m({enforce_dns_only:e[`enforce-dns-only`],zone_defaults:{flatten_all_cnames:e[`zone-defaults-flatten-all-cnames`],internal_dns:{reference_zone_id:h(e[`zone-defaults-internal-dns-reference-zone-id`],`zone-defaults-internal-dns-reference-zone-id`,`text`)},multi_provider:e[`zone-defaults-multi-provider`],ns_ttl:e[`zone-defaults-ns-ttl`],secondary_overrides:e[`zone-defaults-secondary-overrides`],soa:{expire:e[`zone-defaults-soa-expire`],min_ttl:e[`zone-defaults-soa-min-ttl`],mname:h(e[`zone-defaults-soa-mname`],`zone-defaults-soa-mname`,`text`),refresh:e[`zone-defaults-soa-refresh`],retry:e[`zone-defaults-soa-retry`],rname:h(e[`zone-defaults-soa-rname`],`zone-defaults-soa-rname`,`text`),ttl:e[`zone-defaults-soa-ttl`]},zone_mode:e[`zone-defaults-zone-mode`],nameservers:{type:e[`zone-defaults-nameservers-type`]}}}),g=await c(`Updating`,async()=>l.send(R,{body:f,account_or_zone:u,account_or_zone_id:d}));s(g,{successLabel:`Updated`})})};var Ie={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/dns_settings`};function Le(e){return e.usage(`$0 dns settings account get
67
57
 
68
58
  Show DNS settings for an account or zone
69
59
 
70
- Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const $e={command:`get`,describe:`Show DNS Settings`,builder:Qe,handler:async e=>u({command:`dns settings account get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf dns settings account get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/dns_settings`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();u===`zones`?e.zoneId=d:e.accountId=d;let f=await l(`Loading`,async()=>n.send(Ze,{account_or_zone:u,account_or_zone_id:d}));s(f,{successLabel:`Loaded`})})};var z={method:`POST`,path:t=>e`/accounts/${t.account_id}/dns_settings/nameserver_sets`,body:`json`};function et(e){return e.usage(`$0 dns settings account nameserver-sets create
60
+ Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Re={command:`get`,describe:`Show DNS Settings`,builder:Le,handler:async e=>d({command:`dns settings account get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,a=e.zone??t??`<account-id>`;r({command:`cf dns settings account get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${a}/dns_settings`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(a)},bodyKind:`none`});return}let t=await n(e),l=e.zone===void 0?`accounts`:`zones`,u=l===`zones`?await a({zone:e.zone},t,{quiet:e.quiet}):e.local?_:await o();l===`zones`?e.zoneId=u:e.accountId=u;let d=await c(`Loading`,async()=>t.send(Ie,{account_or_zone:l,account_or_zone_id:u}));s(d,{successLabel:`Loaded`})})};var z={method:`POST`,path:t=>e`/accounts/${t.account_id}/dns_settings/nameserver_sets`,body:`json`};function ze(e){return e.usage(`$0 dns settings account nameserver-sets create
71
61
 
72
- Creates a named Custom Nameserver Set. Only the customer-defined name can be changed later. To change nameservers or addresses, create a new set, move any zone assignments, and delete the old set. For details, refer to [Nameserver sets](https://developers.cloudflare.com/dns/nameservers/custom-nameservers/nameserver-sets/).`).option(`advanced`,{type:`boolean`,description:`Whether to allocate the nameservers from distinct Advanced anycast groups.`,default:!1}).option(`ip-set`,{type:`number`,description:"Selects the account-specific IP set that supplies the nameserver addresses. Nameserver sets with the same `ip_set` and `advanced` value may reuse addresses; otherwise, they use disjoint address groups.",default:1}).option(`name`,{type:`string`,description:`Customer-defined name, unique within the account by exact string equality (case-sensitive, with no Unicode normalization). Must be valid UTF-8 and at most 255 UTF-8 bytes, not 255 characters. Only graphical Unicode characters are allowed; leading or trailing whitespace is rejected. The name can be changed without changing the set's nameservers or addresses.`}).option(`nameservers`,{type:`string`,description:`Lists each nameserver and the number of addresses to allocate to it. Requires a unique name for each entry in the set. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const tt={command:`create`,describe:`Create Custom Nameserver Set`,builder:et,handler:async e=>u({command:`dns settings account nameserver-sets create`,classification:{safeFlags:[`advanced`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns settings account nameserver-sets create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_settings/nameserver_sets`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({advanced:e.advanced,ip_set:e[`ip-set`],name:m(e.name,`name`,`text`),nameservers:d(e.nameservers,`nameservers`)}):f(e.body)});return}let n=e.body===void 0?void 0:f(e.body),a=await r(e),u=e.local?t:await o();if(e.accountId=u,e.body!==void 0){let e=n,t=await l(`Creating`,async()=>a.send(z,{body:e,account_id:u}));s(t,{successLabel:`Created`});return}if(e.name===void 0&&(e.name=await g(`name`,`Customer-defined name, unique within the account by exact string equality (case-sensitive, with no Unicode normalization). Must be valid UTF-8 and at most 255 UTF-8 bytes, not 255 characters. Only graphical Unicode characters are allowed; leading or trailing whitespace is rejected. The name can be changed without changing the set's nameservers or addresses.`)),e.nameservers===void 0)throw Error(`--nameservers is required (or pass --body with this field set).`);let h=p({advanced:e.advanced,ip_set:e[`ip-set`],name:m(e.name,`name`,`text`),nameservers:d(e.nameservers,`nameservers`)}),_=await l(`Creating`,async()=>a.send(z,{body:h,account_id:u}));s(_,{successLabel:`Created`})})};var nt={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/dns_settings/nameserver_sets/${t.nameserver_set_id}`};function rt(e){return e.usage(`$0 dns settings account nameserver-sets delete <nameserver-set-id>
62
+ Creates a named Custom Nameserver Set. Only the customer-defined name can be changed later. To change nameservers or addresses, create a new set, move any zone assignments, and delete the old set. For details, refer to [Nameserver sets](https://developers.cloudflare.com/dns/nameservers/custom-nameservers/nameserver-sets/).`).option(`advanced`,{type:`boolean`,description:`Whether to allocate the nameservers from distinct Advanced anycast groups.`,default:!1}).option(`ip-set`,{type:`number`,description:"Selects the account-specific IP set that supplies the nameserver addresses. Nameserver sets with the same `ip_set` and `advanced` value may reuse addresses; otherwise, they use disjoint address groups.",default:1}).option(`name`,{type:`string`,description:`Customer-defined name, unique within the account by exact string equality (case-sensitive, with no Unicode normalization). Must be valid UTF-8 and at most 255 UTF-8 bytes, not 255 characters. Only graphical Unicode characters are allowed; leading or trailing whitespace is rejected. The name can be changed without changing the set's nameservers or addresses.`}).option(`nameservers`,{type:`string`,description:`Lists each nameserver and the number of addresses to allocate to it. Requires a unique name for each entry in the set. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"name": string, "ip_count"?: number}]. ? marks optional keys.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Be={command:`create`,describe:`Create Custom Nameserver Set`,builder:ze,handler:async e=>d({command:`dns settings account nameserver-sets create`,classification:{safeFlags:[`advanced`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf dns settings account nameserver-sets create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_settings/nameserver_sets`,pathParams:{},bodyKind:`json`,body:e.body===void 0?m({advanced:e.advanced,ip_set:e[`ip-set`],name:h(e.name,`name`,`text`),nameservers:f(e.nameservers,`nameservers`)}):p(e.body)});return}let t=e.body===void 0?void 0:p(e.body),a=await n(e),u=e.local?_:await o();if(e.accountId=u,e.body!==void 0){let e=t,n=await c(`Creating`,async()=>a.send(z,{body:e,account_id:u}));s(n,{successLabel:`Created`});return}if(e.name===void 0&&(e.name=await l(`name`,`Customer-defined name, unique within the account by exact string equality (case-sensitive, with no Unicode normalization). Must be valid UTF-8 and at most 255 UTF-8 bytes, not 255 characters. Only graphical Unicode characters are allowed; leading or trailing whitespace is rejected. The name can be changed without changing the set's nameservers or addresses.`)),e.nameservers===void 0)throw Error(`--nameservers is required (or pass --body with this field set).`);let d=m({advanced:e.advanced,ip_set:e[`ip-set`],name:h(e.name,`name`,`text`),nameservers:f(e.nameservers,`nameservers`)}),g=await c(`Creating`,async()=>a.send(z,{body:d,account_id:u}));s(g,{successLabel:`Created`})})};var Ve={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/dns_settings/nameserver_sets/${t.nameserver_set_id}`};function He(e){return e.usage(`$0 dns settings account nameserver-sets delete <nameserver-set-id>
73
63
 
74
- Deletes an unassigned Custom Nameserver Set. For details, refer to [Nameserver sets](https://developers.cloudflare.com/dns/nameservers/custom-nameservers/nameserver-sets/).`).positional(`nameserver-set-id`,{type:`string`,description:`Identifier for a nameserver set.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const it={command:`delete <nameserver-set-id>`,describe:`Delete Custom Nameserver Set`,builder:rt,handler:async e=>u({command:`dns settings account nameserver-sets delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns settings account nameserver-sets delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_settings/nameserver_sets/${e[`nameserver-set-id`]==null?`<nameserver-set-id>`:encodeURIComponent(String(e[`nameserver-set-id`]))}`,pathParams:{"nameserver-set-id":String(e[`nameserver-set-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force}))return;let u=await l(`Deleting`,async()=>n.send(nt,{account_id:a,nameserver_set_id:e[`nameserver-set-id`]}));s(u,{successLabel:`Deleted`})})};var B={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/dns_settings/nameserver_sets/${t.nameserver_set_id}`,body:`json`};function at(e){return e.usage(`$0 dns settings account nameserver-sets edit <nameserver-set-id>
64
+ Deletes an unassigned Custom Nameserver Set. For details, refer to [Nameserver sets](https://developers.cloudflare.com/dns/nameservers/custom-nameservers/nameserver-sets/).`).positional(`nameserver-set-id`,{type:`string`,description:`Identifier for a nameserver set.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Ue={command:`delete <nameserver-set-id>`,describe:`Delete Custom Nameserver Set`,builder:He,handler:async e=>d({command:`dns settings account nameserver-sets delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf dns settings account nameserver-sets delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_settings/nameserver_sets/${e[`nameserver-set-id`]==null?`<nameserver-set-id>`:encodeURIComponent(String(e[`nameserver-set-id`]))}`,pathParams:{"nameserver-set-id":String(e[`nameserver-set-id`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?_:await o();if(e.accountId=a,!await u({force:!!e.force}))return;let l=await c(`Deleting`,async()=>t.send(Ve,{account_id:a,nameserver_set_id:e[`nameserver-set-id`]}));s(l,{successLabel:`Deleted`})})};var B={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/dns_settings/nameserver_sets/${t.nameserver_set_id}`,body:`json`};function We(e){return e.usage(`$0 dns settings account nameserver-sets edit <nameserver-set-id>
75
65
 
76
- Renames a Custom Nameserver Set owned by the account. Only name may be supplied; immutable and unknown fields are rejected even if unchanged. An empty object or the existing name is a successful no-op. Requires the account-scoped creation entitlements for the existing set.`).positional(`nameserver-set-id`,{type:`string`,description:`Identifier for a nameserver set.`,demandOption:!0}).option(`name`,{type:`string`,description:`Customer-defined name, unique within the account by exact string equality (case-sensitive, with no Unicode normalization). Must be valid UTF-8 and at most 255 UTF-8 bytes, not 255 characters. Only graphical Unicode characters are allowed; leading or trailing whitespace is rejected. The name can be changed without changing the set's nameservers or addresses.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Updates only the customer-defined name. All other fields are rejected, even if unchanged. An empty object or the current name succeeds without changing the set. A null name is invalid. Requires the account-scoped creation entitlements, including eligibility for the set's current IP set and the Advanced entitlement for an Advanced set.`})}const ot={command:`edit <nameserver-set-id>`,describe:`Update Custom Nameserver Set`,builder:at,handler:async e=>u({command:`dns settings account nameserver-sets edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns settings account nameserver-sets edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_settings/nameserver_sets/${e[`nameserver-set-id`]==null?`<nameserver-set-id>`:encodeURIComponent(String(e[`nameserver-set-id`]))}`,pathParams:{"nameserver-set-id":String(e[`nameserver-set-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({name:m(e.name,`name`,`text`)}):f(e.body)});return}let n=e.body===void 0?void 0:f(e.body),a=await r(e),u=e.local?t:await o();if(e.accountId=u,e.body!==void 0){let t=n,r=await l(`Updating`,async()=>a.send(B,{body:t,account_id:u,nameserver_set_id:e[`nameserver-set-id`]}));s(r,{successLabel:`Updated`});return}let d=p({name:m(e.name,`name`,`text`)}),h=await l(`Updating`,async()=>a.send(B,{body:d,account_id:u,nameserver_set_id:e[`nameserver-set-id`]}));s(h,{successLabel:`Updated`})})};var st={method:`GET`,path:t=>e`/accounts/${t.account_id}/dns_settings/nameserver_sets/${t.nameserver_set_id}`};function ct(e){return e.usage(`$0 dns settings account nameserver-sets get <nameserver-set-id>
66
+ Renames a Custom Nameserver Set owned by the account. Only name may be supplied; immutable and unknown fields are rejected even if unchanged. An empty object or the existing name is a successful no-op. Requires the account-scoped creation entitlements for the existing set.`).positional(`nameserver-set-id`,{type:`string`,description:`Identifier for a nameserver set.`,demandOption:!0}).option(`name`,{type:`string`,description:`Customer-defined name, unique within the account by exact string equality (case-sensitive, with no Unicode normalization). Must be valid UTF-8 and at most 255 UTF-8 bytes, not 255 characters. Only graphical Unicode characters are allowed; leading or trailing whitespace is rejected. The name can be changed without changing the set's nameservers or addresses.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Updates only the customer-defined name. All other fields are rejected, even if unchanged. An empty object or the current name succeeds without changing the set. A null name is invalid. Requires the account-scoped creation entitlements, including eligibility for the set's current IP set and the Advanced entitlement for an Advanced set.`})}const Ge={command:`edit <nameserver-set-id>`,describe:`Update Custom Nameserver Set`,builder:We,handler:async e=>d({command:`dns settings account nameserver-sets edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf dns settings account nameserver-sets edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_settings/nameserver_sets/${e[`nameserver-set-id`]==null?`<nameserver-set-id>`:encodeURIComponent(String(e[`nameserver-set-id`]))}`,pathParams:{"nameserver-set-id":String(e[`nameserver-set-id`]??``)},bodyKind:`json`,body:e.body===void 0?m({name:h(e.name,`name`,`text`)}):p(e.body)});return}let t=e.body===void 0?void 0:p(e.body),a=await n(e),l=e.local?_:await o();if(e.accountId=l,e.body!==void 0){let n=t,r=await c(`Updating`,async()=>a.send(B,{body:n,account_id:l,nameserver_set_id:e[`nameserver-set-id`]}));s(r,{successLabel:`Updated`});return}let u=m({name:h(e.name,`name`,`text`)}),d=await c(`Updating`,async()=>a.send(B,{body:u,account_id:l,nameserver_set_id:e[`nameserver-set-id`]}));s(d,{successLabel:`Updated`})})};var Ke={method:`GET`,path:t=>e`/accounts/${t.account_id}/dns_settings/nameserver_sets/${t.nameserver_set_id}`};function qe(e){return e.usage(`$0 dns settings account nameserver-sets get <nameserver-set-id>
77
67
 
78
- Gets a Custom Nameserver Set owned by an account. For details, refer to [Nameserver sets](https://developers.cloudflare.com/dns/nameservers/custom-nameservers/nameserver-sets/).`).positional(`nameserver-set-id`,{type:`string`,description:`Identifier for a nameserver set.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const lt={command:`get <nameserver-set-id>`,describe:`Get Custom Nameserver Set`,builder:ct,handler:async e=>u({command:`dns settings account nameserver-sets get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns settings account nameserver-sets get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_settings/nameserver_sets/${e[`nameserver-set-id`]==null?`<nameserver-set-id>`:encodeURIComponent(String(e[`nameserver-set-id`]))}`,pathParams:{"nameserver-set-id":String(e[`nameserver-set-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(st,{account_id:a,nameserver_set_id:e[`nameserver-set-id`]}));s(u,{successLabel:`Loaded`})})};var ut={method:`GET`,path:t=>e`/accounts/${t.account_id}/dns_settings/nameserver_sets`,query:[`page`,`per_page`]};function dt(e){return e.usage(`$0 dns settings account nameserver-sets list
68
+ Gets a Custom Nameserver Set owned by an account. For details, refer to [Nameserver sets](https://developers.cloudflare.com/dns/nameservers/custom-nameservers/nameserver-sets/).`).positional(`nameserver-set-id`,{type:`string`,description:`Identifier for a nameserver set.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Je={command:`get <nameserver-set-id>`,describe:`Get Custom Nameserver Set`,builder:qe,handler:async e=>d({command:`dns settings account nameserver-sets get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf dns settings account nameserver-sets get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_settings/nameserver_sets/${e[`nameserver-set-id`]==null?`<nameserver-set-id>`:encodeURIComponent(String(e[`nameserver-set-id`]))}`,pathParams:{"nameserver-set-id":String(e[`nameserver-set-id`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?_:await o();e.accountId=a;let l=await c(`Loading`,async()=>t.send(Ke,{account_id:a,nameserver_set_id:e[`nameserver-set-id`]}));s(l,{successLabel:`Loaded`})})};var Ye={method:`GET`,path:t=>e`/accounts/${t.account_id}/dns_settings/nameserver_sets`,query:[`page`,`per_page`]};function Xe(e){return e.usage(`$0 dns settings account nameserver-sets list
79
69
 
80
- Lists an account's Custom Nameserver Sets. For details, refer to [Nameserver sets](https://developers.cloudflare.com/dns/nameservers/custom-nameservers/nameserver-sets/).`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ft={command:`list`,describe:`List Custom Nameserver Sets`,builder:dt,handler:async e=>u({command:`dns settings account nameserver-sets list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={page:e.page,per_page:e[`per-page`]};if(e.dryRun){let e=await i();c({command:`cf dns settings account nameserver-sets list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/dns_settings/nameserver_sets`,pathParams:{},query:n,bodyKind:`none`});return}let a=await r(e),u=e.local?t:await o();e.accountId=u;let d=await l(`Loading`,async()=>a.send(ut,{account_id:u,...n}));s(d,{successLabel:`Loaded`})})},pt={command:`nameserver-sets`,describe:`Operations for settings.account.nameserver-sets`,builder:e=>e.command(tt).command(it).command(ot).command(lt).command(ft).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var V={method:`POST`,path:t=>e`/accounts/${t.account_id}/dns_settings/views`,body:`json`};function mt(e){return e.usage(`$0 dns settings account views create
70
+ Lists an account's Custom Nameserver Sets. For details, refer to [Nameserver sets](https://developers.cloudflare.com/dns/nameservers/custom-nameservers/nameserver-sets/).`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ze={command:`list`,describe:`List Custom Nameserver Sets`,builder:Xe,handler:async e=>d({command:`dns settings account nameserver-sets list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={page:e.page,per_page:e[`per-page`]};if(e.dryRun){let e=await i();r({command:`cf dns settings account nameserver-sets list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/dns_settings/nameserver_sets`,pathParams:{},query:t,bodyKind:`none`});return}let a=await n(e),l=e.local?_:await o();e.accountId=l;let u=await c(`Loading`,async()=>a.send(Ye,{account_id:l,...t}));s(u,{successLabel:`Loaded`})})},Qe={command:`nameserver-sets`,describe:`Operations for settings.account.nameserver-sets`,builder:e=>e.command(Be).command(Ue).command(Ge).command(Je).command(Ze).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var V={method:`POST`,path:t=>e`/accounts/${t.account_id}/dns_settings/views`,body:`json`};function $e(e){return e.usage(`$0 dns settings account views create
81
71
 
82
- Create Internal DNS View for an account`).option(`name`,{type:`string`,description:`The name of the view.`}).option(`zones`,{type:`string`,array:!0,description:`The list of zones linked to this view.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ht={command:`create`,describe:`Create Internal DNS View`,builder:mt,handler:async e=>u({command:`dns settings account views create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns settings account views create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_settings/views`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({name:m(e.name,`name`,`text`),zones:e.zones}):f(e.body)});return}let n=e.body===void 0?void 0:f(e.body),a=await r(e),u=e.local?t:await o();if(e.accountId=u,e.body!==void 0){let e=n,t=await l(`Creating`,async()=>a.send(V,{body:e,account_id:u}));s(t,{successLabel:`Created`});return}if(e.name===void 0&&(e.name=await g(`name`,`The name of the view.`)),e.zones===void 0)throw Error(`--zones is required (or pass --body with this field set).`);let d=p({name:m(e.name,`name`,`text`),zones:e.zones}),h=await l(`Creating`,async()=>a.send(V,{body:d,account_id:u}));s(h,{successLabel:`Created`})})};var gt={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/dns_settings/views/${t.view_id}`};function _t(e){return e.usage(`$0 dns settings account views delete <view-id>
72
+ Create Internal DNS View for an account`).option(`name`,{type:`string`,description:`The name of the view.`}).option(`zones`,{type:`string`,array:!0,description:`The list of zones linked to this view.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const et={command:`create`,describe:`Create Internal DNS View`,builder:$e,handler:async e=>d({command:`dns settings account views create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf dns settings account views create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_settings/views`,pathParams:{},bodyKind:`json`,body:e.body===void 0?m({name:h(e.name,`name`,`text`),zones:e.zones}):p(e.body)});return}let t=e.body===void 0?void 0:p(e.body),a=await n(e),u=e.local?_:await o();if(e.accountId=u,e.body!==void 0){let e=t,n=await c(`Creating`,async()=>a.send(V,{body:e,account_id:u}));s(n,{successLabel:`Created`});return}if(e.name===void 0&&(e.name=await l(`name`,`The name of the view.`)),e.zones===void 0)throw Error(`--zones is required (or pass --body with this field set).`);let d=m({name:h(e.name,`name`,`text`),zones:e.zones}),f=await c(`Creating`,async()=>a.send(V,{body:d,account_id:u}));s(f,{successLabel:`Created`})})};var tt={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/dns_settings/views/${t.view_id}`};function nt(e){return e.usage(`$0 dns settings account views delete <view-id>
83
73
 
84
- Delete an existing Internal DNS View`).positional(`view-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const vt={command:`delete <view-id>`,describe:`Delete Internal DNS View`,builder:_t,handler:async e=>u({command:`dns settings account views delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns settings account views delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_settings/views/${e[`view-id`]==null?`<view-id>`:encodeURIComponent(String(e[`view-id`]))}`,pathParams:{"view-id":String(e[`view-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force}))return;let u=await l(`Deleting`,async()=>n.send(gt,{account_id:a,view_id:e[`view-id`]}));s(u,{successLabel:`Deleted`})})};var H={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/dns_settings/views/${t.view_id}`,body:`json`};function yt(e){return e.usage(`$0 dns settings account views edit <view-id>
74
+ Delete an existing Internal DNS View`).positional(`view-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const rt={command:`delete <view-id>`,describe:`Delete Internal DNS View`,builder:nt,handler:async e=>d({command:`dns settings account views delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf dns settings account views delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_settings/views/${e[`view-id`]==null?`<view-id>`:encodeURIComponent(String(e[`view-id`]))}`,pathParams:{"view-id":String(e[`view-id`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?_:await o();if(e.accountId=a,!await u({force:!!e.force}))return;let l=await c(`Deleting`,async()=>t.send(tt,{account_id:a,view_id:e[`view-id`]}));s(l,{successLabel:`Deleted`})})};var H={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/dns_settings/views/${t.view_id}`,body:`json`};function it(e){return e.usage(`$0 dns settings account views edit <view-id>
85
75
 
86
- Update an existing Internal DNS View`).positional(`view-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`name`,{type:`string`,description:`The name of the view.`}).option(`zones`,{type:`string`,array:!0,description:`The list of zones linked to this view.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const bt={command:`edit <view-id>`,describe:`Update Internal DNS View`,builder:yt,handler:async e=>u({command:`dns settings account views edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns settings account views edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_settings/views/${e[`view-id`]==null?`<view-id>`:encodeURIComponent(String(e[`view-id`]))}`,pathParams:{"view-id":String(e[`view-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({name:m(e.name,`name`,`text`),zones:e.zones}):f(e.body)});return}let n=e.body===void 0?void 0:f(e.body),a=await r(e),u=e.local?t:await o();if(e.accountId=u,e.body!==void 0){let t=n,r=await l(`Updating`,async()=>a.send(H,{body:t,account_id:u,view_id:e[`view-id`]}));s(r,{successLabel:`Updated`});return}let d=p({name:m(e.name,`name`,`text`),zones:e.zones}),h=await l(`Updating`,async()=>a.send(H,{body:d,account_id:u,view_id:e[`view-id`]}));s(h,{successLabel:`Updated`})})};var xt={method:`GET`,path:t=>e`/accounts/${t.account_id}/dns_settings/views/${t.view_id}`};function St(e){return e.usage(`$0 dns settings account views get <view-id>
76
+ Update an existing Internal DNS View`).positional(`view-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`name`,{type:`string`,description:`The name of the view.`}).option(`zones`,{type:`string`,array:!0,description:`The list of zones linked to this view.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const at={command:`edit <view-id>`,describe:`Update Internal DNS View`,builder:it,handler:async e=>d({command:`dns settings account views edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf dns settings account views edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_settings/views/${e[`view-id`]==null?`<view-id>`:encodeURIComponent(String(e[`view-id`]))}`,pathParams:{"view-id":String(e[`view-id`]??``)},bodyKind:`json`,body:e.body===void 0?m({name:h(e.name,`name`,`text`),zones:e.zones}):p(e.body)});return}let t=e.body===void 0?void 0:p(e.body),a=await n(e),l=e.local?_:await o();if(e.accountId=l,e.body!==void 0){let n=t,r=await c(`Updating`,async()=>a.send(H,{body:n,account_id:l,view_id:e[`view-id`]}));s(r,{successLabel:`Updated`});return}let u=m({name:h(e.name,`name`,`text`),zones:e.zones}),d=await c(`Updating`,async()=>a.send(H,{body:u,account_id:l,view_id:e[`view-id`]}));s(d,{successLabel:`Updated`})})};var ot={method:`GET`,path:t=>e`/accounts/${t.account_id}/dns_settings/views/${t.view_id}`};function st(e){return e.usage(`$0 dns settings account views get <view-id>
87
77
 
88
- Get DNS Internal View`).positional(`view-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ct={command:`get <view-id>`,describe:`DNS Internal View Details`,builder:St,handler:async e=>u({command:`dns settings account views get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns settings account views get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_settings/views/${e[`view-id`]==null?`<view-id>`:encodeURIComponent(String(e[`view-id`]))}`,pathParams:{"view-id":String(e[`view-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(xt,{account_id:a,view_id:e[`view-id`]}));s(u,{successLabel:`Loaded`})})};var wt={method:`GET`,path:t=>e`/accounts/${t.account_id}/dns_settings/views`,query:[`name`,`name.exact`,`name.contains`,`name.startswith`,`name.endswith`,`zone_id`,`zone_name`,`match`,`page`,`per_page`,`order`,`direction`]};function Tt(e){return e.usage(`$0 dns settings account views list
78
+ Get DNS Internal View`).positional(`view-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ct={command:`get <view-id>`,describe:`DNS Internal View Details`,builder:st,handler:async e=>d({command:`dns settings account views get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf dns settings account views get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_settings/views/${e[`view-id`]==null?`<view-id>`:encodeURIComponent(String(e[`view-id`]))}`,pathParams:{"view-id":String(e[`view-id`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?_:await o();e.accountId=a;let l=await c(`Loading`,async()=>t.send(ot,{account_id:a,view_id:e[`view-id`]}));s(l,{successLabel:`Loaded`})})};var lt={method:`GET`,path:t=>e`/accounts/${t.account_id}/dns_settings/views`,query:[`name`,`name.exact`,`name.contains`,`name.startswith`,`name.endswith`,`zone_id`,`zone_name`,`match`,`page`,`per_page`,`order`,`direction`]};function ut(e){return e.usage(`$0 dns settings account views list
89
79
 
90
- List DNS Internal Views for an Account`).option(`name`,{type:`string`,description:"Exact value of the DNS view name. This is a convenience alias for `name.exact`."}).option(`name-exact`,{type:`string`,description:`Exact value of the DNS view name.`}).option(`name-contains`,{type:`string`,description:`Substring of the DNS view name.`}).option(`name-startswith`,{type:`string`,description:`Prefix of the DNS view name.`}).option(`name-endswith`,{type:`string`,description:`Suffix of the DNS view name.`}).option(`zone-id`,{type:`string`,description:`A zone ID that exists in the zones list for the view.`}).option(`zone-name`,{type:`string`,description:`A zone name that exists in the zones list for the view.`}).option(`match`,{type:`string`,description:"Whether to match all search requirements or at least one (any). If set to `all`, acts like a logical AND between filters. If set to `any`, acts like a logical OR instead.",choices:[`any`,`all`]}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`order`,{type:`string`,description:`Field to order DNS views by.`,choices:[`name`,`created_on`,`modified_on`]}).option(`direction`,{type:`string`,description:`Direction to order DNS views in.`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Et={command:`list`,describe:`List Internal DNS Views`,builder:Tt,handler:async e=>u({command:`dns settings account views list`,classification:{safeFlags:[`match`,`order`,`direction`,`dry-run`]}},e,async()=>{let n={name:e.name,"name.exact":e[`name-exact`],"name.contains":e[`name-contains`],"name.startswith":e[`name-startswith`],"name.endswith":e[`name-endswith`],zone_id:e[`zone-id`],zone_name:e[`zone-name`],match:e.match,page:e.page,per_page:e[`per-page`],order:e.order,direction:e.direction};if(e.dryRun){let e=await i();c({command:`cf dns settings account views list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/dns_settings/views`,pathParams:{},query:n,bodyKind:`none`});return}let a=await r(e),u=e.local?t:await o();e.accountId=u;let d=await l(`Loading`,async()=>a.send(wt,{account_id:u,...n}));s(d,{successLabel:`Loaded`})})},Dt={command:`views`,describe:`Operations for settings.account.views`,builder:e=>e.command(ht).command(vt).command(bt).command(Ct).command(Et).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ot={command:`account`,describe:`Operations for settings.account`,builder:e=>e.command(Xe).command($e).command(pt).command(Dt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},kt={command:`settings`,describe:`Operations for settings`,builder:e=>e.command(Ot).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var At={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/dns_records/usage`};function jt(e){return e.usage(`$0 dns usage account get
80
+ List DNS Internal Views for an Account`).option(`name`,{type:`string`,description:"Exact value of the DNS view name. This is a convenience alias for `name.exact`."}).option(`name-exact`,{type:`string`,description:`Exact value of the DNS view name.`}).option(`name-contains`,{type:`string`,description:`Substring of the DNS view name.`}).option(`name-startswith`,{type:`string`,description:`Prefix of the DNS view name.`}).option(`name-endswith`,{type:`string`,description:`Suffix of the DNS view name.`}).option(`zone-id`,{type:`string`,description:`A zone ID that exists in the zones list for the view.`}).option(`zone-name`,{type:`string`,description:`A zone name that exists in the zones list for the view.`}).option(`match`,{type:`string`,description:"Whether to match all search requirements or at least one (any). If set to `all`, acts like a logical AND between filters. If set to `any`, acts like a logical OR instead.",choices:[`any`,`all`]}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`order`,{type:`string`,description:`Field to order DNS views by.`,choices:[`name`,`created_on`,`modified_on`]}).option(`direction`,{type:`string`,description:`Direction to order DNS views in.`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const dt={command:`list`,describe:`List Internal DNS Views`,builder:ut,handler:async e=>d({command:`dns settings account views list`,classification:{safeFlags:[`match`,`order`,`direction`,`dry-run`]}},e,async()=>{let t={name:e.name,"name.exact":e[`name-exact`],"name.contains":e[`name-contains`],"name.startswith":e[`name-startswith`],"name.endswith":e[`name-endswith`],zone_id:e[`zone-id`],zone_name:e[`zone-name`],match:e.match,page:e.page,per_page:e[`per-page`],order:e.order,direction:e.direction};if(e.dryRun){let e=await i();r({command:`cf dns settings account views list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/dns_settings/views`,pathParams:{},query:t,bodyKind:`none`});return}let a=await n(e),l=e.local?_:await o();e.accountId=l;let u=await c(`Loading`,async()=>a.send(lt,{account_id:l,...t}));s(u,{successLabel:`Loaded`})})},ft={command:`views`,describe:`Operations for settings.account.views`,builder:e=>e.command(et).command(rt).command(at).command(ct).command(dt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},pt={command:`account`,describe:`Operations for settings.account`,builder:e=>e.command(Fe).command(Re).command(Qe).command(ft).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},mt={command:`settings`,describe:`Operations for settings`,builder:e=>e.command(pt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ht={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/dns_records/usage`};function gt(e){return e.usage(`$0 dns usage account get
91
81
 
92
82
  Get the current DNS record usage and quota for an account or zone. May include internal DNS usage and quota.
93
83
 
94
- Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Mt={command:`get`,describe:`Get DNS Record Usage for account or zone`,builder:jt,handler:async e=>u({command:`dns usage account get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf dns usage account get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/dns_records/usage`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();u===`zones`?e.zoneId=d:e.accountId=d;let f=await l(`Loading`,async()=>n.send(At,{account_or_zone:u,account_or_zone_id:d}));s(f,{successLabel:`Loaded`})})},Nt={command:`account`,describe:`Operations for usage.account`,builder:e=>e.command(Mt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Pt={command:`usage`,describe:`Operations for usage`,builder:e=>e.command(Nt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var U={method:`POST`,path:t=>e`/accounts/${t.account_id}/secondary_dns/acls`,body:`json`};function Ft(e){return e.usage(`$0 dns zone-transfers acls create
84
+ Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _t={command:`get`,describe:`Get DNS Record Usage for account or zone`,builder:gt,handler:async e=>d({command:`dns usage account get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,a=e.zone??t??`<account-id>`;r({command:`cf dns usage account get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${a}/dns_records/usage`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(a)},bodyKind:`none`});return}let t=await n(e),l=e.zone===void 0?`accounts`:`zones`,u=l===`zones`?await a({zone:e.zone},t,{quiet:e.quiet}):e.local?_:await o();l===`zones`?e.zoneId=u:e.accountId=u;let d=await c(`Loading`,async()=>t.send(ht,{account_or_zone:l,account_or_zone_id:u}));s(d,{successLabel:`Loaded`})})},vt={command:`account`,describe:`Operations for usage.account`,builder:e=>e.command(_t).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},yt={command:`usage`,describe:`Operations for usage`,builder:e=>e.command(vt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var U={method:`POST`,path:t=>e`/accounts/${t.account_id}/secondary_dns/acls`,body:`json`};function bt(e){return e.usage(`$0 dns zone-transfers acls create
95
85
 
96
- Create ACL.`).option(`ip-range`,{type:`string`,description:`Allowed IPv4/IPv6 address range of primary or secondary nameservers. This will be applied for the entire account. The IP range is used to allow additional NOTIFY IPs for secondary zones and IPs Cloudflare allows AXFR/IXFR requests from for primary zones. CIDRs are limited to a maximum of /24 for IPv4 and /64 for IPv6 respectively.`}).option(`name`,{type:`string`,description:`The name of the acl.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const It={command:`create`,describe:`Create ACL`,builder:Ft,handler:async e=>u({command:`dns zone-transfers acls create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns zone-transfers acls create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/acls`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({ip_range:m(e[`ip-range`],`ip-range`,`text`),name:m(e.name,`name`,`text`)}):f(e.body)});return}let n=e.body===void 0?void 0:f(e.body),a=await r(e),u=e.local?t:await o();if(e.accountId=u,e.body!==void 0){let e=n,t=await l(`Creating`,async()=>a.send(U,{body:e,account_id:u}));s(t,{successLabel:`Created`});return}e[`ip-range`]===void 0&&(e[`ip-range`]=await g(`ip-range`,`Allowed IPv4/IPv6 address range of primary or secondary nameservers. This will be applied for the entire account. The IP range is used to allow additional NOTIFY IPs for secondary zones and IPs Cloudflare allows AXFR/IXFR requests from for primary zones. CIDRs are limited to a maximum of /24 for IPv4 and /64 for IPv6 respectively.`)),e.name===void 0&&(e.name=await g(`name`,`The name of the acl.`));let d=p({ip_range:m(e[`ip-range`],`ip-range`,`text`),name:m(e.name,`name`,`text`)}),h=await l(`Creating`,async()=>a.send(U,{body:d,account_id:u}));s(h,{successLabel:`Created`})})};var Lt={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/secondary_dns/acls/${t.acl_id}`};function Rt(e){return e.usage(`$0 dns zone-transfers acls delete <acl-id>
86
+ Create ACL.`).option(`ip-range`,{type:`string`,description:`Allowed IPv4/IPv6 address range of primary or secondary nameservers. This will be applied for the entire account. The IP range is used to allow additional NOTIFY IPs for secondary zones and IPs Cloudflare allows AXFR/IXFR requests from for primary zones. CIDRs are limited to a maximum of /24 for IPv4 and /64 for IPv6 respectively.`}).option(`name`,{type:`string`,description:`The name of the acl.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const xt={command:`create`,describe:`Create ACL`,builder:bt,handler:async e=>d({command:`dns zone-transfers acls create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf dns zone-transfers acls create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/acls`,pathParams:{},bodyKind:`json`,body:e.body===void 0?m({ip_range:h(e[`ip-range`],`ip-range`,`text`),name:h(e.name,`name`,`text`)}):p(e.body)});return}let t=e.body===void 0?void 0:p(e.body),a=await n(e),u=e.local?_:await o();if(e.accountId=u,e.body!==void 0){let e=t,n=await c(`Creating`,async()=>a.send(U,{body:e,account_id:u}));s(n,{successLabel:`Created`});return}e[`ip-range`]===void 0&&(e[`ip-range`]=await l(`ip-range`,`Allowed IPv4/IPv6 address range of primary or secondary nameservers. This will be applied for the entire account. The IP range is used to allow additional NOTIFY IPs for secondary zones and IPs Cloudflare allows AXFR/IXFR requests from for primary zones. CIDRs are limited to a maximum of /24 for IPv4 and /64 for IPv6 respectively.`)),e.name===void 0&&(e.name=await l(`name`,`The name of the acl.`));let d=m({ip_range:h(e[`ip-range`],`ip-range`,`text`),name:h(e.name,`name`,`text`)}),f=await c(`Creating`,async()=>a.send(U,{body:d,account_id:u}));s(f,{successLabel:`Created`})})};var St={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/secondary_dns/acls/${t.acl_id}`};function Ct(e){return e.usage(`$0 dns zone-transfers acls delete <acl-id>
97
87
 
98
- Delete ACL.`).positional(`acl-id`,{type:`string`,description:`Acl ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const zt={command:`delete <acl-id>`,describe:`Delete ACL`,builder:Rt,handler:async e=>u({command:`dns zone-transfers acls delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns zone-transfers acls delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/acls/${e[`acl-id`]==null?`<acl-id>`:encodeURIComponent(String(e[`acl-id`]))}`,pathParams:{"acl-id":String(e[`acl-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force}))return;let u=await l(`Deleting`,async()=>n.send(Lt,{account_id:a,acl_id:e[`acl-id`]}));s(u,{successLabel:`Deleted`})})};var Bt={method:`GET`,path:t=>e`/accounts/${t.account_id}/secondary_dns/acls/${t.acl_id}`};function Vt(e){return e.usage(`$0 dns zone-transfers acls get <acl-id>
88
+ Delete ACL.`).positional(`acl-id`,{type:`string`,description:`Acl ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const wt={command:`delete <acl-id>`,describe:`Delete ACL`,builder:Ct,handler:async e=>d({command:`dns zone-transfers acls delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf dns zone-transfers acls delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/acls/${e[`acl-id`]==null?`<acl-id>`:encodeURIComponent(String(e[`acl-id`]))}`,pathParams:{"acl-id":String(e[`acl-id`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?_:await o();if(e.accountId=a,!await u({force:!!e.force}))return;let l=await c(`Deleting`,async()=>t.send(St,{account_id:a,acl_id:e[`acl-id`]}));s(l,{successLabel:`Deleted`})})};var Tt={method:`GET`,path:t=>e`/accounts/${t.account_id}/secondary_dns/acls/${t.acl_id}`};function Et(e){return e.usage(`$0 dns zone-transfers acls get <acl-id>
99
89
 
100
- Get ACL.`).positional(`acl-id`,{type:`string`,description:`Acl ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ht={command:`get <acl-id>`,describe:`ACL Details`,builder:Vt,handler:async e=>u({command:`dns zone-transfers acls get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns zone-transfers acls get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/acls/${e[`acl-id`]==null?`<acl-id>`:encodeURIComponent(String(e[`acl-id`]))}`,pathParams:{"acl-id":String(e[`acl-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(Bt,{account_id:a,acl_id:e[`acl-id`]}));s(u,{successLabel:`Loaded`})})};var Ut={method:`GET`,path:t=>e`/accounts/${t.account_id}/secondary_dns/acls`};function Wt(e){return e.usage(`$0 dns zone-transfers acls list
90
+ Get ACL.`).positional(`acl-id`,{type:`string`,description:`Acl ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Dt={command:`get <acl-id>`,describe:`ACL Details`,builder:Et,handler:async e=>d({command:`dns zone-transfers acls get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf dns zone-transfers acls get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/acls/${e[`acl-id`]==null?`<acl-id>`:encodeURIComponent(String(e[`acl-id`]))}`,pathParams:{"acl-id":String(e[`acl-id`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?_:await o();e.accountId=a;let l=await c(`Loading`,async()=>t.send(Tt,{account_id:a,acl_id:e[`acl-id`]}));s(l,{successLabel:`Loaded`})})};var Ot={method:`GET`,path:t=>e`/accounts/${t.account_id}/secondary_dns/acls`};function kt(e){return e.usage(`$0 dns zone-transfers acls list
101
91
 
102
- List ACLs.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Gt={command:`list`,describe:`List ACLs`,builder:Wt,handler:async e=>u({command:`dns zone-transfers acls list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();c({command:`cf dns zone-transfers acls list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/secondary_dns/acls`,pathParams:{},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(Ut,{account_id:a}));s(u,{successLabel:`Loaded`})})};var W={method:`PUT`,path:t=>e`/accounts/${t.account_id}/secondary_dns/acls/${t.acl_id}`,body:`json`};function Kt(e){return e.usage(`$0 dns zone-transfers acls update <acl-id>
92
+ List ACLs.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const At={command:`list`,describe:`List ACLs`,builder:kt,handler:async e=>d({command:`dns zone-transfers acls list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();r({command:`cf dns zone-transfers acls list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/secondary_dns/acls`,pathParams:{},bodyKind:`none`});return}let t=await n(e),a=e.local?_:await o();e.accountId=a;let l=await c(`Loading`,async()=>t.send(Ot,{account_id:a}));s(l,{successLabel:`Loaded`})})};var W={method:`PUT`,path:t=>e`/accounts/${t.account_id}/secondary_dns/acls/${t.acl_id}`,body:`json`};function jt(e){return e.usage(`$0 dns zone-transfers acls update <acl-id>
103
93
 
104
- Modify ACL.`).positional(`acl-id`,{type:`string`,description:`Acl ID`,demandOption:!0}).option(`ip-range`,{type:`string`,description:`Allowed IPv4/IPv6 address range of primary or secondary nameservers. This will be applied for the entire account. The IP range is used to allow additional NOTIFY IPs for secondary zones and IPs Cloudflare allows AXFR/IXFR requests from for primary zones. CIDRs are limited to a maximum of /24 for IPv4 and /64 for IPv6 respectively.`}).option(`name`,{type:`string`,description:`The name of the acl.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const qt={command:`update <acl-id>`,describe:`Update ACL`,builder:Kt,handler:async e=>u({command:`dns zone-transfers acls update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns zone-transfers acls update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/acls/${e[`acl-id`]==null?`<acl-id>`:encodeURIComponent(String(e[`acl-id`]))}`,pathParams:{"acl-id":String(e[`acl-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({ip_range:m(e[`ip-range`],`ip-range`,`text`),name:m(e.name,`name`,`text`)}):f(e.body)});return}let n=e.body===void 0?void 0:f(e.body),a=await r(e),u=e.local?t:await o();if(e.accountId=u,e.body!==void 0){let t=n,r=await l(`Updating`,async()=>a.send(W,{body:t,account_id:u,acl_id:e[`acl-id`]}));s(r,{successLabel:`Updated`});return}e[`ip-range`]===void 0&&(e[`ip-range`]=await g(`ip-range`,`Allowed IPv4/IPv6 address range of primary or secondary nameservers. This will be applied for the entire account. The IP range is used to allow additional NOTIFY IPs for secondary zones and IPs Cloudflare allows AXFR/IXFR requests from for primary zones. CIDRs are limited to a maximum of /24 for IPv4 and /64 for IPv6 respectively.`)),e.name===void 0&&(e.name=await g(`name`,`The name of the acl.`));let d=p({ip_range:m(e[`ip-range`],`ip-range`,`text`),name:m(e.name,`name`,`text`)}),h=await l(`Updating`,async()=>a.send(W,{body:d,account_id:u,acl_id:e[`acl-id`]}));s(h,{successLabel:`Updated`})})},Jt={command:`acls`,describe:`Operations for zone-transfers.acls`,builder:e=>e.command(It).command(zt).command(Ht).command(Gt).command(qt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Yt={method:`POST`,path:t=>e`/zones/${t.zone_id}/secondary_dns/force_axfr`};function Xt(e){return e.usage(`$0 dns zone-transfers force-axfr create
94
+ Modify ACL.`).positional(`acl-id`,{type:`string`,description:`Acl ID`,demandOption:!0}).option(`ip-range`,{type:`string`,description:`Allowed IPv4/IPv6 address range of primary or secondary nameservers. This will be applied for the entire account. The IP range is used to allow additional NOTIFY IPs for secondary zones and IPs Cloudflare allows AXFR/IXFR requests from for primary zones. CIDRs are limited to a maximum of /24 for IPv4 and /64 for IPv6 respectively.`}).option(`name`,{type:`string`,description:`The name of the acl.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Mt={command:`update <acl-id>`,describe:`Update ACL`,builder:jt,handler:async e=>d({command:`dns zone-transfers acls update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf dns zone-transfers acls update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/acls/${e[`acl-id`]==null?`<acl-id>`:encodeURIComponent(String(e[`acl-id`]))}`,pathParams:{"acl-id":String(e[`acl-id`]??``)},bodyKind:`json`,body:e.body===void 0?m({ip_range:h(e[`ip-range`],`ip-range`,`text`),name:h(e.name,`name`,`text`)}):p(e.body)});return}let t=e.body===void 0?void 0:p(e.body),a=await n(e),u=e.local?_:await o();if(e.accountId=u,e.body!==void 0){let n=t,r=await c(`Updating`,async()=>a.send(W,{body:n,account_id:u,acl_id:e[`acl-id`]}));s(r,{successLabel:`Updated`});return}e[`ip-range`]===void 0&&(e[`ip-range`]=await l(`ip-range`,`Allowed IPv4/IPv6 address range of primary or secondary nameservers. This will be applied for the entire account. The IP range is used to allow additional NOTIFY IPs for secondary zones and IPs Cloudflare allows AXFR/IXFR requests from for primary zones. CIDRs are limited to a maximum of /24 for IPv4 and /64 for IPv6 respectively.`)),e.name===void 0&&(e.name=await l(`name`,`The name of the acl.`));let d=m({ip_range:h(e[`ip-range`],`ip-range`,`text`),name:h(e.name,`name`,`text`)}),f=await c(`Updating`,async()=>a.send(W,{body:d,account_id:u,acl_id:e[`acl-id`]}));s(f,{successLabel:`Updated`})})},Nt={command:`acls`,describe:`Operations for zone-transfers.acls`,builder:e=>e.command(xt).command(wt).command(Dt).command(At).command(Mt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Pt={method:`POST`,path:t=>e`/zones/${t.zone_id}/secondary_dns/force_axfr`};function Ft(e){return e.usage(`$0 dns zone-transfers force-axfr create
105
95
 
106
- Sends AXFR zone transfer request to primary nameserver(s).`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Zt={command:`create`,describe:`Force AXFR`,builder:Xt,handler:async e=>u({command:`dns zone-transfers force-axfr create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns zone-transfers force-axfr create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/force_axfr`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n;let i=await l(`Creating`,async()=>t.send(Yt,{zone_id:n}));s(i,{successLabel:`Created`})})},Qt={command:`force-axfr`,describe:`Operations for zone-transfers.force-axfr`,builder:e=>e.command(Zt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var G={method:`POST`,path:t=>e`/zones/${t.zone_id}/secondary_dns/incoming`,body:`json`};function $t(e){return e.usage(`$0 dns zone-transfers incoming create
96
+ Sends AXFR zone transfer request to primary nameserver(s).`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const It={command:`create`,describe:`Force AXFR`,builder:Ft,handler:async e=>d({command:`dns zone-transfers force-axfr create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf dns zone-transfers force-axfr create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/force_axfr`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),i=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=i;let o=await c(`Creating`,async()=>t.send(Pt,{zone_id:i}));s(o,{successLabel:`Created`})})},Lt={command:`force-axfr`,describe:`Operations for zone-transfers.force-axfr`,builder:e=>e.command(It).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var G={method:`POST`,path:t=>e`/zones/${t.zone_id}/secondary_dns/incoming`,body:`json`};function Rt(e){return e.usage(`$0 dns zone-transfers incoming create
107
97
 
108
98
  Create secondary zone configuration for incoming zone transfers.`).option(`auto-refresh-seconds`,{type:`number`,description:`How often should a secondary zone auto refresh regardless of DNS NOTIFY.
109
- Not applicable for primary zones.`,default:86400}).option(`name`,{type:`string`,description:`Zone name.`}).option(`peers`,{type:`string`,array:!0,description:`A list of peer tags.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const en={command:`create`,describe:`Create Secondary Zone Configuration`,builder:$t,handler:async e=>u({command:`dns zone-transfers incoming create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns zone-transfers incoming create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/incoming`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({auto_refresh_seconds:e[`auto-refresh-seconds`],name:m(e.name,`name`,`text`),peers:e.peers}):f(e.body)});return}let t=e.body===void 0?void 0:f(e.body),n=await r(e),i=await a({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=i,e.body!==void 0){let e=t,r=await l(`Creating`,async()=>n.send(G,{body:e,zone_id:i}));s(r,{successLabel:`Created`});return}if(e[`auto-refresh-seconds`]===void 0)throw Error(`--auto-refresh-seconds is required (or pass --body with this field set).`);if(e.name===void 0&&(e.name=await g(`name`,`Zone name.`)),e.peers===void 0)throw Error(`--peers is required (or pass --body with this field set).`);let o=p({auto_refresh_seconds:e[`auto-refresh-seconds`],name:m(e.name,`name`,`text`),peers:e.peers}),u=await l(`Creating`,async()=>n.send(G,{body:o,zone_id:i}));s(u,{successLabel:`Created`})})};var tn={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/secondary_dns/incoming`};function nn(e){return e.usage(`$0 dns zone-transfers incoming delete
99
+ Not applicable for primary zones.`,default:86400}).option(`name`,{type:`string`,description:`Zone name.`}).option(`peers`,{type:`string`,array:!0,description:`A list of peer tags.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const zt={command:`create`,describe:`Create Secondary Zone Configuration`,builder:Rt,handler:async e=>d({command:`dns zone-transfers incoming create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf dns zone-transfers incoming create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/incoming`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?m({auto_refresh_seconds:e[`auto-refresh-seconds`],name:h(e.name,`name`,`text`),peers:e.peers}):p(e.body)});return}let t=e.body===void 0?void 0:p(e.body),i=await n(e),o=await a({zone:e.zone},i,{quiet:e.quiet});if(e.zoneId=o,e.body!==void 0){let e=t,n=await c(`Creating`,async()=>i.send(G,{body:e,zone_id:o}));s(n,{successLabel:`Created`});return}if(e[`auto-refresh-seconds`]===void 0)throw Error(`--auto-refresh-seconds is required (or pass --body with this field set).`);if(e.name===void 0&&(e.name=await l(`name`,`Zone name.`)),e.peers===void 0)throw Error(`--peers is required (or pass --body with this field set).`);let u=m({auto_refresh_seconds:e[`auto-refresh-seconds`],name:h(e.name,`name`,`text`),peers:e.peers}),d=await c(`Creating`,async()=>i.send(G,{body:u,zone_id:o}));s(d,{successLabel:`Created`})})};var Bt={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/secondary_dns/incoming`};function Vt(e){return e.usage(`$0 dns zone-transfers incoming delete
110
100
 
111
- Delete secondary zone configuration for incoming zone transfers.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const rn={command:`delete`,describe:`Delete Secondary Zone Configuration`,builder:nn,handler:async e=>u({command:`dns zone-transfers incoming delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){c({command:`cf dns zone-transfers incoming delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/incoming`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,!await _({force:!!e.force}))return;let i=await l(`Deleting`,async()=>t.send(tn,{zone_id:n}));s(i,{successLabel:`Deleted`})})};var an={method:`GET`,path:t=>e`/zones/${t.zone_id}/secondary_dns/incoming`};function on(e){return e.usage(`$0 dns zone-transfers incoming get
101
+ Delete secondary zone configuration for incoming zone transfers.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Ht={command:`delete`,describe:`Delete Secondary Zone Configuration`,builder:Vt,handler:async e=>d({command:`dns zone-transfers incoming delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){r({command:`cf dns zone-transfers incoming delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/incoming`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),i=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=i,!await u({force:!!e.force}))return;let o=await c(`Deleting`,async()=>t.send(Bt,{zone_id:i}));s(o,{successLabel:`Deleted`})})};var Ut={method:`GET`,path:t=>e`/zones/${t.zone_id}/secondary_dns/incoming`};function Wt(e){return e.usage(`$0 dns zone-transfers incoming get
112
102
 
113
- Get secondary zone configuration for incoming zone transfers.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const sn={command:`get`,describe:`Secondary Zone Configuration Details`,builder:on,handler:async e=>u({command:`dns zone-transfers incoming get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns zone-transfers incoming get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/incoming`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n;let i=await l(`Loading`,async()=>t.send(an,{zone_id:n}));s(i,{successLabel:`Loaded`})})};var K={method:`PUT`,path:t=>e`/zones/${t.zone_id}/secondary_dns/incoming`,body:`json`};function cn(e){return e.usage(`$0 dns zone-transfers incoming update
103
+ Get secondary zone configuration for incoming zone transfers.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Gt={command:`get`,describe:`Secondary Zone Configuration Details`,builder:Wt,handler:async e=>d({command:`dns zone-transfers incoming get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf dns zone-transfers incoming get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/incoming`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),i=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=i;let o=await c(`Loading`,async()=>t.send(Ut,{zone_id:i}));s(o,{successLabel:`Loaded`})})};var K={method:`PUT`,path:t=>e`/zones/${t.zone_id}/secondary_dns/incoming`,body:`json`};function Kt(e){return e.usage(`$0 dns zone-transfers incoming update
114
104
 
115
105
  Update secondary zone configuration for incoming zone transfers.`).option(`auto-refresh-seconds`,{type:`number`,description:`How often should a secondary zone auto refresh regardless of DNS NOTIFY.
116
- Not applicable for primary zones.`}).option(`name`,{type:`string`,description:`Zone name.`}).option(`peers`,{type:`string`,array:!0,description:`A list of peer tags.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ln={command:`update`,describe:`Update Secondary Zone Configuration`,builder:cn,handler:async e=>u({command:`dns zone-transfers incoming update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns zone-transfers incoming update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/incoming`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({auto_refresh_seconds:e[`auto-refresh-seconds`],name:m(e.name,`name`,`text`),peers:e.peers}):f(e.body)});return}let t=e.body===void 0?void 0:f(e.body),n=await r(e),i=await a({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=i,e.body!==void 0){let e=t,r=await l(`Updating`,async()=>n.send(K,{body:e,zone_id:i}));s(r,{successLabel:`Updated`});return}if(e[`auto-refresh-seconds`]===void 0)throw Error(`--auto-refresh-seconds is required (or pass --body with this field set).`);if(e.name===void 0&&(e.name=await g(`name`,`Zone name.`)),e.peers===void 0)throw Error(`--peers is required (or pass --body with this field set).`);let o=p({auto_refresh_seconds:e[`auto-refresh-seconds`],name:m(e.name,`name`,`text`),peers:e.peers}),u=await l(`Updating`,async()=>n.send(K,{body:o,zone_id:i}));s(u,{successLabel:`Updated`})})},un={command:`incoming`,describe:`Operations for zone-transfers.incoming`,builder:e=>e.command(en).command(rn).command(sn).command(ln).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var q={method:`POST`,path:t=>e`/zones/${t.zone_id}/secondary_dns/outgoing`,body:`json`};function dn(e){return e.usage(`$0 dns zone-transfers outgoing create
106
+ Not applicable for primary zones.`}).option(`name`,{type:`string`,description:`Zone name.`}).option(`peers`,{type:`string`,array:!0,description:`A list of peer tags.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const qt={command:`update`,describe:`Update Secondary Zone Configuration`,builder:Kt,handler:async e=>d({command:`dns zone-transfers incoming update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf dns zone-transfers incoming update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/incoming`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?m({auto_refresh_seconds:e[`auto-refresh-seconds`],name:h(e.name,`name`,`text`),peers:e.peers}):p(e.body)});return}let t=e.body===void 0?void 0:p(e.body),i=await n(e),o=await a({zone:e.zone},i,{quiet:e.quiet});if(e.zoneId=o,e.body!==void 0){let e=t,n=await c(`Updating`,async()=>i.send(K,{body:e,zone_id:o}));s(n,{successLabel:`Updated`});return}if(e[`auto-refresh-seconds`]===void 0)throw Error(`--auto-refresh-seconds is required (or pass --body with this field set).`);if(e.name===void 0&&(e.name=await l(`name`,`Zone name.`)),e.peers===void 0)throw Error(`--peers is required (or pass --body with this field set).`);let u=m({auto_refresh_seconds:e[`auto-refresh-seconds`],name:h(e.name,`name`,`text`),peers:e.peers}),d=await c(`Updating`,async()=>i.send(K,{body:u,zone_id:o}));s(d,{successLabel:`Updated`})})},Jt={command:`incoming`,describe:`Operations for zone-transfers.incoming`,builder:e=>e.command(zt).command(Ht).command(Gt).command(qt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var q={method:`POST`,path:t=>e`/zones/${t.zone_id}/secondary_dns/outgoing`,body:`json`};function Yt(e){return e.usage(`$0 dns zone-transfers outgoing create
117
107
 
118
- Create primary zone configuration for outgoing zone transfers.`).option(`name`,{type:`string`,description:`Zone name.`}).option(`peers`,{type:`string`,array:!0,description:`A list of peer tags.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const fn={command:`create`,describe:`Create Primary Zone Configuration`,builder:dn,handler:async e=>u({command:`dns zone-transfers outgoing create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns zone-transfers outgoing create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/outgoing`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({name:m(e.name,`name`,`text`),peers:e.peers}):f(e.body)});return}let t=e.body===void 0?void 0:f(e.body),n=await r(e),i=await a({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=i,e.body!==void 0){let e=t,r=await l(`Creating`,async()=>n.send(q,{body:e,zone_id:i}));s(r,{successLabel:`Created`});return}if(e.name===void 0&&(e.name=await g(`name`,`Zone name.`)),e.peers===void 0)throw Error(`--peers is required (or pass --body with this field set).`);let o=p({name:m(e.name,`name`,`text`),peers:e.peers}),u=await l(`Creating`,async()=>n.send(q,{body:o,zone_id:i}));s(u,{successLabel:`Created`})})};var pn={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/secondary_dns/outgoing`};function mn(e){return e.usage(`$0 dns zone-transfers outgoing delete
108
+ Create primary zone configuration for outgoing zone transfers.`).option(`name`,{type:`string`,description:`Zone name.`}).option(`peers`,{type:`string`,array:!0,description:`A list of peer tags.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Xt={command:`create`,describe:`Create Primary Zone Configuration`,builder:Yt,handler:async e=>d({command:`dns zone-transfers outgoing create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf dns zone-transfers outgoing create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/outgoing`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?m({name:h(e.name,`name`,`text`),peers:e.peers}):p(e.body)});return}let t=e.body===void 0?void 0:p(e.body),i=await n(e),o=await a({zone:e.zone},i,{quiet:e.quiet});if(e.zoneId=o,e.body!==void 0){let e=t,n=await c(`Creating`,async()=>i.send(q,{body:e,zone_id:o}));s(n,{successLabel:`Created`});return}if(e.name===void 0&&(e.name=await l(`name`,`Zone name.`)),e.peers===void 0)throw Error(`--peers is required (or pass --body with this field set).`);let u=m({name:h(e.name,`name`,`text`),peers:e.peers}),d=await c(`Creating`,async()=>i.send(q,{body:u,zone_id:o}));s(d,{successLabel:`Created`})})};var Zt={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/secondary_dns/outgoing`};function Qt(e){return e.usage(`$0 dns zone-transfers outgoing delete
119
109
 
120
- Delete primary zone configuration for outgoing zone transfers.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const hn={command:`delete`,describe:`Delete Primary Zone Configuration`,builder:mn,handler:async e=>u({command:`dns zone-transfers outgoing delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){c({command:`cf dns zone-transfers outgoing delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/outgoing`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,!await _({force:!!e.force}))return;let i=await l(`Deleting`,async()=>t.send(pn,{zone_id:n}));s(i,{successLabel:`Deleted`})})};var gn={method:`POST`,path:t=>e`/zones/${t.zone_id}/secondary_dns/outgoing/disable`};function _n(e){return e.usage(`$0 dns zone-transfers outgoing disable
110
+ Delete primary zone configuration for outgoing zone transfers.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const $t={command:`delete`,describe:`Delete Primary Zone Configuration`,builder:Qt,handler:async e=>d({command:`dns zone-transfers outgoing delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){r({command:`cf dns zone-transfers outgoing delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/outgoing`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),i=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=i,!await u({force:!!e.force}))return;let o=await c(`Deleting`,async()=>t.send(Zt,{zone_id:i}));s(o,{successLabel:`Deleted`})})};var en={method:`POST`,path:t=>e`/zones/${t.zone_id}/secondary_dns/outgoing/disable`};function tn(e){return e.usage(`$0 dns zone-transfers outgoing disable
121
111
 
122
- Disable outgoing zone transfers for primary zone and clears IXFR backlog of primary zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const vn={command:`disable`,describe:`Disable Outgoing Zone Transfers`,builder:_n,handler:async e=>u({command:`dns zone-transfers outgoing disable`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){c({command:`cf dns zone-transfers outgoing disable`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/outgoing/disable`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,!await _({force:!!e.force,message:`This operation turns off outgoing zone transfers for the primary zone, which means secondary zones will stop receiving updates.`}))return;let i=await l(`Processing`,async()=>t.send(gn,{zone_id:n}));s(i,{successLabel:`Done`})})};var yn={method:`POST`,path:t=>e`/zones/${t.zone_id}/secondary_dns/outgoing/enable`};function bn(e){return e.usage(`$0 dns zone-transfers outgoing enable
112
+ Disable outgoing zone transfers for primary zone and clears IXFR backlog of primary zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const nn={command:`disable`,describe:`Disable Outgoing Zone Transfers`,builder:tn,handler:async e=>d({command:`dns zone-transfers outgoing disable`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){r({command:`cf dns zone-transfers outgoing disable`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/outgoing/disable`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),i=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=i,!await u({force:!!e.force,message:`This operation turns off outgoing zone transfers for the primary zone, which means secondary zones will stop receiving updates.`}))return;let o=await c(`Processing`,async()=>t.send(en,{zone_id:i}));s(o,{successLabel:`Done`})})};var rn={method:`POST`,path:t=>e`/zones/${t.zone_id}/secondary_dns/outgoing/enable`};function an(e){return e.usage(`$0 dns zone-transfers outgoing enable
123
113
 
124
- Enable outgoing zone transfers for primary zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const xn={command:`enable`,describe:`Enable Outgoing Zone Transfers`,builder:bn,handler:async e=>u({command:`dns zone-transfers outgoing enable`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns zone-transfers outgoing enable`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/outgoing/enable`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n;let i=await l(`Creating`,async()=>t.send(yn,{zone_id:n}));s(i,{successLabel:`Created`})})};var Sn={method:`POST`,path:t=>e`/zones/${t.zone_id}/secondary_dns/outgoing/force_notify`};function Cn(e){return e.usage(`$0 dns zone-transfers outgoing force-notify
114
+ Enable outgoing zone transfers for primary zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const on={command:`enable`,describe:`Enable Outgoing Zone Transfers`,builder:an,handler:async e=>d({command:`dns zone-transfers outgoing enable`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf dns zone-transfers outgoing enable`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/outgoing/enable`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),i=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=i;let o=await c(`Creating`,async()=>t.send(rn,{zone_id:i}));s(o,{successLabel:`Created`})})};var sn={method:`POST`,path:t=>e`/zones/${t.zone_id}/secondary_dns/outgoing/force_notify`};function cn(e){return e.usage(`$0 dns zone-transfers outgoing force-notify
125
115
 
126
- Notifies the secondary nameserver(s) and clears IXFR backlog of primary zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const wn={command:`force-notify`,describe:`Force DNS NOTIFY`,builder:Cn,handler:async e=>u({command:`dns zone-transfers outgoing force-notify`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns zone-transfers outgoing force-notify`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/outgoing/force_notify`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n;let i=await l(`Creating`,async()=>t.send(Sn,{zone_id:n}));s(i,{successLabel:`Created`})})};var Tn={method:`GET`,path:t=>e`/zones/${t.zone_id}/secondary_dns/outgoing`};function En(e){return e.usage(`$0 dns zone-transfers outgoing get
116
+ Notifies the secondary nameserver(s) and clears IXFR backlog of primary zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ln={command:`force-notify`,describe:`Force DNS NOTIFY`,builder:cn,handler:async e=>d({command:`dns zone-transfers outgoing force-notify`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf dns zone-transfers outgoing force-notify`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/outgoing/force_notify`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),i=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=i;let o=await c(`Creating`,async()=>t.send(sn,{zone_id:i}));s(o,{successLabel:`Created`})})};var un={method:`GET`,path:t=>e`/zones/${t.zone_id}/secondary_dns/outgoing`};function dn(e){return e.usage(`$0 dns zone-transfers outgoing get
127
117
 
128
- Get primary zone configuration for outgoing zone transfers.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Dn={command:`get`,describe:`Primary Zone Configuration Details`,builder:En,handler:async e=>u({command:`dns zone-transfers outgoing get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns zone-transfers outgoing get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/outgoing`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n;let i=await l(`Loading`,async()=>t.send(Tn,{zone_id:n}));s(i,{successLabel:`Loaded`})})};var On={method:`GET`,path:t=>e`/zones/${t.zone_id}/secondary_dns/outgoing/status`};function kn(e){return e.usage(`$0 dns zone-transfers outgoing status get
118
+ Get primary zone configuration for outgoing zone transfers.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const fn={command:`get`,describe:`Primary Zone Configuration Details`,builder:dn,handler:async e=>d({command:`dns zone-transfers outgoing get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf dns zone-transfers outgoing get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/outgoing`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),i=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=i;let o=await c(`Loading`,async()=>t.send(un,{zone_id:i}));s(o,{successLabel:`Loaded`})})};var pn={method:`GET`,path:t=>e`/zones/${t.zone_id}/secondary_dns/outgoing/status`};function mn(e){return e.usage(`$0 dns zone-transfers outgoing status get
129
119
 
130
- Get primary zone transfer status.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const An={command:`get`,describe:`Get Outgoing Zone Transfer Status`,builder:kn,handler:async e=>u({command:`dns zone-transfers outgoing status get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns zone-transfers outgoing status get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/outgoing/status`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n;let i=await l(`Loading`,async()=>t.send(On,{zone_id:n}));s(i,{successLabel:`Loaded`})})},jn={command:`status`,describe:`Operations for zone-transfers.outgoing.status`,builder:e=>e.command(An).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var J={method:`PUT`,path:t=>e`/zones/${t.zone_id}/secondary_dns/outgoing`,body:`json`};function Mn(e){return e.usage(`$0 dns zone-transfers outgoing update
120
+ Get primary zone transfer status.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const hn={command:`get`,describe:`Get Outgoing Zone Transfer Status`,builder:mn,handler:async e=>d({command:`dns zone-transfers outgoing status get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf dns zone-transfers outgoing status get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/outgoing/status`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),i=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=i;let o=await c(`Loading`,async()=>t.send(pn,{zone_id:i}));s(o,{successLabel:`Loaded`})})},gn={command:`status`,describe:`Operations for zone-transfers.outgoing.status`,builder:e=>e.command(hn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var J={method:`PUT`,path:t=>e`/zones/${t.zone_id}/secondary_dns/outgoing`,body:`json`};function _n(e){return e.usage(`$0 dns zone-transfers outgoing update
131
121
 
132
- Update primary zone configuration for outgoing zone transfers.`).option(`name`,{type:`string`,description:`Zone name.`}).option(`peers`,{type:`string`,array:!0,description:`A list of peer tags.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Nn={command:`update`,describe:`Update Primary Zone Configuration`,builder:Mn,handler:async e=>u({command:`dns zone-transfers outgoing update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns zone-transfers outgoing update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/outgoing`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({name:m(e.name,`name`,`text`),peers:e.peers}):f(e.body)});return}let t=e.body===void 0?void 0:f(e.body),n=await r(e),i=await a({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=i,e.body!==void 0){let e=t,r=await l(`Updating`,async()=>n.send(J,{body:e,zone_id:i}));s(r,{successLabel:`Updated`});return}if(e.name===void 0&&(e.name=await g(`name`,`Zone name.`)),e.peers===void 0)throw Error(`--peers is required (or pass --body with this field set).`);let o=p({name:m(e.name,`name`,`text`),peers:e.peers}),u=await l(`Updating`,async()=>n.send(J,{body:o,zone_id:i}));s(u,{successLabel:`Updated`})})},Pn={command:`outgoing`,describe:`Operations for zone-transfers.outgoing`,builder:e=>e.command(fn).command(hn).command(vn).command(xn).command(wn).command(Dn).command(Nn).command(jn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Y={method:`POST`,path:t=>e`/accounts/${t.account_id}/secondary_dns/peers`,body:`json`};function Fn(e){return e.usage(`$0 dns zone-transfers peers create
122
+ Update primary zone configuration for outgoing zone transfers.`).option(`name`,{type:`string`,description:`Zone name.`}).option(`peers`,{type:`string`,array:!0,description:`A list of peer tags.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const vn={command:`update`,describe:`Update Primary Zone Configuration`,builder:_n,handler:async e=>d({command:`dns zone-transfers outgoing update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf dns zone-transfers outgoing update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/outgoing`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?m({name:h(e.name,`name`,`text`),peers:e.peers}):p(e.body)});return}let t=e.body===void 0?void 0:p(e.body),i=await n(e),o=await a({zone:e.zone},i,{quiet:e.quiet});if(e.zoneId=o,e.body!==void 0){let e=t,n=await c(`Updating`,async()=>i.send(J,{body:e,zone_id:o}));s(n,{successLabel:`Updated`});return}if(e.name===void 0&&(e.name=await l(`name`,`Zone name.`)),e.peers===void 0)throw Error(`--peers is required (or pass --body with this field set).`);let u=m({name:h(e.name,`name`,`text`),peers:e.peers}),d=await c(`Updating`,async()=>i.send(J,{body:u,zone_id:o}));s(d,{successLabel:`Updated`})})},yn={command:`outgoing`,describe:`Operations for zone-transfers.outgoing`,builder:e=>e.command(Xt).command($t).command(nn).command(on).command(ln).command(fn).command(vn).command(gn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Y={method:`POST`,path:t=>e`/accounts/${t.account_id}/secondary_dns/peers`,body:`json`};function bn(e){return e.usage(`$0 dns zone-transfers peers create
133
123
 
134
- Create Peer.`).option(`name`,{type:`string`,description:`The name of the peer.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const In={command:`create`,describe:`Create Peer`,builder:Fn,handler:async e=>u({command:`dns zone-transfers peers create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns zone-transfers peers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/peers`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({name:m(e.name,`name`,`text`)}):f(e.body)});return}let n=e.body===void 0?void 0:f(e.body),a=await r(e),u=e.local?t:await o();if(e.accountId=u,e.body!==void 0){let e=n,t=await l(`Creating`,async()=>a.send(Y,{body:e,account_id:u}));s(t,{successLabel:`Created`});return}e.name===void 0&&(e.name=await g(`name`,`The name of the peer.`));let d=p({name:m(e.name,`name`,`text`)}),h=await l(`Creating`,async()=>a.send(Y,{body:d,account_id:u}));s(h,{successLabel:`Created`})})};var Ln={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/secondary_dns/peers/${t.peer_id}`};function Rn(e){return e.usage(`$0 dns zone-transfers peers delete <peer-id>
124
+ Create Peer.`).option(`name`,{type:`string`,description:`The name of the peer.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const xn={command:`create`,describe:`Create Peer`,builder:bn,handler:async e=>d({command:`dns zone-transfers peers create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf dns zone-transfers peers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/peers`,pathParams:{},bodyKind:`json`,body:e.body===void 0?m({name:h(e.name,`name`,`text`)}):p(e.body)});return}let t=e.body===void 0?void 0:p(e.body),a=await n(e),u=e.local?_:await o();if(e.accountId=u,e.body!==void 0){let e=t,n=await c(`Creating`,async()=>a.send(Y,{body:e,account_id:u}));s(n,{successLabel:`Created`});return}e.name===void 0&&(e.name=await l(`name`,`The name of the peer.`));let d=m({name:h(e.name,`name`,`text`)}),f=await c(`Creating`,async()=>a.send(Y,{body:d,account_id:u}));s(f,{successLabel:`Created`})})};var Sn={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/secondary_dns/peers/${t.peer_id}`};function Cn(e){return e.usage(`$0 dns zone-transfers peers delete <peer-id>
135
125
 
136
- Delete Peer.`).positional(`peer-id`,{type:`string`,description:`Peer ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const zn={command:`delete <peer-id>`,describe:`Delete Peer`,builder:Rn,handler:async e=>u({command:`dns zone-transfers peers delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns zone-transfers peers delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/peers/${e[`peer-id`]==null?`<peer-id>`:encodeURIComponent(String(e[`peer-id`]))}`,pathParams:{"peer-id":String(e[`peer-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force}))return;let u=await l(`Deleting`,async()=>n.send(Ln,{account_id:a,peer_id:e[`peer-id`]}));s(u,{successLabel:`Deleted`})})};var Bn={method:`GET`,path:t=>e`/accounts/${t.account_id}/secondary_dns/peers/${t.peer_id}`};function Vn(e){return e.usage(`$0 dns zone-transfers peers get <peer-id>
126
+ Delete Peer.`).positional(`peer-id`,{type:`string`,description:`Peer ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const wn={command:`delete <peer-id>`,describe:`Delete Peer`,builder:Cn,handler:async e=>d({command:`dns zone-transfers peers delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf dns zone-transfers peers delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/peers/${e[`peer-id`]==null?`<peer-id>`:encodeURIComponent(String(e[`peer-id`]))}`,pathParams:{"peer-id":String(e[`peer-id`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?_:await o();if(e.accountId=a,!await u({force:!!e.force}))return;let l=await c(`Deleting`,async()=>t.send(Sn,{account_id:a,peer_id:e[`peer-id`]}));s(l,{successLabel:`Deleted`})})};var Tn={method:`GET`,path:t=>e`/accounts/${t.account_id}/secondary_dns/peers/${t.peer_id}`};function En(e){return e.usage(`$0 dns zone-transfers peers get <peer-id>
137
127
 
138
- Get Peer.`).positional(`peer-id`,{type:`string`,description:`Peer ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Hn={command:`get <peer-id>`,describe:`Peer Details`,builder:Vn,handler:async e=>u({command:`dns zone-transfers peers get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns zone-transfers peers get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/peers/${e[`peer-id`]==null?`<peer-id>`:encodeURIComponent(String(e[`peer-id`]))}`,pathParams:{"peer-id":String(e[`peer-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(Bn,{account_id:a,peer_id:e[`peer-id`]}));s(u,{successLabel:`Loaded`})})};var Un={method:`GET`,path:t=>e`/accounts/${t.account_id}/secondary_dns/peers`};function Wn(e){return e.usage(`$0 dns zone-transfers peers list
128
+ Get Peer.`).positional(`peer-id`,{type:`string`,description:`Peer ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Dn={command:`get <peer-id>`,describe:`Peer Details`,builder:En,handler:async e=>d({command:`dns zone-transfers peers get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf dns zone-transfers peers get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/peers/${e[`peer-id`]==null?`<peer-id>`:encodeURIComponent(String(e[`peer-id`]))}`,pathParams:{"peer-id":String(e[`peer-id`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?_:await o();e.accountId=a;let l=await c(`Loading`,async()=>t.send(Tn,{account_id:a,peer_id:e[`peer-id`]}));s(l,{successLabel:`Loaded`})})};var On={method:`GET`,path:t=>e`/accounts/${t.account_id}/secondary_dns/peers`};function kn(e){return e.usage(`$0 dns zone-transfers peers list
139
129
 
140
- List Peers.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Gn={command:`list`,describe:`List Peers`,builder:Wn,handler:async e=>u({command:`dns zone-transfers peers list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();c({command:`cf dns zone-transfers peers list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/secondary_dns/peers`,pathParams:{},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(Un,{account_id:a}));s(u,{successLabel:`Loaded`})})};var X={method:`PUT`,path:t=>e`/accounts/${t.account_id}/secondary_dns/peers/${t.peer_id}`,body:`json`};function Kn(e){return e.usage(`$0 dns zone-transfers peers update <peer-id>
130
+ List Peers.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const An={command:`list`,describe:`List Peers`,builder:kn,handler:async e=>d({command:`dns zone-transfers peers list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();r({command:`cf dns zone-transfers peers list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/secondary_dns/peers`,pathParams:{},bodyKind:`none`});return}let t=await n(e),a=e.local?_:await o();e.accountId=a;let l=await c(`Loading`,async()=>t.send(On,{account_id:a}));s(l,{successLabel:`Loaded`})})};var X={method:`PUT`,path:t=>e`/accounts/${t.account_id}/secondary_dns/peers/${t.peer_id}`,body:`json`};function jn(e){return e.usage(`$0 dns zone-transfers peers update <peer-id>
141
131
 
142
- Modify Peer.`).positional(`peer-id`,{type:`string`,description:`Peer ID`,demandOption:!0}).option(`ip`,{type:`string`,description:`IPv4/IPv6 address of primary or secondary nameserver, depending on what zone this peer is linked to. For primary zones this IP defines the IP of the secondary nameserver Cloudflare will NOTIFY upon zone changes. For secondary zones this IP defines the IP of the primary nameserver Cloudflare will send AXFR/IXFR requests to.`}).option(`ixfr-enable`,{type:`boolean`,description:`Enable IXFR transfer protocol, default is AXFR. Only applicable to secondary zones.`}).option(`name`,{type:`string`,description:`The name of the peer.`}).option(`port`,{type:`number`,description:`DNS port of primary or secondary nameserver, depending on what zone this peer is linked to.`}).option(`tsig-id`,{type:`string`,description:`TSIG authentication will be used for zone transfer if configured.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const qn={command:`update <peer-id>`,describe:`Update Peer`,builder:Kn,handler:async e=>u({command:`dns zone-transfers peers update`,classification:{safeFlags:[`ixfr-enable`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns zone-transfers peers update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/peers/${e[`peer-id`]==null?`<peer-id>`:encodeURIComponent(String(e[`peer-id`]))}`,pathParams:{"peer-id":String(e[`peer-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({ip:m(e.ip,`ip`,`text`),ixfr_enable:e[`ixfr-enable`],name:m(e.name,`name`,`text`),port:e.port,tsig_id:m(e[`tsig-id`],`tsig-id`,`text`)}):f(e.body)});return}let n=e.body===void 0?void 0:f(e.body),a=await r(e),u=e.local?t:await o();if(e.accountId=u,e.body!==void 0){let t=n,r=await l(`Updating`,async()=>a.send(X,{body:t,account_id:u,peer_id:e[`peer-id`]}));s(r,{successLabel:`Updated`});return}e.name===void 0&&(e.name=await g(`name`,`The name of the peer.`));let d=p({ip:m(e.ip,`ip`,`text`),ixfr_enable:e[`ixfr-enable`],name:m(e.name,`name`,`text`),port:e.port,tsig_id:m(e[`tsig-id`],`tsig-id`,`text`)}),h=await l(`Updating`,async()=>a.send(X,{body:d,account_id:u,peer_id:e[`peer-id`]}));s(h,{successLabel:`Updated`})})},Jn={command:`peers`,describe:`Operations for zone-transfers.peers`,builder:e=>e.command(In).command(zn).command(Hn).command(Gn).command(qn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Z={method:`POST`,path:t=>e`/accounts/${t.account_id}/secondary_dns/tsigs`,body:`json`};function Q(e){return e.usage(`$0 dns zone-transfers tsigs create
132
+ Modify Peer.`).positional(`peer-id`,{type:`string`,description:`Peer ID`,demandOption:!0}).option(`ip`,{type:`string`,description:`IPv4/IPv6 address of primary or secondary nameserver, depending on what zone this peer is linked to. For primary zones this IP defines the IP of the secondary nameserver Cloudflare will NOTIFY upon zone changes. For secondary zones this IP defines the IP of the primary nameserver Cloudflare will send AXFR/IXFR requests to.`}).option(`ixfr-enable`,{type:`boolean`,description:`Enable IXFR transfer protocol, default is AXFR. Only applicable to secondary zones.`}).option(`name`,{type:`string`,description:`The name of the peer.`}).option(`port`,{type:`number`,description:`DNS port of primary or secondary nameserver, depending on what zone this peer is linked to.`}).option(`tsig-id`,{type:`string`,description:`TSIG authentication will be used for zone transfer if configured.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Mn={command:`update <peer-id>`,describe:`Update Peer`,builder:jn,handler:async e=>d({command:`dns zone-transfers peers update`,classification:{safeFlags:[`ixfr-enable`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf dns zone-transfers peers update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/peers/${e[`peer-id`]==null?`<peer-id>`:encodeURIComponent(String(e[`peer-id`]))}`,pathParams:{"peer-id":String(e[`peer-id`]??``)},bodyKind:`json`,body:e.body===void 0?m({ip:h(e.ip,`ip`,`text`),ixfr_enable:e[`ixfr-enable`],name:h(e.name,`name`,`text`),port:e.port,tsig_id:h(e[`tsig-id`],`tsig-id`,`text`)}):p(e.body)});return}let t=e.body===void 0?void 0:p(e.body),a=await n(e),u=e.local?_:await o();if(e.accountId=u,e.body!==void 0){let n=t,r=await c(`Updating`,async()=>a.send(X,{body:n,account_id:u,peer_id:e[`peer-id`]}));s(r,{successLabel:`Updated`});return}e.name===void 0&&(e.name=await l(`name`,`The name of the peer.`));let d=m({ip:h(e.ip,`ip`,`text`),ixfr_enable:e[`ixfr-enable`],name:h(e.name,`name`,`text`),port:e.port,tsig_id:h(e[`tsig-id`],`tsig-id`,`text`)}),f=await c(`Updating`,async()=>a.send(X,{body:d,account_id:u,peer_id:e[`peer-id`]}));s(f,{successLabel:`Updated`})})},Nn={command:`peers`,describe:`Operations for zone-transfers.peers`,builder:e=>e.command(xn).command(wn).command(Dn).command(An).command(Mn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Z={method:`POST`,path:t=>e`/accounts/${t.account_id}/secondary_dns/tsigs`,body:`json`};function Pn(e){return e.usage(`$0 dns zone-transfers tsigs create
143
133
 
144
- Create TSIG.`).option(`algo`,{type:`string`,description:`TSIG algorithm.`}).option(`name`,{type:`string`,description:`TSIG key name.`}).option(`secret`,{type:`string`,description:`TSIG secret.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Yn={command:`create`,describe:`Create TSIG`,builder:Q,handler:async e=>u({command:`dns zone-transfers tsigs create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns zone-transfers tsigs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/tsigs`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({algo:m(e.algo,`algo`,`text`),name:m(e.name,`name`,`text`),secret:m(e.secret,`secret`,`text`)}):f(e.body),sensitiveBodyPaths:[[`secret`]]});return}let n=e.body===void 0?void 0:f(e.body),a=await r(e),u=e.local?t:await o();if(e.accountId=u,e.body!==void 0){let e=n,t=await l(`Creating`,async()=>a.send(Z,{body:e,account_id:u}));s(t,{successLabel:`Created`});return}e.algo===void 0&&(e.algo=await g(`algo`,`TSIG algorithm.`)),e.name===void 0&&(e.name=await g(`name`,`TSIG key name.`)),e.secret===void 0&&(e.secret=await g(`secret`,`TSIG secret.`,{kind:`secret`}));let d=p({algo:m(e.algo,`algo`,`text`),name:m(e.name,`name`,`text`),secret:m(e.secret,`secret`,`text`)}),h=await l(`Creating`,async()=>a.send(Z,{body:d,account_id:u}));s(h,{successLabel:`Created`})})};var Xn={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/secondary_dns/tsigs/${t.tsig_id}`};function Zn(e){return e.usage(`$0 dns zone-transfers tsigs delete <tsig-id>
134
+ Create TSIG.`).option(`algo`,{type:`string`,description:`TSIG algorithm.`}).option(`name`,{type:`string`,description:`TSIG key name.`}).option(`secret`,{type:`string`,description:`TSIG secret.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Q={command:`create`,describe:`Create TSIG`,builder:Pn,handler:async e=>d({command:`dns zone-transfers tsigs create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf dns zone-transfers tsigs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/tsigs`,pathParams:{},bodyKind:`json`,body:e.body===void 0?m({algo:h(e.algo,`algo`,`text`),name:h(e.name,`name`,`text`),secret:h(e.secret,`secret`,`text`)}):p(e.body),sensitiveBodyPaths:[[`secret`]]});return}let t=e.body===void 0?void 0:p(e.body),a=await n(e),u=e.local?_:await o();if(e.accountId=u,e.body!==void 0){let e=t,n=await c(`Creating`,async()=>a.send(Z,{body:e,account_id:u}));s(n,{successLabel:`Created`});return}e.algo===void 0&&(e.algo=await l(`algo`,`TSIG algorithm.`)),e.name===void 0&&(e.name=await l(`name`,`TSIG key name.`)),e.secret===void 0&&(e.secret=await l(`secret`,`TSIG secret.`,{kind:`secret`}));let d=m({algo:h(e.algo,`algo`,`text`),name:h(e.name,`name`,`text`),secret:h(e.secret,`secret`,`text`)}),f=await c(`Creating`,async()=>a.send(Z,{body:d,account_id:u}));s(f,{successLabel:`Created`})})};var Fn={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/secondary_dns/tsigs/${t.tsig_id}`};function In(e){return e.usage(`$0 dns zone-transfers tsigs delete <tsig-id>
145
135
 
146
- Delete TSIG.`).positional(`tsig-id`,{type:`string`,description:`Tsig ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Qn={command:`delete <tsig-id>`,describe:`Delete TSIG`,builder:Zn,handler:async e=>u({command:`dns zone-transfers tsigs delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns zone-transfers tsigs delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/tsigs/${e[`tsig-id`]==null?`<tsig-id>`:encodeURIComponent(String(e[`tsig-id`]))}`,pathParams:{"tsig-id":String(e[`tsig-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force}))return;let u=await l(`Deleting`,async()=>n.send(Xn,{account_id:a,tsig_id:e[`tsig-id`]}));s(u,{successLabel:`Deleted`})})};var $n={method:`GET`,path:t=>e`/accounts/${t.account_id}/secondary_dns/tsigs/${t.tsig_id}`};function er(e){return e.usage(`$0 dns zone-transfers tsigs get <tsig-id>
136
+ Delete TSIG.`).positional(`tsig-id`,{type:`string`,description:`Tsig ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Ln={command:`delete <tsig-id>`,describe:`Delete TSIG`,builder:In,handler:async e=>d({command:`dns zone-transfers tsigs delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf dns zone-transfers tsigs delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/tsigs/${e[`tsig-id`]==null?`<tsig-id>`:encodeURIComponent(String(e[`tsig-id`]))}`,pathParams:{"tsig-id":String(e[`tsig-id`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?_:await o();if(e.accountId=a,!await u({force:!!e.force}))return;let l=await c(`Deleting`,async()=>t.send(Fn,{account_id:a,tsig_id:e[`tsig-id`]}));s(l,{successLabel:`Deleted`})})};var Rn={method:`GET`,path:t=>e`/accounts/${t.account_id}/secondary_dns/tsigs/${t.tsig_id}`};function zn(e){return e.usage(`$0 dns zone-transfers tsigs get <tsig-id>
147
137
 
148
- Get TSIG.`).positional(`tsig-id`,{type:`string`,description:`Tsig ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const tr={command:`get <tsig-id>`,describe:`TSIG Details`,builder:er,handler:async e=>u({command:`dns zone-transfers tsigs get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns zone-transfers tsigs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/tsigs/${e[`tsig-id`]==null?`<tsig-id>`:encodeURIComponent(String(e[`tsig-id`]))}`,pathParams:{"tsig-id":String(e[`tsig-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send($n,{account_id:a,tsig_id:e[`tsig-id`]}));s(u,{successLabel:`Loaded`})})};var nr={method:`GET`,path:t=>e`/accounts/${t.account_id}/secondary_dns/tsigs`};function rr(e){return e.usage(`$0 dns zone-transfers tsigs list
138
+ Get TSIG.`).positional(`tsig-id`,{type:`string`,description:`Tsig ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Bn={command:`get <tsig-id>`,describe:`TSIG Details`,builder:zn,handler:async e=>d({command:`dns zone-transfers tsigs get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf dns zone-transfers tsigs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/tsigs/${e[`tsig-id`]==null?`<tsig-id>`:encodeURIComponent(String(e[`tsig-id`]))}`,pathParams:{"tsig-id":String(e[`tsig-id`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?_:await o();e.accountId=a;let l=await c(`Loading`,async()=>t.send(Rn,{account_id:a,tsig_id:e[`tsig-id`]}));s(l,{successLabel:`Loaded`})})};var Vn={method:`GET`,path:t=>e`/accounts/${t.account_id}/secondary_dns/tsigs`};function Hn(e){return e.usage(`$0 dns zone-transfers tsigs list
149
139
 
150
- List TSIGs.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ir={command:`list`,describe:`List TSIGs`,builder:rr,handler:async e=>u({command:`dns zone-transfers tsigs list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();c({command:`cf dns zone-transfers tsigs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/secondary_dns/tsigs`,pathParams:{},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(nr,{account_id:a}));s(u,{successLabel:`Loaded`})})};var $={method:`PUT`,path:t=>e`/accounts/${t.account_id}/secondary_dns/tsigs/${t.tsig_id}`,body:`json`};function ar(e){return e.usage(`$0 dns zone-transfers tsigs update <tsig-id>
140
+ List TSIGs.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Un={command:`list`,describe:`List TSIGs`,builder:Hn,handler:async e=>d({command:`dns zone-transfers tsigs list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();r({command:`cf dns zone-transfers tsigs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/secondary_dns/tsigs`,pathParams:{},bodyKind:`none`});return}let t=await n(e),a=e.local?_:await o();e.accountId=a;let l=await c(`Loading`,async()=>t.send(Vn,{account_id:a}));s(l,{successLabel:`Loaded`})})};var $={method:`PUT`,path:t=>e`/accounts/${t.account_id}/secondary_dns/tsigs/${t.tsig_id}`,body:`json`};function Wn(e){return e.usage(`$0 dns zone-transfers tsigs update <tsig-id>
151
141
 
152
- Modify TSIG.`).positional(`tsig-id`,{type:`string`,description:`Tsig ID`,demandOption:!0}).option(`algo`,{type:`string`,description:`TSIG algorithm.`}).option(`name`,{type:`string`,description:`TSIG key name.`}).option(`secret`,{type:`string`,description:`TSIG secret.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const or={command:`update <tsig-id>`,describe:`Update TSIG`,builder:ar,handler:async e=>u({command:`dns zone-transfers tsigs update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns zone-transfers tsigs update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/tsigs/${e[`tsig-id`]==null?`<tsig-id>`:encodeURIComponent(String(e[`tsig-id`]))}`,pathParams:{"tsig-id":String(e[`tsig-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({algo:m(e.algo,`algo`,`text`),name:m(e.name,`name`,`text`),secret:m(e.secret,`secret`,`text`)}):f(e.body),sensitiveBodyPaths:[[`secret`]]});return}let n=e.body===void 0?void 0:f(e.body),a=await r(e),u=e.local?t:await o();if(e.accountId=u,e.body!==void 0){let t=n,r=await l(`Updating`,async()=>a.send($,{body:t,account_id:u,tsig_id:e[`tsig-id`]}));s(r,{successLabel:`Updated`});return}e.algo===void 0&&(e.algo=await g(`algo`,`TSIG algorithm.`)),e.name===void 0&&(e.name=await g(`name`,`TSIG key name.`)),e.secret===void 0&&(e.secret=await g(`secret`,`TSIG secret.`,{kind:`secret`}));let d=p({algo:m(e.algo,`algo`,`text`),name:m(e.name,`name`,`text`),secret:m(e.secret,`secret`,`text`)}),h=await l(`Updating`,async()=>a.send($,{body:d,account_id:u,tsig_id:e[`tsig-id`]}));s(h,{successLabel:`Updated`})})},sr={command:`tsigs`,describe:`Operations for zone-transfers.tsigs`,builder:e=>e.command(Yn).command(Qn).command(tr).command(ir).command(or).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},cr={command:`zone-transfers`,describe:`Operations for zone-transfers`,builder:e=>e.command(Jt).command(Qt).command(un).command(Pn).command(Jn).command(sr).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},lr={command:`dns`,describe:`dns`,builder:e=>e.command(ue).command(A).command(Je).command(kt).command(Pt).command(cr).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{lr as default};
142
+ Modify TSIG.`).positional(`tsig-id`,{type:`string`,description:`Tsig ID`,demandOption:!0}).option(`algo`,{type:`string`,description:`TSIG algorithm.`}).option(`name`,{type:`string`,description:`TSIG key name.`}).option(`secret`,{type:`string`,description:`TSIG secret.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Gn={command:`update <tsig-id>`,describe:`Update TSIG`,builder:Wn,handler:async e=>d({command:`dns zone-transfers tsigs update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf dns zone-transfers tsigs update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/tsigs/${e[`tsig-id`]==null?`<tsig-id>`:encodeURIComponent(String(e[`tsig-id`]))}`,pathParams:{"tsig-id":String(e[`tsig-id`]??``)},bodyKind:`json`,body:e.body===void 0?m({algo:h(e.algo,`algo`,`text`),name:h(e.name,`name`,`text`),secret:h(e.secret,`secret`,`text`)}):p(e.body),sensitiveBodyPaths:[[`secret`]]});return}let t=e.body===void 0?void 0:p(e.body),a=await n(e),u=e.local?_:await o();if(e.accountId=u,e.body!==void 0){let n=t,r=await c(`Updating`,async()=>a.send($,{body:n,account_id:u,tsig_id:e[`tsig-id`]}));s(r,{successLabel:`Updated`});return}e.algo===void 0&&(e.algo=await l(`algo`,`TSIG algorithm.`)),e.name===void 0&&(e.name=await l(`name`,`TSIG key name.`)),e.secret===void 0&&(e.secret=await l(`secret`,`TSIG secret.`,{kind:`secret`}));let d=m({algo:h(e.algo,`algo`,`text`),name:h(e.name,`name`,`text`),secret:h(e.secret,`secret`,`text`)}),f=await c(`Updating`,async()=>a.send($,{body:d,account_id:u,tsig_id:e[`tsig-id`]}));s(f,{successLabel:`Updated`})})},Kn={command:`tsigs`,describe:`Operations for zone-transfers.tsigs`,builder:e=>e.command(Q).command(Ln).command(Bn).command(Un).command(Gn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},qn={command:`zone-transfers`,describe:`Operations for zone-transfers`,builder:e=>e.command(Nt).command(Lt).command(Jt).command(yn).command(Nn).command(Kn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Jn={command:`dns`,describe:`dns`,builder:e=>e.command(me).command(Ne).command(mt).command(yt).command(qn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Jn as default};