cf 1.0.0-beta.27 → 1.0.0-beta.28

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 (267) hide show
  1. package/dist/_meta/commands.json +5787 -1914
  2. package/dist/_meta/hand-written-commands.json +2 -2
  3. package/dist/_meta/schemas.json +796 -557
  4. package/dist/{abuse-reports-RxXqfDEW.mjs → abuse-reports-D9edOyag.mjs} +5 -5
  5. package/dist/{access-BxEprr2f.mjs → access-CKCCSrrU.mjs} +1 -1
  6. package/dist/{accounts-DU2ZNYqP.mjs → accounts-CNb9U9bK.mjs} +22 -22
  7. package/dist/{acm-CBCIKBJ4.mjs → acm-CdKTAToZ.mjs} +3 -3
  8. package/dist/{addressing-BKxiLRHk.mjs → addressing-eZI_C-b0.mjs} +18 -18
  9. package/dist/{agent-memory-DkBpQYUL.mjs → agent-memory-BBHCEE7h.mjs} +7 -7
  10. package/dist/{ai-DqEN_hhg.mjs → ai-Csl_QNwv.mjs} +7 -7
  11. package/dist/ai-audit-DlqWsQi-.mjs +6 -0
  12. package/dist/{ai-gateway-B0uiYVHq.mjs → ai-gateway-Lj4On37s.mjs} +13 -13
  13. package/dist/{ai-search-DbZIxdio.mjs → ai-search-BxyhS3X7.mjs} +17 -17
  14. package/dist/{ai-security-CvZfP2JC.mjs → ai-security-DvU2iYkY.mjs} +3 -3
  15. package/dist/{alerting-BjGwBxZT.mjs → alerting-r0G2X9y9.mjs} +10 -10
  16. package/dist/{analytics-C7kT_H-W.mjs → analytics-C6bfqm-W.mjs} +7 -7
  17. package/dist/analytics-engine-BlIecoOe.mjs +4 -0
  18. package/dist/api-Dnt6lRJG.mjs +3 -0
  19. package/dist/{api-security-BbcvDtff.mjs → api-security-DZ7GWOqD.mjs} +26 -26
  20. package/dist/argo-Bh0_cj49.mjs +14 -0
  21. package/dist/{artifacts-2R2sxIKO.mjs → artifacts-VZJWVq_6.mjs} +16 -16
  22. package/dist/{audit-logs-LoBB1OO_.mjs → audit-logs-B8cGL4B9.mjs} +1 -1
  23. package/dist/auth-B-h0BHg7.mjs +2 -0
  24. package/dist/auth-B6tswVxH.mjs +2 -0
  25. package/dist/{auth-D499YE2n.mjs → auth-clmqFEWU.mjs} +3 -3
  26. package/dist/{auth-token-BwpERbnG.mjs → auth-token-DW4dJVdj.mjs} +1 -1
  27. package/dist/{autoconfig-B2w-woU0.mjs → autoconfig-C0ynlGHf.mjs} +47 -47
  28. package/dist/{basin-catalog-AgOHGiPI.mjs → basin-catalog-TehR1sKZ.mjs} +11 -11
  29. package/dist/billing-B2KusU6g.mjs +22 -0
  30. package/dist/{blocks-C8vyXIAT.mjs → blocks-BFulF68V.mjs} +1 -1
  31. package/dist/body-parser-DoewLePl.mjs +2 -0
  32. package/dist/{body-unions-CjpNjwSW.mjs → body-unions-DNs981Ia.mjs} +1 -1
  33. package/dist/{bot-management-fwxKIbaB.mjs → bot-management-CXHXgrQC.mjs} +2 -2
  34. package/dist/{botnet-feed-DCYB5kYZ.mjs → botnet-feed-UyK7Rfp6.mjs} +1 -1
  35. package/dist/brand-protection-kv1ba80i.mjs +14 -0
  36. package/dist/browser-run-D-vRoZmf.mjs +40 -0
  37. package/dist/build-BzJGqb2o.mjs +2 -0
  38. package/dist/build-FFxzigo4.mjs +2 -0
  39. package/dist/{builds-CoazxuN-.mjs → builds-BbxINHRP.mjs} +15 -15
  40. package/dist/cache-BacNNtLu.mjs +36 -0
  41. package/dist/{cf-hP0SOgC6.mjs → cf-BQ_LRiut.mjs} +2 -2
  42. package/dist/{chunk-DSGVRFIS-DQwKND2c.mjs → chunk-DSGVRFIS-BaNZNW-M.mjs} +1 -1
  43. package/dist/{chunk-SOBRPAPT-BKzUiNx_.mjs → chunk-SOBRPAPT-QTjnHSNs.mjs} +1 -1
  44. package/dist/{cli-Nqf58-1c.mjs → cli-B7vslRfu.mjs} +1 -1
  45. package/dist/{client-side-security-VmZzMy-m.mjs → client-side-security-bzB9JosR.mjs} +6 -6
  46. package/dist/{cloud-connector-bMlFnqP0.mjs → cloud-connector-BHtf37R5.mjs} +2 -2
  47. package/dist/{cloudflared-Ba4KWdTO.mjs → cloudflared-QDdHMUEY.mjs} +1 -1
  48. package/dist/{cloudforce-one-CCaIBOAo.mjs → cloudforce-one-DWBPQDA3.mjs} +71 -71
  49. package/dist/{command-C4OgtX_x.mjs → command-AVwd7XjE.mjs} +1 -1
  50. package/dist/{command-C5Kqc5Km.mjs → command-B87T_f2f.mjs} +1 -1
  51. package/dist/{command-CelQVrZL.mjs → command-CEHhi3t0.mjs} +1 -1
  52. package/dist/{command-ByYf12-8.mjs → command-CYmQE79n.mjs} +1 -1
  53. package/dist/{command-pMoNdd22.mjs → command-CbxXc5IW.mjs} +1 -1
  54. package/dist/{command-Bih1HLr3.mjs → command-Ce8CVLth.mjs} +1 -1
  55. package/dist/{command-MxFFWqMg.mjs → command-CqDudQZs.mjs} +1 -1
  56. package/dist/{command-BASaTmJc.mjs → command-D4YcwpVp.mjs} +1 -1
  57. package/dist/{command-BxZBNPxG.mjs → command-D895kdlh.mjs} +1 -1
  58. package/dist/{command-CrAlzysj.mjs → command-D9Qyi1B0.mjs} +1 -1
  59. package/dist/{command-BiIVclNA.mjs → command-DeutqL1n.mjs} +1 -1
  60. package/dist/{command-C0qCuw03.mjs → command-Dl9ICrRK.mjs} +1 -1
  61. package/dist/{command-CZAR85ba.mjs → command-DtCSe8Hy.mjs} +1 -1
  62. package/dist/{command-C2FVMd1b.mjs → command-DwzVtmb3.mjs} +1 -1
  63. package/dist/{command-CFxyp8Uo.mjs → command-wtBubtZ4.mjs} +1 -1
  64. package/dist/{completions-DRzBiqpv.mjs → completions-BvdKtzsX.mjs} +1 -1
  65. package/dist/{connector-interrupts-CrTeSyaM.mjs → connector-interrupts-dUPW6Ya_.mjs} +2 -2
  66. package/dist/{connector-telemetry-events-BbAOUt9h.mjs → connector-telemetry-events-DWVCqnhn.mjs} +1 -1
  67. package/dist/{connector-telemetry-snapshots-DcpBx7Qx.mjs → connector-telemetry-snapshots-CeMP3qeI.mjs} +1 -1
  68. package/dist/{connectors-D1WFLJoE.mjs → connectors-DZFGNw3i.mjs} +4 -4
  69. package/dist/containers-B06OGOEB.mjs +380 -0
  70. package/dist/{containers-BOBEs1Gk.mjs → containers-DCzQCo79.mjs} +8 -8
  71. package/dist/{content-scan-D1GfPSL0.mjs → content-scan-XhnNJqXf.mjs} +4 -4
  72. package/dist/{context-Dp4CXG22.mjs → context-BY1Eh_Qe.mjs} +1 -1
  73. package/dist/{cps-D4uhzg3k.mjs → cps-CohlxvuN.mjs} +2 -2
  74. package/dist/create-DmLDMvrj.mjs +2 -0
  75. package/dist/{csam-scanner-DOOUBeBM.mjs → csam-scanner-BV4bHq8v.mjs} +2 -2
  76. package/dist/{custom-csrs-DtdFo5YZ.mjs → custom-csrs-BVdMQjYq.mjs} +2 -2
  77. package/dist/{custom-hostnames-ccdlELaD.mjs → custom-hostnames-r-CxhSa1.mjs} +5 -5
  78. package/dist/{custom-nameservers-p3gDjfva.mjs → custom-nameservers-CapMDyly.mjs} +2 -2
  79. package/dist/{custom-pages-DAkKVzgR.mjs → custom-pages-BVIniWfq.mjs} +5 -5
  80. package/dist/{d1-CDIyRdh4.mjs → d1-nJCOJZb8.mjs} +20 -22
  81. package/dist/{delegate-B4bKqF7i.mjs → delegate-CcL6RoGw.mjs} +1 -1
  82. package/dist/delegate.mjs +1 -1
  83. package/dist/{deploy-BaC5Ty7F.mjs → deploy-DJMnWFNk.mjs} +1 -1
  84. package/dist/{deploy-context-DTTgNGro.mjs → deploy-context-YCW3eqP1.mjs} +15 -15
  85. package/dist/{deploy-input-mAy06fAI.mjs → deploy-input-CQLBXFEB.mjs} +1 -1
  86. package/dist/{dev-De-HszNT.mjs → dev-GsYHvMah.mjs} +1 -1
  87. package/dist/{diagnostics-D1CUs2o9.mjs → diagnostics-C3nqxsAO.mjs} +4 -4
  88. package/dist/{dist-D5qkmHhC.mjs → dist-D-ihn_mV.mjs} +42 -33
  89. package/dist/{dls-DWBiYzY1.mjs → dls-N1x8sAK3.mjs} +3 -3
  90. package/dist/{dns-wMjf1t6-.mjs → dns-DATWP-PF.mjs} +25 -25
  91. package/dist/{dns-firewall-DH9xIT5H.mjs → dns-firewall-n3Y2ui6W.mjs} +4 -4
  92. package/dist/{docs-BA7qslb2.mjs → docs-CRc_WOXh.mjs} +1 -1
  93. package/dist/{dry-run-gy0Hl9xo.mjs → dry-run-kJbjn4kG.mjs} +1 -1
  94. package/dist/{durable-objects-DF0MYpnV.mjs → durable-objects-DHK9w-vO.mjs} +2 -2
  95. package/dist/{email-auth-BShMFXn4.mjs → email-auth-ptdqNSTZ.mjs} +1 -1
  96. package/dist/{email-domains-CDSbVclP.mjs → email-domains-uL22-zRY.mjs} +2 -2
  97. package/dist/{email-routing-CBCkbg_F.mjs → email-routing-CV43rMJC.mjs} +12 -12
  98. package/dist/{email-security-CnNa1YON.mjs → email-security-DK_SJ0yi.mjs} +38 -38
  99. package/dist/{email-sending-CpDSw-Eb.mjs → email-sending-CTQafGec.mjs} +11 -11
  100. package/dist/{error-sanitization-DG8WSzHe.mjs → error-sanitization-BkgtZ0Vx.mjs} +1 -1
  101. package/dist/error-sanitization-D069tpKk.mjs +2 -0
  102. package/dist/{errors-DatLr-iR.mjs → errors-VG1mgwJl.mjs} +1 -1
  103. package/dist/{field-extractors-BwGdMnTr.mjs → field-extractors-jcZ_bAGc.mjs} +2 -2
  104. package/dist/{firewall-CY_oem-d.mjs → firewall-CW-fAI9m.mjs} +12 -12
  105. package/dist/{flagship-Bat5EZCk.mjs → flagship-RiLnDwfJ.mjs} +8 -8
  106. package/dist/{fraud-CSUKLh8X.mjs → fraud-DvfBBTe8.mjs} +2 -2
  107. package/dist/get-3XNn0upb.mjs +2 -0
  108. package/dist/{google-tag-gateway-C2skt6t-.mjs → google-tag-gateway-C5WYsSXv.mjs} +2 -2
  109. package/dist/{healthchecks-uC43QKQd.mjs → healthchecks-BA1fmzTm.mjs} +5 -5
  110. package/dist/{hyperdrive-FcBbpew4.mjs → hyperdrive-Ch6klUp3.mjs} +4 -4
  111. package/dist/{iam-8T74DNhH.mjs → iam-LlGEzRCq.mjs} +14 -14
  112. package/dist/{images-C3JUaf6b.mjs → images-C5WqUXkK.mjs} +11 -11
  113. package/dist/index.mjs +1 -1
  114. package/dist/{init-BEVVz4_P.mjs → init-EVsjBrOz.mjs} +2 -2
  115. package/dist/{intel-DRy4rHrt.mjs → intel-vcWyslaX.mjs} +14 -14
  116. package/dist/{interactive-CKHdGvkh.mjs → interactive-BCDFSPtq.mjs} +1 -1
  117. package/dist/{internal-CamuESs0.mjs → internal-BhV9WjLp.mjs} +1 -1
  118. package/dist/{ips-DinCNnWj.mjs → ips-CqHjVsqd.mjs} +1 -1
  119. package/dist/k2-CZT2Pd5J.mjs +10 -0
  120. package/dist/kv-Ipa7dnvF.mjs +12 -0
  121. package/dist/{lazy-command-WB1FOuew.mjs → lazy-command-DbKVgdGT.mjs} +1 -1
  122. package/dist/{leaked-credential-checks-CSZd9hBQ.mjs → leaked-credential-checks-EzT4TTjO.mjs} +4 -4
  123. package/dist/{live-B6AsI_E5.mjs → live-C9L1bNuE.mjs} +1 -1
  124. package/dist/{load-balancers-gap5u4b1.mjs → load-balancers-Cb3VkSfc.mjs} +21 -21
  125. package/dist/local-D5Vq6ooZ.mjs +2 -0
  126. package/dist/{local-CgBhtmON.mjs → local-DIJ7SIKC.mjs} +1 -1
  127. package/dist/{local-runtime-CmlJ20uJ.mjs → local-runtime-BZjgkacr.mjs} +1 -1
  128. package/dist/{login-BJHaTERg.mjs → login-DG5ebyab.mjs} +1 -1
  129. package/dist/login-DRJugxya.mjs +2 -0
  130. package/dist/{logpush-qhlxsioM.mjs → logpush-C5Gw7F_9.mjs} +16 -16
  131. package/dist/{logs-bI54CJ0w.mjs → logs-y3REfHbb.mjs} +8 -8
  132. package/dist/magic-network-monitoring-BZBGZB6M.mjs +34 -0
  133. package/dist/{magic-transit-BwDyySHJ.mjs → magic-transit-BPV_POf5.mjs} +129 -129
  134. package/dist/{managed-defense-CsBBkfeQ.mjs → managed-defense-BaUBSUcz.mjs} +3 -3
  135. package/dist/{managed-transforms-CUC-uAbW.mjs → managed-transforms-CjkjLzMC.mjs} +2 -2
  136. package/dist/{mcp-CyI0sDmL.mjs → mcp-RPtrISTy.mjs} +6 -6
  137. package/dist/{mesh-Czr0UCP4.mjs → mesh-DZ4QHBPE.mjs} +5 -5
  138. package/dist/{migrate-DKDWYrz2.mjs → migrate-CRIUqGi2.mjs} +1 -1
  139. package/dist/{monetization-NUgfDtSy.mjs → monetization-CVZqM8Xo.mjs} +4 -4
  140. package/dist/{network-B42zrBic.mjs → network-DLt2JUo1.mjs} +15 -15
  141. package/dist/{network-interconnects-DuIBe8fK.mjs → network-interconnects-9nS5jL__.mjs} +10 -10
  142. package/dist/{o11y-oEUpMC3O.mjs → o11y-ySxrnP1Z.mjs} +45 -43
  143. package/dist/{oauth-BmSFLp_s.mjs → oauth-CFVUl-Wv.mjs} +1 -1
  144. package/dist/{oauth-BLQ1-y3R.mjs → oauth-Cidoyxfp.mjs} +1 -1
  145. package/dist/{observability-BxhJQCgZ.mjs → observability-C-KNh__y.mjs} +1 -1
  146. package/dist/ohttp-gateway-B5nCl4s3.mjs +8 -0
  147. package/dist/organizations-DbeeWUL4.mjs +71 -0
  148. package/dist/output-BZQEl3mK.mjs +2 -0
  149. package/dist/package-B7RgwuFR.mjs +2 -0
  150. package/dist/{page-rules-J6LhwR-s.mjs → page-rules-DRw763O1.mjs} +4 -4
  151. package/dist/{pages-BksdnChs.mjs → pages-DfQnxiTk.mjs} +12 -12
  152. package/dist/{pay-per-crawl-BLcbHRoR.mjs → pay-per-crawl-EHYtSKxX.mjs} +13 -13
  153. package/dist/{pay-per-use-VatiU-Nt.mjs → pay-per-use-wdEhl8k4.mjs} +11 -11
  154. package/dist/{pipelines-B5AoB3f3.mjs → pipelines-DbyrI6F4.mjs} +11 -11
  155. package/dist/{precursor-D3VH2MXT.mjs → precursor-Dx8lN4UJ.mjs} +2 -2
  156. package/dist/previews-DEVNSip2.mjs +6 -0
  157. package/dist/{progress-DLri-rA7.mjs → progress-yvPscjYg.mjs} +1 -1
  158. package/dist/{prompt-D0dXwuME.mjs → prompt-CEpZ-lQZ.mjs} +1 -1
  159. package/dist/{queues-BsAck4To.mjs → queues-DgMc7Z6A.mjs} +18 -18
  160. package/dist/{r2-BYjdHDEZ.mjs → r2-BpTVicIq.mjs} +21 -21
  161. package/dist/{radar-CvLtu-Vr.mjs → radar-DW-S1VUh.mjs} +11 -11
  162. package/dist/{raw-fetch-DQeDx1wT.mjs → raw-fetch-Cl5spWC3.mjs} +1 -1
  163. package/dist/{ready-gsGEaWLL.mjs → ready-d0li0X6r.mjs} +1 -1
  164. package/dist/{realtime-DiCEgFTC.mjs → realtime-DMKHLYF4.mjs} +41 -41
  165. package/dist/{registrar-D4wdgWpo.mjs → registrar-D23gfKBi.mjs} +5 -5
  166. package/dist/{registrar-sandbox-B6yopzdG.mjs → registrar-sandbox-lVLB1-mC.mjs} +4 -4
  167. package/dist/{reporting-BiHgnT8L.mjs → reporting-WX8P3Y0k.mjs} +2 -2
  168. package/dist/{request-headers-CoxHUNcB.mjs → request-headers-C0FpeBhz.mjs} +1 -1
  169. package/dist/{request-tracers-817HTytF.mjs → request-tracers-qd7XOAka.mjs} +2 -2
  170. package/dist/resource-sharing-B2ZSt_cA.mjs +36 -0
  171. package/dist/{rules-CRhe_ca9.mjs → rules-CB0QQTB3.mjs} +5 -5
  172. package/dist/{rulesets-CKyc-Xlx.mjs → rulesets-DmqwixUC.mjs} +6 -6
  173. package/dist/{rum-BfnWHW_d.mjs → rum-BZ_24qZU.mjs} +9 -9
  174. package/dist/{run-Ciw_GIrC.mjs → run-BOKI1uWa.mjs} +1 -1
  175. package/dist/run-DBqOjD1P.mjs +2 -0
  176. package/dist/{schema-DuLIZRhA.mjs → schema-Dj9STsWI.mjs} +1 -1
  177. package/dist/{schema-cache-BIo0Gi2H.mjs → schema-cache-5NkOj7Y3.mjs} +1 -1
  178. package/dist/{schema-flags-DrqvwQNw.mjs → schema-flags-CXm9iIv6.mjs} +1 -1
  179. package/dist/{scim-C4iRWNYB.mjs → scim-DchxaJfE.mjs} +8 -8
  180. package/dist/{secrets-store-DgtzZRze.mjs → secrets-store-oAft1cFE.mjs} +5 -5
  181. package/dist/{security-insights-SlUGW3F_.mjs → security-insights-DMm0qg_m.mjs} +15 -15
  182. package/dist/{security-txt-C3YS0REz.mjs → security-txt-CIt0494b.mjs} +2 -2
  183. package/dist/{session-D2yuwO4i.mjs → session-vzNfUhPl.mjs} +1 -1
  184. package/dist/{shared--uVkAAd7.mjs → shared-MK-_lkbn.mjs} +1 -1
  185. package/dist/{signed-url-ClLk45_J.mjs → signed-url-gNangfwc.mjs} +1 -1
  186. package/dist/{smart-shield-Dn95hqUH.mjs → smart-shield-Boy_qbqd.mjs} +6 -6
  187. package/dist/{snippets-BNUKOajz.mjs → snippets-DdoDYXW-.mjs} +3 -3
  188. package/dist/{spawn-DuT4snxu.mjs → spawn-B5F4OIHG.mjs} +1 -1
  189. package/dist/{spectrum-Cj0BMtg2.mjs → spectrum-DLYIHelC.mjs} +3 -3
  190. package/dist/{speed-BrVeZRyX.mjs → speed-DugG9Tm9.mjs} +2 -2
  191. package/dist/{sql-BX1pBqj3.mjs → sql-Bb56llsb.mjs} +2 -2
  192. package/dist/src-BoSDeQ9m.mjs +133 -0
  193. package/dist/{ssl-Bx4LCutF.mjs → ssl-Bg4X3WGk.mjs} +24 -24
  194. package/dist/startup-profile-DQVkZZpb.mjs +2 -0
  195. package/dist/{startup-profile-DqaYNT0b.mjs → startup-profile-DZL2DC44.mjs} +1 -1
  196. package/dist/state-DW3QZtfh.mjs +2 -0
  197. package/dist/{state-BmzOLELo.mjs → state-mr5ux1Nb.mjs} +1 -1
  198. package/dist/{stream-BRzr6yh0.mjs → stream-BuZYDbNR.mjs} +21 -21
  199. package/dist/{tags-xVzjZxdt.mjs → tags-SKz2odE_.mjs} +3 -3
  200. package/dist/{telemetry-CJ9URio3.mjs → telemetry-B4zmCpT0.mjs} +1 -1
  201. package/dist/telemetry-DkDUr4KK.mjs +2 -0
  202. package/dist/{tenant-custom-nameservers-M7Fxqh2W.mjs → tenant-custom-nameservers-BhkhBerL.mjs} +2 -2
  203. package/dist/tenants-DD-GMq0K.mjs +13 -0
  204. package/dist/{tools-C-vmgYSv.mjs → tools-KW_4hvzY.mjs} +1 -1
  205. package/dist/{tunnels-DQVXKUKA.mjs → tunnels-D90ztENM.mjs} +6 -6
  206. package/dist/{turnstile-B_Ugzgom.mjs → turnstile-DhSU_Xar.mjs} +4 -4
  207. package/dist/ui-xjCox-gU.mjs +2 -0
  208. package/dist/{update-check-DHUo4FOJ.mjs → update-check-CRttabfu.mjs} +1 -1
  209. package/dist/{update-check-DRr0eRhB.mjs → update-check-HltjTMDE.mjs} +1 -1
  210. package/dist/update-check-worker.mjs +1 -1
  211. package/dist/{url-normalization-CZRQH_pJ.mjs → url-normalization-K7gkmPvG.mjs} +2 -2
  212. package/dist/{url-scanner-BH4PLy16.mjs → url-scanner-BRdWwka4.mjs} +3 -3
  213. package/dist/{user-Bn82Qw0Y.mjs → user-Cmb1_Wu5.mjs} +50 -50
  214. package/dist/{vectorize-DoVVz_sh.mjs → vectorize-BTBerJME.mjs} +11 -11
  215. package/dist/verify-B9ILCohg.mjs +2 -0
  216. package/dist/verify-BCuWaO-L.mjs +2 -0
  217. package/dist/version-6Bpy6Bgt.mjs +2 -0
  218. package/dist/{waiting-rooms-QUW131o3.mjs → waiting-rooms-LymmKIGr.mjs} +13 -13
  219. package/dist/{web-assets-CgQXsp8m.mjs → web-assets-LHPQsrnY.mjs} +21 -21
  220. package/dist/{web3-TY9s6Swn.mjs → web3-BsOio0Ae.mjs} +12 -12
  221. package/dist/workers-BnLiOjZf.mjs +39 -0
  222. package/dist/{workers-builds-BgGY0IGk.mjs → workers-builds-sKpITeRk.mjs} +4 -4
  223. package/dist/{workers-for-platforms-5RkV9MVp.mjs → workers-for-platforms-BGp6yr6P.mjs} +9 -9
  224. package/dist/{workers-vpc-Bt4OQbwM.mjs → workers-vpc-D8lefWDo.mjs} +3 -3
  225. package/dist/{workflows-6m85DdqF.mjs → workflows-B-ZIG3y7.mjs} +22 -22
  226. package/dist/{wrangler-migration-BbmGOu8l.mjs → wrangler-migration-6E6wT_LZ.mjs} +66 -57
  227. package/dist/{zaraz-8WSJ7l0L.mjs → zaraz-BBKki5WS.mjs} +11 -11
  228. package/dist/{zero-trust-DK0cqDZv.mjs → zero-trust-BZDXM5r6.mjs} +165 -165
  229. package/dist/{zones-DTAcguf6.mjs → zones-B-UV_DGE.mjs} +24 -24
  230. package/package.json +14 -14
  231. package/dist/ai-audit-BmzOgt6x.mjs +0 -6
  232. package/dist/analytics-engine-BHpcNSdD.mjs +0 -4
  233. package/dist/api-X3wKppsT.mjs +0 -3
  234. package/dist/argo-D1VONzu-.mjs +0 -14
  235. package/dist/auth-CspwoBlp.mjs +0 -2
  236. package/dist/auth-FK2eLQ02.mjs +0 -2
  237. package/dist/billing-DRNww0iC.mjs +0 -24
  238. package/dist/body-parser-BKcZS9iJ.mjs +0 -2
  239. package/dist/brand-protection-BVICLzBc.mjs +0 -26
  240. package/dist/browser-run-CEk-NIgP.mjs +0 -40
  241. package/dist/build-CRm2TQq8.mjs +0 -2
  242. package/dist/build-DO_GNhRl.mjs +0 -2
  243. package/dist/cache-jlLJLSu7.mjs +0 -36
  244. package/dist/containers-DINLx5_i.mjs +0 -380
  245. package/dist/create-BtmuVqVL.mjs +0 -2
  246. package/dist/error-sanitization-B025CygB.mjs +0 -2
  247. package/dist/get-Be821dio.mjs +0 -2
  248. package/dist/k2-wsanPL3y.mjs +0 -10
  249. package/dist/kv-BLSPcEnH.mjs +0 -12
  250. package/dist/local-CFsO9Tkg.mjs +0 -2
  251. package/dist/login-BfuOf-Yi.mjs +0 -2
  252. package/dist/magic-network-monitoring-CX3TaMTu.mjs +0 -34
  253. package/dist/organization-CEnlXwrl.mjs +0 -70
  254. package/dist/organizations-Dt86ToxE.mjs +0 -4
  255. package/dist/origin-post-quantum-encryption-lX-uaJSL.mjs +0 -6
  256. package/dist/output-BJEgbI0G.mjs +0 -2
  257. package/dist/package-CiRJBRHO.mjs +0 -2
  258. package/dist/previews-DzJ85fsr.mjs +0 -6
  259. package/dist/resource-sharing-CW9xxtq5.mjs +0 -36
  260. package/dist/run-DD45EQTm.mjs +0 -2
  261. package/dist/src-DPnUfK4c.mjs +0 -131
  262. package/dist/startup-profile-tZNb2HGz.mjs +0 -2
  263. package/dist/state-Uwfrmw5I.mjs +0 -2
  264. package/dist/telemetry-Pt5GpCKD.mjs +0 -2
  265. package/dist/ui-FYultowZ.mjs +0 -2
  266. package/dist/version-Zr2oF8mY.mjs +0 -2
  267. package/dist/workers-B3uJqJKc.mjs +0 -39
@@ -1,17 +1,17 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./lazy-command-WB1FOuew.mjs";import"./api-X3wKppsT.mjs";import{t}from"./path-DRw6Y-nd.mjs";import{t as n}from"./hand-written-dry-run-B82fRl2N.mjs";import{t as r}from"./local-CgBhtmON.mjs";import{i,n as a}from"./auth-FK2eLQ02.mjs";import{a as o,t as s}from"./context-Dp4CXG22.mjs";import{t as c}from"./output-BJEgbI0G.mjs";import{t as l}from"./dry-run-gy0Hl9xo.mjs";import{t as u}from"./progress-DLri-rA7.mjs";import{t as d}from"./run-Ciw_GIrC.mjs";import"./telemetry-Pt5GpCKD.mjs";import{n as f,r as p,t as m}from"./body-parser-BKcZS9iJ.mjs";import{n as h,t as ee}from"./input-validation-D7z60HJH.mjs";import{a as g,i as _,n as v}from"./prompt-D0dXwuME.mjs";var y={method:`POST`,path:e=>t`/accounts/${e.account_id}/pages/projects/${e.project_name}/purge_build_cache`};function te(e){return e.usage(`$0 pages build-cache purge <project-name>
2
+ import{t as e}from"./lazy-command-DbKVgdGT.mjs";import"./api-Dnt6lRJG.mjs";import{t}from"./path-DRw6Y-nd.mjs";import{t as n}from"./hand-written-dry-run-B82fRl2N.mjs";import{t as r}from"./local-DIJ7SIKC.mjs";import{i,n as a}from"./auth-B-h0BHg7.mjs";import{a as o,t as s}from"./context-BY1Eh_Qe.mjs";import{t as c}from"./output-BZQEl3mK.mjs";import{t as l}from"./dry-run-kJbjn4kG.mjs";import{t as u}from"./progress-yvPscjYg.mjs";import{t as d}from"./run-BOKI1uWa.mjs";import"./telemetry-DkDUr4KK.mjs";import{n as f,r as p,t as m}from"./body-parser-DoewLePl.mjs";import{n as h,t as g}from"./input-validation-D7z60HJH.mjs";import{a as _,i as v,n as y}from"./prompt-CEpZ-lQZ.mjs";var ee={method:`POST`,path:e=>t`/accounts/${e.account_id}/pages/projects/${e.project_name}/purge_build_cache`};function b(e){return e.usage(`$0 pages build-cache purge <project-name>
3
3
 
4
- Remove cached build artifacts so subsequent builds run without the project's existing build cache.`).positional(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,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 ne={command:`purge <project-name>`,describe:`Purge the Pages build cache`,builder:te,handler:async e=>d({command:`pages build-cache purge`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf pages build-cache purge`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/purge_build_cache`,pathParams:{"project-name":String(e[`project-name`]??``)},bodyKind:`none`});return}let t=await a(e),n=e.local?r:await s();if(e.accountId=n,!await v({force:!!e.force,message:`This operation purges the build cache for a Pages project.`}))return;let i=await u(`Deleting`,async()=>t.send(y,{account_id:n,project_name:e[`project-name`]}));c(i,{successLabel:`Deleted`})})},re={command:`build-cache`,describe:`Operations for build-cache`,builder:e=>e.command(ne).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var b={method:`POST`,path:e=>t`/accounts/${e.account_id}/pages/projects`,body:`json`};function x(e){return e.usage(`$0 pages create
4
+ Remove cached build artifacts so subsequent builds run without the project's existing build cache.`).positional(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,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 te={command:`purge <project-name>`,describe:`Purge the Pages build cache`,builder:b,handler:async e=>d({command:`pages build-cache purge`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf pages build-cache purge`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/purge_build_cache`,pathParams:{"project-name":String(e[`project-name`]??``)},bodyKind:`none`});return}let t=await a(e),n=e.local?r:await s();if(e.accountId=n,!await y({force:!!e.force,message:`This operation purges the build cache for a Pages project.`}))return;let i=await u(`Processing`,async()=>t.send(ee,{account_id:n,project_name:e[`project-name`]}));c(i,{successLabel:`Done`})})},ne={command:`build-cache`,describe:`Operations for build-cache`,builder:e=>e.command(te).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var x={method:`POST`,path:e=>t`/accounts/${e.account_id}/pages/projects`,body:`json`};function re(e){return e.usage(`$0 pages create
5
5
 
6
6
  Create a Cloudflare Pages project for configuring and deploying a site or application.`).option(`build-config-build-caching`,{type:`boolean`,description:`Enable build caching for the project.`}).option(`build-config-build-command`,{type:`string`,description:`Command used to build project.`}).option(`build-config-destination-dir`,{type:`string`,description:`Output directory of the build.`}).option(`build-config-root-dir`,{type:`string`,description:`Directory to run the command.`}).option(`build-config-web-analytics-tag`,{type:`string`,description:`The classifying tag for analytics.`}).option(`build-config-web-analytics-token`,{type:`string`,description:`The auth token for analytics.`}).option(`deployment-configs-preview-ai-bindings`,{type:`string`,description:`Constellation bindings used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-preview-always-use-latest-compatibility-date`,{type:`boolean`,description:`Whether to always use the latest compatibility date for Pages Functions.`}).option(`deployment-configs-preview-analytics-engine-datasets`,{type:`string`,description:`Analytics Engine bindings used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-preview-browsers`,{type:`string`,description:`Browser bindings used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-preview-build-image-major-version`,{type:`number`,description:`The major version of the build image to use for Pages Functions. Version 1 is retired and its projects are moved to version 3. Once a project's builds have been moved, a request that sets version 1 is rejected.`}).option(`deployment-configs-preview-compatibility-date`,{type:`string`,description:`Compatibility date used for Pages Functions.`}).option(`deployment-configs-preview-compatibility-flags`,{type:`string`,array:!0,description:`Compatibility flags used for Pages Functions.`}).option(`deployment-configs-preview-d1-databases`,{type:`string`,description:`D1 databases used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-preview-durable-object-namespaces`,{type:`string`,description:`Durable Object namespaces used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-preview-env-vars`,{type:`string`,description:`Environment variables used for builds and Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-preview-fail-open`,{type:`boolean`,description:`Whether to fail open when the deployment config cannot be applied.`}).option(`deployment-configs-preview-hyperdrive-bindings`,{type:`string`,description:`Hyperdrive bindings used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-preview-kv-namespaces`,{type:`string`,description:`KV namespaces used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-preview-limits-cpu-ms`,{type:`number`,description:`CPU time limit in milliseconds.`}).option(`deployment-configs-preview-mtls-certificates`,{type:`string`,description:`mTLS bindings used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-preview-placement-mode`,{type:`string`,description:`Placement mode.`}).option(`deployment-configs-preview-queue-producers`,{type:`string`,description:`Queue Producer bindings used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-preview-r2-buckets`,{type:`string`,description:`R2 buckets used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-preview-services`,{type:`string`,description:`Services used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-preview-usage-model`,{type:`string`,description:`The usage model for Pages Functions.`,choices:[`standard`,`bundled`,`unbound`]}).coerce(`deployment-configs-preview-usage-model`,e=>h(e,`deployment-configs-preview-usage-model`,`text`)).option(`deployment-configs-preview-vectorize-bindings`,{type:`string`,description:`Vectorize bindings used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-preview-wrangler-config-hash`,{type:`string`,description:`Hash of the Wrangler configuration used for the deployment.`}).option(`deployment-configs-production-ai-bindings`,{type:`string`,description:`Constellation bindings used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-production-always-use-latest-compatibility-date`,{type:`boolean`,description:`Whether to always use the latest compatibility date for Pages Functions.`}).option(`deployment-configs-production-analytics-engine-datasets`,{type:`string`,description:`Analytics Engine bindings used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-production-browsers`,{type:`string`,description:`Browser bindings used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-production-build-image-major-version`,{type:`number`,description:`The major version of the build image to use for Pages Functions. Version 1 is retired and its projects are moved to version 3. Once a project's builds have been moved, a request that sets version 1 is rejected.`}).option(`deployment-configs-production-compatibility-date`,{type:`string`,description:`Compatibility date used for Pages Functions.`}).option(`deployment-configs-production-compatibility-flags`,{type:`string`,array:!0,description:`Compatibility flags used for Pages Functions.`}).option(`deployment-configs-production-d1-databases`,{type:`string`,description:`D1 databases used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-production-durable-object-namespaces`,{type:`string`,description:`Durable Object namespaces used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-production-env-vars`,{type:`string`,description:`Environment variables used for builds and Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-production-fail-open`,{type:`boolean`,description:`Whether to fail open when the deployment config cannot be applied.`}).option(`deployment-configs-production-hyperdrive-bindings`,{type:`string`,description:`Hyperdrive bindings used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-production-kv-namespaces`,{type:`string`,description:`KV namespaces used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-production-limits-cpu-ms`,{type:`number`,description:`CPU time limit in milliseconds.`}).option(`deployment-configs-production-mtls-certificates`,{type:`string`,description:`mTLS bindings used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-production-placement-mode`,{type:`string`,description:`Placement mode.`}).option(`deployment-configs-production-queue-producers`,{type:`string`,description:`Queue Producer bindings used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-production-r2-buckets`,{type:`string`,description:`R2 buckets used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-production-services`,{type:`string`,description:`Services used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-production-usage-model`,{type:`string`,description:`The usage model for Pages Functions.`,choices:[`standard`,`bundled`,`unbound`]}).coerce(`deployment-configs-production-usage-model`,e=>h(e,`deployment-configs-production-usage-model`,`text`)).option(`deployment-configs-production-vectorize-bindings`,{type:`string`,description:`Vectorize bindings used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-production-wrangler-config-hash`,{type:`string`,description:`Hash of the Wrangler configuration used for the deployment.`}).option(`name`,{type:`string`,description:`Name for the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`}).option(`production-branch`,{type:`string`,description:`Production branch of the project. Used to identify production deployments.`}).option(`source-config-deployments-enabled`,{type:`boolean`,description:`Whether to enable automatic deployments when pushing to the source repository.
7
7
  When disabled, no deployments (production or preview) will be triggered automatically.
8
- `}).option(`source-config-owner`,{type:`string`,description:`The owner of the repository.`}).option(`source-config-owner-id`,{type:`string`,description:`The owner ID of the repository.`}).option(`source-config-path-excludes`,{type:`string`,array:!0,description:"A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (`*`) is supported."}).option(`source-config-path-includes`,{type:`string`,array:!0,description:"A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (`*`) is supported."}).option(`source-config-pr-comments-enabled`,{type:`boolean`,description:`Whether to enable PR comments.`}).option(`source-config-preview-branch-excludes`,{type:`string`,array:!0,description:"A list of branches that should not trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`."}).option(`source-config-preview-branch-includes`,{type:`string`,array:!0,description:"A list of branches that should trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`."}).option(`source-config-preview-deployment-setting`,{type:`string`,description:`Controls whether commits to preview branches trigger a preview deployment.`,choices:[`all`,`none`,`custom`]}).coerce(`source-config-preview-deployment-setting`,e=>h(e,`source-config-preview-deployment-setting`,`text`)).option(`source-config-production-branch`,{type:`string`,description:`The production branch of the repository.`}).option(`source-config-production-deployments-enabled`,{type:`boolean`,description:`Whether to trigger a production deployment on commits to the production branch.`}).option(`source-config-repo-id`,{type:`string`,description:`The ID of the repository.`}).option(`source-config-repo-name`,{type:`string`,description:`The name of the repository.`}).option(`source-type`,{type:`string`,description:`The source control management provider.`,choices:[`github`,`gitlab`]}).coerce(`source-type`,e=>h(e,`source-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)`}).check(e=>{let t=[`source-config-deployments-enabled`,`source-config-owner`,`source-config-owner-id`,`source-config-path-excludes`,`source-config-path-includes`,`source-config-pr-comments-enabled`,`source-config-preview-branch-excludes`,`source-config-preview-branch-includes`,`source-config-preview-deployment-setting`,`source-config-production-branch`,`source-config-production-deployments-enabled`,`source-config-repo-id`,`source-config-repo-name`,`source-type`].some(t=>e[t]!==void 0);if(!e.body&&t){let t=[`source-type`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --source-* flag is set`)}return!0})}const S={command:`create`,describe:`Create a Cloudflare Pages project`,builder:x,handler:async e=>d({command:`pages create`,classification:{safeFlags:[`build-config-build-caching`,`deployment-configs-preview-always-use-latest-compatibility-date`,`deployment-configs-preview-fail-open`,`deployment-configs-preview-usage-model`,`deployment-configs-production-always-use-latest-compatibility-date`,`deployment-configs-production-fail-open`,`deployment-configs-production-usage-model`,`source-config-deployments-enabled`,`source-config-pr-comments-enabled`,`source-config-preview-deployment-setting`,`source-config-production-deployments-enabled`,`source-type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf pages create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects`,pathParams:{},bodyKind:`json`,body:e.body===void 0?m({build_config:{build_caching:e[`build-config-build-caching`],build_command:h(e[`build-config-build-command`],`build-config-build-command`,`text`),destination_dir:h(e[`build-config-destination-dir`],`build-config-destination-dir`,`text`),root_dir:h(e[`build-config-root-dir`],`build-config-root-dir`,`text`),web_analytics_tag:h(e[`build-config-web-analytics-tag`],`build-config-web-analytics-tag`,`text`),web_analytics_token:h(e[`build-config-web-analytics-token`],`build-config-web-analytics-token`,`text`)},deployment_configs:{preview:{ai_bindings:p(e[`deployment-configs-preview-ai-bindings`],`deployment-configs-preview-ai-bindings`),always_use_latest_compatibility_date:e[`deployment-configs-preview-always-use-latest-compatibility-date`],analytics_engine_datasets:p(e[`deployment-configs-preview-analytics-engine-datasets`],`deployment-configs-preview-analytics-engine-datasets`),browsers:p(e[`deployment-configs-preview-browsers`],`deployment-configs-preview-browsers`),build_image_major_version:e[`deployment-configs-preview-build-image-major-version`],compatibility_date:h(e[`deployment-configs-preview-compatibility-date`],`deployment-configs-preview-compatibility-date`,`text`),compatibility_flags:e[`deployment-configs-preview-compatibility-flags`],d1_databases:p(e[`deployment-configs-preview-d1-databases`],`deployment-configs-preview-d1-databases`),durable_object_namespaces:p(e[`deployment-configs-preview-durable-object-namespaces`],`deployment-configs-preview-durable-object-namespaces`),env_vars:p(e[`deployment-configs-preview-env-vars`],`deployment-configs-preview-env-vars`),fail_open:e[`deployment-configs-preview-fail-open`],hyperdrive_bindings:p(e[`deployment-configs-preview-hyperdrive-bindings`],`deployment-configs-preview-hyperdrive-bindings`),kv_namespaces:p(e[`deployment-configs-preview-kv-namespaces`],`deployment-configs-preview-kv-namespaces`),limits:{cpu_ms:e[`deployment-configs-preview-limits-cpu-ms`]},mtls_certificates:p(e[`deployment-configs-preview-mtls-certificates`],`deployment-configs-preview-mtls-certificates`),placement:{mode:h(e[`deployment-configs-preview-placement-mode`],`deployment-configs-preview-placement-mode`,`text`)},queue_producers:p(e[`deployment-configs-preview-queue-producers`],`deployment-configs-preview-queue-producers`),r2_buckets:p(e[`deployment-configs-preview-r2-buckets`],`deployment-configs-preview-r2-buckets`),services:p(e[`deployment-configs-preview-services`],`deployment-configs-preview-services`),usage_model:e[`deployment-configs-preview-usage-model`],vectorize_bindings:p(e[`deployment-configs-preview-vectorize-bindings`],`deployment-configs-preview-vectorize-bindings`),wrangler_config_hash:h(e[`deployment-configs-preview-wrangler-config-hash`],`deployment-configs-preview-wrangler-config-hash`,`text`)},production:{ai_bindings:p(e[`deployment-configs-production-ai-bindings`],`deployment-configs-production-ai-bindings`),always_use_latest_compatibility_date:e[`deployment-configs-production-always-use-latest-compatibility-date`],analytics_engine_datasets:p(e[`deployment-configs-production-analytics-engine-datasets`],`deployment-configs-production-analytics-engine-datasets`),browsers:p(e[`deployment-configs-production-browsers`],`deployment-configs-production-browsers`),build_image_major_version:e[`deployment-configs-production-build-image-major-version`],compatibility_date:h(e[`deployment-configs-production-compatibility-date`],`deployment-configs-production-compatibility-date`,`text`),compatibility_flags:e[`deployment-configs-production-compatibility-flags`],d1_databases:p(e[`deployment-configs-production-d1-databases`],`deployment-configs-production-d1-databases`),durable_object_namespaces:p(e[`deployment-configs-production-durable-object-namespaces`],`deployment-configs-production-durable-object-namespaces`),env_vars:p(e[`deployment-configs-production-env-vars`],`deployment-configs-production-env-vars`),fail_open:e[`deployment-configs-production-fail-open`],hyperdrive_bindings:p(e[`deployment-configs-production-hyperdrive-bindings`],`deployment-configs-production-hyperdrive-bindings`),kv_namespaces:p(e[`deployment-configs-production-kv-namespaces`],`deployment-configs-production-kv-namespaces`),limits:{cpu_ms:e[`deployment-configs-production-limits-cpu-ms`]},mtls_certificates:p(e[`deployment-configs-production-mtls-certificates`],`deployment-configs-production-mtls-certificates`),placement:{mode:h(e[`deployment-configs-production-placement-mode`],`deployment-configs-production-placement-mode`,`text`)},queue_producers:p(e[`deployment-configs-production-queue-producers`],`deployment-configs-production-queue-producers`),r2_buckets:p(e[`deployment-configs-production-r2-buckets`],`deployment-configs-production-r2-buckets`),services:p(e[`deployment-configs-production-services`],`deployment-configs-production-services`),usage_model:e[`deployment-configs-production-usage-model`],vectorize_bindings:p(e[`deployment-configs-production-vectorize-bindings`],`deployment-configs-production-vectorize-bindings`),wrangler_config_hash:h(e[`deployment-configs-production-wrangler-config-hash`],`deployment-configs-production-wrangler-config-hash`,`text`)}},name:h(e.name,`name`,`text`),production_branch:h(e[`production-branch`],`production-branch`,`text`),source:{config:{deployments_enabled:e[`source-config-deployments-enabled`],owner:h(e[`source-config-owner`],`source-config-owner`,`text`),owner_id:h(e[`source-config-owner-id`],`source-config-owner-id`,`text`),path_excludes:e[`source-config-path-excludes`],path_includes:e[`source-config-path-includes`],pr_comments_enabled:e[`source-config-pr-comments-enabled`],preview_branch_excludes:e[`source-config-preview-branch-excludes`],preview_branch_includes:e[`source-config-preview-branch-includes`],preview_deployment_setting:e[`source-config-preview-deployment-setting`],production_branch:h(e[`source-config-production-branch`],`source-config-production-branch`,`text`),production_deployments_enabled:e[`source-config-production-deployments-enabled`],repo_id:h(e[`source-config-repo-id`],`source-config-repo-id`,`text`),repo_name:h(e[`source-config-repo-name`],`source-config-repo-name`,`text`)},type:e[`source-type`]}},[[`deployment_configs`,`preview`,`ai_bindings`],[`deployment_configs`,`preview`,`analytics_engine_datasets`],[`deployment_configs`,`preview`,`browsers`],[`deployment_configs`,`preview`,`d1_databases`],[`deployment_configs`,`preview`,`durable_object_namespaces`],[`deployment_configs`,`preview`,`env_vars`],[`deployment_configs`,`preview`,`hyperdrive_bindings`],[`deployment_configs`,`preview`,`kv_namespaces`],[`deployment_configs`,`preview`,`mtls_certificates`],[`deployment_configs`,`preview`,`queue_producers`],[`deployment_configs`,`preview`,`r2_buckets`],[`deployment_configs`,`preview`,`services`],[`deployment_configs`,`preview`,`vectorize_bindings`],[`deployment_configs`,`production`,`ai_bindings`],[`deployment_configs`,`production`,`analytics_engine_datasets`],[`deployment_configs`,`production`,`browsers`],[`deployment_configs`,`production`,`d1_databases`],[`deployment_configs`,`production`,`durable_object_namespaces`],[`deployment_configs`,`production`,`env_vars`],[`deployment_configs`,`production`,`hyperdrive_bindings`],[`deployment_configs`,`production`,`kv_namespaces`],[`deployment_configs`,`production`,`mtls_certificates`],[`deployment_configs`,`production`,`queue_producers`],[`deployment_configs`,`production`,`r2_buckets`],[`deployment_configs`,`production`,`services`],[`deployment_configs`,`production`,`vectorize_bindings`]]):f(e.body),sensitiveBodyPaths:[[`build_config`,`web_analytics_token`]]});return}let t=await a(e),n=e.local?r:await s();if(e.accountId=n,e.body){let r=f(e.body),i=await u(`Creating`,async()=>t.send(b,{body:r,account_id:n}));c(i,{successLabel:`Created`});return}e.name===void 0&&(e.name=await g(`name`,`Name for the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`)),e[`production-branch`]===void 0&&(e[`production-branch`]=await g(`production-branch`,`Production branch of the project. Used to identify production deployments.`));let i=m({build_config:{build_caching:e[`build-config-build-caching`],build_command:h(e[`build-config-build-command`],`build-config-build-command`,`text`),destination_dir:h(e[`build-config-destination-dir`],`build-config-destination-dir`,`text`),root_dir:h(e[`build-config-root-dir`],`build-config-root-dir`,`text`),web_analytics_tag:h(e[`build-config-web-analytics-tag`],`build-config-web-analytics-tag`,`text`),web_analytics_token:h(e[`build-config-web-analytics-token`],`build-config-web-analytics-token`,`text`)},deployment_configs:{preview:{ai_bindings:p(e[`deployment-configs-preview-ai-bindings`],`deployment-configs-preview-ai-bindings`),always_use_latest_compatibility_date:e[`deployment-configs-preview-always-use-latest-compatibility-date`],analytics_engine_datasets:p(e[`deployment-configs-preview-analytics-engine-datasets`],`deployment-configs-preview-analytics-engine-datasets`),browsers:p(e[`deployment-configs-preview-browsers`],`deployment-configs-preview-browsers`),build_image_major_version:e[`deployment-configs-preview-build-image-major-version`],compatibility_date:h(e[`deployment-configs-preview-compatibility-date`],`deployment-configs-preview-compatibility-date`,`text`),compatibility_flags:e[`deployment-configs-preview-compatibility-flags`],d1_databases:p(e[`deployment-configs-preview-d1-databases`],`deployment-configs-preview-d1-databases`),durable_object_namespaces:p(e[`deployment-configs-preview-durable-object-namespaces`],`deployment-configs-preview-durable-object-namespaces`),env_vars:p(e[`deployment-configs-preview-env-vars`],`deployment-configs-preview-env-vars`),fail_open:e[`deployment-configs-preview-fail-open`],hyperdrive_bindings:p(e[`deployment-configs-preview-hyperdrive-bindings`],`deployment-configs-preview-hyperdrive-bindings`),kv_namespaces:p(e[`deployment-configs-preview-kv-namespaces`],`deployment-configs-preview-kv-namespaces`),limits:{cpu_ms:e[`deployment-configs-preview-limits-cpu-ms`]},mtls_certificates:p(e[`deployment-configs-preview-mtls-certificates`],`deployment-configs-preview-mtls-certificates`),placement:{mode:h(e[`deployment-configs-preview-placement-mode`],`deployment-configs-preview-placement-mode`,`text`)},queue_producers:p(e[`deployment-configs-preview-queue-producers`],`deployment-configs-preview-queue-producers`),r2_buckets:p(e[`deployment-configs-preview-r2-buckets`],`deployment-configs-preview-r2-buckets`),services:p(e[`deployment-configs-preview-services`],`deployment-configs-preview-services`),usage_model:e[`deployment-configs-preview-usage-model`],vectorize_bindings:p(e[`deployment-configs-preview-vectorize-bindings`],`deployment-configs-preview-vectorize-bindings`),wrangler_config_hash:h(e[`deployment-configs-preview-wrangler-config-hash`],`deployment-configs-preview-wrangler-config-hash`,`text`)},production:{ai_bindings:p(e[`deployment-configs-production-ai-bindings`],`deployment-configs-production-ai-bindings`),always_use_latest_compatibility_date:e[`deployment-configs-production-always-use-latest-compatibility-date`],analytics_engine_datasets:p(e[`deployment-configs-production-analytics-engine-datasets`],`deployment-configs-production-analytics-engine-datasets`),browsers:p(e[`deployment-configs-production-browsers`],`deployment-configs-production-browsers`),build_image_major_version:e[`deployment-configs-production-build-image-major-version`],compatibility_date:h(e[`deployment-configs-production-compatibility-date`],`deployment-configs-production-compatibility-date`,`text`),compatibility_flags:e[`deployment-configs-production-compatibility-flags`],d1_databases:p(e[`deployment-configs-production-d1-databases`],`deployment-configs-production-d1-databases`),durable_object_namespaces:p(e[`deployment-configs-production-durable-object-namespaces`],`deployment-configs-production-durable-object-namespaces`),env_vars:p(e[`deployment-configs-production-env-vars`],`deployment-configs-production-env-vars`),fail_open:e[`deployment-configs-production-fail-open`],hyperdrive_bindings:p(e[`deployment-configs-production-hyperdrive-bindings`],`deployment-configs-production-hyperdrive-bindings`),kv_namespaces:p(e[`deployment-configs-production-kv-namespaces`],`deployment-configs-production-kv-namespaces`),limits:{cpu_ms:e[`deployment-configs-production-limits-cpu-ms`]},mtls_certificates:p(e[`deployment-configs-production-mtls-certificates`],`deployment-configs-production-mtls-certificates`),placement:{mode:h(e[`deployment-configs-production-placement-mode`],`deployment-configs-production-placement-mode`,`text`)},queue_producers:p(e[`deployment-configs-production-queue-producers`],`deployment-configs-production-queue-producers`),r2_buckets:p(e[`deployment-configs-production-r2-buckets`],`deployment-configs-production-r2-buckets`),services:p(e[`deployment-configs-production-services`],`deployment-configs-production-services`),usage_model:e[`deployment-configs-production-usage-model`],vectorize_bindings:p(e[`deployment-configs-production-vectorize-bindings`],`deployment-configs-production-vectorize-bindings`),wrangler_config_hash:h(e[`deployment-configs-production-wrangler-config-hash`],`deployment-configs-production-wrangler-config-hash`,`text`)}},name:h(e.name,`name`,`text`),production_branch:h(e[`production-branch`],`production-branch`,`text`),source:{config:{deployments_enabled:e[`source-config-deployments-enabled`],owner:h(e[`source-config-owner`],`source-config-owner`,`text`),owner_id:h(e[`source-config-owner-id`],`source-config-owner-id`,`text`),path_excludes:e[`source-config-path-excludes`],path_includes:e[`source-config-path-includes`],pr_comments_enabled:e[`source-config-pr-comments-enabled`],preview_branch_excludes:e[`source-config-preview-branch-excludes`],preview_branch_includes:e[`source-config-preview-branch-includes`],preview_deployment_setting:e[`source-config-preview-deployment-setting`],production_branch:h(e[`source-config-production-branch`],`source-config-production-branch`,`text`),production_deployments_enabled:e[`source-config-production-deployments-enabled`],repo_id:h(e[`source-config-repo-id`],`source-config-repo-id`,`text`),repo_name:h(e[`source-config-repo-name`],`source-config-repo-name`,`text`)},type:e[`source-type`]}},[[`deployment_configs`,`preview`,`ai_bindings`],[`deployment_configs`,`preview`,`analytics_engine_datasets`],[`deployment_configs`,`preview`,`browsers`],[`deployment_configs`,`preview`,`d1_databases`],[`deployment_configs`,`preview`,`durable_object_namespaces`],[`deployment_configs`,`preview`,`env_vars`],[`deployment_configs`,`preview`,`hyperdrive_bindings`],[`deployment_configs`,`preview`,`kv_namespaces`],[`deployment_configs`,`preview`,`mtls_certificates`],[`deployment_configs`,`preview`,`queue_producers`],[`deployment_configs`,`preview`,`r2_buckets`],[`deployment_configs`,`preview`,`services`],[`deployment_configs`,`preview`,`vectorize_bindings`],[`deployment_configs`,`production`,`ai_bindings`],[`deployment_configs`,`production`,`analytics_engine_datasets`],[`deployment_configs`,`production`,`browsers`],[`deployment_configs`,`production`,`d1_databases`],[`deployment_configs`,`production`,`durable_object_namespaces`],[`deployment_configs`,`production`,`env_vars`],[`deployment_configs`,`production`,`hyperdrive_bindings`],[`deployment_configs`,`production`,`kv_namespaces`],[`deployment_configs`,`production`,`mtls_certificates`],[`deployment_configs`,`production`,`queue_producers`],[`deployment_configs`,`production`,`r2_buckets`],[`deployment_configs`,`production`,`services`],[`deployment_configs`,`production`,`vectorize_bindings`]]),d=await u(`Creating`,async()=>t.send(b,{body:i,account_id:n}));c(d,{successLabel:`Created`})})};var C={method:`DELETE`,path:e=>t`/accounts/${e.account_id}/pages/projects/${e.project_name}`};function w(e){return e.usage(`$0 pages delete <project-name>
8
+ `}).option(`source-config-owner`,{type:`string`,description:`The owner of the repository.`}).option(`source-config-owner-id`,{type:`string`,description:`The owner ID of the repository.`}).option(`source-config-path-excludes`,{type:`string`,array:!0,description:"A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (`*`) is supported."}).option(`source-config-path-includes`,{type:`string`,array:!0,description:"A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (`*`) is supported."}).option(`source-config-pr-comments-enabled`,{type:`boolean`,description:`Whether to enable PR comments.`}).option(`source-config-preview-branch-excludes`,{type:`string`,array:!0,description:"A list of branches that should not trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`."}).option(`source-config-preview-branch-includes`,{type:`string`,array:!0,description:"A list of branches that should trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`."}).option(`source-config-preview-deployment-setting`,{type:`string`,description:`Controls whether commits to preview branches trigger a preview deployment.`,choices:[`all`,`none`,`custom`]}).coerce(`source-config-preview-deployment-setting`,e=>h(e,`source-config-preview-deployment-setting`,`text`)).option(`source-config-production-branch`,{type:`string`,description:`The production branch of the repository.`}).option(`source-config-production-deployments-enabled`,{type:`boolean`,description:`Whether to trigger a production deployment on commits to the production branch.`}).option(`source-config-repo-id`,{type:`string`,description:`The ID of the repository.`}).option(`source-config-repo-name`,{type:`string`,description:`The name of the repository.`}).option(`source-type`,{type:`string`,description:`The source control management provider.`,choices:[`github`,`gitlab`]}).coerce(`source-type`,e=>h(e,`source-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)`}).check(e=>{let t=[`source-config-deployments-enabled`,`source-config-owner`,`source-config-owner-id`,`source-config-path-excludes`,`source-config-path-includes`,`source-config-pr-comments-enabled`,`source-config-preview-branch-excludes`,`source-config-preview-branch-includes`,`source-config-preview-deployment-setting`,`source-config-production-branch`,`source-config-production-deployments-enabled`,`source-config-repo-id`,`source-config-repo-name`,`source-type`].some(t=>e[t]!==void 0);if(!e.body&&t){let t=[`source-type`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --source-* flag is set`)}return!0})}const S={command:`create`,describe:`Create a Cloudflare Pages project`,builder:re,handler:async e=>d({command:`pages create`,classification:{safeFlags:[`build-config-build-caching`,`deployment-configs-preview-always-use-latest-compatibility-date`,`deployment-configs-preview-fail-open`,`deployment-configs-preview-usage-model`,`deployment-configs-production-always-use-latest-compatibility-date`,`deployment-configs-production-fail-open`,`deployment-configs-production-usage-model`,`source-config-deployments-enabled`,`source-config-pr-comments-enabled`,`source-config-preview-deployment-setting`,`source-config-production-deployments-enabled`,`source-type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf pages create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects`,pathParams:{},bodyKind:`json`,body:e.body===void 0?m({build_config:{build_caching:e[`build-config-build-caching`],build_command:h(e[`build-config-build-command`],`build-config-build-command`,`text`),destination_dir:h(e[`build-config-destination-dir`],`build-config-destination-dir`,`text`),root_dir:h(e[`build-config-root-dir`],`build-config-root-dir`,`text`),web_analytics_tag:h(e[`build-config-web-analytics-tag`],`build-config-web-analytics-tag`,`text`),web_analytics_token:h(e[`build-config-web-analytics-token`],`build-config-web-analytics-token`,`text`)},deployment_configs:{preview:{ai_bindings:p(e[`deployment-configs-preview-ai-bindings`],`deployment-configs-preview-ai-bindings`),always_use_latest_compatibility_date:e[`deployment-configs-preview-always-use-latest-compatibility-date`],analytics_engine_datasets:p(e[`deployment-configs-preview-analytics-engine-datasets`],`deployment-configs-preview-analytics-engine-datasets`),browsers:p(e[`deployment-configs-preview-browsers`],`deployment-configs-preview-browsers`),build_image_major_version:e[`deployment-configs-preview-build-image-major-version`],compatibility_date:h(e[`deployment-configs-preview-compatibility-date`],`deployment-configs-preview-compatibility-date`,`text`),compatibility_flags:e[`deployment-configs-preview-compatibility-flags`],d1_databases:p(e[`deployment-configs-preview-d1-databases`],`deployment-configs-preview-d1-databases`),durable_object_namespaces:p(e[`deployment-configs-preview-durable-object-namespaces`],`deployment-configs-preview-durable-object-namespaces`),env_vars:p(e[`deployment-configs-preview-env-vars`],`deployment-configs-preview-env-vars`),fail_open:e[`deployment-configs-preview-fail-open`],hyperdrive_bindings:p(e[`deployment-configs-preview-hyperdrive-bindings`],`deployment-configs-preview-hyperdrive-bindings`),kv_namespaces:p(e[`deployment-configs-preview-kv-namespaces`],`deployment-configs-preview-kv-namespaces`),limits:{cpu_ms:e[`deployment-configs-preview-limits-cpu-ms`]},mtls_certificates:p(e[`deployment-configs-preview-mtls-certificates`],`deployment-configs-preview-mtls-certificates`),placement:{mode:h(e[`deployment-configs-preview-placement-mode`],`deployment-configs-preview-placement-mode`,`text`)},queue_producers:p(e[`deployment-configs-preview-queue-producers`],`deployment-configs-preview-queue-producers`),r2_buckets:p(e[`deployment-configs-preview-r2-buckets`],`deployment-configs-preview-r2-buckets`),services:p(e[`deployment-configs-preview-services`],`deployment-configs-preview-services`),usage_model:e[`deployment-configs-preview-usage-model`],vectorize_bindings:p(e[`deployment-configs-preview-vectorize-bindings`],`deployment-configs-preview-vectorize-bindings`),wrangler_config_hash:h(e[`deployment-configs-preview-wrangler-config-hash`],`deployment-configs-preview-wrangler-config-hash`,`text`)},production:{ai_bindings:p(e[`deployment-configs-production-ai-bindings`],`deployment-configs-production-ai-bindings`),always_use_latest_compatibility_date:e[`deployment-configs-production-always-use-latest-compatibility-date`],analytics_engine_datasets:p(e[`deployment-configs-production-analytics-engine-datasets`],`deployment-configs-production-analytics-engine-datasets`),browsers:p(e[`deployment-configs-production-browsers`],`deployment-configs-production-browsers`),build_image_major_version:e[`deployment-configs-production-build-image-major-version`],compatibility_date:h(e[`deployment-configs-production-compatibility-date`],`deployment-configs-production-compatibility-date`,`text`),compatibility_flags:e[`deployment-configs-production-compatibility-flags`],d1_databases:p(e[`deployment-configs-production-d1-databases`],`deployment-configs-production-d1-databases`),durable_object_namespaces:p(e[`deployment-configs-production-durable-object-namespaces`],`deployment-configs-production-durable-object-namespaces`),env_vars:p(e[`deployment-configs-production-env-vars`],`deployment-configs-production-env-vars`),fail_open:e[`deployment-configs-production-fail-open`],hyperdrive_bindings:p(e[`deployment-configs-production-hyperdrive-bindings`],`deployment-configs-production-hyperdrive-bindings`),kv_namespaces:p(e[`deployment-configs-production-kv-namespaces`],`deployment-configs-production-kv-namespaces`),limits:{cpu_ms:e[`deployment-configs-production-limits-cpu-ms`]},mtls_certificates:p(e[`deployment-configs-production-mtls-certificates`],`deployment-configs-production-mtls-certificates`),placement:{mode:h(e[`deployment-configs-production-placement-mode`],`deployment-configs-production-placement-mode`,`text`)},queue_producers:p(e[`deployment-configs-production-queue-producers`],`deployment-configs-production-queue-producers`),r2_buckets:p(e[`deployment-configs-production-r2-buckets`],`deployment-configs-production-r2-buckets`),services:p(e[`deployment-configs-production-services`],`deployment-configs-production-services`),usage_model:e[`deployment-configs-production-usage-model`],vectorize_bindings:p(e[`deployment-configs-production-vectorize-bindings`],`deployment-configs-production-vectorize-bindings`),wrangler_config_hash:h(e[`deployment-configs-production-wrangler-config-hash`],`deployment-configs-production-wrangler-config-hash`,`text`)}},name:h(e.name,`name`,`text`),production_branch:h(e[`production-branch`],`production-branch`,`text`),source:{config:{deployments_enabled:e[`source-config-deployments-enabled`],owner:h(e[`source-config-owner`],`source-config-owner`,`text`),owner_id:h(e[`source-config-owner-id`],`source-config-owner-id`,`text`),path_excludes:e[`source-config-path-excludes`],path_includes:e[`source-config-path-includes`],pr_comments_enabled:e[`source-config-pr-comments-enabled`],preview_branch_excludes:e[`source-config-preview-branch-excludes`],preview_branch_includes:e[`source-config-preview-branch-includes`],preview_deployment_setting:e[`source-config-preview-deployment-setting`],production_branch:h(e[`source-config-production-branch`],`source-config-production-branch`,`text`),production_deployments_enabled:e[`source-config-production-deployments-enabled`],repo_id:h(e[`source-config-repo-id`],`source-config-repo-id`,`text`),repo_name:h(e[`source-config-repo-name`],`source-config-repo-name`,`text`)},type:e[`source-type`]}},[[`deployment_configs`,`preview`,`ai_bindings`],[`deployment_configs`,`preview`,`analytics_engine_datasets`],[`deployment_configs`,`preview`,`browsers`],[`deployment_configs`,`preview`,`d1_databases`],[`deployment_configs`,`preview`,`durable_object_namespaces`],[`deployment_configs`,`preview`,`env_vars`],[`deployment_configs`,`preview`,`hyperdrive_bindings`],[`deployment_configs`,`preview`,`kv_namespaces`],[`deployment_configs`,`preview`,`mtls_certificates`],[`deployment_configs`,`preview`,`queue_producers`],[`deployment_configs`,`preview`,`r2_buckets`],[`deployment_configs`,`preview`,`services`],[`deployment_configs`,`preview`,`vectorize_bindings`],[`deployment_configs`,`production`,`ai_bindings`],[`deployment_configs`,`production`,`analytics_engine_datasets`],[`deployment_configs`,`production`,`browsers`],[`deployment_configs`,`production`,`d1_databases`],[`deployment_configs`,`production`,`durable_object_namespaces`],[`deployment_configs`,`production`,`env_vars`],[`deployment_configs`,`production`,`hyperdrive_bindings`],[`deployment_configs`,`production`,`kv_namespaces`],[`deployment_configs`,`production`,`mtls_certificates`],[`deployment_configs`,`production`,`queue_producers`],[`deployment_configs`,`production`,`r2_buckets`],[`deployment_configs`,`production`,`services`],[`deployment_configs`,`production`,`vectorize_bindings`]]):f(e.body),sensitiveBodyPaths:[[`build_config`,`web_analytics_token`]]});return}let t=e.body===void 0?void 0:f(e.body),n=await a(e),i=e.local?r:await s();if(e.accountId=i,e.body!==void 0){let e=t,r=await u(`Creating`,async()=>n.send(x,{body:e,account_id:i}));c(r,{successLabel:`Created`});return}e.name===void 0&&(e.name=await _(`name`,`Name for the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`)),e[`production-branch`]===void 0&&(e[`production-branch`]=await _(`production-branch`,`Production branch of the project. Used to identify production deployments.`));let d=m({build_config:{build_caching:e[`build-config-build-caching`],build_command:h(e[`build-config-build-command`],`build-config-build-command`,`text`),destination_dir:h(e[`build-config-destination-dir`],`build-config-destination-dir`,`text`),root_dir:h(e[`build-config-root-dir`],`build-config-root-dir`,`text`),web_analytics_tag:h(e[`build-config-web-analytics-tag`],`build-config-web-analytics-tag`,`text`),web_analytics_token:h(e[`build-config-web-analytics-token`],`build-config-web-analytics-token`,`text`)},deployment_configs:{preview:{ai_bindings:p(e[`deployment-configs-preview-ai-bindings`],`deployment-configs-preview-ai-bindings`),always_use_latest_compatibility_date:e[`deployment-configs-preview-always-use-latest-compatibility-date`],analytics_engine_datasets:p(e[`deployment-configs-preview-analytics-engine-datasets`],`deployment-configs-preview-analytics-engine-datasets`),browsers:p(e[`deployment-configs-preview-browsers`],`deployment-configs-preview-browsers`),build_image_major_version:e[`deployment-configs-preview-build-image-major-version`],compatibility_date:h(e[`deployment-configs-preview-compatibility-date`],`deployment-configs-preview-compatibility-date`,`text`),compatibility_flags:e[`deployment-configs-preview-compatibility-flags`],d1_databases:p(e[`deployment-configs-preview-d1-databases`],`deployment-configs-preview-d1-databases`),durable_object_namespaces:p(e[`deployment-configs-preview-durable-object-namespaces`],`deployment-configs-preview-durable-object-namespaces`),env_vars:p(e[`deployment-configs-preview-env-vars`],`deployment-configs-preview-env-vars`),fail_open:e[`deployment-configs-preview-fail-open`],hyperdrive_bindings:p(e[`deployment-configs-preview-hyperdrive-bindings`],`deployment-configs-preview-hyperdrive-bindings`),kv_namespaces:p(e[`deployment-configs-preview-kv-namespaces`],`deployment-configs-preview-kv-namespaces`),limits:{cpu_ms:e[`deployment-configs-preview-limits-cpu-ms`]},mtls_certificates:p(e[`deployment-configs-preview-mtls-certificates`],`deployment-configs-preview-mtls-certificates`),placement:{mode:h(e[`deployment-configs-preview-placement-mode`],`deployment-configs-preview-placement-mode`,`text`)},queue_producers:p(e[`deployment-configs-preview-queue-producers`],`deployment-configs-preview-queue-producers`),r2_buckets:p(e[`deployment-configs-preview-r2-buckets`],`deployment-configs-preview-r2-buckets`),services:p(e[`deployment-configs-preview-services`],`deployment-configs-preview-services`),usage_model:e[`deployment-configs-preview-usage-model`],vectorize_bindings:p(e[`deployment-configs-preview-vectorize-bindings`],`deployment-configs-preview-vectorize-bindings`),wrangler_config_hash:h(e[`deployment-configs-preview-wrangler-config-hash`],`deployment-configs-preview-wrangler-config-hash`,`text`)},production:{ai_bindings:p(e[`deployment-configs-production-ai-bindings`],`deployment-configs-production-ai-bindings`),always_use_latest_compatibility_date:e[`deployment-configs-production-always-use-latest-compatibility-date`],analytics_engine_datasets:p(e[`deployment-configs-production-analytics-engine-datasets`],`deployment-configs-production-analytics-engine-datasets`),browsers:p(e[`deployment-configs-production-browsers`],`deployment-configs-production-browsers`),build_image_major_version:e[`deployment-configs-production-build-image-major-version`],compatibility_date:h(e[`deployment-configs-production-compatibility-date`],`deployment-configs-production-compatibility-date`,`text`),compatibility_flags:e[`deployment-configs-production-compatibility-flags`],d1_databases:p(e[`deployment-configs-production-d1-databases`],`deployment-configs-production-d1-databases`),durable_object_namespaces:p(e[`deployment-configs-production-durable-object-namespaces`],`deployment-configs-production-durable-object-namespaces`),env_vars:p(e[`deployment-configs-production-env-vars`],`deployment-configs-production-env-vars`),fail_open:e[`deployment-configs-production-fail-open`],hyperdrive_bindings:p(e[`deployment-configs-production-hyperdrive-bindings`],`deployment-configs-production-hyperdrive-bindings`),kv_namespaces:p(e[`deployment-configs-production-kv-namespaces`],`deployment-configs-production-kv-namespaces`),limits:{cpu_ms:e[`deployment-configs-production-limits-cpu-ms`]},mtls_certificates:p(e[`deployment-configs-production-mtls-certificates`],`deployment-configs-production-mtls-certificates`),placement:{mode:h(e[`deployment-configs-production-placement-mode`],`deployment-configs-production-placement-mode`,`text`)},queue_producers:p(e[`deployment-configs-production-queue-producers`],`deployment-configs-production-queue-producers`),r2_buckets:p(e[`deployment-configs-production-r2-buckets`],`deployment-configs-production-r2-buckets`),services:p(e[`deployment-configs-production-services`],`deployment-configs-production-services`),usage_model:e[`deployment-configs-production-usage-model`],vectorize_bindings:p(e[`deployment-configs-production-vectorize-bindings`],`deployment-configs-production-vectorize-bindings`),wrangler_config_hash:h(e[`deployment-configs-production-wrangler-config-hash`],`deployment-configs-production-wrangler-config-hash`,`text`)}},name:h(e.name,`name`,`text`),production_branch:h(e[`production-branch`],`production-branch`,`text`),source:{config:{deployments_enabled:e[`source-config-deployments-enabled`],owner:h(e[`source-config-owner`],`source-config-owner`,`text`),owner_id:h(e[`source-config-owner-id`],`source-config-owner-id`,`text`),path_excludes:e[`source-config-path-excludes`],path_includes:e[`source-config-path-includes`],pr_comments_enabled:e[`source-config-pr-comments-enabled`],preview_branch_excludes:e[`source-config-preview-branch-excludes`],preview_branch_includes:e[`source-config-preview-branch-includes`],preview_deployment_setting:e[`source-config-preview-deployment-setting`],production_branch:h(e[`source-config-production-branch`],`source-config-production-branch`,`text`),production_deployments_enabled:e[`source-config-production-deployments-enabled`],repo_id:h(e[`source-config-repo-id`],`source-config-repo-id`,`text`),repo_name:h(e[`source-config-repo-name`],`source-config-repo-name`,`text`)},type:e[`source-type`]}},[[`deployment_configs`,`preview`,`ai_bindings`],[`deployment_configs`,`preview`,`analytics_engine_datasets`],[`deployment_configs`,`preview`,`browsers`],[`deployment_configs`,`preview`,`d1_databases`],[`deployment_configs`,`preview`,`durable_object_namespaces`],[`deployment_configs`,`preview`,`env_vars`],[`deployment_configs`,`preview`,`hyperdrive_bindings`],[`deployment_configs`,`preview`,`kv_namespaces`],[`deployment_configs`,`preview`,`mtls_certificates`],[`deployment_configs`,`preview`,`queue_producers`],[`deployment_configs`,`preview`,`r2_buckets`],[`deployment_configs`,`preview`,`services`],[`deployment_configs`,`preview`,`vectorize_bindings`],[`deployment_configs`,`production`,`ai_bindings`],[`deployment_configs`,`production`,`analytics_engine_datasets`],[`deployment_configs`,`production`,`browsers`],[`deployment_configs`,`production`,`d1_databases`],[`deployment_configs`,`production`,`durable_object_namespaces`],[`deployment_configs`,`production`,`env_vars`],[`deployment_configs`,`production`,`hyperdrive_bindings`],[`deployment_configs`,`production`,`kv_namespaces`],[`deployment_configs`,`production`,`mtls_certificates`],[`deployment_configs`,`production`,`queue_producers`],[`deployment_configs`,`production`,`r2_buckets`],[`deployment_configs`,`production`,`services`],[`deployment_configs`,`production`,`vectorize_bindings`]]),g=await u(`Creating`,async()=>n.send(x,{body:d,account_id:i}));c(g,{successLabel:`Created`})})};var C={method:`DELETE`,path:e=>t`/accounts/${e.account_id}/pages/projects/${e.project_name}`};function w(e){return e.usage(`$0 pages delete <project-name>
9
9
 
10
- Permanently delete a Cloudflare Pages project and its deployments.`).positional(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,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 T={command:`delete <project-name>`,describe:`Delete a Cloudflare Pages project`,builder:w,handler:async e=>d({command:`pages delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf pages delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}`,pathParams:{"project-name":String(e[`project-name`]??``)},bodyKind:`none`});return}let t=await a(e),n=e.local?r:await s();if(e.accountId=n,!await v({force:!!e.force}))return;let i=await u(`Deleting`,async()=>t.send(C,{account_id:n,project_name:e[`project-name`]}));c(i,{successLabel:`Deleted`})})};var E={method:`POST`,path:e=>t`/accounts/${e.account_id}/pages/projects/${e.project_name}/deployments`,pathParams:[`account_id`,`project_name`],body:`form`};function D(e){return e.usage(`$0 pages deployments create <project-name>
10
+ Permanently delete a Cloudflare Pages project and its deployments.`).positional(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,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 T={command:`delete <project-name>`,describe:`Delete a Cloudflare Pages project`,builder:w,handler:async e=>d({command:`pages delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf pages delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}`,pathParams:{"project-name":String(e[`project-name`]??``)},bodyKind:`none`});return}let t=await a(e),n=e.local?r:await s();if(e.accountId=n,!await y({force:!!e.force}))return;let i=await u(`Deleting`,async()=>t.send(C,{account_id:n,project_name:e[`project-name`]}));c(i,{successLabel:`Deleted`})})};var E={method:`POST`,path:e=>t`/accounts/${e.account_id}/pages/projects/${e.project_name}/deployments`,pathParams:[`account_id`,`project_name`],body:`form`};function D(e){return e.usage(`$0 pages deployments create <project-name>
11
11
 
12
- Create a Cloudflare Pages deployment from a Git branch or Direct Upload manifest. Git repositories must already be authorized in Cloudflare Pages.`).positional(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,demandOption:!0}).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(`branch`,{type:`string`,description:"Git branch to deploy. Uses the branch's `HEAD`; defaults to the project's production branch."}).option(`commit-dirty`,{type:`string`,description:"Whether the associated Git working tree has uncommitted changes. Provide `true` or `false`."}).option(`commit-hash`,{type:`string`,description:`Git commit SHA associated with the deployment.`}).option(`commit-message`,{type:`string`,description:`Git commit message associated with the deployment.`}).option(`manifest`,{type:`string`,description:`JSON-encoded object mapping deployment file paths to their uploaded content hashes. Required for Direct Upload deployments. Maximum 20,000 entries. `}).option(`pages-build-output-dir`,{type:`string`,description:`The build output directory path.`}).option(`wrangler-config-hash`,{type:`string`,description:`Hash of the Wrangler configuration file used for this deployment.`}).option(`redirects`,{type:`string`,description:"Literal content or @path/to/file for the `_redirects` form field. Redirects configuration file for the deployment."}).option(`routes-json`,{type:`string`,description:"Literal content or @path/to/file for the `_routes.json` form field. Routes configuration file defining routing rules."}).option(`worker-bundle`,{type:`string`,description:"Literal content or @path/to/file for the `_worker.bundle` form field. Worker bundle file in multipart/form-data format. Mutually exclusive with `_worker.js`.\nCannot specify both `_worker.js` and `_worker.bundle` in the same request.\nMaximum size: 25 MiB.\n"}).option(`worker-js`,{type:`string`,description:"Literal content or @path/to/file for the `_worker.js` form field. Worker JavaScript file. Mutually exclusive with `_worker.bundle`.\nCannot specify both `_worker.js` and `_worker.bundle` in the same request.\n"}).option(`functions-filepath-routing-config-json`,{type:`string`,description:"Literal content or @path/to/file for the `functions-filepath-routing-config.json` form field. Functions routing configuration file."})}const O={command:`create <project-name>`,describe:`Create a Pages deployment`,builder:D,handler:async e=>d({command:`pages deployments create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf pages deployments create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/deployments`,pathParams:{"project-name":String(e[`project-name`]??``)},bodyKind:`multipart`,body:{body:e.body,file:e.file,branch:e.branch,"commit-dirty":e[`commit-dirty`],"commit-hash":e[`commit-hash`],"commit-message":e[`commit-message`],manifest:e.manifest,"pages-build-output-dir":e[`pages-build-output-dir`],"wrangler-config-hash":e[`wrangler-config-hash`],redirects:e.redirects,"routes-json":e[`routes-json`],"worker-bundle":e[`worker-bundle`],"worker-js":e[`worker-js`],"functions-filepath-routing-config-json":e[`functions-filepath-routing-config-json`]}});return}let t=await a(e),n=e.local?r:await s();if(e.accountId=n,e.file!==void 0||e.body!==void 0||e.branch!==void 0||e[`commit-dirty`]!==void 0||e[`commit-hash`]!==void 0||e[`commit-message`]!==void 0||e.manifest!==void 0||e[`pages-build-output-dir`]!==void 0||e[`wrangler-config-hash`]!==void 0||e.redirects!==void 0||e[`routes-json`]!==void 0||e[`worker-bundle`]!==void 0||e[`worker-js`]!==void 0||e[`functions-filepath-routing-config-json`]!==void 0){let r=new FormData;if(e.file){let t=ee(e.file);r.append(`_headers`,new Blob([t]),e.file.split(/[\\/]/).filter(Boolean).pop())}else e.body!==void 0&&r.append(`_headers`,e.body);if(e.branch!==void 0&&r.append(`branch`,String(h(e.branch,`branch`,`text`)??``)),e[`commit-dirty`]!==void 0&&r.append(`commit_dirty`,String(h(e[`commit-dirty`],`commit-dirty`,`text`)??``)),e[`commit-hash`]!==void 0&&r.append(`commit_hash`,String(h(e[`commit-hash`],`commit-hash`,`text`)??``)),e[`commit-message`]!==void 0&&r.append(`commit_message`,String(h(e[`commit-message`],`commit-message`,`text`)??``)),e.manifest!==void 0&&r.append(`manifest`,String(h(e.manifest,`manifest`,`text`)??``)),e[`pages-build-output-dir`]!==void 0&&r.append(`pages_build_output_dir`,String(h(e[`pages-build-output-dir`],`pages-build-output-dir`,`text`)??``)),e[`wrangler-config-hash`]!==void 0&&r.append(`wrangler_config_hash`,String(h(e[`wrangler-config-hash`],`wrangler-config-hash`,`text`)??``)),e.redirects!==void 0){let t=String(e.redirects);if(t.startsWith(`@`)){let e=t.slice(1),n=h(t,`redirects`,`binary`);r.append(`_redirects`,new Blob([n]),e.split(/[\\/]/).filter(Boolean).pop())}else r.append(`_redirects`,new Blob([t]),`_redirects`)}if(e[`routes-json`]!==void 0){let t=String(e[`routes-json`]);if(t.startsWith(`@`)){let e=t.slice(1),n=h(t,`routes-json`,`binary`);r.append(`_routes.json`,new Blob([n]),e.split(/[\\/]/).filter(Boolean).pop())}else r.append(`_routes.json`,new Blob([t]),`_routes.json`)}if(e[`worker-bundle`]!==void 0){let t=String(e[`worker-bundle`]);if(t.startsWith(`@`)){let e=t.slice(1),n=h(t,`worker-bundle`,`binary`);r.append(`_worker.bundle`,new Blob([n]),e.split(/[\\/]/).filter(Boolean).pop())}else r.append(`_worker.bundle`,new Blob([t]),`_worker.bundle`)}if(e[`worker-js`]!==void 0){let t=String(e[`worker-js`]);if(t.startsWith(`@`)){let e=t.slice(1),n=h(t,`worker-js`,`binary`);r.append(`_worker.js`,new Blob([n]),e.split(/[\\/]/).filter(Boolean).pop())}else r.append(`_worker.js`,new Blob([t]),`_worker.js`)}if(e[`functions-filepath-routing-config-json`]!==void 0){let t=String(e[`functions-filepath-routing-config-json`]);if(t.startsWith(`@`)){let e=t.slice(1),n=h(t,`functions-filepath-routing-config-json`,`binary`);r.append(`functions-filepath-routing-config.json`,new Blob([n]),e.split(/[\\/]/).filter(Boolean).pop())}else r.append(`functions-filepath-routing-config.json`,new Blob([t]),`functions-filepath-routing-config.json`)}let a=await u(`Creating`,async()=>i(t,`POST`,`/accounts/${n}/pages/projects/${encodeURIComponent(String(e[`project-name`]))}/deployments`,{body:r}));c(a,{successLabel:`Created`});return}if(e.body){let r=h(e.body,`body`,`binary`),a=await u(`Creating`,async()=>i(t,`POST`,`/accounts/${n}/pages/projects/${encodeURIComponent(String(e[`project-name`]))}/deployments`,{body:r,headers:{"Content-Type":`multipart/form-data`}}));c(a,{successLabel:`Created`});return}let d=await u(`Creating`,async()=>t.send(E,{account_id:n,project_name:e[`project-name`]}));c(d,{successLabel:`Created`})})};var k={method:`DELETE`,path:e=>t`/accounts/${e.account_id}/pages/projects/${e.project_name}/deployments/${e.deployment_id}`,query:[`force`]};function A(e){return e.usage(`$0 pages deployments delete <deployment-id>
12
+ Create a Cloudflare Pages deployment from a Git branch or Direct Upload manifest. Git repositories must already be authorized in Cloudflare Pages.`).positional(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,demandOption:!0}).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(`branch`,{type:`string`,description:"Git branch to deploy. Uses the branch's `HEAD`; defaults to the project's production branch."}).option(`commit-dirty`,{type:`string`,description:"Whether the associated Git working tree has uncommitted changes. Provide `true` or `false`."}).option(`commit-hash`,{type:`string`,description:`Git commit SHA associated with the deployment.`}).option(`commit-message`,{type:`string`,description:`Git commit message associated with the deployment.`}).option(`manifest`,{type:`string`,description:`JSON-encoded object mapping deployment file paths to their uploaded content hashes. Required for Direct Upload deployments. Maximum 20,000 entries. `}).option(`pages-build-output-dir`,{type:`string`,description:`The build output directory path.`}).option(`wrangler-config-hash`,{type:`string`,description:`Hash of the Wrangler configuration file used for this deployment.`}).option(`redirects`,{type:`string`,description:"Literal content or @path/to/file for the `_redirects` form field. Redirects configuration file for the deployment."}).option(`routes-json`,{type:`string`,description:"Literal content or @path/to/file for the `_routes.json` form field. Routes configuration file defining routing rules."}).option(`worker-bundle`,{type:`string`,description:"Literal content or @path/to/file for the `_worker.bundle` form field. Worker bundle file in multipart/form-data format. Mutually exclusive with `_worker.js`.\nCannot specify both `_worker.js` and `_worker.bundle` in the same request.\nMaximum size: 25 MiB.\n"}).option(`worker-js`,{type:`string`,description:"Literal content or @path/to/file for the `_worker.js` form field. Worker JavaScript file. Mutually exclusive with `_worker.bundle`.\nCannot specify both `_worker.js` and `_worker.bundle` in the same request.\n"}).option(`functions-filepath-routing-config-json`,{type:`string`,description:"Literal content or @path/to/file for the `functions-filepath-routing-config.json` form field. Functions routing configuration file."})}const O={command:`create <project-name>`,describe:`Create a Pages deployment`,builder:D,handler:async e=>d({command:`pages deployments create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf pages deployments create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/deployments`,pathParams:{"project-name":String(e[`project-name`]??``)},bodyKind:`multipart`,body:{body:e.body,file:e.file,branch:e.branch,"commit-dirty":e[`commit-dirty`],"commit-hash":e[`commit-hash`],"commit-message":e[`commit-message`],manifest:e.manifest,"pages-build-output-dir":e[`pages-build-output-dir`],"wrangler-config-hash":e[`wrangler-config-hash`],redirects:e.redirects,"routes-json":e[`routes-json`],"worker-bundle":e[`worker-bundle`],"worker-js":e[`worker-js`],"functions-filepath-routing-config-json":e[`functions-filepath-routing-config-json`]}});return}let t=await a(e),n=e.local?r:await s();if(e.accountId=n,e.file!==void 0||e.body!==void 0||e.branch!==void 0||e[`commit-dirty`]!==void 0||e[`commit-hash`]!==void 0||e[`commit-message`]!==void 0||e.manifest!==void 0||e[`pages-build-output-dir`]!==void 0||e[`wrangler-config-hash`]!==void 0||e.redirects!==void 0||e[`routes-json`]!==void 0||e[`worker-bundle`]!==void 0||e[`worker-js`]!==void 0||e[`functions-filepath-routing-config-json`]!==void 0){let r=new FormData;if(e.file!==void 0){let t=g(e.file);r.append(`_headers`,new Blob([t]),e.file.split(/[\\/]/).filter(Boolean).pop())}else e.body!==void 0&&r.append(`_headers`,e.body);if(e.branch!==void 0&&r.append(`branch`,String(h(e.branch,`branch`,`text`)??``)),e[`commit-dirty`]!==void 0&&r.append(`commit_dirty`,String(h(e[`commit-dirty`],`commit-dirty`,`text`)??``)),e[`commit-hash`]!==void 0&&r.append(`commit_hash`,String(h(e[`commit-hash`],`commit-hash`,`text`)??``)),e[`commit-message`]!==void 0&&r.append(`commit_message`,String(h(e[`commit-message`],`commit-message`,`text`)??``)),e.manifest!==void 0&&r.append(`manifest`,String(h(e.manifest,`manifest`,`text`)??``)),e[`pages-build-output-dir`]!==void 0&&r.append(`pages_build_output_dir`,String(h(e[`pages-build-output-dir`],`pages-build-output-dir`,`text`)??``)),e[`wrangler-config-hash`]!==void 0&&r.append(`wrangler_config_hash`,String(h(e[`wrangler-config-hash`],`wrangler-config-hash`,`text`)??``)),e.redirects!==void 0){let t=String(e.redirects);if(t.startsWith(`@`)){let e=t.slice(1),n=h(t,`redirects`,`binary`);r.append(`_redirects`,new Blob([n]),e.split(/[\\/]/).filter(Boolean).pop())}else r.append(`_redirects`,new Blob([t]),`_redirects`)}if(e[`routes-json`]!==void 0){let t=String(e[`routes-json`]);if(t.startsWith(`@`)){let e=t.slice(1),n=h(t,`routes-json`,`binary`);r.append(`_routes.json`,new Blob([n]),e.split(/[\\/]/).filter(Boolean).pop())}else r.append(`_routes.json`,new Blob([t]),`_routes.json`)}if(e[`worker-bundle`]!==void 0){let t=String(e[`worker-bundle`]);if(t.startsWith(`@`)){let e=t.slice(1),n=h(t,`worker-bundle`,`binary`);r.append(`_worker.bundle`,new Blob([n]),e.split(/[\\/]/).filter(Boolean).pop())}else r.append(`_worker.bundle`,new Blob([t]),`_worker.bundle`)}if(e[`worker-js`]!==void 0){let t=String(e[`worker-js`]);if(t.startsWith(`@`)){let e=t.slice(1),n=h(t,`worker-js`,`binary`);r.append(`_worker.js`,new Blob([n]),e.split(/[\\/]/).filter(Boolean).pop())}else r.append(`_worker.js`,new Blob([t]),`_worker.js`)}if(e[`functions-filepath-routing-config-json`]!==void 0){let t=String(e[`functions-filepath-routing-config-json`]);if(t.startsWith(`@`)){let e=t.slice(1),n=h(t,`functions-filepath-routing-config-json`,`binary`);r.append(`functions-filepath-routing-config.json`,new Blob([n]),e.split(/[\\/]/).filter(Boolean).pop())}else r.append(`functions-filepath-routing-config.json`,new Blob([t]),`functions-filepath-routing-config.json`)}let a=await u(`Creating`,async()=>i(t,`POST`,`/accounts/${n}/pages/projects/${encodeURIComponent(String(e[`project-name`]))}/deployments`,{body:r}));c(a,{successLabel:`Created`});return}if(e.body!==void 0){let r=h(e.body,`body`,`binary`),a=await u(`Creating`,async()=>i(t,`POST`,`/accounts/${n}/pages/projects/${encodeURIComponent(String(e[`project-name`]))}/deployments`,{body:r,headers:{"Content-Type":`multipart/form-data`}}));c(a,{successLabel:`Created`});return}let d=await u(`Creating`,async()=>t.send(E,{account_id:n,project_name:e[`project-name`]}));c(d,{successLabel:`Created`})})};var k={method:`DELETE`,path:e=>t`/accounts/${e.account_id}/pages/projects/${e.project_name}/deployments/${e.deployment_id}`,query:[`force`]};function A(e){return e.usage(`$0 pages deployments delete <deployment-id>
13
13
 
14
- Remove a deployment from a Cloudflare Pages project.`).positional(`deployment-id`,{type:`string`,description:`UUID of the Pages deployment, as returned by deployment list or create operations.`,demandOption:!0}).option(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,demandOption:!0}).option(`allow-aliased`,{type:`boolean`,description:`Allow deletion when a non-production deployment has an active alias.`}).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 j={command:`delete <deployment-id>`,describe:`Delete a Pages deployment`,builder:A,handler:async e=>d({command:`pages deployments delete`,classification:{safeFlags:[`allow-aliased`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{let t={force:e[`allow-aliased`]};if(e.dryRun){let n=await o();l({command:`cf pages deployments delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/deployments/${e[`deployment-id`]==null?`<deployment-id>`:encodeURIComponent(String(e[`deployment-id`]))}`,pathParams:{"project-name":String(e[`project-name`]??``),"deployment-id":String(e[`deployment-id`]??``)},query:t,bodyKind:`none`});return}let n=await a(e),i=e.local?r:await s();if(e.accountId=i,!await v({force:!!e.force}))return;let d=await u(`Deleting`,async()=>n.send(k,{account_id:i,project_name:e[`project-name`],deployment_id:e[`deployment-id`],...t}));c(d,{successLabel:`Deleted`})})};var M={method:`GET`,path:e=>t`/accounts/${e.account_id}/pages/projects/${e.project_name}/deployments/${e.deployment_id}`};function N(e){return e.usage(`$0 pages deployments get <deployment-id>
14
+ Remove a deployment from a Cloudflare Pages project.`).positional(`deployment-id`,{type:`string`,description:`UUID of the Pages deployment, as returned by deployment list or create operations.`,demandOption:!0}).option(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,demandOption:!0}).option(`allow-aliased`,{type:`boolean`,description:`Allow deletion when a non-production deployment has an active alias.`}).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 j={command:`delete <deployment-id>`,describe:`Delete a Pages deployment`,builder:A,handler:async e=>d({command:`pages deployments delete`,classification:{safeFlags:[`allow-aliased`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{let t={force:e[`allow-aliased`]};if(e.dryRun){let n=await o();l({command:`cf pages deployments delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/deployments/${e[`deployment-id`]==null?`<deployment-id>`:encodeURIComponent(String(e[`deployment-id`]))}`,pathParams:{"project-name":String(e[`project-name`]??``),"deployment-id":String(e[`deployment-id`]??``)},query:t,bodyKind:`none`});return}let n=await a(e),i=e.local?r:await s();if(e.accountId=i,!await y({force:!!e.force}))return;let d=await u(`Deleting`,async()=>n.send(k,{account_id:i,project_name:e[`project-name`],deployment_id:e[`deployment-id`],...t}));c(d,{successLabel:`Deleted`})})};var M={method:`GET`,path:e=>t`/accounts/${e.account_id}/pages/projects/${e.project_name}/deployments/${e.deployment_id}`};function N(e){return e.usage(`$0 pages deployments get <deployment-id>
15
15
 
16
16
  Retrieve the status and details of a Cloudflare Pages deployment.`).positional(`deployment-id`,{type:`string`,description:`UUID of the Pages deployment, as returned by deployment list or create operations.`,demandOption:!0}).option(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const P={command:`get <deployment-id>`,describe:`Get a Pages deployment`,builder:N,handler:async e=>d({command:`pages deployments get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf pages deployments get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/deployments/${e[`deployment-id`]==null?`<deployment-id>`:encodeURIComponent(String(e[`deployment-id`]))}`,pathParams:{"project-name":String(e[`project-name`]??``),"deployment-id":String(e[`deployment-id`]??``)},bodyKind:`none`});return}let t=await a(e),n=e.local?r:await s();e.accountId=n;let i=await u(`Loading`,async()=>t.send(M,{account_id:n,project_name:e[`project-name`],deployment_id:e[`deployment-id`]}));c(i,{successLabel:`Loaded`})})};var F={method:`GET`,path:e=>t`/accounts/${e.account_id}/pages/projects/${e.project_name}/deployments/${e.deployment_id}/history/logs`};function I(e){return e.usage(`$0 pages deployments history logs get <deployment-id>
17
17
 
@@ -21,11 +21,11 @@ List the production or preview deployments for a Cloudflare Pages project.`).opt
21
21
 
22
22
  Retry a previous Cloudflare Pages deployment.`).positional(`deployment-id`,{type:`string`,description:`UUID of the Pages deployment, as returned by deployment list or create operations.`,demandOption:!0}).option(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const G={command:`retry <deployment-id>`,describe:`Retry a Pages deployment`,builder:W,handler:async e=>d({command:`pages deployments retry`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf pages deployments retry`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/deployments/${e[`deployment-id`]==null?`<deployment-id>`:encodeURIComponent(String(e[`deployment-id`]))}/retry`,pathParams:{"project-name":String(e[`project-name`]??``),"deployment-id":String(e[`deployment-id`]??``)},bodyKind:`none`});return}let t=await a(e),n=e.local?r:await s();e.accountId=n;let i=await u(`Creating`,async()=>t.send(U,{account_id:n,project_name:e[`project-name`],deployment_id:e[`deployment-id`]}));c(i,{successLabel:`Created`})})};var K={method:`POST`,path:e=>t`/accounts/${e.account_id}/pages/projects/${e.project_name}/deployments/${e.deployment_id}/rollback`};function q(e){return e.usage(`$0 pages deployments rollback <deployment-id>
23
23
 
24
- Roll back production to a previous successful Cloudflare Pages deployment.`).positional(`deployment-id`,{type:`string`,description:`UUID of the Pages deployment, as returned by deployment list or create operations.`,demandOption:!0}).option(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,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 J={command:`rollback <deployment-id>`,describe:`Roll back a Pages deployment`,builder:q,handler:async e=>d({command:`pages deployments rollback`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf pages deployments rollback`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/deployments/${e[`deployment-id`]==null?`<deployment-id>`:encodeURIComponent(String(e[`deployment-id`]))}/rollback`,pathParams:{"project-name":String(e[`project-name`]??``),"deployment-id":String(e[`deployment-id`]??``)},bodyKind:`none`});return}let t=await a(e),n=e.local?r:await s();if(e.accountId=n,!await v({force:!!e.force,message:`This operation rolls back the production deployment to an earlier deployment.`}))return;let i=await u(`Deleting`,async()=>t.send(K,{account_id:n,project_name:e[`project-name`],deployment_id:e[`deployment-id`]}));c(i,{successLabel:`Deleted`})})},Y={command:`deployments`,describe:`Operations for deployments`,builder:e=>e.command(O).command(j).command(P).command(H).command(G).command(J).command(z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var X={method:`POST`,path:e=>t`/accounts/${e.account_id}/pages/projects/${e.project_name}/domains`,body:`json`};function ie(e){return e.usage(`$0 pages domains create <project-name>
24
+ Roll back production to a previous successful Cloudflare Pages deployment.`).positional(`deployment-id`,{type:`string`,description:`UUID of the Pages deployment, as returned by deployment list or create operations.`,demandOption:!0}).option(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,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 J={command:`rollback <deployment-id>`,describe:`Roll back a Pages deployment`,builder:q,handler:async e=>d({command:`pages deployments rollback`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf pages deployments rollback`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/deployments/${e[`deployment-id`]==null?`<deployment-id>`:encodeURIComponent(String(e[`deployment-id`]))}/rollback`,pathParams:{"project-name":String(e[`project-name`]??``),"deployment-id":String(e[`deployment-id`]??``)},bodyKind:`none`});return}let t=await a(e),n=e.local?r:await s();if(e.accountId=n,!await y({force:!!e.force,message:`This operation rolls back the production deployment to an earlier deployment.`}))return;let i=await u(`Processing`,async()=>t.send(K,{account_id:n,project_name:e[`project-name`],deployment_id:e[`deployment-id`]}));c(i,{successLabel:`Done`})})},Y={command:`deployments`,describe:`Operations for deployments`,builder:e=>e.command(O).command(j).command(P).command(H).command(G).command(J).command(z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var X={method:`POST`,path:e=>t`/accounts/${e.account_id}/pages/projects/${e.project_name}/domains`,body:`json`};function ie(e){return e.usage(`$0 pages domains create <project-name>
25
25
 
26
- Attach a custom domain to a Cloudflare Pages project.`).positional(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,demandOption:!0}).option(`name`,{type:`string`,description:"Fully qualified domain name for the Pages project, such as `example.com`."}).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 ae={command:`create <project-name>`,describe:`Add a Pages custom domain`,builder:ie,handler:async e=>d({command:`pages domains create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf pages domains create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/domains`,pathParams:{"project-name":String(e[`project-name`]??``)},bodyKind:`json`,body:e.body===void 0?m({name:h(e.name,`name`,`text`)}):f(e.body)});return}let t=await a(e),n=e.local?r:await s();if(e.accountId=n,e.body){let r=f(e.body),i=await u(`Creating`,async()=>t.send(X,{body:r,account_id:n,project_name:e[`project-name`]}));c(i,{successLabel:`Created`});return}e.name===void 0&&(e.name=await g(`name`,"Fully qualified domain name for the Pages project, such as `example.com`."));let i=m({name:h(e.name,`name`,`text`)}),d=await u(`Creating`,async()=>t.send(X,{body:i,account_id:n,project_name:e[`project-name`]}));c(d,{successLabel:`Created`})})};var oe={method:`DELETE`,path:e=>t`/accounts/${e.account_id}/pages/projects/${e.project_name}/domains/${e.domain_name}`};function se(e){return e.usage(`$0 pages domains delete <domain-name>
26
+ Attach a custom domain to a Cloudflare Pages project.`).positional(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,demandOption:!0}).option(`name`,{type:`string`,description:"Fully qualified domain name for the Pages project, such as `example.com`."}).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 ae={command:`create <project-name>`,describe:`Add a Pages custom domain`,builder:ie,handler:async e=>d({command:`pages domains create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf pages domains create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/domains`,pathParams:{"project-name":String(e[`project-name`]??``)},bodyKind:`json`,body:e.body===void 0?m({name:h(e.name,`name`,`text`)}):f(e.body)});return}let t=e.body===void 0?void 0:f(e.body),n=await a(e),i=e.local?r:await s();if(e.accountId=i,e.body!==void 0){let r=t,a=await u(`Creating`,async()=>n.send(X,{body:r,account_id:i,project_name:e[`project-name`]}));c(a,{successLabel:`Created`});return}e.name===void 0&&(e.name=await _(`name`,"Fully qualified domain name for the Pages project, such as `example.com`."));let d=m({name:h(e.name,`name`,`text`)}),p=await u(`Creating`,async()=>n.send(X,{body:d,account_id:i,project_name:e[`project-name`]}));c(p,{successLabel:`Created`})})};var oe={method:`DELETE`,path:e=>t`/accounts/${e.account_id}/pages/projects/${e.project_name}/domains/${e.domain_name}`};function se(e){return e.usage(`$0 pages domains delete <domain-name>
27
27
 
28
- Remove a custom domain from a Cloudflare Pages project.`).positional(`domain-name`,{type:`string`,description:"Fully qualified domain name for the Pages project, such as `example.com`.",demandOption:!0}).option(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,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 ce={command:`delete <domain-name>`,describe:`Delete a Pages custom domain`,builder:se,handler:async e=>d({command:`pages domains delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf pages domains delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/domains/${e[`domain-name`]==null?`<domain-name>`:encodeURIComponent(String(e[`domain-name`]))}`,pathParams:{"project-name":String(e[`project-name`]??``),"domain-name":String(e[`domain-name`]??``)},bodyKind:`none`});return}let t=await a(e),n=e.local?r:await s();if(e.accountId=n,!await v({force:!!e.force}))return;let i=await u(`Deleting`,async()=>t.send(oe,{account_id:n,project_name:e[`project-name`],domain_name:e[`domain-name`]}));c(i,{successLabel:`Deleted`})})};var le={method:`GET`,path:e=>t`/accounts/${e.account_id}/pages/projects/${e.project_name}/domains/${e.domain_name}`};function ue(e){return e.usage(`$0 pages domains get <domain-name>
28
+ Remove a custom domain from a Cloudflare Pages project.`).positional(`domain-name`,{type:`string`,description:"Fully qualified domain name for the Pages project, such as `example.com`.",demandOption:!0}).option(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,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 ce={command:`delete <domain-name>`,describe:`Delete a Pages custom domain`,builder:se,handler:async e=>d({command:`pages domains delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf pages domains delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/domains/${e[`domain-name`]==null?`<domain-name>`:encodeURIComponent(String(e[`domain-name`]))}`,pathParams:{"project-name":String(e[`project-name`]??``),"domain-name":String(e[`domain-name`]??``)},bodyKind:`none`});return}let t=await a(e),n=e.local?r:await s();if(e.accountId=n,!await y({force:!!e.force}))return;let i=await u(`Deleting`,async()=>t.send(oe,{account_id:n,project_name:e[`project-name`],domain_name:e[`domain-name`]}));c(i,{successLabel:`Deleted`})})};var le={method:`GET`,path:e=>t`/accounts/${e.account_id}/pages/projects/${e.project_name}/domains/${e.domain_name}`};function ue(e){return e.usage(`$0 pages domains get <domain-name>
29
29
 
30
30
  Retrieve the configuration and validation status of a custom domain attached to a Cloudflare Pages project.`).positional(`domain-name`,{type:`string`,description:"Fully qualified domain name for the Pages project, such as `example.com`.",demandOption:!0}).option(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const de={command:`get <domain-name>`,describe:`Get a Pages custom domain`,builder:ue,handler:async e=>d({command:`pages domains get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf pages domains get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/domains/${e[`domain-name`]==null?`<domain-name>`:encodeURIComponent(String(e[`domain-name`]))}`,pathParams:{"project-name":String(e[`project-name`]??``),"domain-name":String(e[`domain-name`]??``)},bodyKind:`none`});return}let t=await a(e),n=e.local?r:await s();e.accountId=n;let i=await u(`Loading`,async()=>t.send(le,{account_id:n,project_name:e[`project-name`],domain_name:e[`domain-name`]}));c(i,{successLabel:`Loaded`})})};var fe={method:`GET`,path:e=>t`/accounts/${e.account_id}/pages/projects/${e.project_name}/domains`};function pe(e){return e.usage(`$0 pages domains list
31
31
 
@@ -35,7 +35,7 @@ Retry validation for a custom domain attached to a Cloudflare Pages project.`).p
35
35
 
36
36
  Update the build, deployment, source, or environment settings for a Cloudflare Pages project. To delete an environment variable, set its key to \`null\`.`).positional(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,demandOption:!0}).option(`build-config-build-caching`,{type:`boolean`,description:`Enable build caching for the project.`}).option(`build-config-build-command`,{type:`string`,description:`Command used to build project.`}).option(`build-config-destination-dir`,{type:`string`,description:`Output directory of the build.`}).option(`build-config-root-dir`,{type:`string`,description:`Directory to run the command.`}).option(`build-config-web-analytics-tag`,{type:`string`,description:`The classifying tag for analytics.`}).option(`build-config-web-analytics-token`,{type:`string`,description:`The auth token for analytics.`}).option(`deployment-configs-preview-ai-bindings`,{type:`string`,description:`Constellation bindings used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-preview-always-use-latest-compatibility-date`,{type:`boolean`,description:`Whether to always use the latest compatibility date for Pages Functions.`}).option(`deployment-configs-preview-analytics-engine-datasets`,{type:`string`,description:`Analytics Engine bindings used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-preview-browsers`,{type:`string`,description:`Browser bindings used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-preview-build-image-major-version`,{type:`number`,description:`The major version of the build image to use for Pages Functions. Version 1 is retired and its projects are moved to version 3. Once a project's builds have been moved, a request that sets version 1 is rejected.`}).option(`deployment-configs-preview-compatibility-date`,{type:`string`,description:`Compatibility date used for Pages Functions.`}).option(`deployment-configs-preview-compatibility-flags`,{type:`string`,array:!0,description:`Compatibility flags used for Pages Functions.`}).option(`deployment-configs-preview-d1-databases`,{type:`string`,description:`D1 databases used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-preview-durable-object-namespaces`,{type:`string`,description:`Durable Object namespaces used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-preview-env-vars`,{type:`string`,description:`Environment variables used for builds and Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-preview-fail-open`,{type:`boolean`,description:`Whether to fail open when the deployment config cannot be applied.`}).option(`deployment-configs-preview-hyperdrive-bindings`,{type:`string`,description:`Hyperdrive bindings used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-preview-kv-namespaces`,{type:`string`,description:`KV namespaces used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-preview-limits-cpu-ms`,{type:`number`,description:`CPU time limit in milliseconds.`}).option(`deployment-configs-preview-mtls-certificates`,{type:`string`,description:`mTLS bindings used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-preview-placement-mode`,{type:`string`,description:`Placement mode.`}).option(`deployment-configs-preview-queue-producers`,{type:`string`,description:`Queue Producer bindings used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-preview-r2-buckets`,{type:`string`,description:`R2 buckets used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-preview-services`,{type:`string`,description:`Services used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-preview-usage-model`,{type:`string`,description:`The usage model for Pages Functions.`,choices:[`standard`,`bundled`,`unbound`]}).coerce(`deployment-configs-preview-usage-model`,e=>h(e,`deployment-configs-preview-usage-model`,`text`)).option(`deployment-configs-preview-vectorize-bindings`,{type:`string`,description:`Vectorize bindings used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-preview-wrangler-config-hash`,{type:`string`,description:`Hash of the Wrangler configuration used for the deployment.`}).option(`deployment-configs-production-ai-bindings`,{type:`string`,description:`Constellation bindings used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-production-always-use-latest-compatibility-date`,{type:`boolean`,description:`Whether to always use the latest compatibility date for Pages Functions.`}).option(`deployment-configs-production-analytics-engine-datasets`,{type:`string`,description:`Analytics Engine bindings used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-production-browsers`,{type:`string`,description:`Browser bindings used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-production-build-image-major-version`,{type:`number`,description:`The major version of the build image to use for Pages Functions. Version 1 is retired and its projects are moved to version 3. Once a project's builds have been moved, a request that sets version 1 is rejected.`}).option(`deployment-configs-production-compatibility-date`,{type:`string`,description:`Compatibility date used for Pages Functions.`}).option(`deployment-configs-production-compatibility-flags`,{type:`string`,array:!0,description:`Compatibility flags used for Pages Functions.`}).option(`deployment-configs-production-d1-databases`,{type:`string`,description:`D1 databases used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-production-durable-object-namespaces`,{type:`string`,description:`Durable Object namespaces used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-production-env-vars`,{type:`string`,description:`Environment variables used for builds and Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-production-fail-open`,{type:`boolean`,description:`Whether to fail open when the deployment config cannot be applied.`}).option(`deployment-configs-production-hyperdrive-bindings`,{type:`string`,description:`Hyperdrive bindings used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-production-kv-namespaces`,{type:`string`,description:`KV namespaces used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-production-limits-cpu-ms`,{type:`number`,description:`CPU time limit in milliseconds.`}).option(`deployment-configs-production-mtls-certificates`,{type:`string`,description:`mTLS bindings used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-production-placement-mode`,{type:`string`,description:`Placement mode.`}).option(`deployment-configs-production-queue-producers`,{type:`string`,description:`Queue Producer bindings used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-production-r2-buckets`,{type:`string`,description:`R2 buckets used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-production-services`,{type:`string`,description:`Services used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-production-usage-model`,{type:`string`,description:`The usage model for Pages Functions.`,choices:[`standard`,`bundled`,`unbound`]}).coerce(`deployment-configs-production-usage-model`,e=>h(e,`deployment-configs-production-usage-model`,`text`)).option(`deployment-configs-production-vectorize-bindings`,{type:`string`,description:`Vectorize bindings used for Pages Functions. Provide as a JSON object or @path/to/file.json.`}).option(`deployment-configs-production-wrangler-config-hash`,{type:`string`,description:`Hash of the Wrangler configuration used for the deployment.`}).option(`name`,{type:`string`,description:`Name for the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`}).option(`production-branch`,{type:`string`,description:`Production branch of the project. Used to identify production deployments.`}).option(`source-config-deployments-enabled`,{type:`boolean`,description:`Whether to enable automatic deployments when pushing to the source repository.
37
37
  When disabled, no deployments (production or preview) will be triggered automatically.
38
- `}).option(`source-config-owner`,{type:`string`,description:`The owner of the repository.`}).option(`source-config-owner-id`,{type:`string`,description:`The owner ID of the repository.`}).option(`source-config-path-excludes`,{type:`string`,array:!0,description:"A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (`*`) is supported."}).option(`source-config-path-includes`,{type:`string`,array:!0,description:"A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (`*`) is supported."}).option(`source-config-pr-comments-enabled`,{type:`boolean`,description:`Whether to enable PR comments.`}).option(`source-config-preview-branch-excludes`,{type:`string`,array:!0,description:"A list of branches that should not trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`."}).option(`source-config-preview-branch-includes`,{type:`string`,array:!0,description:"A list of branches that should trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`."}).option(`source-config-preview-deployment-setting`,{type:`string`,description:`Controls whether commits to preview branches trigger a preview deployment.`,choices:[`all`,`none`,`custom`]}).coerce(`source-config-preview-deployment-setting`,e=>h(e,`source-config-preview-deployment-setting`,`text`)).option(`source-config-production-branch`,{type:`string`,description:`The production branch of the repository.`}).option(`source-config-production-deployments-enabled`,{type:`boolean`,description:`Whether to trigger a production deployment on commits to the production branch.`}).option(`source-config-repo-id`,{type:`string`,description:`The ID of the repository.`}).option(`source-config-repo-name`,{type:`string`,description:`The name of the repository.`}).option(`source-type`,{type:`string`,description:`The source control management provider.`,choices:[`github`,`gitlab`]}).coerce(`source-type`,e=>h(e,`source-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)`}).check(e=>{let t=[`source-config-deployments-enabled`,`source-config-owner`,`source-config-owner-id`,`source-config-path-excludes`,`source-config-path-includes`,`source-config-pr-comments-enabled`,`source-config-preview-branch-excludes`,`source-config-preview-branch-includes`,`source-config-preview-deployment-setting`,`source-config-production-branch`,`source-config-production-deployments-enabled`,`source-config-repo-id`,`source-config-repo-name`,`source-type`].some(t=>e[t]!==void 0);if(!e.body&&t){let t=[`source-type`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --source-* flag is set`)}return!0})}const xe={command:`edit <project-name>`,describe:`Update a Cloudflare Pages project`,builder:be,handler:async e=>d({command:`pages edit`,classification:{safeFlags:[`build-config-build-caching`,`deployment-configs-preview-always-use-latest-compatibility-date`,`deployment-configs-preview-fail-open`,`deployment-configs-preview-usage-model`,`deployment-configs-production-always-use-latest-compatibility-date`,`deployment-configs-production-fail-open`,`deployment-configs-production-usage-model`,`source-config-deployments-enabled`,`source-config-pr-comments-enabled`,`source-config-preview-deployment-setting`,`source-config-production-deployments-enabled`,`source-type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf pages edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}`,pathParams:{"project-name":String(e[`project-name`]??``)},bodyKind:`json`,body:e.body===void 0?m({build_config:{build_caching:e[`build-config-build-caching`],build_command:h(e[`build-config-build-command`],`build-config-build-command`,`text`),destination_dir:h(e[`build-config-destination-dir`],`build-config-destination-dir`,`text`),root_dir:h(e[`build-config-root-dir`],`build-config-root-dir`,`text`),web_analytics_tag:h(e[`build-config-web-analytics-tag`],`build-config-web-analytics-tag`,`text`),web_analytics_token:h(e[`build-config-web-analytics-token`],`build-config-web-analytics-token`,`text`)},deployment_configs:{preview:{ai_bindings:p(e[`deployment-configs-preview-ai-bindings`],`deployment-configs-preview-ai-bindings`),always_use_latest_compatibility_date:e[`deployment-configs-preview-always-use-latest-compatibility-date`],analytics_engine_datasets:p(e[`deployment-configs-preview-analytics-engine-datasets`],`deployment-configs-preview-analytics-engine-datasets`),browsers:p(e[`deployment-configs-preview-browsers`],`deployment-configs-preview-browsers`),build_image_major_version:e[`deployment-configs-preview-build-image-major-version`],compatibility_date:h(e[`deployment-configs-preview-compatibility-date`],`deployment-configs-preview-compatibility-date`,`text`),compatibility_flags:e[`deployment-configs-preview-compatibility-flags`],d1_databases:p(e[`deployment-configs-preview-d1-databases`],`deployment-configs-preview-d1-databases`),durable_object_namespaces:p(e[`deployment-configs-preview-durable-object-namespaces`],`deployment-configs-preview-durable-object-namespaces`),env_vars:p(e[`deployment-configs-preview-env-vars`],`deployment-configs-preview-env-vars`),fail_open:e[`deployment-configs-preview-fail-open`],hyperdrive_bindings:p(e[`deployment-configs-preview-hyperdrive-bindings`],`deployment-configs-preview-hyperdrive-bindings`),kv_namespaces:p(e[`deployment-configs-preview-kv-namespaces`],`deployment-configs-preview-kv-namespaces`),limits:{cpu_ms:e[`deployment-configs-preview-limits-cpu-ms`]},mtls_certificates:p(e[`deployment-configs-preview-mtls-certificates`],`deployment-configs-preview-mtls-certificates`),placement:{mode:h(e[`deployment-configs-preview-placement-mode`],`deployment-configs-preview-placement-mode`,`text`)},queue_producers:p(e[`deployment-configs-preview-queue-producers`],`deployment-configs-preview-queue-producers`),r2_buckets:p(e[`deployment-configs-preview-r2-buckets`],`deployment-configs-preview-r2-buckets`),services:p(e[`deployment-configs-preview-services`],`deployment-configs-preview-services`),usage_model:e[`deployment-configs-preview-usage-model`],vectorize_bindings:p(e[`deployment-configs-preview-vectorize-bindings`],`deployment-configs-preview-vectorize-bindings`),wrangler_config_hash:h(e[`deployment-configs-preview-wrangler-config-hash`],`deployment-configs-preview-wrangler-config-hash`,`text`)},production:{ai_bindings:p(e[`deployment-configs-production-ai-bindings`],`deployment-configs-production-ai-bindings`),always_use_latest_compatibility_date:e[`deployment-configs-production-always-use-latest-compatibility-date`],analytics_engine_datasets:p(e[`deployment-configs-production-analytics-engine-datasets`],`deployment-configs-production-analytics-engine-datasets`),browsers:p(e[`deployment-configs-production-browsers`],`deployment-configs-production-browsers`),build_image_major_version:e[`deployment-configs-production-build-image-major-version`],compatibility_date:h(e[`deployment-configs-production-compatibility-date`],`deployment-configs-production-compatibility-date`,`text`),compatibility_flags:e[`deployment-configs-production-compatibility-flags`],d1_databases:p(e[`deployment-configs-production-d1-databases`],`deployment-configs-production-d1-databases`),durable_object_namespaces:p(e[`deployment-configs-production-durable-object-namespaces`],`deployment-configs-production-durable-object-namespaces`),env_vars:p(e[`deployment-configs-production-env-vars`],`deployment-configs-production-env-vars`),fail_open:e[`deployment-configs-production-fail-open`],hyperdrive_bindings:p(e[`deployment-configs-production-hyperdrive-bindings`],`deployment-configs-production-hyperdrive-bindings`),kv_namespaces:p(e[`deployment-configs-production-kv-namespaces`],`deployment-configs-production-kv-namespaces`),limits:{cpu_ms:e[`deployment-configs-production-limits-cpu-ms`]},mtls_certificates:p(e[`deployment-configs-production-mtls-certificates`],`deployment-configs-production-mtls-certificates`),placement:{mode:h(e[`deployment-configs-production-placement-mode`],`deployment-configs-production-placement-mode`,`text`)},queue_producers:p(e[`deployment-configs-production-queue-producers`],`deployment-configs-production-queue-producers`),r2_buckets:p(e[`deployment-configs-production-r2-buckets`],`deployment-configs-production-r2-buckets`),services:p(e[`deployment-configs-production-services`],`deployment-configs-production-services`),usage_model:e[`deployment-configs-production-usage-model`],vectorize_bindings:p(e[`deployment-configs-production-vectorize-bindings`],`deployment-configs-production-vectorize-bindings`),wrangler_config_hash:h(e[`deployment-configs-production-wrangler-config-hash`],`deployment-configs-production-wrangler-config-hash`,`text`)}},name:h(e.name,`name`,`text`),production_branch:h(e[`production-branch`],`production-branch`,`text`),source:{config:{deployments_enabled:e[`source-config-deployments-enabled`],owner:h(e[`source-config-owner`],`source-config-owner`,`text`),owner_id:h(e[`source-config-owner-id`],`source-config-owner-id`,`text`),path_excludes:e[`source-config-path-excludes`],path_includes:e[`source-config-path-includes`],pr_comments_enabled:e[`source-config-pr-comments-enabled`],preview_branch_excludes:e[`source-config-preview-branch-excludes`],preview_branch_includes:e[`source-config-preview-branch-includes`],preview_deployment_setting:e[`source-config-preview-deployment-setting`],production_branch:h(e[`source-config-production-branch`],`source-config-production-branch`,`text`),production_deployments_enabled:e[`source-config-production-deployments-enabled`],repo_id:h(e[`source-config-repo-id`],`source-config-repo-id`,`text`),repo_name:h(e[`source-config-repo-name`],`source-config-repo-name`,`text`)},type:e[`source-type`]}},[[`deployment_configs`,`preview`,`ai_bindings`],[`deployment_configs`,`preview`,`analytics_engine_datasets`],[`deployment_configs`,`preview`,`browsers`],[`deployment_configs`,`preview`,`d1_databases`],[`deployment_configs`,`preview`,`durable_object_namespaces`],[`deployment_configs`,`preview`,`env_vars`],[`deployment_configs`,`preview`,`hyperdrive_bindings`],[`deployment_configs`,`preview`,`kv_namespaces`],[`deployment_configs`,`preview`,`mtls_certificates`],[`deployment_configs`,`preview`,`queue_producers`],[`deployment_configs`,`preview`,`r2_buckets`],[`deployment_configs`,`preview`,`services`],[`deployment_configs`,`preview`,`vectorize_bindings`],[`deployment_configs`,`production`,`ai_bindings`],[`deployment_configs`,`production`,`analytics_engine_datasets`],[`deployment_configs`,`production`,`browsers`],[`deployment_configs`,`production`,`d1_databases`],[`deployment_configs`,`production`,`durable_object_namespaces`],[`deployment_configs`,`production`,`env_vars`],[`deployment_configs`,`production`,`hyperdrive_bindings`],[`deployment_configs`,`production`,`kv_namespaces`],[`deployment_configs`,`production`,`mtls_certificates`],[`deployment_configs`,`production`,`queue_producers`],[`deployment_configs`,`production`,`r2_buckets`],[`deployment_configs`,`production`,`services`],[`deployment_configs`,`production`,`vectorize_bindings`]]):f(e.body),sensitiveBodyPaths:[[`build_config`,`web_analytics_token`]]});return}let t=await a(e),n=e.local?r:await s();if(e.accountId=n,e.body){let r=f(e.body),i=await u(`Updating`,async()=>t.send(Z,{body:r,account_id:n,project_name:e[`project-name`]}));c(i,{successLabel:`Updated`});return}let i=m({build_config:{build_caching:e[`build-config-build-caching`],build_command:h(e[`build-config-build-command`],`build-config-build-command`,`text`),destination_dir:h(e[`build-config-destination-dir`],`build-config-destination-dir`,`text`),root_dir:h(e[`build-config-root-dir`],`build-config-root-dir`,`text`),web_analytics_tag:h(e[`build-config-web-analytics-tag`],`build-config-web-analytics-tag`,`text`),web_analytics_token:h(e[`build-config-web-analytics-token`],`build-config-web-analytics-token`,`text`)},deployment_configs:{preview:{ai_bindings:p(e[`deployment-configs-preview-ai-bindings`],`deployment-configs-preview-ai-bindings`),always_use_latest_compatibility_date:e[`deployment-configs-preview-always-use-latest-compatibility-date`],analytics_engine_datasets:p(e[`deployment-configs-preview-analytics-engine-datasets`],`deployment-configs-preview-analytics-engine-datasets`),browsers:p(e[`deployment-configs-preview-browsers`],`deployment-configs-preview-browsers`),build_image_major_version:e[`deployment-configs-preview-build-image-major-version`],compatibility_date:h(e[`deployment-configs-preview-compatibility-date`],`deployment-configs-preview-compatibility-date`,`text`),compatibility_flags:e[`deployment-configs-preview-compatibility-flags`],d1_databases:p(e[`deployment-configs-preview-d1-databases`],`deployment-configs-preview-d1-databases`),durable_object_namespaces:p(e[`deployment-configs-preview-durable-object-namespaces`],`deployment-configs-preview-durable-object-namespaces`),env_vars:p(e[`deployment-configs-preview-env-vars`],`deployment-configs-preview-env-vars`),fail_open:e[`deployment-configs-preview-fail-open`],hyperdrive_bindings:p(e[`deployment-configs-preview-hyperdrive-bindings`],`deployment-configs-preview-hyperdrive-bindings`),kv_namespaces:p(e[`deployment-configs-preview-kv-namespaces`],`deployment-configs-preview-kv-namespaces`),limits:{cpu_ms:e[`deployment-configs-preview-limits-cpu-ms`]},mtls_certificates:p(e[`deployment-configs-preview-mtls-certificates`],`deployment-configs-preview-mtls-certificates`),placement:{mode:h(e[`deployment-configs-preview-placement-mode`],`deployment-configs-preview-placement-mode`,`text`)},queue_producers:p(e[`deployment-configs-preview-queue-producers`],`deployment-configs-preview-queue-producers`),r2_buckets:p(e[`deployment-configs-preview-r2-buckets`],`deployment-configs-preview-r2-buckets`),services:p(e[`deployment-configs-preview-services`],`deployment-configs-preview-services`),usage_model:e[`deployment-configs-preview-usage-model`],vectorize_bindings:p(e[`deployment-configs-preview-vectorize-bindings`],`deployment-configs-preview-vectorize-bindings`),wrangler_config_hash:h(e[`deployment-configs-preview-wrangler-config-hash`],`deployment-configs-preview-wrangler-config-hash`,`text`)},production:{ai_bindings:p(e[`deployment-configs-production-ai-bindings`],`deployment-configs-production-ai-bindings`),always_use_latest_compatibility_date:e[`deployment-configs-production-always-use-latest-compatibility-date`],analytics_engine_datasets:p(e[`deployment-configs-production-analytics-engine-datasets`],`deployment-configs-production-analytics-engine-datasets`),browsers:p(e[`deployment-configs-production-browsers`],`deployment-configs-production-browsers`),build_image_major_version:e[`deployment-configs-production-build-image-major-version`],compatibility_date:h(e[`deployment-configs-production-compatibility-date`],`deployment-configs-production-compatibility-date`,`text`),compatibility_flags:e[`deployment-configs-production-compatibility-flags`],d1_databases:p(e[`deployment-configs-production-d1-databases`],`deployment-configs-production-d1-databases`),durable_object_namespaces:p(e[`deployment-configs-production-durable-object-namespaces`],`deployment-configs-production-durable-object-namespaces`),env_vars:p(e[`deployment-configs-production-env-vars`],`deployment-configs-production-env-vars`),fail_open:e[`deployment-configs-production-fail-open`],hyperdrive_bindings:p(e[`deployment-configs-production-hyperdrive-bindings`],`deployment-configs-production-hyperdrive-bindings`),kv_namespaces:p(e[`deployment-configs-production-kv-namespaces`],`deployment-configs-production-kv-namespaces`),limits:{cpu_ms:e[`deployment-configs-production-limits-cpu-ms`]},mtls_certificates:p(e[`deployment-configs-production-mtls-certificates`],`deployment-configs-production-mtls-certificates`),placement:{mode:h(e[`deployment-configs-production-placement-mode`],`deployment-configs-production-placement-mode`,`text`)},queue_producers:p(e[`deployment-configs-production-queue-producers`],`deployment-configs-production-queue-producers`),r2_buckets:p(e[`deployment-configs-production-r2-buckets`],`deployment-configs-production-r2-buckets`),services:p(e[`deployment-configs-production-services`],`deployment-configs-production-services`),usage_model:e[`deployment-configs-production-usage-model`],vectorize_bindings:p(e[`deployment-configs-production-vectorize-bindings`],`deployment-configs-production-vectorize-bindings`),wrangler_config_hash:h(e[`deployment-configs-production-wrangler-config-hash`],`deployment-configs-production-wrangler-config-hash`,`text`)}},name:h(e.name,`name`,`text`),production_branch:h(e[`production-branch`],`production-branch`,`text`),source:{config:{deployments_enabled:e[`source-config-deployments-enabled`],owner:h(e[`source-config-owner`],`source-config-owner`,`text`),owner_id:h(e[`source-config-owner-id`],`source-config-owner-id`,`text`),path_excludes:e[`source-config-path-excludes`],path_includes:e[`source-config-path-includes`],pr_comments_enabled:e[`source-config-pr-comments-enabled`],preview_branch_excludes:e[`source-config-preview-branch-excludes`],preview_branch_includes:e[`source-config-preview-branch-includes`],preview_deployment_setting:e[`source-config-preview-deployment-setting`],production_branch:h(e[`source-config-production-branch`],`source-config-production-branch`,`text`),production_deployments_enabled:e[`source-config-production-deployments-enabled`],repo_id:h(e[`source-config-repo-id`],`source-config-repo-id`,`text`),repo_name:h(e[`source-config-repo-name`],`source-config-repo-name`,`text`)},type:e[`source-type`]}},[[`deployment_configs`,`preview`,`ai_bindings`],[`deployment_configs`,`preview`,`analytics_engine_datasets`],[`deployment_configs`,`preview`,`browsers`],[`deployment_configs`,`preview`,`d1_databases`],[`deployment_configs`,`preview`,`durable_object_namespaces`],[`deployment_configs`,`preview`,`env_vars`],[`deployment_configs`,`preview`,`hyperdrive_bindings`],[`deployment_configs`,`preview`,`kv_namespaces`],[`deployment_configs`,`preview`,`mtls_certificates`],[`deployment_configs`,`preview`,`queue_producers`],[`deployment_configs`,`preview`,`r2_buckets`],[`deployment_configs`,`preview`,`services`],[`deployment_configs`,`preview`,`vectorize_bindings`],[`deployment_configs`,`production`,`ai_bindings`],[`deployment_configs`,`production`,`analytics_engine_datasets`],[`deployment_configs`,`production`,`browsers`],[`deployment_configs`,`production`,`d1_databases`],[`deployment_configs`,`production`,`durable_object_namespaces`],[`deployment_configs`,`production`,`env_vars`],[`deployment_configs`,`production`,`hyperdrive_bindings`],[`deployment_configs`,`production`,`kv_namespaces`],[`deployment_configs`,`production`,`mtls_certificates`],[`deployment_configs`,`production`,`queue_producers`],[`deployment_configs`,`production`,`r2_buckets`],[`deployment_configs`,`production`,`services`],[`deployment_configs`,`production`,`vectorize_bindings`]]),d=await u(`Updating`,async()=>t.send(Z,{body:i,account_id:n,project_name:e[`project-name`]}));c(d,{successLabel:`Updated`})})};var Se={method:`GET`,path:e=>t`/accounts/${e.account_id}/pages/projects/${e.project_name}`};function Ce(e){return e.usage(`$0 pages get <project-name>
38
+ `}).option(`source-config-owner`,{type:`string`,description:`The owner of the repository.`}).option(`source-config-owner-id`,{type:`string`,description:`The owner ID of the repository.`}).option(`source-config-path-excludes`,{type:`string`,array:!0,description:"A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (`*`) is supported."}).option(`source-config-path-includes`,{type:`string`,array:!0,description:"A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (`*`) is supported."}).option(`source-config-pr-comments-enabled`,{type:`boolean`,description:`Whether to enable PR comments.`}).option(`source-config-preview-branch-excludes`,{type:`string`,array:!0,description:"A list of branches that should not trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`."}).option(`source-config-preview-branch-includes`,{type:`string`,array:!0,description:"A list of branches that should trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`."}).option(`source-config-preview-deployment-setting`,{type:`string`,description:`Controls whether commits to preview branches trigger a preview deployment.`,choices:[`all`,`none`,`custom`]}).coerce(`source-config-preview-deployment-setting`,e=>h(e,`source-config-preview-deployment-setting`,`text`)).option(`source-config-production-branch`,{type:`string`,description:`The production branch of the repository.`}).option(`source-config-production-deployments-enabled`,{type:`boolean`,description:`Whether to trigger a production deployment on commits to the production branch.`}).option(`source-config-repo-id`,{type:`string`,description:`The ID of the repository.`}).option(`source-config-repo-name`,{type:`string`,description:`The name of the repository.`}).option(`source-type`,{type:`string`,description:`The source control management provider.`,choices:[`github`,`gitlab`]}).coerce(`source-type`,e=>h(e,`source-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)`}).check(e=>{let t=[`source-config-deployments-enabled`,`source-config-owner`,`source-config-owner-id`,`source-config-path-excludes`,`source-config-path-includes`,`source-config-pr-comments-enabled`,`source-config-preview-branch-excludes`,`source-config-preview-branch-includes`,`source-config-preview-deployment-setting`,`source-config-production-branch`,`source-config-production-deployments-enabled`,`source-config-repo-id`,`source-config-repo-name`,`source-type`].some(t=>e[t]!==void 0);if(!e.body&&t){let t=[`source-type`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --source-* flag is set`)}return!0})}const xe={command:`edit <project-name>`,describe:`Update a Cloudflare Pages project`,builder:be,handler:async e=>d({command:`pages edit`,classification:{safeFlags:[`build-config-build-caching`,`deployment-configs-preview-always-use-latest-compatibility-date`,`deployment-configs-preview-fail-open`,`deployment-configs-preview-usage-model`,`deployment-configs-production-always-use-latest-compatibility-date`,`deployment-configs-production-fail-open`,`deployment-configs-production-usage-model`,`source-config-deployments-enabled`,`source-config-pr-comments-enabled`,`source-config-preview-deployment-setting`,`source-config-production-deployments-enabled`,`source-type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf pages edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}`,pathParams:{"project-name":String(e[`project-name`]??``)},bodyKind:`json`,body:e.body===void 0?m({build_config:{build_caching:e[`build-config-build-caching`],build_command:h(e[`build-config-build-command`],`build-config-build-command`,`text`),destination_dir:h(e[`build-config-destination-dir`],`build-config-destination-dir`,`text`),root_dir:h(e[`build-config-root-dir`],`build-config-root-dir`,`text`),web_analytics_tag:h(e[`build-config-web-analytics-tag`],`build-config-web-analytics-tag`,`text`),web_analytics_token:h(e[`build-config-web-analytics-token`],`build-config-web-analytics-token`,`text`)},deployment_configs:{preview:{ai_bindings:p(e[`deployment-configs-preview-ai-bindings`],`deployment-configs-preview-ai-bindings`),always_use_latest_compatibility_date:e[`deployment-configs-preview-always-use-latest-compatibility-date`],analytics_engine_datasets:p(e[`deployment-configs-preview-analytics-engine-datasets`],`deployment-configs-preview-analytics-engine-datasets`),browsers:p(e[`deployment-configs-preview-browsers`],`deployment-configs-preview-browsers`),build_image_major_version:e[`deployment-configs-preview-build-image-major-version`],compatibility_date:h(e[`deployment-configs-preview-compatibility-date`],`deployment-configs-preview-compatibility-date`,`text`),compatibility_flags:e[`deployment-configs-preview-compatibility-flags`],d1_databases:p(e[`deployment-configs-preview-d1-databases`],`deployment-configs-preview-d1-databases`),durable_object_namespaces:p(e[`deployment-configs-preview-durable-object-namespaces`],`deployment-configs-preview-durable-object-namespaces`),env_vars:p(e[`deployment-configs-preview-env-vars`],`deployment-configs-preview-env-vars`),fail_open:e[`deployment-configs-preview-fail-open`],hyperdrive_bindings:p(e[`deployment-configs-preview-hyperdrive-bindings`],`deployment-configs-preview-hyperdrive-bindings`),kv_namespaces:p(e[`deployment-configs-preview-kv-namespaces`],`deployment-configs-preview-kv-namespaces`),limits:{cpu_ms:e[`deployment-configs-preview-limits-cpu-ms`]},mtls_certificates:p(e[`deployment-configs-preview-mtls-certificates`],`deployment-configs-preview-mtls-certificates`),placement:{mode:h(e[`deployment-configs-preview-placement-mode`],`deployment-configs-preview-placement-mode`,`text`)},queue_producers:p(e[`deployment-configs-preview-queue-producers`],`deployment-configs-preview-queue-producers`),r2_buckets:p(e[`deployment-configs-preview-r2-buckets`],`deployment-configs-preview-r2-buckets`),services:p(e[`deployment-configs-preview-services`],`deployment-configs-preview-services`),usage_model:e[`deployment-configs-preview-usage-model`],vectorize_bindings:p(e[`deployment-configs-preview-vectorize-bindings`],`deployment-configs-preview-vectorize-bindings`),wrangler_config_hash:h(e[`deployment-configs-preview-wrangler-config-hash`],`deployment-configs-preview-wrangler-config-hash`,`text`)},production:{ai_bindings:p(e[`deployment-configs-production-ai-bindings`],`deployment-configs-production-ai-bindings`),always_use_latest_compatibility_date:e[`deployment-configs-production-always-use-latest-compatibility-date`],analytics_engine_datasets:p(e[`deployment-configs-production-analytics-engine-datasets`],`deployment-configs-production-analytics-engine-datasets`),browsers:p(e[`deployment-configs-production-browsers`],`deployment-configs-production-browsers`),build_image_major_version:e[`deployment-configs-production-build-image-major-version`],compatibility_date:h(e[`deployment-configs-production-compatibility-date`],`deployment-configs-production-compatibility-date`,`text`),compatibility_flags:e[`deployment-configs-production-compatibility-flags`],d1_databases:p(e[`deployment-configs-production-d1-databases`],`deployment-configs-production-d1-databases`),durable_object_namespaces:p(e[`deployment-configs-production-durable-object-namespaces`],`deployment-configs-production-durable-object-namespaces`),env_vars:p(e[`deployment-configs-production-env-vars`],`deployment-configs-production-env-vars`),fail_open:e[`deployment-configs-production-fail-open`],hyperdrive_bindings:p(e[`deployment-configs-production-hyperdrive-bindings`],`deployment-configs-production-hyperdrive-bindings`),kv_namespaces:p(e[`deployment-configs-production-kv-namespaces`],`deployment-configs-production-kv-namespaces`),limits:{cpu_ms:e[`deployment-configs-production-limits-cpu-ms`]},mtls_certificates:p(e[`deployment-configs-production-mtls-certificates`],`deployment-configs-production-mtls-certificates`),placement:{mode:h(e[`deployment-configs-production-placement-mode`],`deployment-configs-production-placement-mode`,`text`)},queue_producers:p(e[`deployment-configs-production-queue-producers`],`deployment-configs-production-queue-producers`),r2_buckets:p(e[`deployment-configs-production-r2-buckets`],`deployment-configs-production-r2-buckets`),services:p(e[`deployment-configs-production-services`],`deployment-configs-production-services`),usage_model:e[`deployment-configs-production-usage-model`],vectorize_bindings:p(e[`deployment-configs-production-vectorize-bindings`],`deployment-configs-production-vectorize-bindings`),wrangler_config_hash:h(e[`deployment-configs-production-wrangler-config-hash`],`deployment-configs-production-wrangler-config-hash`,`text`)}},name:h(e.name,`name`,`text`),production_branch:h(e[`production-branch`],`production-branch`,`text`),source:{config:{deployments_enabled:e[`source-config-deployments-enabled`],owner:h(e[`source-config-owner`],`source-config-owner`,`text`),owner_id:h(e[`source-config-owner-id`],`source-config-owner-id`,`text`),path_excludes:e[`source-config-path-excludes`],path_includes:e[`source-config-path-includes`],pr_comments_enabled:e[`source-config-pr-comments-enabled`],preview_branch_excludes:e[`source-config-preview-branch-excludes`],preview_branch_includes:e[`source-config-preview-branch-includes`],preview_deployment_setting:e[`source-config-preview-deployment-setting`],production_branch:h(e[`source-config-production-branch`],`source-config-production-branch`,`text`),production_deployments_enabled:e[`source-config-production-deployments-enabled`],repo_id:h(e[`source-config-repo-id`],`source-config-repo-id`,`text`),repo_name:h(e[`source-config-repo-name`],`source-config-repo-name`,`text`)},type:e[`source-type`]}},[[`deployment_configs`,`preview`,`ai_bindings`],[`deployment_configs`,`preview`,`analytics_engine_datasets`],[`deployment_configs`,`preview`,`browsers`],[`deployment_configs`,`preview`,`d1_databases`],[`deployment_configs`,`preview`,`durable_object_namespaces`],[`deployment_configs`,`preview`,`env_vars`],[`deployment_configs`,`preview`,`hyperdrive_bindings`],[`deployment_configs`,`preview`,`kv_namespaces`],[`deployment_configs`,`preview`,`mtls_certificates`],[`deployment_configs`,`preview`,`queue_producers`],[`deployment_configs`,`preview`,`r2_buckets`],[`deployment_configs`,`preview`,`services`],[`deployment_configs`,`preview`,`vectorize_bindings`],[`deployment_configs`,`production`,`ai_bindings`],[`deployment_configs`,`production`,`analytics_engine_datasets`],[`deployment_configs`,`production`,`browsers`],[`deployment_configs`,`production`,`d1_databases`],[`deployment_configs`,`production`,`durable_object_namespaces`],[`deployment_configs`,`production`,`env_vars`],[`deployment_configs`,`production`,`hyperdrive_bindings`],[`deployment_configs`,`production`,`kv_namespaces`],[`deployment_configs`,`production`,`mtls_certificates`],[`deployment_configs`,`production`,`queue_producers`],[`deployment_configs`,`production`,`r2_buckets`],[`deployment_configs`,`production`,`services`],[`deployment_configs`,`production`,`vectorize_bindings`]]):f(e.body),sensitiveBodyPaths:[[`build_config`,`web_analytics_token`]]});return}let t=e.body===void 0?void 0:f(e.body),n=await a(e),i=e.local?r:await s();if(e.accountId=i,e.body!==void 0){let r=t,a=await u(`Updating`,async()=>n.send(Z,{body:r,account_id:i,project_name:e[`project-name`]}));c(a,{successLabel:`Updated`});return}let d=m({build_config:{build_caching:e[`build-config-build-caching`],build_command:h(e[`build-config-build-command`],`build-config-build-command`,`text`),destination_dir:h(e[`build-config-destination-dir`],`build-config-destination-dir`,`text`),root_dir:h(e[`build-config-root-dir`],`build-config-root-dir`,`text`),web_analytics_tag:h(e[`build-config-web-analytics-tag`],`build-config-web-analytics-tag`,`text`),web_analytics_token:h(e[`build-config-web-analytics-token`],`build-config-web-analytics-token`,`text`)},deployment_configs:{preview:{ai_bindings:p(e[`deployment-configs-preview-ai-bindings`],`deployment-configs-preview-ai-bindings`),always_use_latest_compatibility_date:e[`deployment-configs-preview-always-use-latest-compatibility-date`],analytics_engine_datasets:p(e[`deployment-configs-preview-analytics-engine-datasets`],`deployment-configs-preview-analytics-engine-datasets`),browsers:p(e[`deployment-configs-preview-browsers`],`deployment-configs-preview-browsers`),build_image_major_version:e[`deployment-configs-preview-build-image-major-version`],compatibility_date:h(e[`deployment-configs-preview-compatibility-date`],`deployment-configs-preview-compatibility-date`,`text`),compatibility_flags:e[`deployment-configs-preview-compatibility-flags`],d1_databases:p(e[`deployment-configs-preview-d1-databases`],`deployment-configs-preview-d1-databases`),durable_object_namespaces:p(e[`deployment-configs-preview-durable-object-namespaces`],`deployment-configs-preview-durable-object-namespaces`),env_vars:p(e[`deployment-configs-preview-env-vars`],`deployment-configs-preview-env-vars`),fail_open:e[`deployment-configs-preview-fail-open`],hyperdrive_bindings:p(e[`deployment-configs-preview-hyperdrive-bindings`],`deployment-configs-preview-hyperdrive-bindings`),kv_namespaces:p(e[`deployment-configs-preview-kv-namespaces`],`deployment-configs-preview-kv-namespaces`),limits:{cpu_ms:e[`deployment-configs-preview-limits-cpu-ms`]},mtls_certificates:p(e[`deployment-configs-preview-mtls-certificates`],`deployment-configs-preview-mtls-certificates`),placement:{mode:h(e[`deployment-configs-preview-placement-mode`],`deployment-configs-preview-placement-mode`,`text`)},queue_producers:p(e[`deployment-configs-preview-queue-producers`],`deployment-configs-preview-queue-producers`),r2_buckets:p(e[`deployment-configs-preview-r2-buckets`],`deployment-configs-preview-r2-buckets`),services:p(e[`deployment-configs-preview-services`],`deployment-configs-preview-services`),usage_model:e[`deployment-configs-preview-usage-model`],vectorize_bindings:p(e[`deployment-configs-preview-vectorize-bindings`],`deployment-configs-preview-vectorize-bindings`),wrangler_config_hash:h(e[`deployment-configs-preview-wrangler-config-hash`],`deployment-configs-preview-wrangler-config-hash`,`text`)},production:{ai_bindings:p(e[`deployment-configs-production-ai-bindings`],`deployment-configs-production-ai-bindings`),always_use_latest_compatibility_date:e[`deployment-configs-production-always-use-latest-compatibility-date`],analytics_engine_datasets:p(e[`deployment-configs-production-analytics-engine-datasets`],`deployment-configs-production-analytics-engine-datasets`),browsers:p(e[`deployment-configs-production-browsers`],`deployment-configs-production-browsers`),build_image_major_version:e[`deployment-configs-production-build-image-major-version`],compatibility_date:h(e[`deployment-configs-production-compatibility-date`],`deployment-configs-production-compatibility-date`,`text`),compatibility_flags:e[`deployment-configs-production-compatibility-flags`],d1_databases:p(e[`deployment-configs-production-d1-databases`],`deployment-configs-production-d1-databases`),durable_object_namespaces:p(e[`deployment-configs-production-durable-object-namespaces`],`deployment-configs-production-durable-object-namespaces`),env_vars:p(e[`deployment-configs-production-env-vars`],`deployment-configs-production-env-vars`),fail_open:e[`deployment-configs-production-fail-open`],hyperdrive_bindings:p(e[`deployment-configs-production-hyperdrive-bindings`],`deployment-configs-production-hyperdrive-bindings`),kv_namespaces:p(e[`deployment-configs-production-kv-namespaces`],`deployment-configs-production-kv-namespaces`),limits:{cpu_ms:e[`deployment-configs-production-limits-cpu-ms`]},mtls_certificates:p(e[`deployment-configs-production-mtls-certificates`],`deployment-configs-production-mtls-certificates`),placement:{mode:h(e[`deployment-configs-production-placement-mode`],`deployment-configs-production-placement-mode`,`text`)},queue_producers:p(e[`deployment-configs-production-queue-producers`],`deployment-configs-production-queue-producers`),r2_buckets:p(e[`deployment-configs-production-r2-buckets`],`deployment-configs-production-r2-buckets`),services:p(e[`deployment-configs-production-services`],`deployment-configs-production-services`),usage_model:e[`deployment-configs-production-usage-model`],vectorize_bindings:p(e[`deployment-configs-production-vectorize-bindings`],`deployment-configs-production-vectorize-bindings`),wrangler_config_hash:h(e[`deployment-configs-production-wrangler-config-hash`],`deployment-configs-production-wrangler-config-hash`,`text`)}},name:h(e.name,`name`,`text`),production_branch:h(e[`production-branch`],`production-branch`,`text`),source:{config:{deployments_enabled:e[`source-config-deployments-enabled`],owner:h(e[`source-config-owner`],`source-config-owner`,`text`),owner_id:h(e[`source-config-owner-id`],`source-config-owner-id`,`text`),path_excludes:e[`source-config-path-excludes`],path_includes:e[`source-config-path-includes`],pr_comments_enabled:e[`source-config-pr-comments-enabled`],preview_branch_excludes:e[`source-config-preview-branch-excludes`],preview_branch_includes:e[`source-config-preview-branch-includes`],preview_deployment_setting:e[`source-config-preview-deployment-setting`],production_branch:h(e[`source-config-production-branch`],`source-config-production-branch`,`text`),production_deployments_enabled:e[`source-config-production-deployments-enabled`],repo_id:h(e[`source-config-repo-id`],`source-config-repo-id`,`text`),repo_name:h(e[`source-config-repo-name`],`source-config-repo-name`,`text`)},type:e[`source-type`]}},[[`deployment_configs`,`preview`,`ai_bindings`],[`deployment_configs`,`preview`,`analytics_engine_datasets`],[`deployment_configs`,`preview`,`browsers`],[`deployment_configs`,`preview`,`d1_databases`],[`deployment_configs`,`preview`,`durable_object_namespaces`],[`deployment_configs`,`preview`,`env_vars`],[`deployment_configs`,`preview`,`hyperdrive_bindings`],[`deployment_configs`,`preview`,`kv_namespaces`],[`deployment_configs`,`preview`,`mtls_certificates`],[`deployment_configs`,`preview`,`queue_producers`],[`deployment_configs`,`preview`,`r2_buckets`],[`deployment_configs`,`preview`,`services`],[`deployment_configs`,`preview`,`vectorize_bindings`],[`deployment_configs`,`production`,`ai_bindings`],[`deployment_configs`,`production`,`analytics_engine_datasets`],[`deployment_configs`,`production`,`browsers`],[`deployment_configs`,`production`,`d1_databases`],[`deployment_configs`,`production`,`durable_object_namespaces`],[`deployment_configs`,`production`,`env_vars`],[`deployment_configs`,`production`,`hyperdrive_bindings`],[`deployment_configs`,`production`,`kv_namespaces`],[`deployment_configs`,`production`,`mtls_certificates`],[`deployment_configs`,`production`,`queue_producers`],[`deployment_configs`,`production`,`r2_buckets`],[`deployment_configs`,`production`,`services`],[`deployment_configs`,`production`,`vectorize_bindings`]]),g=await u(`Updating`,async()=>n.send(Z,{body:d,account_id:i,project_name:e[`project-name`]}));c(g,{successLabel:`Updated`})})};var Se={method:`GET`,path:e=>t`/accounts/${e.account_id}/pages/projects/${e.project_name}`};function Ce(e){return e.usage(`$0 pages get <project-name>
39
39
 
40
40
  Retrieve the configuration and deployment settings for a Cloudflare Pages project.`).positional(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const we={command:`get <project-name>`,describe:`Get a Cloudflare Pages project`,builder:Ce,handler:async e=>d({command:`pages get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf pages get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}`,pathParams:{"project-name":String(e[`project-name`]??``)},bodyKind:`none`});return}let t=await a(e),n=e.local?r:await s();e.accountId=n;let i=await u(`Loading`,async()=>t.send(Se,{account_id:n,project_name:e[`project-name`]}));c(i,{successLabel:`Loaded`})})};var Te={method:`GET`,path:e=>t`/accounts/${e.account_id}/pages/projects`,query:[`page`,`per_page`]};function Ee(e){return e.usage(`$0 pages list
41
41
 
@@ -43,6 +43,6 @@ List the Cloudflare Pages projects in an account.`).option(`page`,{type:`number`
43
43
 
44
44
  Connect a GitHub or GitLab repository to a Cloudflare Pages project to enable Git-based deployments.`).positional(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,demandOption:!0}).option(`source-config-deployments-enabled`,{type:`boolean`,description:`Whether to enable automatic deployments when pushing to the source repository.
45
45
  When disabled, no deployments (production or preview) will be triggered automatically.
46
- `}).option(`source-config-owner`,{type:`string`,description:`The owner of the repository.`}).option(`source-config-owner-id`,{type:`string`,description:`The owner ID of the repository.`}).option(`source-config-path-excludes`,{type:`string`,array:!0,description:"A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (`*`) is supported."}).option(`source-config-path-includes`,{type:`string`,array:!0,description:"A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (`*`) is supported."}).option(`source-config-pr-comments-enabled`,{type:`boolean`,description:`Whether to enable PR comments.`}).option(`source-config-preview-branch-excludes`,{type:`string`,array:!0,description:"A list of branches that should not trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`."}).option(`source-config-preview-branch-includes`,{type:`string`,array:!0,description:"A list of branches that should trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`."}).option(`source-config-preview-deployment-setting`,{type:`string`,description:`Controls whether commits to preview branches trigger a preview deployment.`,choices:[`all`,`none`,`custom`]}).coerce(`source-config-preview-deployment-setting`,e=>h(e,`source-config-preview-deployment-setting`,`text`)).option(`source-config-production-branch`,{type:`string`,description:`The production branch of the repository.`}).option(`source-config-production-deployments-enabled`,{type:`boolean`,description:`Whether to trigger a production deployment on commits to the production branch.`}).option(`source-config-repo-id`,{type:`string`,description:`The ID of the repository.`}).option(`source-config-repo-name`,{type:`string`,description:`The name of the repository.`}).option(`type`,{type:`string`,description:`The source control management provider.`,choices:[`github`,`gitlab`]}).coerce(`type`,e=>h(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Repository and deployment settings for connecting a Git repository to a Pages project.`})}const Oe={command:`connect <project-name>`,describe:`Connect a Git repository`,builder:$,handler:async e=>d({command:`pages source connect`,classification:{safeFlags:[`source-config-deployments-enabled`,`source-config-pr-comments-enabled`,`source-config-preview-deployment-setting`,`source-config-production-deployments-enabled`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf pages source connect`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/source`,pathParams:{"project-name":String(e[`project-name`]??``)},bodyKind:`json`,body:e.body===void 0?m({config:{deployments_enabled:e[`source-config-deployments-enabled`],owner:h(e[`source-config-owner`],`source-config-owner`,`text`),owner_id:h(e[`source-config-owner-id`],`source-config-owner-id`,`text`),path_excludes:e[`source-config-path-excludes`],path_includes:e[`source-config-path-includes`],pr_comments_enabled:e[`source-config-pr-comments-enabled`],preview_branch_excludes:e[`source-config-preview-branch-excludes`],preview_branch_includes:e[`source-config-preview-branch-includes`],preview_deployment_setting:e[`source-config-preview-deployment-setting`],production_branch:h(e[`source-config-production-branch`],`source-config-production-branch`,`text`),production_deployments_enabled:e[`source-config-production-deployments-enabled`],repo_id:h(e[`source-config-repo-id`],`source-config-repo-id`,`text`),repo_name:h(e[`source-config-repo-name`],`source-config-repo-name`,`text`)},type:e.type}):f(e.body)});return}let t=await a(e),n=e.local?r:await s();if(e.accountId=n,e.body){let r=f(e.body),i=await u(`Creating`,async()=>t.send(Q,{body:r,account_id:n,project_name:e[`project-name`]}));c(i,{successLabel:`Created`});return}if(e[`source-config-deployments-enabled`]===void 0)throw Error(`--source-config-deployments-enabled is required (or pass --body with this field set).`);if(e[`source-config-owner`]===void 0&&(e[`source-config-owner`]=await g(`source-config-owner`,`The owner of the repository.`)),e[`source-config-owner-id`]===void 0&&(e[`source-config-owner-id`]=await g(`source-config-owner-id`,`The owner ID of the repository.`)),e[`source-config-path-excludes`]===void 0)throw Error(`--source-config-path-excludes is required (or pass --body with this field set).`);if(e[`source-config-path-includes`]===void 0)throw Error(`--source-config-path-includes is required (or pass --body with this field set).`);if(e[`source-config-pr-comments-enabled`]===void 0)throw Error(`--source-config-pr-comments-enabled is required (or pass --body with this field set).`);if(e[`source-config-preview-branch-excludes`]===void 0)throw Error(`--source-config-preview-branch-excludes is required (or pass --body with this field set).`);if(e[`source-config-preview-branch-includes`]===void 0)throw Error(`--source-config-preview-branch-includes is required (or pass --body with this field set).`);if(e[`source-config-preview-deployment-setting`]===void 0&&(e[`source-config-preview-deployment-setting`]=await _(`source-config-preview-deployment-setting`,`Controls whether commits to preview branches trigger a preview deployment.`,[`all`,`none`,`custom`])),e[`source-config-production-branch`]===void 0&&(e[`source-config-production-branch`]=await g(`source-config-production-branch`,`The production branch of the repository.`)),e[`source-config-production-deployments-enabled`]===void 0)throw Error(`--source-config-production-deployments-enabled is required (or pass --body with this field set).`);e[`source-config-repo-id`]===void 0&&(e[`source-config-repo-id`]=await g(`source-config-repo-id`,`The ID of the repository.`)),e[`source-config-repo-name`]===void 0&&(e[`source-config-repo-name`]=await g(`source-config-repo-name`,`The name of the repository.`)),e.type===void 0&&(e.type=await _(`type`,`The source control management provider.`,[`github`,`gitlab`]));let i=m({config:{deployments_enabled:e[`source-config-deployments-enabled`],owner:h(e[`source-config-owner`],`source-config-owner`,`text`),owner_id:h(e[`source-config-owner-id`],`source-config-owner-id`,`text`),path_excludes:e[`source-config-path-excludes`],path_includes:e[`source-config-path-includes`],pr_comments_enabled:e[`source-config-pr-comments-enabled`],preview_branch_excludes:e[`source-config-preview-branch-excludes`],preview_branch_includes:e[`source-config-preview-branch-includes`],preview_deployment_setting:e[`source-config-preview-deployment-setting`],production_branch:h(e[`source-config-production-branch`],`source-config-production-branch`,`text`),production_deployments_enabled:e[`source-config-production-deployments-enabled`],repo_id:h(e[`source-config-repo-id`],`source-config-repo-id`,`text`),repo_name:h(e[`source-config-repo-name`],`source-config-repo-name`,`text`)},type:e.type}),d=await u(`Creating`,async()=>t.send(Q,{body:i,account_id:n,project_name:e[`project-name`]}));c(d,{successLabel:`Created`})})};var ke={method:`DELETE`,path:e=>t`/accounts/${e.account_id}/pages/projects/${e.project_name}/source`};function Ae(e){return e.usage(`$0 pages source disconnect <project-name>
46
+ `}).option(`source-config-owner`,{type:`string`,description:`The owner of the repository.`}).option(`source-config-owner-id`,{type:`string`,description:`The owner ID of the repository.`}).option(`source-config-path-excludes`,{type:`string`,array:!0,description:"A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (`*`) is supported."}).option(`source-config-path-includes`,{type:`string`,array:!0,description:"A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (`*`) is supported."}).option(`source-config-pr-comments-enabled`,{type:`boolean`,description:`Whether to enable PR comments.`}).option(`source-config-preview-branch-excludes`,{type:`string`,array:!0,description:"A list of branches that should not trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`."}).option(`source-config-preview-branch-includes`,{type:`string`,array:!0,description:"A list of branches that should trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`."}).option(`source-config-preview-deployment-setting`,{type:`string`,description:`Controls whether commits to preview branches trigger a preview deployment.`,choices:[`all`,`none`,`custom`]}).coerce(`source-config-preview-deployment-setting`,e=>h(e,`source-config-preview-deployment-setting`,`text`)).option(`source-config-production-branch`,{type:`string`,description:`The production branch of the repository.`}).option(`source-config-production-deployments-enabled`,{type:`boolean`,description:`Whether to trigger a production deployment on commits to the production branch.`}).option(`source-config-repo-id`,{type:`string`,description:`The ID of the repository.`}).option(`source-config-repo-name`,{type:`string`,description:`The name of the repository.`}).option(`type`,{type:`string`,description:`The source control management provider.`,choices:[`github`,`gitlab`]}).coerce(`type`,e=>h(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Repository and deployment settings for connecting a Git repository to a Pages project.`})}const Oe={command:`connect <project-name>`,describe:`Connect a Git repository`,builder:$,handler:async e=>d({command:`pages source connect`,classification:{safeFlags:[`source-config-deployments-enabled`,`source-config-pr-comments-enabled`,`source-config-preview-deployment-setting`,`source-config-production-deployments-enabled`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf pages source connect`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/source`,pathParams:{"project-name":String(e[`project-name`]??``)},bodyKind:`json`,body:e.body===void 0?m({config:{deployments_enabled:e[`source-config-deployments-enabled`],owner:h(e[`source-config-owner`],`source-config-owner`,`text`),owner_id:h(e[`source-config-owner-id`],`source-config-owner-id`,`text`),path_excludes:e[`source-config-path-excludes`],path_includes:e[`source-config-path-includes`],pr_comments_enabled:e[`source-config-pr-comments-enabled`],preview_branch_excludes:e[`source-config-preview-branch-excludes`],preview_branch_includes:e[`source-config-preview-branch-includes`],preview_deployment_setting:e[`source-config-preview-deployment-setting`],production_branch:h(e[`source-config-production-branch`],`source-config-production-branch`,`text`),production_deployments_enabled:e[`source-config-production-deployments-enabled`],repo_id:h(e[`source-config-repo-id`],`source-config-repo-id`,`text`),repo_name:h(e[`source-config-repo-name`],`source-config-repo-name`,`text`)},type:e.type}):f(e.body)});return}let t=e.body===void 0?void 0:f(e.body),n=await a(e),i=e.local?r:await s();if(e.accountId=i,e.body!==void 0){let r=t,a=await u(`Creating`,async()=>n.send(Q,{body:r,account_id:i,project_name:e[`project-name`]}));c(a,{successLabel:`Created`});return}if(e[`source-config-deployments-enabled`]===void 0)throw Error(`--source-config-deployments-enabled is required (or pass --body with this field set).`);if(e[`source-config-owner`]===void 0&&(e[`source-config-owner`]=await _(`source-config-owner`,`The owner of the repository.`)),e[`source-config-owner-id`]===void 0&&(e[`source-config-owner-id`]=await _(`source-config-owner-id`,`The owner ID of the repository.`)),e[`source-config-path-excludes`]===void 0)throw Error(`--source-config-path-excludes is required (or pass --body with this field set).`);if(e[`source-config-path-includes`]===void 0)throw Error(`--source-config-path-includes is required (or pass --body with this field set).`);if(e[`source-config-pr-comments-enabled`]===void 0)throw Error(`--source-config-pr-comments-enabled is required (or pass --body with this field set).`);if(e[`source-config-preview-branch-excludes`]===void 0)throw Error(`--source-config-preview-branch-excludes is required (or pass --body with this field set).`);if(e[`source-config-preview-branch-includes`]===void 0)throw Error(`--source-config-preview-branch-includes is required (or pass --body with this field set).`);if(e[`source-config-preview-deployment-setting`]===void 0&&(e[`source-config-preview-deployment-setting`]=await v(`source-config-preview-deployment-setting`,`Controls whether commits to preview branches trigger a preview deployment.`,[`all`,`none`,`custom`])),e[`source-config-production-branch`]===void 0&&(e[`source-config-production-branch`]=await _(`source-config-production-branch`,`The production branch of the repository.`)),e[`source-config-production-deployments-enabled`]===void 0)throw Error(`--source-config-production-deployments-enabled is required (or pass --body with this field set).`);e[`source-config-repo-id`]===void 0&&(e[`source-config-repo-id`]=await _(`source-config-repo-id`,`The ID of the repository.`)),e[`source-config-repo-name`]===void 0&&(e[`source-config-repo-name`]=await _(`source-config-repo-name`,`The name of the repository.`)),e.type===void 0&&(e.type=await v(`type`,`The source control management provider.`,[`github`,`gitlab`]));let d=m({config:{deployments_enabled:e[`source-config-deployments-enabled`],owner:h(e[`source-config-owner`],`source-config-owner`,`text`),owner_id:h(e[`source-config-owner-id`],`source-config-owner-id`,`text`),path_excludes:e[`source-config-path-excludes`],path_includes:e[`source-config-path-includes`],pr_comments_enabled:e[`source-config-pr-comments-enabled`],preview_branch_excludes:e[`source-config-preview-branch-excludes`],preview_branch_includes:e[`source-config-preview-branch-includes`],preview_deployment_setting:e[`source-config-preview-deployment-setting`],production_branch:h(e[`source-config-production-branch`],`source-config-production-branch`,`text`),production_deployments_enabled:e[`source-config-production-deployments-enabled`],repo_id:h(e[`source-config-repo-id`],`source-config-repo-id`,`text`),repo_name:h(e[`source-config-repo-name`],`source-config-repo-name`,`text`)},type:e.type}),p=await u(`Creating`,async()=>n.send(Q,{body:d,account_id:i,project_name:e[`project-name`]}));c(p,{successLabel:`Created`})})};var ke={method:`DELETE`,path:e=>t`/accounts/${e.account_id}/pages/projects/${e.project_name}/source`};function Ae(e){return e.usage(`$0 pages source disconnect <project-name>
47
47
 
48
- Disconnect the Git repository from a Cloudflare Pages project to stop Git-based deployments.`).positional(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,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 je={command:`disconnect <project-name>`,describe:`Disconnect a Git repository`,builder:Ae,handler:async e=>d({command:`pages source disconnect`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf pages source disconnect`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/source`,pathParams:{"project-name":String(e[`project-name`]??``)},bodyKind:`none`});return}let t=await a(e),n=e.local?r:await s();if(e.accountId=n,!await v({force:!!e.force}))return;let i=await u(`Deleting`,async()=>t.send(ke,{account_id:n,project_name:e[`project-name`]}));c(i,{successLabel:`Deleted`})})},Me={command:`source`,describe:`Operations for source`,builder:e=>e.command(Oe).command(je).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ne=e(`deploy [directory]`,`Deploy a directory of static assets as a Pages deployment`,()=>import(`./command-C2FVMd1b.mjs`),{command:`pages deploy`,recordArgs:!1});const Pe={command:`pages`,describe:`Full-stack application hosting with Git-integrated builds, preview deployments, and custom domains`,builder:e=>e.command(S).command(T).command(n(Ne,`preview`)).command(xe).command(we).command(De).command(re).command(Y).command(ye).command(Me).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Pe as default};
48
+ Disconnect the Git repository from a Cloudflare Pages project to stop Git-based deployments.`).positional(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,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 je={command:`disconnect <project-name>`,describe:`Disconnect a Git repository`,builder:Ae,handler:async e=>d({command:`pages source disconnect`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf pages source disconnect`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/source`,pathParams:{"project-name":String(e[`project-name`]??``)},bodyKind:`none`});return}let t=await a(e),n=e.local?r:await s();if(e.accountId=n,!await y({force:!!e.force}))return;let i=await u(`Deleting`,async()=>t.send(ke,{account_id:n,project_name:e[`project-name`]}));c(i,{successLabel:`Deleted`})})},Me={command:`source`,describe:`Operations for source`,builder:e=>e.command(Oe).command(je).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ne=e(`deploy [directory]`,`Deploy a directory of static assets as a Pages deployment`,()=>import(`./command-DwzVtmb3.mjs`),{command:`pages deploy`,recordArgs:!1});const Pe={command:`pages`,describe:`Full-stack application hosting with Git-integrated builds, preview deployments, and custom domains`,builder:e=>e.command(S).command(T).command(n(Ne,`preview`)).command(xe).command(we).command(De).command(ne).command(Y).command(ye).command(Me).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Pe as default};
@@ -1,25 +1,25 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CgBhtmON.mjs";import{n}from"./auth-FK2eLQ02.mjs";import{a as r,i,t as a}from"./context-Dp4CXG22.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-DLri-rA7.mjs";import{t as l}from"./run-Ciw_GIrC.mjs";import"./telemetry-Pt5GpCKD.mjs";import{a as u,n as d,r as f,t as p}from"./body-parser-BKcZS9iJ.mjs";import{n as m}from"./prompt-D0dXwuME.mjs";var h={method:`POST`,path:t=>e`/zones/${t.zone_id}/pay-per-crawl/configuration`,body:`json`,errors:{400:`BadRequestError`}};function ee(e){return e.usage(`$0 pay-per-crawl config create
2
+ import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-DIJ7SIKC.mjs";import{n}from"./auth-B-h0BHg7.mjs";import{a as r,i,t as a}from"./context-BY1Eh_Qe.mjs";import{t as o}from"./output-BZQEl3mK.mjs";import{t as s}from"./dry-run-kJbjn4kG.mjs";import{t as c}from"./progress-yvPscjYg.mjs";import{t as l}from"./run-BOKI1uWa.mjs";import"./telemetry-DkDUr4KK.mjs";import{a as u,n as d,r as f,t as p}from"./body-parser-DoewLePl.mjs";import{n as m}from"./prompt-CEpZ-lQZ.mjs";var h={method:`POST`,path:t=>e`/zones/${t.zone_id}/pay-per-crawl/configuration`,body:`json`,errors:{400:`BadRequestError`}};function ee(e){return e.usage(`$0 pay-per-crawl config create
3
3
 
4
- Creates the pay-per-crawl config for a zone.`).option(`bot-overrides`,{type:`string`,description:`The bot_overrides field. Provide as a JSON object or @path/to/file.json.`}).option(`enabled`,{type:`boolean`,description:`The enabled field`}).option(`price-usd-microcents`,{type:`number`,description:`Price in microcents 1 USD = 100,000,000 microcents. Must be 0 or a multiple of 100,000 $0.001. Range: $0.001–$9,999.999.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Data for fully replacing a pay-per-crawl zone configuration`})}const g={command:`create`,describe:`Creates pay-per-crawl config for a zone`,builder:ee,handler:async e=>l({command:`pay-per-crawl config create`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf pay-per-crawl config create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/pay-per-crawl/configuration`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({bot_overrides:f(e[`bot-overrides`],`bot-overrides`,!0),enabled:e.enabled,price_usd_microcents:e[`price-usd-microcents`]},[[`bot_overrides`]]):d(e.body,[{path:[`bot_overrides`],flag:`bot-overrides`}])});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body,[{path:[`bot_overrides`],flag:`bot-overrides`}]),i=await c(`Creating`,async()=>t.send(h,{body:n,zone_id:r}));o(i,{successLabel:`Created`});return}if(e[`bot-overrides`]===void 0)throw Error(`--bot-overrides is required (or pass --body with this field set).`);if(e.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);if(e[`price-usd-microcents`]===void 0)throw Error(`--price-usd-microcents is required (or pass --body with this field set).`);let a=p({bot_overrides:f(e[`bot-overrides`],`bot-overrides`,!0),enabled:e.enabled,price_usd_microcents:e[`price-usd-microcents`]},[[`bot_overrides`]]),l=await c(`Creating`,async()=>t.send(h,{body:a,zone_id:r}));o(l,{successLabel:`Created`})})};var _={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/pay-per-crawl/configuration`,body:`json`,errors:{400:`BadRequestError`}};function te(e){return e.usage(`$0 pay-per-crawl config edit
4
+ Creates the pay-per-crawl config for a zone.`).option(`bot-overrides`,{type:`string`,description:`The bot_overrides field. Provide as a JSON object or @path/to/file.json.`}).option(`enabled`,{type:`boolean`,description:`The enabled field`}).option(`price-usd-microcents`,{type:`number`,description:`Price in microcents 1 USD = 100,000,000 microcents. Must be 0 or a multiple of 100,000 $0.001. Range: $0.001–$9,999.999.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Data for fully replacing a pay-per-crawl zone configuration`})}const g={command:`create`,describe:`Creates pay-per-crawl config for a zone`,builder:ee,handler:async e=>l({command:`pay-per-crawl config create`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf pay-per-crawl config create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/pay-per-crawl/configuration`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({bot_overrides:f(e[`bot-overrides`],`bot-overrides`,!0),enabled:e.enabled,price_usd_microcents:e[`price-usd-microcents`]},[[`bot_overrides`]]):d(e.body,[{path:[`bot_overrides`],flag:`bot-overrides`}])});return}let t=e.body===void 0?void 0:d(e.body,[{path:[`bot_overrides`],flag:`bot-overrides`}]),r=await n(e),a=await i({zone:e.zone},r,{quiet:e.quiet});if(e.zoneId=a,e.body!==void 0){let e=t,n=await c(`Creating`,async()=>r.send(h,{body:e,zone_id:a}));o(n,{successLabel:`Created`});return}if(e[`bot-overrides`]===void 0)throw Error(`--bot-overrides is required (or pass --body with this field set).`);if(e.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);if(e[`price-usd-microcents`]===void 0)throw Error(`--price-usd-microcents is required (or pass --body with this field set).`);let l=p({bot_overrides:f(e[`bot-overrides`],`bot-overrides`,!0),enabled:e.enabled,price_usd_microcents:e[`price-usd-microcents`]},[[`bot_overrides`]]),u=await c(`Creating`,async()=>r.send(h,{body:l,zone_id:a}));o(u,{successLabel:`Created`})})};var _={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/pay-per-crawl/configuration`,body:`json`,errors:{400:`BadRequestError`}};function te(e){return e.usage(`$0 pay-per-crawl config edit
5
5
 
6
- Changes the pay-per-crawl config for a zone.`).option(`bot-overrides`,{type:`string`,description:`The bot_overrides field. Provide as a JSON object or @path/to/file.json.`}).option(`enabled`,{type:`boolean`,description:`The enabled field`}).option(`price-usd-microcents`,{type:`number`,description:`Price in microcents 1 USD = 100,000,000 microcents. Must be 0 or a multiple of 100,000 $0.001. Range: $0.001–$9,999.999.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Data for setting flag on zones`})}const ne={command:`edit`,describe:`Changes pay-per-crawl config for a zone`,builder:te,handler:async e=>l({command:`pay-per-crawl config edit`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf pay-per-crawl config edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/pay-per-crawl/configuration`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({bot_overrides:f(e[`bot-overrides`],`bot-overrides`),enabled:e.enabled,price_usd_microcents:e[`price-usd-microcents`]},[[`bot_overrides`]]):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Updating`,async()=>t.send(_,{body:n,zone_id:r}));o(i,{successLabel:`Updated`});return}let a=p({bot_overrides:f(e[`bot-overrides`],`bot-overrides`),enabled:e.enabled,price_usd_microcents:e[`price-usd-microcents`]},[[`bot_overrides`]]),l=await c(`Updating`,async()=>t.send(_,{body:a,zone_id:r}));o(l,{successLabel:`Updated`})})};var v={method:`GET`,path:t=>e`/zones/${t.zone_id}/pay-per-crawl/configuration`,errors:{400:`BadRequestError`}};function y(e){return e.usage(`$0 pay-per-crawl config get
6
+ Changes the pay-per-crawl config for a zone.`).option(`bot-overrides`,{type:`string`,description:`The bot_overrides field. Provide as a JSON object or @path/to/file.json.`}).option(`enabled`,{type:`boolean`,description:`The enabled field`}).option(`price-usd-microcents`,{type:`number`,description:`Price in microcents 1 USD = 100,000,000 microcents. Must be 0 or a multiple of 100,000 $0.001. Range: $0.001–$9,999.999.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Data for setting flag on zones`})}const v={command:`edit`,describe:`Changes pay-per-crawl config for a zone`,builder:te,handler:async e=>l({command:`pay-per-crawl config edit`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf pay-per-crawl config edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/pay-per-crawl/configuration`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({bot_overrides:f(e[`bot-overrides`],`bot-overrides`),enabled:e.enabled,price_usd_microcents:e[`price-usd-microcents`]},[[`bot_overrides`]]):d(e.body)});return}let t=e.body===void 0?void 0:d(e.body),r=await n(e),a=await i({zone:e.zone},r,{quiet:e.quiet});if(e.zoneId=a,e.body!==void 0){let e=t,n=await c(`Updating`,async()=>r.send(_,{body:e,zone_id:a}));o(n,{successLabel:`Updated`});return}let l=p({bot_overrides:f(e[`bot-overrides`],`bot-overrides`),enabled:e.enabled,price_usd_microcents:e[`price-usd-microcents`]},[[`bot_overrides`]]),u=await c(`Updating`,async()=>r.send(_,{body:l,zone_id:a}));o(u,{successLabel:`Updated`})})};var y={method:`GET`,path:t=>e`/zones/${t.zone_id}/pay-per-crawl/configuration`,errors:{400:`BadRequestError`}};function b(e){return e.usage(`$0 pay-per-crawl config get
7
7
 
8
- Gets the pay-per-crawl config for a zone including the bot configuration.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const b={command:`get`,describe:`Get the pay-per-crawl config`,builder:y,handler:async e=>l({command:`pay-per-crawl config get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf pay-per-crawl config get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/pay-per-crawl/configuration`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(v,{zone_id:r}));o(a,{successLabel:`Loaded`})})},x={command:`config`,describe:`Operations for config`,builder:e=>e.command(g).command(ne).command(b).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var S={method:`POST`,path:t=>e`/accounts/${t.account_id}/pay-per-crawl/crawler/stripe`,errors:{400:`BadRequestError`}};function C(e){return e.usage(`$0 pay-per-crawl crawler stripe create
8
+ Gets the pay-per-crawl config for a zone including the bot configuration.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`get`,describe:`Get the pay-per-crawl config`,builder:b,handler:async e=>l({command:`pay-per-crawl config get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf pay-per-crawl config get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/pay-per-crawl/configuration`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(y,{zone_id:r}));o(a,{successLabel:`Loaded`})})},S={command:`config`,describe:`Operations for config`,builder:e=>e.command(g).command(v).command(x).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var C={method:`POST`,path:t=>e`/accounts/${t.account_id}/pay-per-crawl/crawler/stripe`,errors:{400:`BadRequestError`}};function w(e){return e.usage(`$0 pay-per-crawl crawler stripe create
9
9
 
10
- Creates the stripe config for a crawler.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const w={command:`create`,describe:`Creates the stripe config for a crawler`,builder:C,handler:async e=>l({command:`pay-per-crawl crawler stripe create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await r();s({command:`cf pay-per-crawl crawler stripe create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/pay-per-crawl/crawler/stripe`,pathParams:{},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Creating`,async()=>i.send(S,{account_id:l}));o(u,{successLabel:`Created`})})};var T={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/pay-per-crawl/crawler/stripe`,errors:{400:`BadRequestError`}};function E(e){return e.usage(`$0 pay-per-crawl crawler stripe delete
10
+ Creates the stripe config for a crawler.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const T={command:`create`,describe:`Creates the stripe config for a crawler`,builder:w,handler:async e=>l({command:`pay-per-crawl crawler stripe create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await r();s({command:`cf pay-per-crawl crawler stripe create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/pay-per-crawl/crawler/stripe`,pathParams:{},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Creating`,async()=>i.send(C,{account_id:l}));o(u,{successLabel:`Created`})})};var E={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/pay-per-crawl/crawler/stripe`,errors:{400:`BadRequestError`}};function D(e){return e.usage(`$0 pay-per-crawl crawler stripe delete
11
11
 
12
- Deletes the stripe config for a crawler.`).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 D={command:`delete`,describe:`Deletes the stripe config for a crawler`,builder:E,handler:async e=>l({command:`pay-per-crawl crawler stripe delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let e=await r();s({command:`cf pay-per-crawl crawler stripe delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/pay-per-crawl/crawler/stripe`,pathParams:{},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();if(e.accountId=l,!await m({force:!!e.force}))return;let u=await c(`Deleting`,async()=>i.send(T,{account_id:l}));o(u,{successLabel:`Deleted`})})};var O={method:`GET`,path:t=>e`/accounts/${t.account_id}/pay-per-crawl/crawler/stripe`,errors:{400:`BadRequestError`}};function k(e){return e.usage(`$0 pay-per-crawl crawler stripe get
12
+ Deletes the stripe config for a crawler.`).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 O={command:`delete`,describe:`Deletes the stripe config for a crawler`,builder:D,handler:async e=>l({command:`pay-per-crawl crawler stripe delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let e=await r();s({command:`cf pay-per-crawl crawler stripe delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/pay-per-crawl/crawler/stripe`,pathParams:{},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();if(e.accountId=l,!await m({force:!!e.force}))return;let u=await c(`Deleting`,async()=>i.send(E,{account_id:l}));o(u,{successLabel:`Deleted`})})};var k={method:`GET`,path:t=>e`/accounts/${t.account_id}/pay-per-crawl/crawler/stripe`,errors:{400:`BadRequestError`}};function A(e){return e.usage(`$0 pay-per-crawl crawler stripe get
13
13
 
14
- Gets the stripe config for a crawler.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const A={command:`get`,describe:`Gets the stripe config for a crawler`,builder:k,handler:async e=>l({command:`pay-per-crawl crawler stripe get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await r();s({command:`cf pay-per-crawl crawler stripe get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/pay-per-crawl/crawler/stripe`,pathParams:{},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>i.send(O,{account_id:l}));o(u,{successLabel:`Loaded`})})},j={command:`stripe`,describe:`Operations for crawler.stripe`,builder:e=>e.command(w).command(D).command(A).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},M={command:`crawler`,describe:`Operations for crawler`,builder:e=>e.command(j).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var N={method:`GET`,path:t=>e`/accounts/${t.account_id}/pay-per-crawl/crawlers`,errors:{400:`BadRequestError`}};function P(e){return e.usage(`$0 pay-per-crawl crawlers list
14
+ Gets the stripe config for a crawler.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const j={command:`get`,describe:`Gets the stripe config for a crawler`,builder:A,handler:async e=>l({command:`pay-per-crawl crawler stripe get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await r();s({command:`cf pay-per-crawl crawler stripe get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/pay-per-crawl/crawler/stripe`,pathParams:{},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>i.send(k,{account_id:l}));o(u,{successLabel:`Loaded`})})},M={command:`stripe`,describe:`Operations for crawler.stripe`,builder:e=>e.command(T).command(O).command(j).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},N={command:`crawler`,describe:`Operations for crawler`,builder:e=>e.command(M).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var P={method:`GET`,path:t=>e`/accounts/${t.account_id}/pay-per-crawl/crawlers`,errors:{400:`BadRequestError`}};function F(e){return e.usage(`$0 pay-per-crawl crawlers list
15
15
 
16
- Lists the crawlers known to pay-per-crawl.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const F={command:`list`,describe:`List pay-per-crawl crawlers`,builder:P,handler:async e=>l({command:`pay-per-crawl crawlers list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await r();s({command:`cf pay-per-crawl crawlers list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/pay-per-crawl/crawlers`,pathParams:{},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>i.send(N,{account_id:l}));o(u,{successLabel:`Loaded`})})},I={command:`crawlers`,describe:`Operations for crawlers`,builder:e=>e.command(F).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var L={method:`POST`,path:t=>e`/accounts/${t.account_id}/pay-per-crawl/publisher/stripe`,errors:{400:`BadRequestError`}};function R(e){return e.usage(`$0 pay-per-crawl publisher stripe create
16
+ Lists the crawlers known to pay-per-crawl.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const I={command:`list`,describe:`List pay-per-crawl crawlers`,builder:F,handler:async e=>l({command:`pay-per-crawl crawlers list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await r();s({command:`cf pay-per-crawl crawlers list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/pay-per-crawl/crawlers`,pathParams:{},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>i.send(P,{account_id:l}));o(u,{successLabel:`Loaded`})})},L={command:`crawlers`,describe:`Operations for crawlers`,builder:e=>e.command(I).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var R={method:`POST`,path:t=>e`/accounts/${t.account_id}/pay-per-crawl/publisher/stripe`,errors:{400:`BadRequestError`}};function z(e){return e.usage(`$0 pay-per-crawl publisher stripe create
17
17
 
18
- Creates the stripe config for a publisher.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const z={command:`create`,describe:`Creates the stripe config for a publisher`,builder:R,handler:async e=>l({command:`pay-per-crawl publisher stripe create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await r();s({command:`cf pay-per-crawl publisher stripe create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/pay-per-crawl/publisher/stripe`,pathParams:{},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Creating`,async()=>i.send(L,{account_id:l}));o(u,{successLabel:`Created`})})};var B={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/pay-per-crawl/publisher/stripe`,errors:{400:`BadRequestError`}};function V(e){return e.usage(`$0 pay-per-crawl publisher stripe delete
18
+ Creates the stripe config for a publisher.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const B={command:`create`,describe:`Creates the stripe config for a publisher`,builder:z,handler:async e=>l({command:`pay-per-crawl publisher stripe create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await r();s({command:`cf pay-per-crawl publisher stripe create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/pay-per-crawl/publisher/stripe`,pathParams:{},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Creating`,async()=>i.send(R,{account_id:l}));o(u,{successLabel:`Created`})})};var V={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/pay-per-crawl/publisher/stripe`,errors:{400:`BadRequestError`}};function ne(e){return e.usage(`$0 pay-per-crawl publisher stripe delete
19
19
 
20
- Deletes the stripe config for a publisher.`).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 H={command:`delete`,describe:`Deletes the stripe config for a publisher`,builder:V,handler:async e=>l({command:`pay-per-crawl publisher stripe delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let e=await r();s({command:`cf pay-per-crawl publisher stripe delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/pay-per-crawl/publisher/stripe`,pathParams:{},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();if(e.accountId=l,!await m({force:!!e.force}))return;let u=await c(`Deleting`,async()=>i.send(B,{account_id:l}));o(u,{successLabel:`Deleted`})})};var U={method:`GET`,path:t=>e`/accounts/${t.account_id}/pay-per-crawl/publisher/stripe`,errors:{400:`BadRequestError`}};function W(e){return e.usage(`$0 pay-per-crawl publisher stripe get
20
+ Deletes the stripe config for a publisher.`).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 H={command:`delete`,describe:`Deletes the stripe config for a publisher`,builder:ne,handler:async e=>l({command:`pay-per-crawl publisher stripe delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let e=await r();s({command:`cf pay-per-crawl publisher stripe delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/pay-per-crawl/publisher/stripe`,pathParams:{},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();if(e.accountId=l,!await m({force:!!e.force}))return;let u=await c(`Deleting`,async()=>i.send(V,{account_id:l}));o(u,{successLabel:`Deleted`})})};var U={method:`GET`,path:t=>e`/accounts/${t.account_id}/pay-per-crawl/publisher/stripe`,errors:{400:`BadRequestError`}};function W(e){return e.usage(`$0 pay-per-crawl publisher stripe get
21
21
 
22
- Gets the stripe config for a publisher.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const G={command:`get`,describe:`Gets the stripe config for a publisher`,builder:W,handler:async e=>l({command:`pay-per-crawl publisher stripe get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await r();s({command:`cf pay-per-crawl publisher stripe get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/pay-per-crawl/publisher/stripe`,pathParams:{},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>i.send(U,{account_id:l}));o(u,{successLabel:`Loaded`})})},K={command:`stripe`,describe:`Operations for publisher.stripe`,builder:e=>e.command(z).command(H).command(G).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},q={command:`publisher`,describe:`Operations for publisher`,builder:e=>e.command(K).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var J={method:`GET`,path:t=>e`/accounts/${t.account_id}/pay-per-crawl/signature_link`,errors:{400:`BadRequestError`}};function Y(e){return e.usage(`$0 pay-per-crawl terms get-signature-link
22
+ Gets the stripe config for a publisher.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const G={command:`get`,describe:`Gets the stripe config for a publisher`,builder:W,handler:async e=>l({command:`pay-per-crawl publisher stripe get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await r();s({command:`cf pay-per-crawl publisher stripe get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/pay-per-crawl/publisher/stripe`,pathParams:{},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>i.send(U,{account_id:l}));o(u,{successLabel:`Loaded`})})},K={command:`stripe`,describe:`Operations for publisher.stripe`,builder:e=>e.command(B).command(H).command(G).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},q={command:`publisher`,describe:`Operations for publisher`,builder:e=>e.command(K).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var J={method:`GET`,path:t=>e`/accounts/${t.account_id}/pay-per-crawl/signature_link`,errors:{400:`BadRequestError`}};function Y(e){return e.usage(`$0 pay-per-crawl terms get-signature-link
23
23
 
24
24
  Gets a download link for the account's signed pay-per-crawl terms.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const X={command:`get-signature-link`,describe:`Get signed pay-per-crawl terms link`,builder:Y,handler:async e=>l({command:`pay-per-crawl terms get-signature-link`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await r();s({command:`cf pay-per-crawl terms get-signature-link`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/pay-per-crawl/signature_link`,pathParams:{},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>i.send(J,{account_id:l}));o(u,{successLabel:`Loaded`})})};var Z={method:`GET`,path:t=>e`/accounts/${t.account_id}/pay-per-crawl/terms/signature`,query:[`remote`],errors:{400:`BadRequestError`}};function re(e){return e.usage(`$0 pay-per-crawl terms get-signature
25
25
 
@@ -31,6 +31,6 @@ Records that an account displayed or agreed to the pay-per-crawl terms.`).option
31
31
 
32
32
  Gets whether pay-per-crawl can be enabled for a zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const me={command:`get-can-be-enabled`,describe:`Get pay-per-crawl zone eligibility`,builder:pe,handler:async e=>l({command:`pay-per-crawl zones get-can-be-enabled`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf pay-per-crawl zones get-can-be-enabled`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/pay-per-crawl/can_be_enabled`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(fe,{zone_id:r}));o(a,{successLabel:`Loaded`})})};var Q={method:`POST`,path:t=>e`/accounts/${t.account_id}/pay-per-crawl/zones_can_be_enabled/query`,body:`json`,errors:{400:`BadRequestError`}};function he(e){return e.usage(`$0 pay-per-crawl zones query-can-be-enabled
33
33
 
34
- Provided a list of pay-per-crawl configured zones this method will return whether they can enable PPC or not.`).option(`zones`,{type:`string`,array:!0,description:`The zones field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Zone IDs to check for pay-per-crawl eligibility`})}const ge={command:`query-can-be-enabled`,describe:`Gets the can_be_enabled zone setting`,builder:he,handler:async e=>l({command:`pay-per-crawl zones query-can-be-enabled`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf pay-per-crawl zones query-can-be-enabled`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pay-per-crawl/zones_can_be_enabled/query`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({zones:e.zones}):d(e.body)});return}let i=await n(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),n=await c(`Creating`,async()=>i.send(Q,{body:t,account_id:l}));o(n,{successLabel:`Created`});return}let u=p({zones:e.zones}),f=await c(`Creating`,async()=>i.send(Q,{body:u,account_id:l}));o(f,{successLabel:`Created`})})};var $={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/pay-per-crawl/zones_can_be_enabled`,body:`json`,errors:{400:`BadRequestError`}};function _e(e){return e.usage(`$0 pay-per-crawl zones set-can-be-enabled
34
+ Provided a list of pay-per-crawl configured zones this method will return whether they can enable PPC or not.`).option(`zones`,{type:`string`,array:!0,description:`The zones field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Zone IDs to check for pay-per-crawl eligibility`})}const ge={command:`query-can-be-enabled`,describe:`Gets the can_be_enabled zone setting`,builder:he,handler:async e=>l({command:`pay-per-crawl zones query-can-be-enabled`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf pay-per-crawl zones query-can-be-enabled`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pay-per-crawl/zones_can_be_enabled/query`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({zones:e.zones}):d(e.body)});return}let i=e.body===void 0?void 0:d(e.body),l=await n(e),u=e.local?t:await a();if(e.accountId=u,e.body!==void 0){let e=i,t=await c(`Creating`,async()=>l.send(Q,{body:e,account_id:u}));o(t,{successLabel:`Created`});return}let f=p({zones:e.zones}),m=await c(`Creating`,async()=>l.send(Q,{body:f,account_id:u}));o(m,{successLabel:`Created`})})};var $={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/pay-per-crawl/zones_can_be_enabled`,body:`json`,errors:{400:`BadRequestError`}};function _e(e){return e.usage(`$0 pay-per-crawl zones set-can-be-enabled
35
35
 
36
- Allows an account admin to set the can_be_enabled setting on a list of zones. An omitted can_be_enabled value leaves that zone unchanged.`).option(`zones`,{type:`string`,description:`The zones 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:`Data for setting flag on zones`})}const ve={command:`set-can-be-enabled`,describe:`Set can_be_enabled setting on zones`,builder:_e,handler:async e=>l({command:`pay-per-crawl zones set-can-be-enabled`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf pay-per-crawl zones set-can-be-enabled`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pay-per-crawl/zones_can_be_enabled`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({zones:u(e.zones,`zones`)}):d(e.body)});return}let i=await n(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),n=await c(`Updating`,async()=>i.send($,{body:t,account_id:l}));o(n,{successLabel:`Updated`});return}if(e.zones===void 0)throw Error(`--zones is required (or pass --body with this field set).`);let f=p({zones:u(e.zones,`zones`)}),m=await c(`Updating`,async()=>i.send($,{body:f,account_id:l}));o(m,{successLabel:`Updated`})})},ye={command:`zones`,describe:`Operations for zones`,builder:e=>e.command(me).command(ge).command(ve).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},be={command:`pay-per-crawl`,describe:`pay-per-crawl`,builder:e=>e.command(x).command(M).command(I).command(q).command(de).command(ye).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{be as default};
36
+ Allows an account admin to set the can_be_enabled setting on a list of zones. An omitted can_be_enabled value leaves that zone unchanged.`).option(`zones`,{type:`string`,description:`The zones 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:`Data for setting flag on zones`})}const ve={command:`set-can-be-enabled`,describe:`Set can_be_enabled setting on zones`,builder:_e,handler:async e=>l({command:`pay-per-crawl zones set-can-be-enabled`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf pay-per-crawl zones set-can-be-enabled`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pay-per-crawl/zones_can_be_enabled`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({zones:u(e.zones,`zones`)}):d(e.body)});return}let i=e.body===void 0?void 0:d(e.body),l=await n(e),f=e.local?t:await a();if(e.accountId=f,e.body!==void 0){let e=i,t=await c(`Updating`,async()=>l.send($,{body:e,account_id:f}));o(t,{successLabel:`Updated`});return}if(e.zones===void 0)throw Error(`--zones is required (or pass --body with this field set).`);let m=p({zones:u(e.zones,`zones`)}),h=await c(`Updating`,async()=>l.send($,{body:m,account_id:f}));o(h,{successLabel:`Updated`})})},ye={command:`zones`,describe:`Operations for zones`,builder:e=>e.command(me).command(ge).command(ve).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},be={command:`pay-per-crawl`,describe:`pay-per-crawl`,builder:e=>e.command(S).command(N).command(L).command(q).command(de).command(ye).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{be as default};