cf 1.0.0-beta.0 → 1.0.0-beta.10

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 (375) hide show
  1. package/README.md +12 -0
  2. package/dist/_meta/commands.json +11755 -14070
  3. package/dist/_meta/hand-written-commands.json +610 -42
  4. package/dist/_meta/schemas.json +18290 -20222
  5. package/dist/abuse-reports-BhSTEz7h.mjs +24 -0
  6. package/dist/access-D4DN4XZF.mjs +2 -0
  7. package/dist/{account-tags-BNrSShjj.mjs → account-tags-BWEIZLID.mjs} +5 -5
  8. package/dist/{accounts-CCAnDjFk.mjs → accounts-ZQvIqGJz.mjs} +66 -60
  9. package/dist/{acm-ZPYQbZQr.mjs → acm-OQqE8FMc.mjs} +3 -3
  10. package/dist/{addressing-BFpzLfTn.mjs → addressing-DCFm17JQ.mjs} +50 -50
  11. package/dist/agent-context-GRiQ4zRU.mjs +2 -0
  12. package/dist/{agent-memory-DEvy2dLU.mjs → agent-memory-BtfPt2me.mjs} +15 -15
  13. package/dist/ai-B0_sZbmy.mjs +29 -0
  14. package/dist/{ai-audit-Dn03zntn.mjs → ai-audit-DaubuhYF.mjs} +1 -1
  15. package/dist/ai-gateway-CJ-1Dzzr.mjs +82 -0
  16. package/dist/{ai-search-g0tR8Cut.mjs → ai-search-Dywa1kqX.mjs} +37 -37
  17. package/dist/{ai-security-BXXA0Jnk.mjs → ai-security-2wxMPqKS.mjs} +1 -1
  18. package/dist/{alerting-Bst10SOG.mjs → alerting-yad9DYRv.mjs} +26 -26
  19. package/dist/analytics-DKNw2fVc.mjs +20 -0
  20. package/dist/{analytics_engine-B4DvcYmB.mjs → analytics_engine-BA3kF46s.mjs} +2 -2
  21. package/dist/{api-security-Dkx1Codr.mjs → api-security-CSuYMpMO.mjs} +61 -61
  22. package/dist/{argo-BvswWPlP.mjs → argo-DMfNmOV4.mjs} +1 -1
  23. package/dist/args-CXgkQKK7.mjs +2 -0
  24. package/dist/{artifacts-D8kZKJq0.mjs → artifacts-Cb3hwClm.mjs} +20 -20
  25. package/dist/{audit-logs-Bp_yQpXJ.mjs → audit-logs-BrjNuiLx.mjs} +2 -2
  26. package/dist/auth-BBlAI8HG.mjs +2 -0
  27. package/dist/auth-BIr56Mbx.mjs +8 -0
  28. package/dist/autoconfig-DPUztTL2.mjs +511 -0
  29. package/dist/banner-ClclgnBn.mjs +2 -0
  30. package/dist/basin-catalog-BLsQhJP4.mjs +46 -0
  31. package/dist/{billing-Cqj64fqz.mjs → billing-CRwD7oQS.mjs} +10 -10
  32. package/dist/{bot-management-CzZx_aml.mjs → bot-management-CyW8F8Wm.mjs} +1 -1
  33. package/dist/{botnet-feed-Co0c8Xdj.mjs → botnet-feed-BBKsxf3Y.mjs} +5 -5
  34. package/dist/{brand-protection-CDsGaPIl.mjs → brand-protection-DSeD8LXl.mjs} +13 -13
  35. package/dist/browser-extension-C1zmKFDG.mjs +2 -0
  36. package/dist/{browser-run-DFrohJ1p.mjs → browser-run-BAcUTwB4.mjs} +23 -23
  37. package/dist/build-B5UYMEQH.mjs +2 -0
  38. package/dist/build-DLZ9gBNA.mjs +2 -0
  39. package/dist/{builds-CamhClyb.mjs → builds-W1HEG7Bv.mjs} +31 -31
  40. package/dist/{cache-BiTk4-Zc.mjs → cache-B7E_PXUp.mjs} +27 -27
  41. package/dist/{certificate-authorities-Dal9DNjW.mjs → certificate-authorities-D_uAJH9B.mjs} +1 -1
  42. package/dist/cf-Bh_fTFIj.mjs +18 -0
  43. package/dist/chunk-FT2NMTJB-1VFYM1Ro.mjs +97 -0
  44. package/dist/chunk-KKDV4JPS-DdzLLtnl.mjs +2 -0
  45. package/dist/chunk-U6NEESU5-BhF4rnpx.mjs +2 -0
  46. package/dist/chunk-WMOON6TZ-D_ToS88f.mjs +2 -0
  47. package/dist/cli-BeXSqJAj.mjs +6 -0
  48. package/dist/cli-exit-Dqoo6Jgb.mjs +2 -0
  49. package/dist/client-certificates-DqFcK_s1.mjs +13 -0
  50. package/dist/{client-side-security-CIO_YPtN.mjs → client-side-security-DJXZ1XAu.mjs} +1 -1
  51. package/dist/{cloud-connector-vwdixea0.mjs → cloud-connector-Czg1GdQi.mjs} +1 -1
  52. package/dist/{cloudflared-DhItYrCq.mjs → cloudflared-DGuau-lC.mjs} +1 -1
  53. package/dist/{cloudforce-one-C1cFVBGK.mjs → cloudforce-one-B1IhIZcp.mjs} +213 -222
  54. package/dist/command-6YTtWltE.mjs +2 -0
  55. package/dist/command-B6DqnUwt.mjs +2 -0
  56. package/dist/command-BCag-xjk.mjs +2 -0
  57. package/dist/command-BOLlvEan.mjs +2 -0
  58. package/dist/command-BrHTpaji.mjs +2 -0
  59. package/dist/command-CAtsHc1V.mjs +2 -0
  60. package/dist/command-C__qB2mo.mjs +2 -0
  61. package/dist/command-DUafPVUr.mjs +2 -0
  62. package/dist/command-DZookrfw.mjs +2 -0
  63. package/dist/command-DfffeX-k.mjs +2 -0
  64. package/dist/command-DxSJy_ym.mjs +2 -0
  65. package/dist/command-DzHL5LKI.mjs +2 -0
  66. package/dist/command-K1-DZFJS.mjs +2 -0
  67. package/dist/command-TCklVvOY.mjs +2 -0
  68. package/dist/command-xU78ACNA.mjs +2 -0
  69. package/dist/{completions-xPLd1cvL.mjs → completions-Cm9brGAI.mjs} +26 -26
  70. package/dist/{connector-interrupts-DQ5T-HMN.mjs → connector-interrupts-D93KTMkw.mjs} +3 -3
  71. package/dist/{connector-telemetry-events-DWam38_9.mjs → connector-telemetry-events-D6CmKR14.mjs} +3 -3
  72. package/dist/{connector-telemetry-snapshots-DX6AJf9Q.mjs → connector-telemetry-snapshots-WO9IUk0e.mjs} +3 -3
  73. package/dist/{connectors-CBhLWVd-.mjs → connectors-DNT6GTW3.mjs} +7 -7
  74. package/dist/{containers-C7blN-pe.mjs → containers-Btx7vCDP.mjs} +17 -17
  75. package/dist/{containers-Bx_44bmJ.mjs → containers-Ce7IO-Ia.mjs} +70 -72
  76. package/dist/{content-scan-CC91dAlv.mjs → content-scan-C_ROsbTJ.mjs} +1 -1
  77. package/dist/context-CEOHpZgd.mjs +7 -0
  78. package/dist/{cps-D9a4N_bH.mjs → cps-BPQqyL2E.mjs} +1 -1
  79. package/dist/{csamScanner-T7nbCnep.mjs → csamScanner-D-oO5cxT.mjs} +1 -1
  80. package/dist/{ct-alerting-CkjNJlla.mjs → ct-alerting-CnTRE1Fb.mjs} +1 -1
  81. package/dist/{custom-certificates-DnWnt9oJ.mjs → custom-certificates-DvnFBZdJ.mjs} +4 -4
  82. package/dist/{custom-csrs-Db2pF9Ib.mjs → custom-csrs-BZ8TXbuQ.mjs} +5 -5
  83. package/dist/{custom-hostnames-B_N-uSIa.mjs → custom-hostnames-CTqf-KlT.mjs} +6 -6
  84. package/dist/{custom-nameservers-DPA_sFY8.mjs → custom-nameservers-B0CpnUVg.mjs} +5 -5
  85. package/dist/{custom-pages-D6fxEBoh.mjs → custom-pages-DcoSGN56.mjs} +10 -10
  86. package/dist/{d1-DXs1xVmH.mjs → d1-m7UfzBzl.mjs} +16 -20
  87. package/dist/{dcv-delegation-as1ue_wx.mjs → dcv-delegation-yOtz90qE.mjs} +1 -1
  88. package/dist/{delegate-GctF_lrq.mjs → delegate-B6LetRpZ.mjs} +1 -1
  89. package/dist/delegate.mjs +1 -1
  90. package/dist/{deploy-D2XXCkqk.mjs → deploy-C4p6SzLH.mjs} +1 -1
  91. package/dist/{deploy-input-BCYyKXpp.mjs → deploy-input-DTjBGloL.mjs} +1 -1
  92. package/dist/dev-BML-bpNU.mjs +4 -0
  93. package/dist/{diagnostics-BKH1Oh-C.mjs → diagnostics-hOvnx5DT.mjs} +7 -7
  94. package/dist/dialog-BlUXJKbA.mjs +2 -0
  95. package/dist/discover-C5aiI6u0.mjs +2 -0
  96. package/dist/discover-DwczTkRX.mjs +2 -0
  97. package/dist/dist-BuCJ_55d.mjs +366 -0
  98. package/dist/dist-C3s9SXTd.mjs +48 -0
  99. package/dist/{dist-BpadEMNY.mjs → dist-DW47TUGh.mjs} +35 -35
  100. package/dist/{dls-C5kAQsN6.mjs → dls-v6DyEWTd.mjs} +8 -8
  101. package/dist/{dns-CYwXrdJO.mjs → dns-C9sUPsNt.mjs} +72 -63
  102. package/dist/{dns-firewall-BEw4QcXj.mjs → dns-firewall-EDiT-Zli.mjs} +8 -8
  103. package/dist/dot-prop-IITUZ2XW-BilKo4kO.mjs +2 -0
  104. package/dist/dotenv-CcQjGlV0.mjs +4 -0
  105. package/dist/dry-run-Bq0JAsbX.mjs +2 -0
  106. package/dist/durable-objects-C01phVwL.mjs +6 -0
  107. package/dist/{email-auth-B3MD8FrJ.mjs → email-auth-BgvoEHJk.mjs} +1 -1
  108. package/dist/{email-routing-C4YhZGPw.mjs → email-routing-Bggn219w.mjs} +24 -24
  109. package/dist/email-security-_t7rzrzd.mjs +158 -0
  110. package/dist/{email-sending-BO1GOAho.mjs → email-sending-_dKCs2VF.mjs} +23 -23
  111. package/dist/error-sanitization-CJ5OLJrh.mjs +2 -0
  112. package/dist/error-sanitization-hmi1CqE5.mjs +2 -0
  113. package/dist/{fieldExtractors-BJDnzNCN.mjs → fieldExtractors-Cm5QnkE0.mjs} +4 -4
  114. package/dist/firewall-CZEN8iA_.mjs +36 -0
  115. package/dist/flagship-B_SAI_ZL.mjs +28 -0
  116. package/dist/{fraud-C7kS7kP9.mjs → fraud-9_9hobAh.mjs} +1 -1
  117. package/dist/generate-BPqoDbck.mjs +2 -0
  118. package/dist/generate-CLqGOlOx.mjs +3 -0
  119. package/dist/{google-tag-gateway-8VR-j0sa.mjs → google-tag-gateway-O_N0vHRY.mjs} +1 -1
  120. package/dist/gt-DmcMNPX6.mjs +2 -0
  121. package/dist/{healthchecks-BJleItOD.mjs → healthchecks-Bt3Gw_JZ.mjs} +1 -1
  122. package/dist/{hostnames-CHajvoHa.mjs → hostnames-DdOube3R.mjs} +1 -1
  123. package/dist/hyperdrive-C14NAh9l.mjs +37 -0
  124. package/dist/{iam-B7oTr6vW.mjs → iam-DUW7neMx.mjs} +24 -24
  125. package/dist/{images-xLAYe436.mjs → images-B9dnr1z0.mjs} +38 -38
  126. package/dist/index.mjs +1 -1
  127. package/dist/init-BGcAIvV7.mjs +39 -0
  128. package/dist/{intel-DwZXY1YE.mjs → intel-BQpZMck3.mjs} +38 -38
  129. package/dist/interactive-C-o16XQs.mjs +32 -0
  130. package/dist/interactive-SgAjen2z.mjs +2 -0
  131. package/dist/{ips-BC_9nKE7.mjs → ips-PT_uQKAf.mjs} +1 -1
  132. package/dist/k2-nPYti7Y0.mjs +13 -0
  133. package/dist/keyless-certificates-BHvas2q1.mjs +13 -0
  134. package/dist/{keys-K-GFzhku.mjs → keys-O5kAW9ox.mjs} +2 -2
  135. package/dist/kv-BUP_ZLM_.mjs +15 -0
  136. package/dist/lazy-command-glNW3jzf.mjs +2 -0
  137. package/dist/{leaked-credential-checks-D8UuxztO.mjs → leaked-credential-checks-De9hI1rl.mjs} +1 -1
  138. package/dist/{load-balancers-B0XeGLhT.mjs → load-balancers-Cs6bUHS1.mjs} +39 -39
  139. package/dist/{local-B6b2OIBW.mjs → local-B5oRPTEN.mjs} +1 -1
  140. package/dist/local-Bj-l0TP6.mjs +2 -0
  141. package/dist/{local-runtime-DD8DAIlm.mjs → local-runtime-CZnegFEM.mjs} +1 -1
  142. package/dist/login-C5nSIS-T.mjs +2 -0
  143. package/dist/login-CUup7w0e.mjs +5 -0
  144. package/dist/{logo-matches-DWg5ezsM.mjs → logo-matches-BkQKdu4Z.mjs} +3 -3
  145. package/dist/{logos-6A6gJC5C.mjs → logos-C_sv-boo.mjs} +3 -3
  146. package/dist/{logpush-DwehajAw.mjs → logpush-NUcyMKHi.mjs} +23 -23
  147. package/dist/logs-BZT4PlqZ.mjs +36 -0
  148. package/dist/{magic-cloud-networking--14hNj2F.mjs → magic-cloud-networking-DQnSdmgA.mjs} +34 -34
  149. package/dist/{magic-network-monitoring-Dzo4L6kd.mjs → magic-network-monitoring-pHTU6aS8.mjs} +17 -17
  150. package/dist/{magic-transit-DDO0A5v4.mjs → magic-transit-5302bQNh.mjs} +154 -158
  151. package/dist/{managed-defense-DQ0iwWdG.mjs → managed-defense-8OEfDzuO.mjs} +9 -9
  152. package/dist/{managed-transforms-DDIdcPG0.mjs → managed-transforms-CCpUz4TY.mjs} +1 -1
  153. package/dist/{matches-D6ahHNaP.mjs → matches-BSiYXs99.mjs} +3 -3
  154. package/dist/{mcp-BcIrLbRv.mjs → mcp-CCMiS75R.mjs} +15 -15
  155. package/dist/{mesh-wLiPcWyN.mjs → mesh-DKBGTlCD.mjs} +12 -12
  156. package/dist/migrate-BJ9Go_wP.mjs +2 -0
  157. package/dist/monetization-CFf_lb6x.mjs +20 -0
  158. package/dist/mtls-certificates-DsF3NFNs.mjs +13 -0
  159. package/dist/{network-DZsrs_sw.mjs → network-Bm0qYRqY.mjs} +24 -24
  160. package/dist/{network-interconnects-Cjbu4EMv.mjs → network-interconnects-YiRUBbjx.mjs} +17 -17
  161. package/dist/{oauth-Cu1twz9z.mjs → oauth-DxGgIwFc.mjs} +1 -1
  162. package/dist/oauth-cNZUky3h.mjs +9 -0
  163. package/dist/{oauth-clients-DR0hzakz.mjs → oauth-clients-CP6alY0_.mjs} +7 -7
  164. package/dist/{oauth-scopes-BDNpJJ32.mjs → oauth-scopes-xl-pcWdg.mjs} +1 -1
  165. package/dist/{observability-BnHy2M6p.mjs → observability-Bp71PtlD.mjs} +44 -44
  166. package/dist/open-PCXX3ZDZ-BKRik1gi.mjs +4 -0
  167. package/dist/{organization-iasRm69J.mjs → organization-Dbom1gTR.mjs} +7 -7
  168. package/dist/{organizations-CUzCIKXV.mjs → organizations-OUMVsuen.mjs} +1 -1
  169. package/dist/{origin-ca-certificates-iQXSqBI0.mjs → origin-ca-certificates-B3-T0-Nn.mjs} +3 -3
  170. package/dist/{origin-post-quantum-encryption-DcMDK6Tz.mjs → origin-post-quantum-encryption-CGB6AfPa.mjs} +1 -1
  171. package/dist/{origin-tls-client-auth-D1X26X7y.mjs → origin-tls-client-auth-CgzzfAWr.mjs} +5 -5
  172. package/dist/output-CvQFJkvi.mjs +2 -0
  173. package/dist/{page-rules-CXa8EYcP.mjs → page-rules-B9BQKU4_.mjs} +1 -1
  174. package/dist/pages-DZPdyuT4.mjs +54 -0
  175. package/dist/{pay-per-crawl-DmF8xlm_.mjs → pay-per-crawl-CnveMVDi.mjs} +32 -32
  176. package/dist/{pay-per-use-DIp2fwJU.mjs → pay-per-use-Bpxe8PHv.mjs} +3 -3
  177. package/dist/{pipelines-MmXlsxYO.mjs → pipelines-CHev3o5G.mjs} +20 -20
  178. package/dist/precursor-C9PK9Bue.mjs +4 -0
  179. package/dist/previews-BIMI1dTz.mjs +4 -0
  180. package/dist/progress-A61dRbXl.mjs +2 -0
  181. package/dist/prompt-CGUzvBgY.mjs +3 -0
  182. package/dist/{queries-VzdcSR5H.mjs → queries-f-btyefs.mjs} +4 -4
  183. package/dist/{queues-BZYl2emH.mjs → queues-kLNdeb3q.mjs} +29 -35
  184. package/dist/r2-D_awYx2p.mjs +125 -0
  185. package/dist/r2-data-catalog-2jQrdAdo.mjs +2 -0
  186. package/dist/{radar-JzBTD249.mjs → radar-CU4T02Ag.mjs} +1 -1
  187. package/dist/raw-fetch-CvkmFO23.mjs +2 -0
  188. package/dist/{realtime-yIdAJ0Yf.mjs → realtime-C0dvcBBM.mjs} +78 -78
  189. package/dist/{registrar-D-Li9gNk.mjs → registrar-CHc-4vcf.mjs} +8 -8
  190. package/dist/{registrar-sandbox-CKSSHAyv.mjs → registrar-sandbox-Dq8LV2AI.mjs} +6 -6
  191. package/dist/{registry-vreNkX6u.mjs → registry-Cg5lP8oo.mjs} +1 -1
  192. package/dist/{reporting-Cf-pnw6h.mjs → reporting-4u21g6Dk.mjs} +7 -7
  193. package/dist/request-headers-D31kdxrQ.mjs +2 -0
  194. package/dist/{request-tracers-BegIQTzt.mjs → request-tracers-CupJ_83j.mjs} +2 -2
  195. package/dist/resolve-PZuJ878-.mjs +2 -0
  196. package/dist/{resource-sharing-DEVgiYzM.mjs → resource-sharing-CO-Lh-u7.mjs} +14 -14
  197. package/dist/{resource-tagging-Cm2yJkU9.mjs → resource-tagging-D0R5SzR6.mjs} +2 -2
  198. package/dist/{rules-DDCa7cYF.mjs → rules-BsmKzB9H.mjs} +8 -8
  199. package/dist/{rulesets-BhS7Hvtu.mjs → rulesets-HOOnxHZZ.mjs} +20 -20
  200. package/dist/{rum-EIj9ViSn.mjs → rum-wcLEvVJl.mjs} +14 -14
  201. package/dist/run-CIJTelJL.mjs +2 -0
  202. package/dist/run-quhbAvQi.mjs +2 -0
  203. package/dist/schema-GdBsV4P7.mjs +2 -0
  204. package/dist/{schema-flags--GosoCMU.mjs → schema-flags-D8vL2oiF.mjs} +2 -2
  205. package/dist/{scim-DA83eNe-.mjs → scim-BkdJmAS8.mjs} +10 -10
  206. package/dist/{sdk-CvIO3tWS.mjs → sdk-BCzcRJCi.mjs} +2 -2
  207. package/dist/{secrets-store-BTd3eGIB.mjs → secrets-store-CHs0oYA0.mjs} +11 -11
  208. package/dist/security-insights-vsl-4xFa.mjs +40 -0
  209. package/dist/{security-txt-DSrHhVEN.mjs → security-txt-Fnl3LdSn.mjs} +1 -1
  210. package/dist/session-CZTuHcbm.mjs +2 -0
  211. package/dist/shared-BS30oCf8.mjs +2 -0
  212. package/dist/{smart-shield-DnSTo-OI.mjs → smart-shield-DB0E7cZI.mjs} +1 -1
  213. package/dist/{snippets-An5kQs33.mjs → snippets-CFaF_NyG.mjs} +1 -1
  214. package/dist/source-38bULAR8.mjs +6 -0
  215. package/dist/spawn-B0Sl8lUu.mjs +10 -0
  216. package/dist/{spectrum-Ci79n7fd.mjs → spectrum-DtG0jYjE.mjs} +1 -1
  217. package/dist/{speed-BBL7LrLn.mjs → speed-B-RiNHGK.mjs} +1 -1
  218. package/dist/src-CM3XaB4p.mjs +109 -0
  219. package/dist/{ssl-B2psFIRm.mjs → ssl-DBVpCZAM.mjs} +4 -4
  220. package/dist/startup-profile-CLmojOrn.mjs +2 -0
  221. package/dist/startup-profile-CR7GMuLx.mjs +17 -0
  222. package/dist/{state-BxCejn42.mjs → state-BaGRaYow.mjs} +1 -1
  223. package/dist/state-CpXhcMdX.mjs +2 -0
  224. package/dist/{stream-Du0Q7UOh.mjs → stream-cAdBvpS1.mjs} +45 -45
  225. package/dist/{submit-CU8S2jBT.mjs → submit-Bkd7l2rK.mjs} +2 -2
  226. package/dist/{tags-C3l5aZSi.mjs → tags--eph7JbN.mjs} +2 -2
  227. package/dist/telemetry-51etasAu.mjs +2 -0
  228. package/dist/telemetry-Q3_UmwHj.mjs +2 -0
  229. package/dist/tenant-Bj-He2xO.mjs +10 -0
  230. package/dist/{tenant-custom-nameservers-DtKeyM5J.mjs → tenant-custom-nameservers-B5IIIwbz.mjs} +1 -1
  231. package/dist/{theme-BiIYWOed.mjs → theme-BIWQFmZ0.mjs} +2 -2
  232. package/dist/tools-BJZ0DDlL.mjs +2 -0
  233. package/dist/{tunnels-D1tRWQQi.mjs → tunnels-CgtuRpcD.mjs} +15 -15
  234. package/dist/turnstile-Bmcnrzw7.mjs +33 -0
  235. package/dist/ui-BQxRjahW.mjs +5 -0
  236. package/dist/update-check-BqSpgzHk.mjs +2 -0
  237. package/dist/update-check-DC0qP_8z.mjs +2 -0
  238. package/dist/update-check-worker.mjs +1 -1
  239. package/dist/{url-info-BRA0XGT2.mjs → url-info-DhVehaT8.mjs} +2 -2
  240. package/dist/{url-normalization-B6N2m5s6.mjs → url-normalization-BpGDUUQc.mjs} +1 -1
  241. package/dist/{url-scanner-CeKkzkhe.mjs → url-scanner-DiLdqsQk.mjs} +8 -8
  242. package/dist/{user-CftksgmF.mjs → user-B6P5_OjP.mjs} +1 -1
  243. package/dist/{values-m7w9PX3o.mjs → values-Cxx4Lxrd.mjs} +2 -2
  244. package/dist/{vectorize-BWBEtsgZ.mjs → vectorize-YyxVpql-.mjs} +15 -15
  245. package/dist/version-C0pInAZ9.mjs +2 -0
  246. package/dist/{waiting-rooms-BVZSYTNJ.mjs → waiting-rooms-BdahlCdD.mjs} +25 -25
  247. package/dist/{web-assets-CLU5vAgP.mjs → web-assets-yaKxN4w_.mjs} +1 -1
  248. package/dist/{web3-Dkd4XRNH.mjs → web3-Bu9c_QAt.mjs} +1 -1
  249. package/dist/workers-5GgoGA2e.mjs +38 -0
  250. package/dist/{workers-builds-BgtPSDYJ.mjs → workers-builds-h-1FJjE1.mjs} +7 -7
  251. package/dist/workers-for-platforms-CV9iRrp9.mjs +42 -0
  252. package/dist/{workers-vpc-DjGfJgQn.mjs → workers-vpc-C1oUHHqk.mjs} +6 -6
  253. package/dist/{workflows-Cm7WsAgB.mjs → workflows-dtMlkj1-.mjs} +20 -20
  254. package/dist/wrangler-migration-CJEb9hY3.mjs +2 -0
  255. package/dist/{zaraz-DurWe32F.mjs → zaraz-838AbMEX.mjs} +1 -1
  256. package/dist/{zero-trust-D8SVU8YZ.mjs → zero-trust-CYt-eELJ.mjs} +460 -434
  257. package/dist/{zone-B3AEAfcd.mjs → zone-uJwRLSnn.mjs} +1 -1
  258. package/dist/{zones-DiX5LoSU.mjs → zones-Dpofsnth.mjs} +1 -1
  259. package/package.json +15 -12
  260. package/dist/abuse-reports-BwsJLiPN.mjs +0 -26
  261. package/dist/access-BVbIajYr.mjs +0 -27
  262. package/dist/account-DBLarar2.mjs +0 -12
  263. package/dist/ai-BF0_0NtS.mjs +0 -31
  264. package/dist/ai-gateway-CVABbCjv.mjs +0 -147
  265. package/dist/analytics-DgEaxta8.mjs +0 -21
  266. package/dist/auth-B9w55oRg.mjs +0 -2
  267. package/dist/auth-C80y97yu.mjs +0 -8
  268. package/dist/browser-extension-BRHJm3Qf.mjs +0 -15
  269. package/dist/build-BbjcJxKq.mjs +0 -2
  270. package/dist/build-DQh5-KK4.mjs +0 -2
  271. package/dist/cf-oadujOtC.mjs +0 -18
  272. package/dist/chunk-6EUZQHAF-QVTL_mC-.mjs +0 -2
  273. package/dist/chunk-DL5FNmn1.mjs +0 -2
  274. package/dist/chunk-Q72B4Q5Z-Cr1H_iK6.mjs +0 -2
  275. package/dist/chunk-Q72B4Q5Z-DKhx_4ok.mjs +0 -2
  276. package/dist/chunk-QBZBEHZB-Byagrlop.mjs +0 -2
  277. package/dist/chunk-XLADBZ7F-BXKOjWbx.mjs +0 -374
  278. package/dist/client-certificates-DDisXoTE.mjs +0 -13
  279. package/dist/command-BP7ldws1.mjs +0 -2
  280. package/dist/command-BtNRBTP6.mjs +0 -2
  281. package/dist/command-CF0giIIc.mjs +0 -3
  282. package/dist/command-Ck9rbHA4.mjs +0 -2
  283. package/dist/config-B4vIa0zp.mjs +0 -2
  284. package/dist/data-security-CVZAIzhe.mjs +0 -71
  285. package/dist/dev-nsNxyg2D.mjs +0 -4
  286. package/dist/dialog-Dx4rRcKM.mjs +0 -2
  287. package/dist/dist-BDOzKthe.mjs +0 -48
  288. package/dist/dist-dc4E1u01.mjs +0 -272
  289. package/dist/dot-prop-6SRZBKHT-Dj7YOlwR.mjs +0 -2
  290. package/dist/dry-run-CLX6Pbtq.mjs +0 -2
  291. package/dist/durable-objects-3jvUgzKd.mjs +0 -8
  292. package/dist/email-security-BcFyWNby.mjs +0 -160
  293. package/dist/error-sanitization-BkgUhGVc.mjs +0 -2
  294. package/dist/error-sanitization-DOlqWkNu.mjs +0 -2
  295. package/dist/firewall-BSMa9aH3.mjs +0 -56
  296. package/dist/flagship-BJYMb7hb.mjs +0 -28
  297. package/dist/hyperdrive-DlxQrok-.mjs +0 -37
  298. package/dist/interactive-B6woOLo-.mjs +0 -32
  299. package/dist/interactive-DnUvQHjc.mjs +0 -2
  300. package/dist/keyless-certificates-CtsCsbZ2.mjs +0 -13
  301. package/dist/kv-Bfwz_ULu.mjs +0 -21
  302. package/dist/local-BrfySqnx.mjs +0 -2
  303. package/dist/login-CAsRUF4c.mjs +0 -2
  304. package/dist/login-DaglE6WA.mjs +0 -5
  305. package/dist/logs-BWg7YymF.mjs +0 -48
  306. package/dist/mtls-certificates-AEuNOERQ.mjs +0 -13
  307. package/dist/oauth-C-QCVfWz.mjs +0 -14
  308. package/dist/open-PBXRGS4R-C4CKEADM.mjs +0 -4
  309. package/dist/open-PBXRGS4R-C_-G_4DC.mjs +0 -4
  310. package/dist/output-Bia1u2k5.mjs +0 -2
  311. package/dist/pages-Cu0m9GSH.mjs +0 -60
  312. package/dist/precursor-jqeEG_mJ.mjs +0 -4
  313. package/dist/previews-Cg6lc24N.mjs +0 -4
  314. package/dist/progress-Bpp73hIu.mjs +0 -2
  315. package/dist/prompt-CpZztV8c.mjs +0 -3
  316. package/dist/r2-data-catalog-DISnPFPY.mjs +0 -44
  317. package/dist/r2-omcKF8_A.mjs +0 -127
  318. package/dist/raw-fetch-DxGs_eRm.mjs +0 -2
  319. package/dist/request-headers-DaXBfmVn.mjs +0 -2
  320. package/dist/resolve-BXemCSyA.mjs +0 -2
  321. package/dist/run-CSFE1qVX.mjs +0 -2
  322. package/dist/run-ChM_YpZ0.mjs +0 -2
  323. package/dist/schema-DCBb3Fcs.mjs +0 -2
  324. package/dist/security-center-DbH_7h-T.mjs +0 -30
  325. package/dist/shared-CtBkOWGN.mjs +0 -2
  326. package/dist/source-BR4_k2ad.mjs +0 -6
  327. package/dist/spawn-7IW1UyoH.mjs +0 -523
  328. package/dist/src-CNHNCZpy.mjs +0 -108
  329. package/dist/startup-profile-CYEokTVe.mjs +0 -2
  330. package/dist/startup-profile-CgWHy4rE.mjs +0 -17
  331. package/dist/state-DSzkxXML.mjs +0 -2
  332. package/dist/telemetry-CNt8H3aA.mjs +0 -2
  333. package/dist/telemetry-Dk1GcQ0u.mjs +0 -5
  334. package/dist/telemetry-PHe8XxA2.mjs +0 -2
  335. package/dist/tenant-BZ0ysR9L.mjs +0 -12
  336. package/dist/tools-BMKpYraQ.mjs +0 -2
  337. package/dist/turnstile-DBa4_Vyz.mjs +0 -33
  338. package/dist/ui-DH95w1Qk.mjs +0 -5
  339. package/dist/undici-DTSBJHNS.mjs +0 -96
  340. package/dist/update-check-AAn7EXw8.mjs +0 -2
  341. package/dist/update-check-BbIXBq1o.mjs +0 -2
  342. package/dist/version-cPq-WKL8.mjs +0 -2
  343. package/dist/workers-BQi4_SBS.mjs +0 -36
  344. package/dist/workers-for-platforms-actLCM6Q.mjs +0 -25
  345. /package/dist/{Page-C-JHZnIy.mjs → Page-CjJht2qT.mjs} +0 -0
  346. /package/dist/{alerts-CstOk8n0.mjs → alerts-DY_7Nknx.mjs} +0 -0
  347. /package/dist/{autorag-PRTwXGgn.mjs → autorag-K396-M2S.mjs} +0 -0
  348. /package/dist/{body-parser-CUWbw_Tq.mjs → body-parser-hh2avzkz.mjs} +0 -0
  349. /package/dist/{brands-BHRXlWDm.mjs → brands-DeLbFxSt.mjs} +0 -0
  350. /package/dist/{clear-UvKESVx3.mjs → clear-CRfI7WS7.mjs} +0 -0
  351. /package/dist/{cli-types-tt_LZMbn.mjs → cli-types-DoVT5q_M.mjs} +0 -0
  352. /package/dist/{connector-telemetry-events-latest-DwnFeZg0.mjs → connector-telemetry-events-latest-D8p_dR8s.mjs} +0 -0
  353. /package/dist/{connector-telemetry-snapshots-latest-Dv6rZlxs.mjs → connector-telemetry-snapshots-latest-COFmzmlk.mjs} +0 -0
  354. /package/dist/{domain-info-BqTDXNBo.mjs → domain-info-aiwP60Fo.mjs} +0 -0
  355. /package/dist/{health-CwPzzrV6.mjs → health-Bz33n-_F.mjs} +0 -0
  356. /package/dist/{input-validation-Ch4Vllrm.mjs → input-validation-Dk52b0me.mjs} +0 -0
  357. /package/dist/{internal-WLHfxX64.mjs → internal-BHrJbbdA.mjs} +0 -0
  358. /package/dist/{lifecycle-Ichnb2x1.mjs → lifecycle-C7tAC1Mn.mjs} +0 -0
  359. /package/dist/{live-D_k7eHdv.mjs → live-MeJQXIei.mjs} +0 -0
  360. /package/dist/{metadata-APBiectA.mjs → metadata-C33s4rc-.mjs} +0 -0
  361. /package/dist/{project-settings-DSXevRvj.mjs → project-settings-DO6njFg_.mjs} +0 -0
  362. /package/dist/{rate-limit-analytics-CDTPxSET.mjs → rate-limit-analytics-CU55zqCU.mjs} +0 -0
  363. /package/dist/{rate-limits-C3K9smdl.mjs → rate-limits-CZ-qHDPK.mjs} +0 -0
  364. /package/dist/{ready-CvwvbdTX.mjs → ready-BOpbZ1pN.mjs} +0 -0
  365. /package/dist/{recent-submissions-CjzcT-iH.mjs → recent-submissions-KDqD2HyS.mjs} +0 -0
  366. /package/dist/{refute-CIAFMj00.mjs → refute-DkF4XIMw.mjs} +0 -0
  367. /package/dist/{resolve-CUDKxUrW.mjs → resolve-BCTrtcx7.mjs} +0 -0
  368. /package/dist/{scan-logo-zFkphtQ3.mjs → scan-logo-DQkf6glG.mjs} +0 -0
  369. /package/dist/{scan-page-CLl2MAkZ.mjs → scan-page-CMOJ_E0n.mjs} +0 -0
  370. /package/dist/{search-12jA1b4l.mjs → search-Bre1Zwn3.mjs} +0 -0
  371. /package/dist/{signed-url-U0T_PEMR.mjs → signed-url-24ZbX4yV.mjs} +0 -0
  372. /package/dist/{submission-info-CZ84a3Nb.mjs → submission-info-BmkbZVqM.mjs} +0 -0
  373. /package/dist/{total-queries-CJTc9Pde.mjs → total-queries-j8OAF_cE.mjs} +0 -0
  374. /package/dist/{tracked-domains-BKLxnnSv.mjs → tracked-domains-fe3EWYmF.mjs} +0 -0
  375. /package/dist/{verify-CZW5Fo1q.mjs → verify-CKgZYvln.mjs} +0 -0
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import{r as e}from"./auth-C80y97yu.mjs";import{t}from"./output-Bia1u2k5.mjs";import{t as n}from"./dry-run-CLX6Pbtq.mjs";import{t as r}from"./progress-Bpp73hIu.mjs";import{t as i}from"./run-ChM_YpZ0.mjs";import"./telemetry-CNt8H3aA.mjs";import{n as a,r as o,t as s}from"./body-parser-CUWbw_Tq.mjs";import{n as c}from"./input-validation-Ch4Vllrm.mjs";import{a as l,i as u,n as d}from"./prompt-CpZztV8c.mjs";import{t as f}from"./cli-types-tt_LZMbn.mjs";function p(e){return e.usage(`$0 organization account list
2
+ import{r as e}from"./auth-BIr56Mbx.mjs";import{t}from"./output-CvQFJkvi.mjs";import{t as n}from"./dry-run-Bq0JAsbX.mjs";import{t as r}from"./progress-A61dRbXl.mjs";import{t as i}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{n as a,r as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{a as l,i as u,n as d}from"./prompt-CGUzvBgY.mjs";import{t as f}from"./cli-types-DoVT5q_M.mjs";function p(e){return e.usage(`$0 organization account list
3
3
 
4
- Retrieve a list of accounts that belong to a specific organization. (Currently in Public Beta - see https://developers.cloudflare.com/fundamentals/organizations/)`).option(`organization-id`,{type:`string`,description:`The ID of the organization to retrieve a list of accounts for.`,demandOption:!0}).option(`account-pubname`,{type:`string`,description:`(case-insensitive) Filter the list of accounts to where the account_pubname is equal to
4
+ Retrieve the accounts immediately attached to a specific organization. Accounts attached to sub-organizations are not included. (Currently in Public Beta - see https://developers.cloudflare.com/fundamentals/organizations/)`).option(`organization-id`,{type:`string`,description:`The ID of the organization to retrieve a list of accounts for.`,demandOption:!0}).option(`account-pubname`,{type:`string`,description:`(case-insensitive) Filter the list of accounts to where the account_pubname is equal to
5
5
  a particular string.`}).option(`account-pubname-starts-with`,{type:`string`,description:`(case-insensitive) Filter the list of accounts to where the account_pubname starts with
6
6
  a particular string.`}).option(`account-pubname-ends-with`,{type:`string`,description:`(case-insensitive) Filter the list of accounts to where the account_pubname ends with
7
7
  a particular string.`}).option(`account-pubname-contains`,{type:`string`,description:`(case-insensitive) Filter the list of accounts to where the account_pubname contains
@@ -17,11 +17,11 @@ Legacy page/per_page requests always calculate total_count.`}).option(`page-toke
17
17
  provided will retrieve the next page.
18
18
 
19
19
  Parameters used to filter the retrieved list must remain in subsequent
20
- requests with a page token.`}).option(`page-size`,{type:`number`,description:`The amount of items to return. Defaults to 10.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const m={command:`list`,describe:`Get organization accounts`,builder:f(p),handler:async a=>i({command:`organization account list`,classification:{safeFlags:[`order-by`,`direction`,`include-tags`,`include-total`,`dry-run`]}},a,async()=>{let i={account_pubname:a[`account-pubname`],"account_pubname.startsWith":a[`account-pubname-starts-with`],"account_pubname.endsWith":a[`account-pubname-ends-with`],"account_pubname.contains":a[`account-pubname-contains`],name:a.name,"name.startsWith":a[`name-starts-with`],"name.endsWith":a[`name-ends-with`],"name.contains":a[`name-contains`],order_by:a[`order-by`],direction:a.direction,include_tags:a[`include-tags`],include_total:a[`include-total`],page_token:a[`page-token`],page_size:a[`page-size`]};if(a.dryRun){n({command:`cf organization account list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/organizations/${a[`organization-id`]==null?`<organization-id>`:encodeURIComponent(String(a[`organization-id`]))}/accounts`,pathParams:{"organization-id":String(a[`organization-id`]??``)},query:i,bodyKind:`none`});return}let o=await e(a);t(await r(`Loading`,async()=>o.organization.account.list({organization_id:a[`organization-id`],...i})),{successLabel:`Loaded`})})},h={command:`account`,describe:`Operations for account`,builder:e=>e.command(m).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function g(e){return e.usage(`$0 organization create
20
+ requests with a page token.`}).option(`page-size`,{type:`number`,description:`The amount of items to return. Defaults to 10.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const m={command:`list`,describe:`List organization accounts`,builder:f(p),handler:async a=>i({command:`organization account list`,classification:{safeFlags:[`order-by`,`direction`,`include-tags`,`include-total`,`dry-run`]}},a,async()=>{let i={account_pubname:a[`account-pubname`],"account_pubname.startsWith":a[`account-pubname-starts-with`],"account_pubname.endsWith":a[`account-pubname-ends-with`],"account_pubname.contains":a[`account-pubname-contains`],name:a.name,"name.startsWith":a[`name-starts-with`],"name.endsWith":a[`name-ends-with`],"name.contains":a[`name-contains`],order_by:a[`order-by`],direction:a.direction,include_tags:a[`include-tags`],include_total:a[`include-total`],page_token:a[`page-token`],page_size:a[`page-size`]};if(a.dryRun){n({command:`cf organization account list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/organizations/${a[`organization-id`]==null?`<organization-id>`:encodeURIComponent(String(a[`organization-id`]))}/accounts`,pathParams:{"organization-id":String(a[`organization-id`]??``)},query:i,bodyKind:`none`});return}let o=await e(a);t(await r(`Loading`,async()=>o.organization.account.list({organization_id:a[`organization-id`],...i})),{successLabel:`Loaded`})})},h={command:`account`,describe:`Operations for account`,builder:e=>e.command(m).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function g(e){return e.usage(`$0 organization create
21
21
 
22
- Create a new organization for a user. (Currently in Public Beta - see https://developers.cloudflare.com/fundamentals/organizations/)`).option(`name`,{type:`string`,description:`The name field`}).option(`parent-id`,{type:`string`,description:`The parent.id field`}).option(`profile-business-address`,{type:`string`,description:`The profile.business_address field`}).option(`profile-business-email`,{type:`string`,description:`The profile.business_email field`}).option(`profile-business-name`,{type:`string`,description:`The profile.business_name field`}).option(`profile-business-phone`,{type:`string`,description:`The profile.business_phone field`}).option(`profile-external-metadata`,{type:`string`,description:`The profile.external_metadata field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`References an Organization in the Cloudflare data model.`}).check(e=>{if([`parent-id`].some(t=>e[t]!==void 0)){let t=[`parent-id`].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 --parent-* flag is set`)}return!0}).check(e=>{if([`profile-business-address`,`profile-business-email`,`profile-business-name`,`profile-business-phone`,`profile-external-metadata`].some(t=>e[t]!==void 0)){let t=[`profile-business-address`,`profile-business-email`,`profile-business-name`,`profile-business-phone`,`profile-external-metadata`].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 --profile-* flag is set`)}return!0})}const _={command:`create`,describe:`Create organization`,builder:g,handler:async o=>i({command:`organization create`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){n({command:`cf organization create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/organizations`,pathParams:{},bodyKind:`json`,body:o.body===void 0?s({name:c(o.name,`name`,`text`),parent:{id:c(o[`parent-id`],`parent-id`,`text`)},profile:{business_address:c(o[`profile-business-address`],`profile-business-address`,`text`),business_email:c(o[`profile-business-email`],`profile-business-email`,`text`),business_name:c(o[`profile-business-name`],`profile-business-name`,`text`),business_phone:c(o[`profile-business-phone`],`profile-business-phone`,`text`),external_metadata:c(o[`profile-external-metadata`],`profile-external-metadata`,`text`)}}):a(o.body)});return}let i=await e(o);if(o.body){let e=a(o.body);t(await r(`Creating`,async()=>i.organization.create({...e})),{successLabel:`Created`});return}o.name===void 0&&(o.name=await l(`name`,`The name field`));let u=s({name:c(o.name,`name`,`text`),parent:{id:c(o[`parent-id`],`parent-id`,`text`)},profile:{business_address:c(o[`profile-business-address`],`profile-business-address`,`text`),business_email:c(o[`profile-business-email`],`profile-business-email`,`text`),business_name:c(o[`profile-business-name`],`profile-business-name`,`text`),business_phone:c(o[`profile-business-phone`],`profile-business-phone`,`text`),external_metadata:c(o[`profile-external-metadata`],`profile-external-metadata`,`text`)}});t(await r(`Creating`,async()=>i.organization.create({...u})),{successLabel:`Created`})})};function v(e){return e.usage(`$0 organization delete <organization-id>
22
+ Create a new organization for a user. Sub-organization creation availability depends on the organization's capabilities. (Currently in Public Beta - see https://developers.cloudflare.com/fundamentals/organizations/)`).option(`name`,{type:`string`,description:`The name field`}).option(`parent-id`,{type:`string`,description:`The parent.id field`}).option(`profile-business-address`,{type:`string`,description:`The profile.business_address field`}).option(`profile-business-email`,{type:`string`,description:`The profile.business_email field`}).option(`profile-business-name`,{type:`string`,description:`The profile.business_name field`}).option(`profile-business-phone`,{type:`string`,description:`The profile.business_phone field`}).option(`profile-external-metadata`,{type:`string`,description:`The profile.external_metadata field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`References an Organization in the Cloudflare data model.`}).check(e=>{if([`parent-id`].some(t=>e[t]!==void 0)){let t=[`parent-id`].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 --parent-* flag is set`)}return!0}).check(e=>{if([`profile-business-address`,`profile-business-email`,`profile-business-name`,`profile-business-phone`,`profile-external-metadata`].some(t=>e[t]!==void 0)){let t=[`profile-business-address`,`profile-business-email`,`profile-business-name`,`profile-business-phone`,`profile-external-metadata`].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 --profile-* flag is set`)}return!0})}const _={command:`create`,describe:`Create organization`,builder:g,handler:async o=>i({command:`organization create`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){n({command:`cf organization create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/organizations`,pathParams:{},bodyKind:`json`,body:o.body===void 0?s({name:c(o.name,`name`,`text`),parent:{id:c(o[`parent-id`],`parent-id`,`text`)},profile:{business_address:c(o[`profile-business-address`],`profile-business-address`,`text`),business_email:c(o[`profile-business-email`],`profile-business-email`,`text`),business_name:c(o[`profile-business-name`],`profile-business-name`,`text`),business_phone:c(o[`profile-business-phone`],`profile-business-phone`,`text`),external_metadata:c(o[`profile-external-metadata`],`profile-external-metadata`,`text`)}}):a(o.body)});return}let i=await e(o);if(o.body){let e=a(o.body);t(await r(`Creating`,async()=>i.organization.create({...e})),{successLabel:`Created`});return}o.name===void 0&&(o.name=await l(`name`,`The name field`));let u=s({name:c(o.name,`name`,`text`),parent:{id:c(o[`parent-id`],`parent-id`,`text`)},profile:{business_address:c(o[`profile-business-address`],`profile-business-address`,`text`),business_email:c(o[`profile-business-email`],`profile-business-email`,`text`),business_name:c(o[`profile-business-name`],`profile-business-name`,`text`),business_phone:c(o[`profile-business-phone`],`profile-business-phone`,`text`),external_metadata:c(o[`profile-external-metadata`],`profile-external-metadata`,`text`)}});t(await r(`Creating`,async()=>i.organization.create({...u})),{successLabel:`Created`})})};function v(e){return e.usage(`$0 organization delete <organization-id>
23
23
 
24
- Delete an organization. The organization MUST be empty before deleting. It must not contain any sub-organizations, accounts, members or users. (Currently in Public Beta - see https://developers.cloudflare.com/fundamentals/organizations/) **Access Control:** Restricted to enterprise organizations.`).positional(`organization-id`,{type:`string`,description:`The ID of the organization to delete.`,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 y={command:`delete <organization-id>`,describe:`Delete organization.`,builder:v,handler:async a=>i({command:`organization delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},a,async()=>{if(a.dryRun){n({command:`cf organization delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/organizations/${a[`organization-id`]==null?`<organization-id>`:encodeURIComponent(String(a[`organization-id`]))}`,pathParams:{"organization-id":String(a[`organization-id`]??``)},bodyKind:`none`});return}let i=await e(a);if(!await d({force:!!a.force,message:`Are you sure? This action cannot be undone.`})){process.stderr.write(`Aborted.
24
+ Delete an organization. The organization MUST be empty before deleting. It must not contain any sub-organizations, accounts, members or users. Sub-organization deletion availability depends on the organization's capabilities. (Currently in Public Beta - see https://developers.cloudflare.com/fundamentals/organizations/) **Access Control:** Restricted to enterprise organizations.`).positional(`organization-id`,{type:`string`,description:`The ID of the organization to delete.`,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 y={command:`delete <organization-id>`,describe:`Delete organization`,builder:v,handler:async a=>i({command:`organization delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},a,async()=>{if(a.dryRun){n({command:`cf organization delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/organizations/${a[`organization-id`]==null?`<organization-id>`:encodeURIComponent(String(a[`organization-id`]))}`,pathParams:{"organization-id":String(a[`organization-id`]??``)},bodyKind:`none`});return}let i=await e(a);if(!await d({force:!!a.force,message:`Delete this empty organization? This action cannot be undone.`})){process.stderr.write(`Aborted.
25
25
  `);return}t(await r(`Deleting`,async()=>i.organization.delete({organization_id:a[`organization-id`]})),{successLabel:`Deleted`})})};function b(e){return e.usage(`$0 organization get <organization-id>
26
26
 
27
27
  Retrieve the details of a certain organization. (Currently in Public Beta - see https://developers.cloudflare.com/fundamentals/organizations/)`).positional(`organization-id`,{type:`string`,description:`The ID of the organization to retrieve.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`get <organization-id>`,describe:`Get organization`,builder:b,handler:async a=>i({command:`organization get`,classification:{safeFlags:[`dry-run`]}},a,async()=>{if(a.dryRun){n({command:`cf organization get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/organizations/${a[`organization-id`]==null?`<organization-id>`:encodeURIComponent(String(a[`organization-id`]))}`,pathParams:{"organization-id":String(a[`organization-id`]??``)},bodyKind:`none`});return}let i=await e(a);t(await r(`Loading`,async()=>i.organization.get({organization_id:a[`organization-id`]})),{successLabel:`Loaded`})})};function S(e){return e.usage(`$0 organization invite update <member-code>
@@ -55,7 +55,7 @@ Batch create multiple memberships that grant access to a specific Organization.`
55
55
 
56
56
  Create a membership that grants access to a specific Organization. (Currently in Public Beta - see https://developers.cloudflare.com/fundamentals/organizations/)`).positional(`organization-id`,{type:`string`,description:`Organization ID`,demandOption:!0}).option(`member-status`,{type:`string`,description:`The member.status field`,choices:[`active`,`canceled`]}).option(`member-user-email`,{type:`string`,description:`The member.user.email field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const j={command:`create <organization-id>`,describe:`Create organization member`,builder:A,handler:async o=>i({command:`organization member create`,classification:{safeFlags:[`member-status`,`dry-run`]}},o,async()=>{if(o.dryRun){n({command:`cf organization member create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/organizations/${o[`organization-id`]==null?`<organization-id>`:encodeURIComponent(String(o[`organization-id`]))}/members`,pathParams:{"organization-id":String(o[`organization-id`]??``)},bodyKind:`json`,body:o.body===void 0?s({member:{status:c(o[`member-status`],`member-status`,`text`),user:{email:c(o[`member-user-email`],`member-user-email`,`text`)}}}):a(o.body)});return}let i=await e(o);if(o.body){let e=a(o.body);t(await r(`Creating`,async()=>i.organization.member.create({...e,organization_id:o[`organization-id`]})),{successLabel:`Created`});return}o[`member-user-email`]===void 0&&(o[`member-user-email`]=await l(`member-user-email`,`The member.user.email field`));let u=s({member:{status:c(o[`member-status`],`member-status`,`text`),user:{email:c(o[`member-user-email`],`member-user-email`,`text`)}}});t(await r(`Creating`,async()=>i.organization.member.create({...u,organization_id:o[`organization-id`]})),{successLabel:`Created`})})};function M(e){return e.usage(`$0 organization member delete <member-id>
57
57
 
58
- Delete a membership to a particular Organization. (Currently in Public Beta - see https://developers.cloudflare.com/fundamentals/organizations/)`).positional(`member-id`,{type:`string`,description:`Organization Member ID`,demandOption:!0}).option(`organization-id`,{type:`string`,description:`Organization ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const N={command:`delete <member-id>`,describe:`Delete organization member`,builder:M,handler:async a=>i({command:`organization member delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},a,async()=>{if(a.dryRun){n({command:`cf organization member delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/organizations/${a[`organization-id`]==null?`<organization-id>`:encodeURIComponent(String(a[`organization-id`]))}/members/${a[`member-id`]==null?`<member-id>`:encodeURIComponent(String(a[`member-id`]))}`,pathParams:{"organization-id":String(a[`organization-id`]??``),"member-id":String(a[`member-id`]??``)},bodyKind:`none`});return}let i=await e(a);if(!await d({force:!!a.force,message:`Are you sure? This action cannot be undone.`})){process.stderr.write(`Aborted.
58
+ Delete a membership to a particular Organization. (Currently in Public Beta - see https://developers.cloudflare.com/fundamentals/organizations/)`).positional(`member-id`,{type:`string`,description:`Organization Member ID`,demandOption:!0}).option(`organization-id`,{type:`string`,description:`Organization ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const N={command:`delete <member-id>`,describe:`Delete organization member`,builder:M,handler:async a=>i({command:`organization member delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},a,async()=>{if(a.dryRun){n({command:`cf organization member delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/organizations/${a[`organization-id`]==null?`<organization-id>`:encodeURIComponent(String(a[`organization-id`]))}/members/${a[`member-id`]==null?`<member-id>`:encodeURIComponent(String(a[`member-id`]))}`,pathParams:{"organization-id":String(a[`organization-id`]??``),"member-id":String(a[`member-id`]??``)},bodyKind:`none`});return}let i=await e(a);if(!await d({force:!!a.force,message:`Delete this organization membership? The member will lose access to this organization and its sub-organizations.`})){process.stderr.write(`Aborted.
59
59
  `);return}t(await r(`Deleting`,async()=>i.organization.member.delete({organization_id:a[`organization-id`],member_id:a[`member-id`]})),{successLabel:`Deleted`})})};function P(e){return e.usage(`$0 organization member get <member-id>
60
60
 
61
61
  Retrieve a single membership from an Organization. (Currently in Public Beta - see https://developers.cloudflare.com/fundamentals/organizations/)`).positional(`member-id`,{type:`string`,description:`Organization Member ID`,demandOption:!0}).option(`organization-id`,{type:`string`,description:`Organization ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const F={command:`get <member-id>`,describe:`Get organization member`,builder:P,handler:async a=>i({command:`organization member get`,classification:{safeFlags:[`dry-run`]}},a,async()=>{if(a.dryRun){n({command:`cf organization member get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/organizations/${a[`organization-id`]==null?`<organization-id>`:encodeURIComponent(String(a[`organization-id`]))}/members/${a[`member-id`]==null?`<member-id>`:encodeURIComponent(String(a[`member-id`]))}`,pathParams:{"organization-id":String(a[`organization-id`]??``),"member-id":String(a[`member-id`]??``)},bodyKind:`none`});return}let i=await e(a);t(await r(`Loading`,async()=>i.organization.member.get({organization_id:a[`organization-id`],member_id:a[`member-id`]})),{successLabel:`Loaded`})})};function I(e){return e.usage(`$0 organization member list
@@ -72,4 +72,4 @@ Modify organization profile. (Currently in Public Beta - see https://developers.
72
72
 
73
73
  Lists all organization shares.`).option(`organization-id`,{type:`string`,description:`Organization identifier.`,demandOption:!0}).option(`status`,{type:`string`,description:`Filter shares by status.`,choices:[`active`,`deleting`,`deleted`]}).option(`kind`,{type:`string`,description:`Filter shares by kind.`,choices:[`sent`,`received`]}).option(`target-type`,{type:`string`,description:`Filter shares by target_type.`,choices:[`account`,`organization`]}).option(`resource-types`,{type:`string`,description:`Filter share resources by resource_types.`}).option(`order`,{type:`string`,description:`Order shares by values in the given field.`,choices:[`name`,`created`]}).option(`direction`,{type:`string`,description:`Direction to sort objects.`,choices:[`asc`,`desc`]}).option(`page`,{type:`number`,description:"Page number. Defaults to `1` when `per_page` is supplied without\n`page`. May be omitted entirely along with `per_page` to receive a\nnon-paginated response."}).option(`per-page`,{type:`number`,description:"Number of objects to return per page. Defaults to `20` when `page`\nis supplied without `per_page`. May be omitted entirely along with\n`page` to receive a non-paginated response."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const G={command:`list`,describe:`List organization shares`,builder:f(W),handler:async a=>i({command:`organization share list`,classification:{safeFlags:[`status`,`kind`,`target-type`,`order`,`direction`,`dry-run`]}},a,async()=>{let i={status:a.status,kind:a.kind,target_type:a[`target-type`],resource_types:a[`resource-types`],order:a.order,direction:a.direction,page:a.page,per_page:a[`per-page`]};if(a.dryRun){n({command:`cf organization share list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/organizations/${a[`organization-id`]==null?`<organization-id>`:encodeURIComponent(String(a[`organization-id`]))}/shares`,pathParams:{"organization-id":String(a[`organization-id`]??``)},query:i,bodyKind:`none`});return}let o=await e(a);t(await r(`Loading`,async()=>o.organization.share.list({organization_id:a[`organization-id`],...i})),{successLabel:`Loaded`})})},K={command:`share`,describe:`Operations for share`,builder:e=>e.command(G).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function q(e){return e.usage(`$0 organization update <organization-id>
74
74
 
75
- Modify organization. (Currently in Public Beta - see https://developers.cloudflare.com/fundamentals/organizations/)`).positional(`organization-id`,{type:`string`,description:`The ID of the organization to modify.`,demandOption:!0}).option(`name`,{type:`string`,description:`The name field`}).option(`parent-id`,{type:`string`,description:`The parent.id field`}).option(`profile-business-address`,{type:`string`,description:`The profile.business_address field`}).option(`profile-business-email`,{type:`string`,description:`The profile.business_email field`}).option(`profile-business-name`,{type:`string`,description:`The profile.business_name field`}).option(`profile-business-phone`,{type:`string`,description:`The profile.business_phone field`}).option(`profile-external-metadata`,{type:`string`,description:`The profile.external_metadata field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`The new details of the organization. Only accepts updates to "name" currently.`}).check(e=>{if([`parent-id`].some(t=>e[t]!==void 0)){let t=[`parent-id`].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 --parent-* flag is set`)}return!0}).check(e=>{if([`profile-business-address`,`profile-business-email`,`profile-business-name`,`profile-business-phone`,`profile-external-metadata`].some(t=>e[t]!==void 0)){let t=[`profile-business-address`,`profile-business-email`,`profile-business-name`,`profile-business-phone`,`profile-external-metadata`].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 --profile-* flag is set`)}return!0})}const J={command:`update <organization-id>`,describe:`Modify organization.`,builder:q,handler:async o=>i({command:`organization update`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){n({command:`cf organization update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/organizations/${o[`organization-id`]==null?`<organization-id>`:encodeURIComponent(String(o[`organization-id`]))}`,pathParams:{"organization-id":String(o[`organization-id`]??``)},bodyKind:`json`,body:o.body===void 0?s({name:c(o.name,`name`,`text`),parent:{id:c(o[`parent-id`],`parent-id`,`text`)},profile:{business_address:c(o[`profile-business-address`],`profile-business-address`,`text`),business_email:c(o[`profile-business-email`],`profile-business-email`,`text`),business_name:c(o[`profile-business-name`],`profile-business-name`,`text`),business_phone:c(o[`profile-business-phone`],`profile-business-phone`,`text`),external_metadata:c(o[`profile-external-metadata`],`profile-external-metadata`,`text`)}}):a(o.body)});return}let i=await e(o);if(o.body){let e=a(o.body);t(await r(`Updating`,async()=>i.organization.update({body:e,organization_id:o[`organization-id`]})),{successLabel:`Updated`});return}o.name===void 0&&(o.name=await l(`name`,`The name field`));let u=s({name:c(o.name,`name`,`text`),parent:{id:c(o[`parent-id`],`parent-id`,`text`)},profile:{business_address:c(o[`profile-business-address`],`profile-business-address`,`text`),business_email:c(o[`profile-business-email`],`profile-business-email`,`text`),business_name:c(o[`profile-business-name`],`profile-business-name`,`text`),business_phone:c(o[`profile-business-phone`],`profile-business-phone`,`text`),external_metadata:c(o[`profile-external-metadata`],`profile-external-metadata`,`text`)}});t(await r(`Updating`,async()=>i.organization.update({body:u,organization_id:o[`organization-id`]})),{successLabel:`Updated`})})},Y={command:`organization`,describe:`organization`,builder:e=>e.command(_).command(y).command(x).command(E).command(J).command(h).command(w).command(R).command(U).command(K).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Y as default};
75
+ Update an organization's name. (Currently in Public Beta - see https://developers.cloudflare.com/fundamentals/organizations/)`).positional(`organization-id`,{type:`string`,description:`The ID of the organization to modify.`,demandOption:!0}).option(`name`,{type:`string`,description:`The name field`}).option(`parent-id`,{type:`string`,description:`The parent.id field`}).option(`profile-business-address`,{type:`string`,description:`The profile.business_address field`}).option(`profile-business-email`,{type:`string`,description:`The profile.business_email field`}).option(`profile-business-name`,{type:`string`,description:`The profile.business_name field`}).option(`profile-business-phone`,{type:`string`,description:`The profile.business_phone field`}).option(`profile-external-metadata`,{type:`string`,description:`The profile.external_metadata field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`The new details of the organization. Only accepts updates to "name" currently.`}).check(e=>{if([`parent-id`].some(t=>e[t]!==void 0)){let t=[`parent-id`].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 --parent-* flag is set`)}return!0}).check(e=>{if([`profile-business-address`,`profile-business-email`,`profile-business-name`,`profile-business-phone`,`profile-external-metadata`].some(t=>e[t]!==void 0)){let t=[`profile-business-address`,`profile-business-email`,`profile-business-name`,`profile-business-phone`,`profile-external-metadata`].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 --profile-* flag is set`)}return!0})}const J={command:`update <organization-id>`,describe:`Update organization`,builder:q,handler:async o=>i({command:`organization update`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){n({command:`cf organization update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/organizations/${o[`organization-id`]==null?`<organization-id>`:encodeURIComponent(String(o[`organization-id`]))}`,pathParams:{"organization-id":String(o[`organization-id`]??``)},bodyKind:`json`,body:o.body===void 0?s({name:c(o.name,`name`,`text`),parent:{id:c(o[`parent-id`],`parent-id`,`text`)},profile:{business_address:c(o[`profile-business-address`],`profile-business-address`,`text`),business_email:c(o[`profile-business-email`],`profile-business-email`,`text`),business_name:c(o[`profile-business-name`],`profile-business-name`,`text`),business_phone:c(o[`profile-business-phone`],`profile-business-phone`,`text`),external_metadata:c(o[`profile-external-metadata`],`profile-external-metadata`,`text`)}}):a(o.body)});return}let i=await e(o);if(o.body){let e=a(o.body);t(await r(`Updating`,async()=>i.organization.update({body:e,organization_id:o[`organization-id`]})),{successLabel:`Updated`});return}o.name===void 0&&(o.name=await l(`name`,`The name field`));let u=s({name:c(o.name,`name`,`text`),parent:{id:c(o[`parent-id`],`parent-id`,`text`)},profile:{business_address:c(o[`profile-business-address`],`profile-business-address`,`text`),business_email:c(o[`profile-business-email`],`profile-business-email`,`text`),business_name:c(o[`profile-business-name`],`profile-business-name`,`text`),business_phone:c(o[`profile-business-phone`],`profile-business-phone`,`text`),external_metadata:c(o[`profile-external-metadata`],`profile-external-metadata`,`text`)}});t(await r(`Updating`,async()=>i.organization.update({body:u,organization_id:o[`organization-id`]})),{successLabel:`Updated`})})},Y={command:`organization`,describe:`organization`,builder:e=>e.command(_).command(y).command(x).command(E).command(J).command(h).command(w).command(R).command(U).command(K).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Y as default};
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import{r as e}from"./auth-C80y97yu.mjs";import{t}from"./output-Bia1u2k5.mjs";import{t as n}from"./dry-run-CLX6Pbtq.mjs";import{t as r}from"./progress-Bpp73hIu.mjs";import{t as i}from"./run-ChM_YpZ0.mjs";import"./telemetry-CNt8H3aA.mjs";import{t as a}from"./cli-types-tt_LZMbn.mjs";function o(e){return e.usage("$0 organizations billing usage get <organization-id>\n\nReturns cost and usage data for all accounts within an organization, aligned with the [FinOps FOCUS v1.3](https://focus.finops.org/focus-specification/v1-3/) Cost and Usage dataset specification. Each record represents one billable metric for one account on one day. This includes all metered usage, including usage that falls within free-tier allowances and may result in zero cost. The response includes usage for every account belonging to the specified organization. **Note:** Cost and pricing fields are not yet populated and will be absent from responses until billing integration is complete. When `from` and `to` are omitted, defaults to the start of the current month through today. The maximum date range is 31 days. An organization with no accounts, or an organization ID that does not exist, returns a successful response with an empty result set rather than an error.").positional(`organization-id`,{type:`string`,description:`Identifies the Cloudflare organization.`,demandOption:!0}).option(`from`,{type:`string`,description:"Start date for the usage query (ISO 8601). Required if `to` is set. When omitted along with `to`, defaults to the start of the current month. Filters by charge period (when consumption happened), not billing period. The maximum date range is 31 days."}).option(`to`,{type:`string`,description:"End date for the usage query (ISO 8601). Required if `from` is set. When omitted along with `from`, defaults to today. Filters by charge period (when consumption happened), not billing period. The maximum date range is 31 days."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const s={command:`get <organization-id>`,describe:`Get Organization Usage (Version 2, Alpha, Restricted)`,builder:o,handler:async a=>i({command:`organizations billing usage get`,classification:{safeFlags:[`dry-run`]}},a,async()=>{let i={from:a.from,to:a.to};if(a.dryRun){n({command:`cf organizations billing usage get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/organizations/${a[`organization-id`]==null?`<organization-id>`:encodeURIComponent(String(a[`organization-id`]))}/billable/usage`,pathParams:{"organization-id":String(a[`organization-id`]??``)},query:i,bodyKind:`none`});return}let o=await e(a);t(await r(`Loading`,async()=>o.organizations.billing.usage.get({organization_id:a[`organization-id`],...i})),{successLabel:`Loaded`})})},c={command:`usage`,describe:`Operations for billing.usage`,builder:e=>e.command(s).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},l={command:`billing`,describe:`Operations for billing`,builder:e=>e.command(c).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function u(e){return e.usage(`$0 organizations logs audit get <organization-id>
2
+ import{r as e}from"./auth-BIr56Mbx.mjs";import{t}from"./output-CvQFJkvi.mjs";import{t as n}from"./dry-run-Bq0JAsbX.mjs";import{t as r}from"./progress-A61dRbXl.mjs";import{t as i}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{t as a}from"./cli-types-DoVT5q_M.mjs";function o(e){return e.usage("$0 organizations billing usage get <organization-id>\n\nReturns cost and usage data for all accounts within an organization, aligned with the [FinOps FOCUS v1.3](https://focus.finops.org/focus-specification/v1-3/) Cost and Usage dataset specification. Each record represents one billable metric for one account on one day. This includes all metered usage, including usage that falls within free-tier allowances and may result in zero cost. The response includes usage for every account belonging to the specified organization. **Note:** Cost and pricing fields are not yet populated and will be absent from responses until billing integration is complete. When `from` and `to` are omitted, defaults to the start of the current month through today. The maximum date range is 31 days. An organization with no accounts, or an organization ID that does not exist, returns a successful response with an empty result set rather than an error.").positional(`organization-id`,{type:`string`,description:`Identifies the Cloudflare organization.`,demandOption:!0}).option(`from`,{type:`string`,description:"Start date for the usage query (ISO 8601). Required if `to` is set. When omitted along with `to`, defaults to the start of the current month. Filters by charge period (when consumption happened), not billing period. The maximum date range is 31 days."}).option(`to`,{type:`string`,description:"End date for the usage query (ISO 8601). Required if `from` is set. When omitted along with `from`, defaults to today. Filters by charge period (when consumption happened), not billing period. The maximum date range is 31 days."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const s={command:`get <organization-id>`,describe:`Get Organization Usage (Version 2, Alpha, Restricted)`,builder:o,handler:async a=>i({command:`organizations billing usage get`,classification:{safeFlags:[`dry-run`]}},a,async()=>{let i={from:a.from,to:a.to};if(a.dryRun){n({command:`cf organizations billing usage get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/organizations/${a[`organization-id`]==null?`<organization-id>`:encodeURIComponent(String(a[`organization-id`]))}/billable/usage`,pathParams:{"organization-id":String(a[`organization-id`]??``)},query:i,bodyKind:`none`});return}let o=await e(a);t(await r(`Loading`,async()=>o.organizations.billing.usage.get({organization_id:a[`organization-id`],...i})),{successLabel:`Loaded`})})},c={command:`usage`,describe:`Operations for billing.usage`,builder:e=>e.command(s).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},l={command:`billing`,describe:`Operations for billing`,builder:e=>e.command(c).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function u(e){return e.usage(`$0 organizations logs audit get <organization-id>
3
3
 
4
4
  Gets a list of audit logs for an organization.`).positional(`organization-id`,{type:`string`,description:`The unique id that identifies the organization.`,demandOption:!0}).option(`action-result`,{type:`string`,description:`Filters by whether the action was successful or not.`}).option(`action-type`,{type:`string`,description:`Filters by the action type.`}).option(`actor-context`,{type:`string`,description:"Filters by the actor context.\n- `api`: The action was performed through the API. The specific credential type was not recorded.\n- `api_key`: The action was authenticated with a Cloudflare Global API Key.\n- `api_token`: The action was authenticated with an API token.\n- `dash`: The action was performed through the Cloudflare dashboard.\n- `oauth`: The action was authenticated with an OAuth token.\n- `origin_ca_key`: The action was authenticated with an Origin CA key."}).option(`actor-email`,{type:`string`,description:`Filters by the actor's email address.`}).option(`actor-id`,{type:`string`,description:`Filters by the actor's user ID.`}).option(`actor-ip-address`,{type:`string`,description:`The IP address where the action was initiated.`}).option(`actor-token-id`,{type:`string`,description:`Filters by the API token ID when the actor context is an api_token or oauth.`}).option(`actor-token-name`,{type:`string`,description:`Filters by the API token name when the actor context is an api_token or oauth.`}).option(`actor-type`,{type:`string`,description:`Filters by the actor type.`}).option(`id`,{type:`string`,description:`Finds a specific log by its ID.`}).option(`raw-cf-ray-id`,{type:`string`,description:`Filters by the response CF Ray ID.`}).option(`raw-method`,{type:`string`,description:`The HTTP method for the API call.`}).option(`raw-status-code`,{type:`string`,description:`The response status code that was returned.`}).option(`raw-uri`,{type:`string`,description:`Filters by the request URI.`}).option(`resource-id`,{type:`string`,description:`Filters by the resource ID.`}).option(`resource-product`,{type:`string`,description:`Filters audit logs by the Cloudflare product associated with the changed resource.`}).option(`resource-type`,{type:`string`,description:`Filters audit logs based on the unique type of resource changed by the action.`}).option(`resource-scope`,{type:`string`,description:`Filters by the resource scope, specifying whether the resource is associated with an organization.`}).option(`action-result-not`,{type:`string`,description:`Filters out audit logs by whether the action was successful or not.`}).option(`action-type-not`,{type:`string`,description:`Filters out audit logs by the action type.`}).option(`actor-context-not`,{type:`string`,description:"Filters out audit logs by the actor context.\n- `api`: The action was performed through the API. The specific credential type was not recorded.\n- `api_key`: The action was authenticated with a Cloudflare Global API Key.\n- `api_token`: The action was authenticated with an API token.\n- `dash`: The action was performed through the Cloudflare dashboard.\n- `oauth`: The action was authenticated with an OAuth token.\n- `origin_ca_key`: The action was authenticated with an Origin CA key."}).option(`actor-email-not`,{type:`string`,description:`Filters out audit logs by the actor's email address.`}).option(`actor-id-not`,{type:`string`,description:`Filters out audit logs by the actor's user ID.`}).option(`actor-ip-address-not`,{type:`string`,description:`Filters out audit logs IP address where the action was initiated.`}).option(`actor-token-id-not`,{type:`string`,description:`Filters out audit logs by the API token ID when the actor context is an api_token or oauth.`}).option(`actor-token-name-not`,{type:`string`,description:`Filters out audit logs by the API token name when the actor context is an api_token or oauth.`}).option(`actor-type-not`,{type:`string`,description:`Filters out audit logs by the actor type.`}).option(`id-not`,{type:`string`,description:`Filters out audit logs by their IDs.`}).option(`raw-cf-ray-id-not`,{type:`string`,description:`Filters out audit logs by the response CF Ray ID.`}).option(`raw-method-not`,{type:`string`,description:`Filters out audit logs by the HTTP method for the API call.`}).option(`raw-status-code-not`,{type:`string`,description:`Filters out audit logs by the response status code that was returned.`}).option(`raw-uri-not`,{type:`string`,description:`Filters out audit logs by the request URI.`}).option(`resource-id-not`,{type:`string`,description:`Filters out audit logs by the resource ID.`}).option(`resource-product-not`,{type:`string`,description:`Filters out audit logs by the Cloudflare product associated with the changed resource.`}).option(`resource-type-not`,{type:`string`,description:`Filters out audit logs based on the unique type of resource changed by the action.`}).option(`resource-scope-not`,{type:`string`,description:`Filters out audit logs by the resource scope, specifying whether the resource is associated with an organization.`}).option(`since`,{type:`string`,description:`Limits the returned results to logs newer than the specified date. This can be a date string 2019-04-30 (interpreted in UTC) or an absolute timestamp that conforms to RFC3339.`,demandOption:!0}).option(`before`,{type:`string`,description:`Limits the returned results to logs older than the specified date. This can be a date string 2019-04-30 (interpreted in UTC) or an absolute timestamp that conforms to RFC3339.`,demandOption:!0}).option(`direction`,{type:`string`,description:`Sets sorting order.`,choices:[`desc`,`asc`]}).option(`limit`,{type:`number`,description:`The number limits the objects to return. The cursor attribute may be used to iterate over the next batch of objects if there are more than the limit.`}).option(`cursor`,{type:`string`,description:`The cursor is an opaque token used to paginate through large sets of records. It indicates the position from which to continue when requesting the next set of records. A valid cursor value can be obtained from the cursor object in the result_info structure of a previous response.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const d={command:`get <organization-id>`,describe:`Get organization audit logs (Version 2)`,builder:a(u),handler:async a=>i({command:`organizations logs audit get`,classification:{safeFlags:[`direction`,`dry-run`]}},a,async()=>{let i={action_result:a[`action-result`],action_type:a[`action-type`],actor_context:a[`actor-context`],actor_email:a[`actor-email`],actor_id:a[`actor-id`],actor_ip_address:a[`actor-ip-address`],actor_token_id:a[`actor-token-id`],actor_token_name:a[`actor-token-name`],actor_type:a[`actor-type`],id:a.id,raw_cf_ray_id:a[`raw-cf-ray-id`],raw_method:a[`raw-method`],raw_status_code:a[`raw-status-code`],raw_uri:a[`raw-uri`],resource_id:a[`resource-id`],resource_product:a[`resource-product`],resource_type:a[`resource-type`],resource_scope:a[`resource-scope`],"action_result.not":a[`action-result-not`],"action_type.not":a[`action-type-not`],"actor_context.not":a[`actor-context-not`],"actor_email.not":a[`actor-email-not`],"actor_id.not":a[`actor-id-not`],"actor_ip_address.not":a[`actor-ip-address-not`],"actor_token_id.not":a[`actor-token-id-not`],"actor_token_name.not":a[`actor-token-name-not`],"actor_type.not":a[`actor-type-not`],"id.not":a[`id-not`],"raw_cf_ray_id.not":a[`raw-cf-ray-id-not`],"raw_method.not":a[`raw-method-not`],"raw_status_code.not":a[`raw-status-code-not`],"raw_uri.not":a[`raw-uri-not`],"resource_id.not":a[`resource-id-not`],"resource_product.not":a[`resource-product-not`],"resource_type.not":a[`resource-type-not`],"resource_scope.not":a[`resource-scope-not`],since:a.since,before:a.before,direction:a.direction,limit:a.limit,cursor:a.cursor};if(a.dryRun){n({command:`cf organizations logs audit get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/organizations/${a[`organization-id`]==null?`<organization-id>`:encodeURIComponent(String(a[`organization-id`]))}/logs/audit`,pathParams:{"organization-id":String(a[`organization-id`]??``)},query:i,bodyKind:`none`});return}let o=await e(a);t(await r(`Loading`,async()=>o.organizations.logs.audit.get({organization_id:a[`organization-id`],...i})),{successLabel:`Loaded`})})};function f(e){return e.usage("$0 organizations logs audit history <id>\n\nReturns the chronological change history for the resource identified by the given organization-scoped audit log entry. The endpoint first locates the source audit log entry by `id` (using `action_time` to narrow the lookup window), derives identifying filters from that entry, and then returns matching audit logs within the `since`/`before` window. The `result_info.history_status` field indicates the quality of the resource identification used: - `exact`: Resource was identified by the resource URI. - `approximate`: Resource was identified without the resource URI. - `unavailable`: The source audit log entry did not contain enough information to identify the resource; an empty result is returned.").positional(`id`,{type:`string`,description:`The ID of the audit log to fetch resource history for.`,demandOption:!0}).option(`organization-id`,{type:`string`,description:`The unique ID that identifies the organization.`,demandOption:!0}).option(`action-time`,{type:`string`,description:"RFC3339 timestamp of the source audit log entry's action time. Used to narrow the source-entry lookup window. Provide the `action.time` value from the audit log identified by `id`.",demandOption:!0}).option(`since`,{type:`string`,description:`Limits the returned results to logs newer than the specified date. This can be a date string 2019-04-30 (interpreted in UTC) or an absolute timestamp that conforms to RFC3339.`,demandOption:!0}).option(`before`,{type:`string`,description:`Limits the returned results to logs older than the specified date. This can be a date string 2019-04-30 (interpreted in UTC) or an absolute timestamp that conforms to RFC3339.`,demandOption:!0}).option(`direction`,{type:`string`,description:`Sets sorting order.`,choices:[`desc`,`asc`]}).option(`limit`,{type:`number`,description:`The number limits the objects to return. The cursor attribute may be used to iterate over the next batch of objects if there are more than the limit.`}).option(`cursor`,{type:`string`,description:`The cursor is an opaque token used to paginate through large sets of records. It indicates the position from which to continue when requesting the next set of records. A valid cursor value can be obtained from the cursor object in the result_info structure of a previous response.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const p={command:`history <id>`,describe:`Get resource change history from an organization audit log entry (Version 2)`,builder:a(f),handler:async a=>i({command:`organizations logs audit history`,classification:{safeFlags:[`direction`,`dry-run`]}},a,async()=>{let i={action_time:a[`action-time`],since:a.since,before:a.before,direction:a.direction,limit:a.limit,cursor:a.cursor};if(a.dryRun){n({command:`cf organizations logs audit history`,method:`GET`,url:`https://api.cloudflare.com/client/v4/organizations/${a[`organization-id`]==null?`<organization-id>`:encodeURIComponent(String(a[`organization-id`]))}/logs/audit/${a.id==null?`<id>`:encodeURIComponent(String(a.id))}/history`,pathParams:{"organization-id":String(a[`organization-id`]??``),id:String(a.id??``)},query:i,bodyKind:`none`});return}let o=await e(a);t(await r(`Loading`,async()=>o.organizations.logs.audit.history({organization_id:a[`organization-id`],id:a.id,...i})),{successLabel:`Loaded`})})},m={command:`audit`,describe:`Operations for logs.audit`,builder:e=>e.command(d).command(p).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},h={command:`logs`,describe:`Operations for logs`,builder:e=>e.command(m).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},g={command:`organizations`,describe:`Multi-user organizations that group accounts, members, and shared settings under a single entity`,builder:e=>e.command(l).command(h).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{g as default};
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
- import{r as e}from"./auth-C80y97yu.mjs";import{t}from"./output-Bia1u2k5.mjs";import{t as n}from"./dry-run-CLX6Pbtq.mjs";import{t as r}from"./progress-Bpp73hIu.mjs";import{t as i}from"./run-ChM_YpZ0.mjs";import"./telemetry-CNt8H3aA.mjs";import{n as a,t as o}from"./body-parser-CUWbw_Tq.mjs";import{n as s}from"./input-validation-Ch4Vllrm.mjs";import{a as c,i as l,n as u}from"./prompt-CpZztV8c.mjs";import{t as d}from"./cli-types-tt_LZMbn.mjs";function f(e){return e.usage(`$0 origin-ca-certificates create
2
+ import{r as e}from"./auth-BIr56Mbx.mjs";import{t}from"./output-CvQFJkvi.mjs";import{t as n}from"./dry-run-Bq0JAsbX.mjs";import{t as r}from"./progress-A61dRbXl.mjs";import{t as i}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{n as a,t as o}from"./body-parser-hh2avzkz.mjs";import{n as s}from"./input-validation-Dk52b0me.mjs";import{a as c,i as l,n as u}from"./prompt-CGUzvBgY.mjs";import{t as d}from"./cli-types-DoVT5q_M.mjs";function f(e){return e.usage(`$0 origin-ca-certificates create
3
3
 
4
4
  Create an Origin CA certificate. You can use an Origin CA Key as your User Service Key or an API token when calling this endpoint ([see above](#requests)).`).option(`csr`,{type:`string`,description:`The Certificate Signing Request (CSR). Must be newline-encoded.`}).option(`hostnames`,{type:`string`,array:!0,description:"Array of hostnames or wildcard names bound to the certificate.\nHostnames must be fully qualified domain names (FQDNs) belonging to zones on your account (e.g., `example.com` or `sub.example.com`). Wildcards are supported only as a `*.` prefix for a single level (e.g., `*.example.com`). Double wildcards (`*.*.example.com`) and interior wildcards (`foo.*.example.com`) are not allowed. The wildcard suffix must be a multi-label domain (`*.example.com` is valid, but `*.com` is not). Unicode/IDN hostnames are accepted and automatically converted to punycode."}).option(`request-type`,{type:`string`,description:`Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers).`,choices:[`origin-rsa`,`origin-ecc`,`keyless-certificate`]}).option(`requested-validity`,{type:`number`,description:`The number of days for which the certificate should be valid.`,default:5475}).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 p={command:`create`,describe:`Create Certificate`,builder:f,handler:async u=>i({command:`origin-ca-certificates create`,classification:{safeFlags:[`request-type`,`dry-run`]}},u,async()=>{if(u.dryRun){n({command:`cf origin-ca-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/certificates`,pathParams:{},bodyKind:`json`,body:u.body===void 0?o({csr:s(u.csr,`csr`,`text`),hostnames:u.hostnames,request_type:s(u[`request-type`],`request-type`,`text`),requested_validity:u[`requested-validity`]}):a(u.body)});return}let i=await e(u);if(u.body){let e=a(u.body);t(await r(`Creating`,async()=>i.originCaCertificates.create({...e})),{successLabel:`Created`});return}if(u.csr===void 0&&(u.csr=await c(`csr`,`The Certificate Signing Request (CSR). Must be newline-encoded.`)),u.hostnames===void 0)throw Error(`--hostnames is required (or pass --body with this field set).`);u[`request-type`]===void 0&&(u[`request-type`]=await l(`request-type`,`Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers).`,[`origin-rsa`,`origin-ecc`,`keyless-certificate`]));let d=o({csr:s(u.csr,`csr`,`text`),hostnames:u.hostnames,request_type:s(u[`request-type`],`request-type`,`text`),requested_validity:u[`requested-validity`]});t(await r(`Creating`,async()=>i.originCaCertificates.create({...d})),{successLabel:`Created`})})};function m(e){return e.usage(`$0 origin-ca-certificates delete <certificate-id>
5
5
 
6
- Revoke an existing Origin CA certificate by its serial number. You can use an Origin CA Key as your User Service Key or an API token when calling this endpoint ([see above](#requests)).`).positional(`certificate-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const h={command:`delete <certificate-id>`,describe:`Revoke Certificate`,builder:m,handler:async a=>i({command:`origin-ca-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},a,async()=>{if(a.dryRun){n({command:`cf origin-ca-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/certificates/${a[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(a[`certificate-id`]))}`,pathParams:{"certificate-id":String(a[`certificate-id`]??``)},bodyKind:`none`});return}let i=await e(a);if(!await u({force:!!a.force})){process.stderr.write(`Aborted.
6
+ Revoke an existing Origin CA certificate by its serial number. You can use an Origin CA Key as your User Service Key or an API token when calling this endpoint ([see above](#requests)).`).positional(`certificate-id`,{type:`string`,description:`The x509 serial number of the Origin CA certificate.`,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 h={command:`delete <certificate-id>`,describe:`Revoke Certificate`,builder:m,handler:async a=>i({command:`origin-ca-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},a,async()=>{if(a.dryRun){n({command:`cf origin-ca-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/certificates/${a[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(a[`certificate-id`]))}`,pathParams:{"certificate-id":String(a[`certificate-id`]??``)},bodyKind:`none`});return}let i=await e(a);if(!await u({force:!!a.force})){process.stderr.write(`Aborted.
7
7
  `);return}t(await r(`Deleting`,async()=>i.originCaCertificates.delete({certificate_id:a[`certificate-id`]})),{successLabel:`Deleted`})})};function g(e){return e.usage(`$0 origin-ca-certificates get <certificate-id>
8
8
 
9
- Get an existing Origin CA certificate by its serial number. You can use an Origin CA Key as your User Service Key or an API token when calling this endpoint ([see above](#requests)).`).positional(`certificate-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _={command:`get <certificate-id>`,describe:`Get Certificate`,builder:g,handler:async a=>i({command:`origin-ca-certificates get`,classification:{safeFlags:[`dry-run`]}},a,async()=>{if(a.dryRun){n({command:`cf origin-ca-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/certificates/${a[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(a[`certificate-id`]))}`,pathParams:{"certificate-id":String(a[`certificate-id`]??``)},bodyKind:`none`});return}let i=await e(a);t(await r(`Loading`,async()=>i.originCaCertificates.get({certificate_id:a[`certificate-id`]})),{successLabel:`Loaded`})})};function v(e){return e.usage(`$0 origin-ca-certificates list
9
+ Get an existing Origin CA certificate by its serial number. You can use an Origin CA Key as your User Service Key or an API token when calling this endpoint ([see above](#requests)).`).positional(`certificate-id`,{type:`string`,description:`The x509 serial number of the Origin CA certificate.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _={command:`get <certificate-id>`,describe:`Get Certificate`,builder:g,handler:async a=>i({command:`origin-ca-certificates get`,classification:{safeFlags:[`dry-run`]}},a,async()=>{if(a.dryRun){n({command:`cf origin-ca-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/certificates/${a[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(a[`certificate-id`]))}`,pathParams:{"certificate-id":String(a[`certificate-id`]??``)},bodyKind:`none`});return}let i=await e(a);t(await r(`Loading`,async()=>i.originCaCertificates.get({certificate_id:a[`certificate-id`]})),{successLabel:`Loaded`})})};function v(e){return e.usage(`$0 origin-ca-certificates list
10
10
 
11
11
  List all existing Origin CA certificates for a given zone. You can use an Origin CA Key as your User Service Key or an API token when calling this endpoint ([see above](#requests)).`).option(`zone-id`,{type:`string`,description:`Identifier.`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of records per page.`}).option(`limit`,{type:`number`,description:`Limit to the number of records returned.`}).option(`offset`,{type:`number`,description:`Offset the results.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const y={command:`list`,describe:`List Certificates`,builder:d(v),handler:async a=>i({command:`origin-ca-certificates list`,classification:{safeFlags:[`dry-run`]}},a,async()=>{let i={zone_id:a[`zone-id`],page:a.page,per_page:a[`per-page`],limit:a.limit,offset:a.offset};if(a.dryRun){n({command:`cf origin-ca-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/certificates`,pathParams:{},query:i,bodyKind:`none`});return}let o=await e(a);t(await r(`Loading`,async()=>o.originCaCertificates.list(i)),{successLabel:`Loaded`})})},b={command:`origin-ca-certificates`,describe:`origin-ca-certificates`,builder:e=>e.command(p).command(h).command(_).command(y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{b as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{_ as e}from"./oauth-C-QCVfWz.mjs";import{r as t}from"./auth-C80y97yu.mjs";import{t as n}from"./output-Bia1u2k5.mjs";import{t as r}from"./dry-run-CLX6Pbtq.mjs";import{t as i}from"./progress-Bpp73hIu.mjs";import{t as a}from"./run-ChM_YpZ0.mjs";import"./telemetry-CNt8H3aA.mjs";import{n as o,t as s}from"./body-parser-CUWbw_Tq.mjs";import{n as c}from"./input-validation-Ch4Vllrm.mjs";import{i as l}from"./prompt-CpZztV8c.mjs";function u(e){return e.usage(`$0 origin-post-quantum-encryption get
2
+ import{i as e}from"./context-CEOHpZgd.mjs";import{r as t}from"./auth-BIr56Mbx.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-A61dRbXl.mjs";import{t as a}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{i as l}from"./prompt-CGUzvBgY.mjs";function u(e){return e.usage(`$0 origin-post-quantum-encryption get
3
3
 
4
4
  Instructs Cloudflare to use Post-Quantum (PQ) key agreement algorithms when connecting to your origin. Preferred instructs Cloudflare to opportunistically send a Post-Quantum keyshare in the first message to the origin (for fastest connections when the origin supports and prefers PQ), supported means that PQ algorithms are advertised but only used when requested by the origin, and off means that PQ algorithms are not advertised.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const d={command:`get`,describe:`Get Origin Post-Quantum Encryption setting`,builder:u,handler:async o=>a({command:`origin-post-quantum-encryption get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf origin-post-quantum-encryption get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/cache/origin_post_quantum_encryption`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.originPostQuantumEncryption.get({zone_id:s})),{successLabel:`Loaded`})})};function f(e){return e.usage(`$0 origin-post-quantum-encryption update
5
5
 
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
- import{_ as e}from"./oauth-C-QCVfWz.mjs";import{r as t}from"./auth-C80y97yu.mjs";import{t as n}from"./output-Bia1u2k5.mjs";import{t as r}from"./dry-run-CLX6Pbtq.mjs";import{t as i}from"./progress-Bpp73hIu.mjs";import{t as a}from"./run-ChM_YpZ0.mjs";import"./telemetry-CNt8H3aA.mjs";import{n as o,r as s,t as c}from"./body-parser-CUWbw_Tq.mjs";import{n as l}from"./input-validation-Ch4Vllrm.mjs";import{a as u,n as d}from"./prompt-CpZztV8c.mjs";import{t as f}from"./cli-types-tt_LZMbn.mjs";function p(e){return e.usage(`$0 origin-tls-client-auth hostname-associations list
2
+ import{i as e}from"./context-CEOHpZgd.mjs";import{r as t}from"./auth-BIr56Mbx.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-A61dRbXl.mjs";import{t as a}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{n as o,r as s,t as c}from"./body-parser-hh2avzkz.mjs";import{n as l}from"./input-validation-Dk52b0me.mjs";import{a as u,n as d}from"./prompt-CGUzvBgY.mjs";import{t as f}from"./cli-types-DoVT5q_M.mjs";function p(e){return e.usage(`$0 origin-tls-client-auth hostname-associations list
3
3
 
4
4
  List certificate ID - hostname associations for the given zone. Shows which hostnames are associated to which certificates for authenticated origin pulls.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of associations per page.`}).option(`status`,{type:`string`,description:`Filter associations by status. Use comma-separated values to filter by multiple statuses, or "all" to include every status. Defaults to "active" if not provided.`,choices:[`active`,`pending_deployment`,`pending_deletion`,`deleted`,`deployment_timed_out`,`deletion_timed_out`,`all`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const m={command:`list`,describe:`List Hostname Associations`,builder:f(p),handler:async o=>a({command:`origin-tls-client-auth hostname-associations list`,classification:{safeFlags:[`status`,`dry-run`]}},o,async()=>{let a={page:o.page,per_page:o[`per-page`],status:o.status};if(o.dryRun){r({command:`cf origin-tls-client-auth hostname-associations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/origin_tls_client_auth/hostnames`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},query:a,bodyKind:`none`});return}let s=await t(o),c=await e({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c,n(await i(`Loading`,async()=>s.originTlsClientAuth.hostnameAssociations.list({zone_id:c,...a})),{successLabel:`Loaded`})})},h={command:`hostname-associations`,describe:`Operations for hostname-associations`,builder:e=>e.command(m).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function g(e){return e.usage(`$0 origin-tls-client-auth hostname-certificates create
5
5
 
6
6
  Upload a certificate to be used for client authentication on a hostname. 10 hostname certificates per zone are allowed.`).option(`certificate`,{type:`string`,description:`The hostname certificate.`}).option(`private-key`,{type:`string`,description:`The hostname certificate's private key.`}).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 _={command:`create`,describe:`Upload a Hostname Client Certificate`,builder:g,handler:async s=>a({command:`origin-tls-client-auth hostname-certificates create`,classification:{safeFlags:[`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf origin-tls-client-auth hostname-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/origin_tls_client_auth/hostnames/certificates`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({certificate:l(s.certificate,`certificate`,`text`),private_key:l(s[`private-key`],`private-key`,`text`)}):o(s.body)});return}let a=await t(s),d=await e({zone:s.zone},a,{quiet:s.quiet});if(s.zoneId=d,s.body){let e=o(s.body);n(await i(`Creating`,async()=>a.originTlsClientAuth.hostnameCertificates.create({...e,zone_id:d})),{successLabel:`Created`});return}s.certificate===void 0&&(s.certificate=await u(`certificate`,`The hostname certificate.`)),s[`private-key`]===void 0&&(s[`private-key`]=await u(`private-key`,`The hostname certificate's private key.`,{kind:`secret`}));let f=c({certificate:l(s.certificate,`certificate`,`text`),private_key:l(s[`private-key`],`private-key`,`text`)});n(await i(`Creating`,async()=>a.originTlsClientAuth.hostnameCertificates.create({...f,zone_id:d})),{successLabel:`Created`})})};function v(e){return e.usage(`$0 origin-tls-client-auth hostname-certificates delete <certificate-id>
7
7
 
8
- Removes a client certificate used for authenticated origin pulls on a specific hostname. Note: Before deleting the certificate, you must first invalidate the hostname for client authentication by sending a PUT request with \`enabled\` set to null. After invalidating the association, the certificate can be safely deleted.`).positional(`certificate-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const y={command:`delete <certificate-id>`,describe:`Delete Hostname Client Certificate`,builder:v,handler:async o=>a({command:`origin-tls-client-auth hostname-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf origin-tls-client-auth hostname-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/origin_tls_client_auth/hostnames/certificates/${o[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(o[`certificate-id`]))}`,pathParams:{"certificate-id":String(o[`certificate-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});if(o.zoneId=s,!await d({force:!!o.force})){process.stderr.write(`Aborted.
8
+ Removes a client certificate used for authenticated origin pulls on a specific hostname. Note: Before deleting the certificate, you must first invalidate the hostname for client authentication by sending a PUT request with \`enabled\` set to null. After invalidating the association, the certificate can be safely deleted.`).positional(`certificate-id`,{type:`string`,description:`Certificate identifier tag.`,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 y={command:`delete <certificate-id>`,describe:`Delete Hostname Client Certificate`,builder:v,handler:async o=>a({command:`origin-tls-client-auth hostname-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf origin-tls-client-auth hostname-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/origin_tls_client_auth/hostnames/certificates/${o[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(o[`certificate-id`]))}`,pathParams:{"certificate-id":String(o[`certificate-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});if(o.zoneId=s,!await d({force:!!o.force})){process.stderr.write(`Aborted.
9
9
  `);return}n(await i(`Deleting`,async()=>a.originTlsClientAuth.hostnameCertificates.delete({zone_id:s,certificate_id:o[`certificate-id`]})),{successLabel:`Deleted`})})};function b(e){return e.usage(`$0 origin-tls-client-auth hostname-certificates get <certificate-id>
10
10
 
11
- Get the certificate by ID to be used for client authentication on a hostname.`).positional(`certificate-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`get <certificate-id>`,describe:`Get the Hostname Client Certificate`,builder:b,handler:async o=>a({command:`origin-tls-client-auth hostname-certificates get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf origin-tls-client-auth hostname-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/origin_tls_client_auth/hostnames/certificates/${o[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(o[`certificate-id`]))}`,pathParams:{"certificate-id":String(o[`certificate-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.originTlsClientAuth.hostnameCertificates.get({zone_id:s,certificate_id:o[`certificate-id`]})),{successLabel:`Loaded`})})};function S(e){return e.usage(`$0 origin-tls-client-auth hostname-certificates list
11
+ Get the certificate by ID to be used for client authentication on a hostname.`).positional(`certificate-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`get <certificate-id>`,describe:`Get the Hostname Client Certificate`,builder:b,handler:async o=>a({command:`origin-tls-client-auth hostname-certificates get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf origin-tls-client-auth hostname-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/origin_tls_client_auth/hostnames/certificates/${o[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(o[`certificate-id`]))}`,pathParams:{"certificate-id":String(o[`certificate-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.originTlsClientAuth.hostnameCertificates.get({zone_id:s,certificate_id:o[`certificate-id`]})),{successLabel:`Loaded`})})};function S(e){return e.usage(`$0 origin-tls-client-auth hostname-certificates list
12
12
 
13
13
  Lists all client certificates configured for per-hostname authenticated origin pulls on the zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const C={command:`list`,describe:`List Certificates`,builder:S,handler:async o=>a({command:`origin-tls-client-auth hostname-certificates list`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf origin-tls-client-auth hostname-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/origin_tls_client_auth/hostnames/certificates`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.originTlsClientAuth.hostnameCertificates.list({zone_id:s})),{successLabel:`Loaded`})})},w={command:`hostname-certificates`,describe:`Operations for hostname-certificates`,builder:e=>e.command(_).command(y).command(x).command(C).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function T(e){return e.usage(`$0 origin-tls-client-auth hostnames get <hostname>
14
14
 
@@ -22,9 +22,9 @@ Enable or disable zone-level authenticated origin pulls. 'enabled' should be set
22
22
 
23
23
  Upload your own certificate you want Cloudflare to use for edge-to-origin communication to override the shared certificate. Please note that it is important to keep only one certificate active. Also, make sure to enable zone-level authenticated origin pulls by making a PUT call to settings endpoint to see the uploaded certificate in use.`).option(`certificate`,{type:`string`,description:`The zone's leaf certificate.`}).option(`private-key`,{type:`string`,description:`The zone's private key.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const I={command:`create`,describe:`Upload Certificate`,builder:F,handler:async s=>a({command:`origin-tls-client-auth zone-certificates create`,classification:{safeFlags:[`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf origin-tls-client-auth zone-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/origin_tls_client_auth`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({certificate:l(s.certificate,`certificate`,`text`),private_key:l(s[`private-key`],`private-key`,`text`)}):o(s.body)});return}let a=await t(s),d=await e({zone:s.zone},a,{quiet:s.quiet});if(s.zoneId=d,s.body){let e=o(s.body);n(await i(`Creating`,async()=>a.originTlsClientAuth.zoneCertificates.create({...e,zone_id:d})),{successLabel:`Created`});return}s.certificate===void 0&&(s.certificate=await u(`certificate`,`The zone's leaf certificate.`)),s[`private-key`]===void 0&&(s[`private-key`]=await u(`private-key`,`The zone's private key.`,{kind:`secret`}));let f=c({certificate:l(s.certificate,`certificate`,`text`),private_key:l(s[`private-key`],`private-key`,`text`)});n(await i(`Creating`,async()=>a.originTlsClientAuth.zoneCertificates.create({...f,zone_id:d})),{successLabel:`Created`})})};function L(e){return e.usage(`$0 origin-tls-client-auth zone-certificates delete <certificate-id>
24
24
 
25
- Removes a client certificate used for zone-level authenticated origin pulls.`).positional(`certificate-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const R={command:`delete <certificate-id>`,describe:`Delete Certificate`,builder:L,handler:async o=>a({command:`origin-tls-client-auth zone-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf origin-tls-client-auth zone-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/origin_tls_client_auth/${o[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(o[`certificate-id`]))}`,pathParams:{"certificate-id":String(o[`certificate-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});if(o.zoneId=s,!await d({force:!!o.force})){process.stderr.write(`Aborted.
25
+ Removes a client certificate used for zone-level authenticated origin pulls.`).positional(`certificate-id`,{type:`string`,description:`Certificate identifier tag.`,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 R={command:`delete <certificate-id>`,describe:`Delete Certificate`,builder:L,handler:async o=>a({command:`origin-tls-client-auth zone-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf origin-tls-client-auth zone-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/origin_tls_client_auth/${o[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(o[`certificate-id`]))}`,pathParams:{"certificate-id":String(o[`certificate-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});if(o.zoneId=s,!await d({force:!!o.force})){process.stderr.write(`Aborted.
26
26
  `);return}n(await i(`Deleting`,async()=>a.originTlsClientAuth.zoneCertificates.delete({zone_id:s,certificate_id:o[`certificate-id`]})),{successLabel:`Deleted`})})};function z(e){return e.usage(`$0 origin-tls-client-auth zone-certificates get <certificate-id>
27
27
 
28
- Retrieves details for a specific client certificate used in zone-level authenticated origin pulls.`).positional(`certificate-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const B={command:`get <certificate-id>`,describe:`Get Certificate Details`,builder:z,handler:async o=>a({command:`origin-tls-client-auth zone-certificates get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf origin-tls-client-auth zone-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/origin_tls_client_auth/${o[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(o[`certificate-id`]))}`,pathParams:{"certificate-id":String(o[`certificate-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.originTlsClientAuth.zoneCertificates.get({zone_id:s,certificate_id:o[`certificate-id`]})),{successLabel:`Loaded`})})};function V(e){return e.usage(`$0 origin-tls-client-auth zone-certificates list
28
+ Retrieves details for a specific client certificate used in zone-level authenticated origin pulls.`).positional(`certificate-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const B={command:`get <certificate-id>`,describe:`Get Certificate Details`,builder:z,handler:async o=>a({command:`origin-tls-client-auth zone-certificates get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf origin-tls-client-auth zone-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/origin_tls_client_auth/${o[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(o[`certificate-id`]))}`,pathParams:{"certificate-id":String(o[`certificate-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.originTlsClientAuth.zoneCertificates.get({zone_id:s,certificate_id:o[`certificate-id`]})),{successLabel:`Loaded`})})};function V(e){return e.usage(`$0 origin-tls-client-auth zone-certificates list
29
29
 
30
30
  Lists all client certificates configured for zone-level authenticated origin pulls.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const H={command:`list`,describe:`List Certificates`,builder:V,handler:async o=>a({command:`origin-tls-client-auth zone-certificates list`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf origin-tls-client-auth zone-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/origin_tls_client_auth`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.originTlsClientAuth.zoneCertificates.list({zone_id:s})),{successLabel:`Loaded`})})},U={command:`zone-certificates`,describe:`Operations for zone-certificates`,builder:e=>e.command(I).command(R).command(B).command(H).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},W={command:`origin-tls-client-auth`,describe:`origin-tls-client-auth`,builder:e=>e.command(h).command(w).command(k).command(P).command(U).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{W as default};
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import{r as e,t}from"./theme-BIWQFmZ0.mjs";import{t as n}from"./Page-CjJht2qT.mjs";function r(e){return e instanceof n?e.data:typeof e==`object`&&e&&`result`in e&&Array.isArray(e.result)&&`result_info`in e?e.result:e}function i(t,n={}){if(!n.quiet){if(t=r(t),t==null){n.successLabel&&process.stderr.isTTY&&process.stderr.write(`${e.success(`✓`)} ${n.successLabel}\n`);return}console.log(a(t))}}function a(n){let r=JSON.stringify(n,null,2);return!t()||r.length>5e4?r:r.replace(/"([^"]+)":/g,(t,n)=>`${e.jsonKey(`"${n}"`)}:`).replace(/: "([^"]*)"/g,(t,n)=>`: ${e.jsonString(`"${n}"`)}`).replace(/: (-?\d+\.?\d*)/g,(t,n)=>`: ${e.jsonNumber(n)}`).replace(/: (true|false)/g,(t,n)=>`: ${e.jsonBoolean(n)}`).replace(/: (null)/g,(t,n)=>`: ${e.muted(n)}`)}export{i as t};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{_ as e}from"./oauth-C-QCVfWz.mjs";import{r as t}from"./auth-C80y97yu.mjs";import{t as n}from"./output-Bia1u2k5.mjs";import{t as r}from"./dry-run-CLX6Pbtq.mjs";import{t as i}from"./progress-Bpp73hIu.mjs";import{t as a}from"./run-ChM_YpZ0.mjs";import"./telemetry-CNt8H3aA.mjs";import{n as o,r as s,t as c}from"./body-parser-CUWbw_Tq.mjs";import{n as l}from"./input-validation-Ch4Vllrm.mjs";import{n as u}from"./prompt-CpZztV8c.mjs";import{t as d}from"./cli-types-tt_LZMbn.mjs";function f(e){return e.usage(`$0 page-rules create
2
+ import{i as e}from"./context-CEOHpZgd.mjs";import{r as t}from"./auth-BIr56Mbx.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-A61dRbXl.mjs";import{t as a}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{n as o,r as s,t as c}from"./body-parser-hh2avzkz.mjs";import{n as l}from"./input-validation-Dk52b0me.mjs";import{n as u}from"./prompt-CGUzvBgY.mjs";import{t as d}from"./cli-types-DoVT5q_M.mjs";function f(e){return e.usage(`$0 page-rules create
3
3
 
4
4
  Creates a new Page Rule.`).option(`actions`,{type:`string`,description:`The set of actions to perform if the targets of this rule match the
5
5
  request. Actions can redirect to another URL or override settings, but
@@ -0,0 +1,54 @@
1
+ #!/usr/bin/env node
2
+ import{t as e}from"./lazy-command-glNW3jzf.mjs";import{t}from"./local-B5oRPTEN.mjs";import{a as n,t as r}from"./context-CEOHpZgd.mjs";import{a as i,r as a}from"./auth-BIr56Mbx.mjs";import{t as o}from"./output-CvQFJkvi.mjs";import{t as s}from"./dry-run-Bq0JAsbX.mjs";import{t as c}from"./progress-A61dRbXl.mjs";import{t as l}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{n as u,t as d}from"./body-parser-hh2avzkz.mjs";import{n as f,t as p}from"./input-validation-Dk52b0me.mjs";import{a as m,i as h,n as g}from"./prompt-CGUzvBgY.mjs";import{t as ee}from"./cli-types-DoVT5q_M.mjs";var _=e(`deploy [directory]`,`Deploy a directory of static assets as a Pages deployment`,()=>import(`./command-TCklVvOY.mjs`),{command:`pages deploy`,recordArgs:!1});function v(e){return e.usage(`$0 pages build-cache purge <project-name>
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 y={command:`purge <project-name>`,describe:`Purge the Pages build cache`,builder:v,handler:async e=>l({command:`pages build-cache purge`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf pages build-cache purge`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<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 i=await a(e),l=e.local?t:await r();if(e.accountId=l,!await g({force:!!e.force,message:`This operation purges the build cache for a Pages project.`})){process.stderr.write(`Aborted.
5
+ `);return}o(await c(`Deleting`,async()=>i.pages.buildCache.purge({account_id:l,project_name:e[`project-name`]})),{successLabel:`Deleted`})})},b={command:`build-cache`,describe:`Operations for build-cache`,builder:e=>e.command(y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function x(e){return e.usage(`$0 pages create
6
+
7
+ 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-always-use-latest-compatibility-date`,{type:`boolean`,description:`Whether to always use the latest compatibility date for Pages Functions.`}).option(`deployment-configs-preview-build-image-major-version`,{type:`number`,description:`The major version of the build image to use for Pages Functions.`}).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-fail-open`,{type:`boolean`,description:`Whether to fail open when the deployment config cannot be applied.`}).option(`deployment-configs-preview-limits-cpu-ms`,{type:`number`,description:`CPU time limit in milliseconds.`}).option(`deployment-configs-preview-placement-mode`,{type:`string`,description:`Placement mode.`}).option(`deployment-configs-preview-usage-model`,{type:`string`,description:`The usage model for Pages Functions.`,choices:[`standard`,`bundled`,`unbound`]}).option(`deployment-configs-preview-wrangler-config-hash`,{type:`string`,description:`Hash of the Wrangler configuration used for the deployment.`}).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-build-image-major-version`,{type:`number`,description:`The major version of the build image to use for Pages Functions.`}).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-fail-open`,{type:`boolean`,description:`Whether to fail open when the deployment config cannot be applied.`}).option(`deployment-configs-production-limits-cpu-ms`,{type:`number`,description:`CPU time limit in milliseconds.`}).option(`deployment-configs-production-placement-mode`,{type:`string`,description:`Placement mode.`}).option(`deployment-configs-production-usage-model`,{type:`string`,description:`The usage model for Pages Functions.`,choices:[`standard`,`bundled`,`unbound`]}).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.
8
+ When disabled, no deployments (production or preview) will be triggered automatically.
9
+ `}).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`]}).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`]}).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=>{if([`deployment-configs-preview-always-use-latest-compatibility-date`,`deployment-configs-preview-build-image-major-version`,`deployment-configs-preview-compatibility-date`,`deployment-configs-preview-compatibility-flags`,`deployment-configs-preview-fail-open`,`deployment-configs-preview-limits-cpu-ms`,`deployment-configs-preview-placement-mode`,`deployment-configs-preview-usage-model`,`deployment-configs-preview-wrangler-config-hash`,`deployment-configs-production-always-use-latest-compatibility-date`,`deployment-configs-production-build-image-major-version`,`deployment-configs-production-compatibility-date`,`deployment-configs-production-compatibility-flags`,`deployment-configs-production-fail-open`,`deployment-configs-production-limits-cpu-ms`,`deployment-configs-production-placement-mode`,`deployment-configs-production-usage-model`,`deployment-configs-production-wrangler-config-hash`].some(t=>e[t]!==void 0)){let t=[`deployment-configs-preview-limits-cpu-ms`,`deployment-configs-preview-placement-mode`,`deployment-configs-production-limits-cpu-ms`,`deployment-configs-production-placement-mode`].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 --deployment_configs-* flag is set`)}return!0}).check(e=>{if([`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)){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=>l({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){s({command:`cf pages create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pages/projects`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({build_config:{build_caching:e[`build-config-build-caching`],build_command:f(e[`build-config-build-command`],`build-config-build-command`,`text`),destination_dir:f(e[`build-config-destination-dir`],`build-config-destination-dir`,`text`),root_dir:f(e[`build-config-root-dir`],`build-config-root-dir`,`text`),web_analytics_tag:f(e[`build-config-web-analytics-tag`],`build-config-web-analytics-tag`,`text`),web_analytics_token:f(e[`build-config-web-analytics-token`],`build-config-web-analytics-token`,`text`)},deployment_configs:{preview:{always_use_latest_compatibility_date:e[`deployment-configs-preview-always-use-latest-compatibility-date`],build_image_major_version:e[`deployment-configs-preview-build-image-major-version`],compatibility_date:f(e[`deployment-configs-preview-compatibility-date`],`deployment-configs-preview-compatibility-date`,`text`),compatibility_flags:e[`deployment-configs-preview-compatibility-flags`],fail_open:e[`deployment-configs-preview-fail-open`],limits:{cpu_ms:e[`deployment-configs-preview-limits-cpu-ms`]},placement:{mode:f(e[`deployment-configs-preview-placement-mode`],`deployment-configs-preview-placement-mode`,`text`)},usage_model:f(e[`deployment-configs-preview-usage-model`],`deployment-configs-preview-usage-model`,`text`),wrangler_config_hash:f(e[`deployment-configs-preview-wrangler-config-hash`],`deployment-configs-preview-wrangler-config-hash`,`text`)},production:{always_use_latest_compatibility_date:e[`deployment-configs-production-always-use-latest-compatibility-date`],build_image_major_version:e[`deployment-configs-production-build-image-major-version`],compatibility_date:f(e[`deployment-configs-production-compatibility-date`],`deployment-configs-production-compatibility-date`,`text`),compatibility_flags:e[`deployment-configs-production-compatibility-flags`],fail_open:e[`deployment-configs-production-fail-open`],limits:{cpu_ms:e[`deployment-configs-production-limits-cpu-ms`]},placement:{mode:f(e[`deployment-configs-production-placement-mode`],`deployment-configs-production-placement-mode`,`text`)},usage_model:f(e[`deployment-configs-production-usage-model`],`deployment-configs-production-usage-model`,`text`),wrangler_config_hash:f(e[`deployment-configs-production-wrangler-config-hash`],`deployment-configs-production-wrangler-config-hash`,`text`)}},name:f(e.name,`name`,`text`),production_branch:f(e[`production-branch`],`production-branch`,`text`),source:{config:{deployments_enabled:e[`source-config-deployments-enabled`],owner:f(e[`source-config-owner`],`source-config-owner`,`text`),owner_id:f(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:f(e[`source-config-preview-deployment-setting`],`source-config-preview-deployment-setting`,`text`),production_branch:f(e[`source-config-production-branch`],`source-config-production-branch`,`text`),production_deployments_enabled:e[`source-config-production-deployments-enabled`],repo_id:f(e[`source-config-repo-id`],`source-config-repo-id`,`text`),repo_name:f(e[`source-config-repo-name`],`source-config-repo-name`,`text`)},type:f(e[`source-type`],`source-type`,`text`)}}):u(e.body)});return}let i=await a(e),l=e.local?t:await r();if(e.accountId=l,e.body){let t=u(e.body);o(await c(`Creating`,async()=>i.pages.create({...t,account_id:l})),{successLabel:`Created`});return}e.name===void 0&&(e.name=await m(`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 m(`production-branch`,`Production branch of the project. Used to identify production deployments.`));let p=d({build_config:{build_caching:e[`build-config-build-caching`],build_command:f(e[`build-config-build-command`],`build-config-build-command`,`text`),destination_dir:f(e[`build-config-destination-dir`],`build-config-destination-dir`,`text`),root_dir:f(e[`build-config-root-dir`],`build-config-root-dir`,`text`),web_analytics_tag:f(e[`build-config-web-analytics-tag`],`build-config-web-analytics-tag`,`text`),web_analytics_token:f(e[`build-config-web-analytics-token`],`build-config-web-analytics-token`,`text`)},deployment_configs:{preview:{always_use_latest_compatibility_date:e[`deployment-configs-preview-always-use-latest-compatibility-date`],build_image_major_version:e[`deployment-configs-preview-build-image-major-version`],compatibility_date:f(e[`deployment-configs-preview-compatibility-date`],`deployment-configs-preview-compatibility-date`,`text`),compatibility_flags:e[`deployment-configs-preview-compatibility-flags`],fail_open:e[`deployment-configs-preview-fail-open`],limits:{cpu_ms:e[`deployment-configs-preview-limits-cpu-ms`]},placement:{mode:f(e[`deployment-configs-preview-placement-mode`],`deployment-configs-preview-placement-mode`,`text`)},usage_model:f(e[`deployment-configs-preview-usage-model`],`deployment-configs-preview-usage-model`,`text`),wrangler_config_hash:f(e[`deployment-configs-preview-wrangler-config-hash`],`deployment-configs-preview-wrangler-config-hash`,`text`)},production:{always_use_latest_compatibility_date:e[`deployment-configs-production-always-use-latest-compatibility-date`],build_image_major_version:e[`deployment-configs-production-build-image-major-version`],compatibility_date:f(e[`deployment-configs-production-compatibility-date`],`deployment-configs-production-compatibility-date`,`text`),compatibility_flags:e[`deployment-configs-production-compatibility-flags`],fail_open:e[`deployment-configs-production-fail-open`],limits:{cpu_ms:e[`deployment-configs-production-limits-cpu-ms`]},placement:{mode:f(e[`deployment-configs-production-placement-mode`],`deployment-configs-production-placement-mode`,`text`)},usage_model:f(e[`deployment-configs-production-usage-model`],`deployment-configs-production-usage-model`,`text`),wrangler_config_hash:f(e[`deployment-configs-production-wrangler-config-hash`],`deployment-configs-production-wrangler-config-hash`,`text`)}},name:f(e.name,`name`,`text`),production_branch:f(e[`production-branch`],`production-branch`,`text`),source:{config:{deployments_enabled:e[`source-config-deployments-enabled`],owner:f(e[`source-config-owner`],`source-config-owner`,`text`),owner_id:f(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:f(e[`source-config-preview-deployment-setting`],`source-config-preview-deployment-setting`,`text`),production_branch:f(e[`source-config-production-branch`],`source-config-production-branch`,`text`),production_deployments_enabled:e[`source-config-production-deployments-enabled`],repo_id:f(e[`source-config-repo-id`],`source-config-repo-id`,`text`),repo_name:f(e[`source-config-repo-name`],`source-config-repo-name`,`text`)},type:f(e[`source-type`],`source-type`,`text`)}});o(await c(`Creating`,async()=>i.pages.create({...p,account_id:l})),{successLabel:`Created`})})};function C(e){return e.usage(`$0 pages delete <project-name>
10
+
11
+ 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 w={command:`delete <project-name>`,describe:`Delete a Cloudflare Pages project`,builder:C,handler:async e=>l({command:`pages delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf pages delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<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 i=await a(e),l=e.local?t:await r();if(e.accountId=l,!await g({force:!!e.force})){process.stderr.write(`Aborted.
12
+ `);return}o(await c(`Deleting`,async()=>i.pages.delete({account_id:l,project_name:e[`project-name`]})),{successLabel:`Deleted`})})};function T(e){return e.usage(`$0 pages deployments create <project-name>
13
+
14
+ 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.`})}const E={command:`create <project-name>`,describe:`Create a Pages deployment`,builder:T,handler:async e=>l({command:`pages deployments create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf pages deployments create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<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`]}});return}let l=await a(e),u=e.local?t:await r();if(e.accountId=u,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){let t=new FormData;if(e.file){let n=p(e.file);t.append(`_headers`,new Blob([n]),e.file.split(/[\\/]/).filter(Boolean).pop())}else e.body!==void 0&&t.append(`_headers`,e.body);e.branch!==void 0&&t.append(`branch`,String(f(e.branch,`branch`,`text`)??``)),e[`commit-dirty`]!==void 0&&t.append(`commit_dirty`,String(f(e[`commit-dirty`],`commit-dirty`,`text`)??``)),e[`commit-hash`]!==void 0&&t.append(`commit_hash`,String(f(e[`commit-hash`],`commit-hash`,`text`)??``)),e[`commit-message`]!==void 0&&t.append(`commit_message`,String(f(e[`commit-message`],`commit-message`,`text`)??``)),e.manifest!==void 0&&t.append(`manifest`,String(f(e.manifest,`manifest`,`text`)??``)),e[`pages-build-output-dir`]!==void 0&&t.append(`pages_build_output_dir`,String(f(e[`pages-build-output-dir`],`pages-build-output-dir`,`text`)??``)),e[`wrangler-config-hash`]!==void 0&&t.append(`wrangler_config_hash`,String(f(e[`wrangler-config-hash`],`wrangler-config-hash`,`text`)??``)),o(await c(`Creating`,async()=>i(l,`POST`,`/accounts/${u}/pages/projects/${encodeURIComponent(String(e[`project-name`]))}/deployments`,{body:t})),{successLabel:`Created`});return}if(e.body){let t=f(e.body,`body`,`binary`);o(await c(`Creating`,async()=>i(l,`POST`,`/accounts/${u}/pages/projects/${encodeURIComponent(String(e[`project-name`]))}/deployments`,{body:t,headers:{"Content-Type":`multipart/form-data`}})),{successLabel:`Created`});return}o(await c(`Creating`,async()=>l.pages.deployments.create({account_id:u,project_name:e[`project-name`]})),{successLabel:`Created`})})};function D(e){return e.usage(`$0 pages deployments delete <deployment-id>
15
+
16
+ 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 O={command:`delete <deployment-id>`,describe:`Delete a Pages deployment`,builder:D,handler:async e=>l({command:`pages deployments delete`,classification:{safeFlags:[`allow-aliased`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{let i={force:e[`allow-aliased`]};if(e.dryRun){s({command:`cf pages deployments delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await 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:{"deployment-id":String(e[`deployment-id`]??``),"project-name":String(e[`project-name`]??``)},query:i,bodyKind:`none`});return}let l=await a(e),u=e.local?t:await r();if(e.accountId=u,!await g({force:!!e.force})){process.stderr.write(`Aborted.
17
+ `);return}o(await c(`Deleting`,async()=>l.pages.deployments.delete({account_id:u,project_name:e[`project-name`],deployment_id:e[`deployment-id`],...i})),{successLabel:`Deleted`})})};function k(e){return e.usage(`$0 pages deployments get <deployment-id>
18
+
19
+ 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 A={command:`get <deployment-id>`,describe:`Get a Pages deployment`,builder:k,handler:async e=>l({command:`pages deployments get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf pages deployments get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await 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:{"deployment-id":String(e[`deployment-id`]??``),"project-name":String(e[`project-name`]??``)},bodyKind:`none`});return}let i=await a(e),l=e.local?t:await r();e.accountId=l,o(await c(`Loading`,async()=>i.pages.deployments.get({account_id:l,project_name:e[`project-name`],deployment_id:e[`deployment-id`]})),{successLabel:`Loaded`})})};function j(e){return e.usage(`$0 pages deployments history logs get <deployment-id>
20
+
21
+ Retrieve the build logs for 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 M={command:`get <deployment-id>`,describe:`Get Pages deployment logs`,builder:j,handler:async e=>l({command:`pages deployments history logs get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf pages deployments history logs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await 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`]))}/history/logs`,pathParams:{"deployment-id":String(e[`deployment-id`]??``),"project-name":String(e[`project-name`]??``)},bodyKind:`none`});return}let i=await a(e),l=e.local?t:await r();e.accountId=l,o(await c(`Loading`,async()=>i.pages.deployments.history.logs.get({account_id:l,project_name:e[`project-name`],deployment_id:e[`deployment-id`]})),{successLabel:`Loaded`})})},N={command:`logs`,describe:`Operations for deployments.history.logs`,builder:e=>e.command(M).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},P={command:`history`,describe:`Operations for deployments.history`,builder:e=>e.command(N).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function F(e){return e.usage(`$0 pages deployments list
22
+
23
+ List the production or preview deployments for a Cloudflare Pages project.`).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(`env`,{type:`string`,description:"Deployment environment to return. Valid values are `production` and `preview`.",choices:[`production`,`preview`]}).option(`page`,{type:`number`,description:`Page number of results to return.`}).option(`per-page`,{type:`number`,description:`Number of results to return per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const I={command:`list`,describe:`List Pages deployments`,builder:ee(F),handler:async e=>l({command:`pages deployments list`,classification:{safeFlags:[`env`,`dry-run`]}},e,async()=>{let i={env:e.env,page:e.page,per_page:e[`per-page`]};if(e.dryRun){s({command:`cf pages deployments list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/deployments`,pathParams:{"project-name":String(e[`project-name`]??``)},query:i,bodyKind:`none`});return}let l=await a(e),u=e.local?t:await r();e.accountId=u,o(await c(`Loading`,async()=>l.pages.deployments.list({account_id:u,project_name:e[`project-name`],...i})),{successLabel:`Loaded`})})};function L(e){return e.usage(`$0 pages deployments retry <deployment-id>
24
+
25
+ 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 R={command:`retry <deployment-id>`,describe:`Retry a Pages deployment`,builder:L,handler:async e=>l({command:`pages deployments retry`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf pages deployments retry`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await 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`]))}/retry`,pathParams:{"deployment-id":String(e[`deployment-id`]??``),"project-name":String(e[`project-name`]??``)},bodyKind:`none`});return}let i=await a(e),l=e.local?t:await r();e.accountId=l,o(await c(`Creating`,async()=>i.pages.deployments.retry({account_id:l,project_name:e[`project-name`],deployment_id:e[`deployment-id`]})),{successLabel:`Created`})})};function z(e){return e.usage(`$0 pages deployments rollback <deployment-id>
26
+
27
+ 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 B={command:`rollback <deployment-id>`,describe:`Roll back a Pages deployment`,builder:z,handler:async e=>l({command:`pages deployments rollback`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf pages deployments rollback`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await 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`]))}/rollback`,pathParams:{"deployment-id":String(e[`deployment-id`]??``),"project-name":String(e[`project-name`]??``)},bodyKind:`none`});return}let i=await a(e),l=e.local?t:await r();if(e.accountId=l,!await g({force:!!e.force,message:`This operation rolls back the production deployment to an earlier deployment.`})){process.stderr.write(`Aborted.
28
+ `);return}o(await c(`Deleting`,async()=>i.pages.deployments.rollback({account_id:l,project_name:e[`project-name`],deployment_id:e[`deployment-id`]})),{successLabel:`Deleted`})})},te={command:`deployments`,describe:`Operations for deployments`,builder:e=>e.command(E).command(O).command(A).command(I).command(R).command(B).command(P).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function V(e){return e.usage(`$0 pages domains create <project-name>
29
+
30
+ 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 H={command:`create <project-name>`,describe:`Add a Pages custom domain`,builder:V,handler:async e=>l({command:`pages domains create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf pages domains create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<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?d({name:f(e.name,`name`,`text`)}):u(e.body)});return}let i=await a(e),l=e.local?t:await r();if(e.accountId=l,e.body){let t=u(e.body);o(await c(`Creating`,async()=>i.pages.domains.create({...t,account_id:l,project_name:e[`project-name`]})),{successLabel:`Created`});return}e.name===void 0&&(e.name=await m(`name`,"Fully qualified domain name for the Pages project, such as `example.com`."));let p=d({name:f(e.name,`name`,`text`)});o(await c(`Creating`,async()=>i.pages.domains.create({...p,account_id:l,project_name:e[`project-name`]})),{successLabel:`Created`})})};function U(e){return e.usage(`$0 pages domains delete <domain-name>
31
+
32
+ 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 W={command:`delete <domain-name>`,describe:`Delete a Pages custom domain`,builder:U,handler:async e=>l({command:`pages domains delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf pages domains delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<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:{"domain-name":String(e[`domain-name`]??``),"project-name":String(e[`project-name`]??``)},bodyKind:`none`});return}let i=await a(e),l=e.local?t:await r();if(e.accountId=l,!await g({force:!!e.force})){process.stderr.write(`Aborted.
33
+ `);return}o(await c(`Deleting`,async()=>i.pages.domains.delete({account_id:l,project_name:e[`project-name`],domain_name:e[`domain-name`]})),{successLabel:`Deleted`})})};function G(e){return e.usage(`$0 pages domains get <domain-name>
34
+
35
+ 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 K={command:`get <domain-name>`,describe:`Get a Pages custom domain`,builder:G,handler:async e=>l({command:`pages domains get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf pages domains get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<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:{"domain-name":String(e[`domain-name`]??``),"project-name":String(e[`project-name`]??``)},bodyKind:`none`});return}let i=await a(e),l=e.local?t:await r();e.accountId=l,o(await c(`Loading`,async()=>i.pages.domains.get({account_id:l,project_name:e[`project-name`],domain_name:e[`domain-name`]})),{successLabel:`Loaded`})})};function q(e){return e.usage(`$0 pages domains list
36
+
37
+ List the custom domains associated with a Cloudflare Pages project.`).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 J={command:`list`,describe:`List Pages custom domains`,builder:q,handler:async e=>l({command:`pages domains list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf pages domains list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/domains`,pathParams:{"project-name":String(e[`project-name`]??``)},bodyKind:`none`});return}let i=await a(e),l=e.local?t:await r();e.accountId=l,o(await c(`Loading`,async()=>i.pages.domains.list({account_id:l,project_name:e[`project-name`]})),{successLabel:`Loaded`})})};function Y(e){return e.usage(`$0 pages domains validation retry <domain-name>
38
+
39
+ Retry validation for 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 X={command:`retry <domain-name>`,describe:`Retry custom domain validation`,builder:Y,handler:async e=>l({command:`pages domains validation retry`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf pages domains validation retry`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<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:{"domain-name":String(e[`domain-name`]??``),"project-name":String(e[`project-name`]??``)},bodyKind:`none`});return}let i=await a(e),l=e.local?t:await r();e.accountId=l,o(await c(`Updating`,async()=>i.pages.domains.validation.retry({account_id:l,project_name:e[`project-name`],domain_name:e[`domain-name`]})),{successLabel:`Updated`})})},Z={command:`validation`,describe:`Operations for domains.validation`,builder:e=>e.command(X).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Q={command:`domains`,describe:`Operations for domains`,builder:e=>e.command(H).command(W).command(K).command(J).command(Z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ne(e){return e.usage(`$0 pages edit <project-name>
40
+
41
+ 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-always-use-latest-compatibility-date`,{type:`boolean`,description:`Whether to always use the latest compatibility date for Pages Functions.`}).option(`deployment-configs-preview-build-image-major-version`,{type:`number`,description:`The major version of the build image to use for Pages Functions.`}).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-fail-open`,{type:`boolean`,description:`Whether to fail open when the deployment config cannot be applied.`}).option(`deployment-configs-preview-limits-cpu-ms`,{type:`number`,description:`CPU time limit in milliseconds.`}).option(`deployment-configs-preview-placement-mode`,{type:`string`,description:`Placement mode.`}).option(`deployment-configs-preview-usage-model`,{type:`string`,description:`The usage model for Pages Functions.`,choices:[`standard`,`bundled`,`unbound`]}).option(`deployment-configs-preview-wrangler-config-hash`,{type:`string`,description:`Hash of the Wrangler configuration used for the deployment.`}).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-build-image-major-version`,{type:`number`,description:`The major version of the build image to use for Pages Functions.`}).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-fail-open`,{type:`boolean`,description:`Whether to fail open when the deployment config cannot be applied.`}).option(`deployment-configs-production-limits-cpu-ms`,{type:`number`,description:`CPU time limit in milliseconds.`}).option(`deployment-configs-production-placement-mode`,{type:`string`,description:`Placement mode.`}).option(`deployment-configs-production-usage-model`,{type:`string`,description:`The usage model for Pages Functions.`,choices:[`standard`,`bundled`,`unbound`]}).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.
42
+ When disabled, no deployments (production or preview) will be triggered automatically.
43
+ `}).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`]}).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`]}).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=>{if([`deployment-configs-preview-always-use-latest-compatibility-date`,`deployment-configs-preview-build-image-major-version`,`deployment-configs-preview-compatibility-date`,`deployment-configs-preview-compatibility-flags`,`deployment-configs-preview-fail-open`,`deployment-configs-preview-limits-cpu-ms`,`deployment-configs-preview-placement-mode`,`deployment-configs-preview-usage-model`,`deployment-configs-preview-wrangler-config-hash`,`deployment-configs-production-always-use-latest-compatibility-date`,`deployment-configs-production-build-image-major-version`,`deployment-configs-production-compatibility-date`,`deployment-configs-production-compatibility-flags`,`deployment-configs-production-fail-open`,`deployment-configs-production-limits-cpu-ms`,`deployment-configs-production-placement-mode`,`deployment-configs-production-usage-model`,`deployment-configs-production-wrangler-config-hash`].some(t=>e[t]!==void 0)){let t=[`deployment-configs-preview-limits-cpu-ms`,`deployment-configs-preview-placement-mode`,`deployment-configs-production-limits-cpu-ms`,`deployment-configs-production-placement-mode`].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 --deployment_configs-* flag is set`)}return!0}).check(e=>{if([`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)){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 re={command:`edit <project-name>`,describe:`Update a Cloudflare Pages project`,builder:ne,handler:async e=>l({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){s({command:`cf pages edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<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?d({build_config:{build_caching:e[`build-config-build-caching`],build_command:f(e[`build-config-build-command`],`build-config-build-command`,`text`),destination_dir:f(e[`build-config-destination-dir`],`build-config-destination-dir`,`text`),root_dir:f(e[`build-config-root-dir`],`build-config-root-dir`,`text`),web_analytics_tag:f(e[`build-config-web-analytics-tag`],`build-config-web-analytics-tag`,`text`),web_analytics_token:f(e[`build-config-web-analytics-token`],`build-config-web-analytics-token`,`text`)},deployment_configs:{preview:{always_use_latest_compatibility_date:e[`deployment-configs-preview-always-use-latest-compatibility-date`],build_image_major_version:e[`deployment-configs-preview-build-image-major-version`],compatibility_date:f(e[`deployment-configs-preview-compatibility-date`],`deployment-configs-preview-compatibility-date`,`text`),compatibility_flags:e[`deployment-configs-preview-compatibility-flags`],fail_open:e[`deployment-configs-preview-fail-open`],limits:{cpu_ms:e[`deployment-configs-preview-limits-cpu-ms`]},placement:{mode:f(e[`deployment-configs-preview-placement-mode`],`deployment-configs-preview-placement-mode`,`text`)},usage_model:f(e[`deployment-configs-preview-usage-model`],`deployment-configs-preview-usage-model`,`text`),wrangler_config_hash:f(e[`deployment-configs-preview-wrangler-config-hash`],`deployment-configs-preview-wrangler-config-hash`,`text`)},production:{always_use_latest_compatibility_date:e[`deployment-configs-production-always-use-latest-compatibility-date`],build_image_major_version:e[`deployment-configs-production-build-image-major-version`],compatibility_date:f(e[`deployment-configs-production-compatibility-date`],`deployment-configs-production-compatibility-date`,`text`),compatibility_flags:e[`deployment-configs-production-compatibility-flags`],fail_open:e[`deployment-configs-production-fail-open`],limits:{cpu_ms:e[`deployment-configs-production-limits-cpu-ms`]},placement:{mode:f(e[`deployment-configs-production-placement-mode`],`deployment-configs-production-placement-mode`,`text`)},usage_model:f(e[`deployment-configs-production-usage-model`],`deployment-configs-production-usage-model`,`text`),wrangler_config_hash:f(e[`deployment-configs-production-wrangler-config-hash`],`deployment-configs-production-wrangler-config-hash`,`text`)}},name:f(e.name,`name`,`text`),production_branch:f(e[`production-branch`],`production-branch`,`text`),source:{config:{deployments_enabled:e[`source-config-deployments-enabled`],owner:f(e[`source-config-owner`],`source-config-owner`,`text`),owner_id:f(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:f(e[`source-config-preview-deployment-setting`],`source-config-preview-deployment-setting`,`text`),production_branch:f(e[`source-config-production-branch`],`source-config-production-branch`,`text`),production_deployments_enabled:e[`source-config-production-deployments-enabled`],repo_id:f(e[`source-config-repo-id`],`source-config-repo-id`,`text`),repo_name:f(e[`source-config-repo-name`],`source-config-repo-name`,`text`)},type:f(e[`source-type`],`source-type`,`text`)}}):u(e.body)});return}let i=await a(e),l=e.local?t:await r();if(e.accountId=l,e.body){let t=u(e.body);o(await c(`Updating`,async()=>i.pages.edit({...t,account_id:l,project_name:e[`project-name`]})),{successLabel:`Updated`});return}let p=d({build_config:{build_caching:e[`build-config-build-caching`],build_command:f(e[`build-config-build-command`],`build-config-build-command`,`text`),destination_dir:f(e[`build-config-destination-dir`],`build-config-destination-dir`,`text`),root_dir:f(e[`build-config-root-dir`],`build-config-root-dir`,`text`),web_analytics_tag:f(e[`build-config-web-analytics-tag`],`build-config-web-analytics-tag`,`text`),web_analytics_token:f(e[`build-config-web-analytics-token`],`build-config-web-analytics-token`,`text`)},deployment_configs:{preview:{always_use_latest_compatibility_date:e[`deployment-configs-preview-always-use-latest-compatibility-date`],build_image_major_version:e[`deployment-configs-preview-build-image-major-version`],compatibility_date:f(e[`deployment-configs-preview-compatibility-date`],`deployment-configs-preview-compatibility-date`,`text`),compatibility_flags:e[`deployment-configs-preview-compatibility-flags`],fail_open:e[`deployment-configs-preview-fail-open`],limits:{cpu_ms:e[`deployment-configs-preview-limits-cpu-ms`]},placement:{mode:f(e[`deployment-configs-preview-placement-mode`],`deployment-configs-preview-placement-mode`,`text`)},usage_model:f(e[`deployment-configs-preview-usage-model`],`deployment-configs-preview-usage-model`,`text`),wrangler_config_hash:f(e[`deployment-configs-preview-wrangler-config-hash`],`deployment-configs-preview-wrangler-config-hash`,`text`)},production:{always_use_latest_compatibility_date:e[`deployment-configs-production-always-use-latest-compatibility-date`],build_image_major_version:e[`deployment-configs-production-build-image-major-version`],compatibility_date:f(e[`deployment-configs-production-compatibility-date`],`deployment-configs-production-compatibility-date`,`text`),compatibility_flags:e[`deployment-configs-production-compatibility-flags`],fail_open:e[`deployment-configs-production-fail-open`],limits:{cpu_ms:e[`deployment-configs-production-limits-cpu-ms`]},placement:{mode:f(e[`deployment-configs-production-placement-mode`],`deployment-configs-production-placement-mode`,`text`)},usage_model:f(e[`deployment-configs-production-usage-model`],`deployment-configs-production-usage-model`,`text`),wrangler_config_hash:f(e[`deployment-configs-production-wrangler-config-hash`],`deployment-configs-production-wrangler-config-hash`,`text`)}},name:f(e.name,`name`,`text`),production_branch:f(e[`production-branch`],`production-branch`,`text`),source:{config:{deployments_enabled:e[`source-config-deployments-enabled`],owner:f(e[`source-config-owner`],`source-config-owner`,`text`),owner_id:f(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:f(e[`source-config-preview-deployment-setting`],`source-config-preview-deployment-setting`,`text`),production_branch:f(e[`source-config-production-branch`],`source-config-production-branch`,`text`),production_deployments_enabled:e[`source-config-production-deployments-enabled`],repo_id:f(e[`source-config-repo-id`],`source-config-repo-id`,`text`),repo_name:f(e[`source-config-repo-name`],`source-config-repo-name`,`text`)},type:f(e[`source-type`],`source-type`,`text`)}});o(await c(`Updating`,async()=>i.pages.edit({...p,account_id:l,project_name:e[`project-name`]})),{successLabel:`Updated`})})};function ie(e){return e.usage(`$0 pages get <project-name>
44
+
45
+ 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 ae={command:`get <project-name>`,describe:`Get a Cloudflare Pages project`,builder:ie,handler:async e=>l({command:`pages get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf pages get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<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 i=await a(e),l=e.local?t:await r();e.accountId=l,o(await c(`Loading`,async()=>i.pages.get({account_id:l,project_name:e[`project-name`]})),{successLabel:`Loaded`})})};function oe(e){return e.usage(`$0 pages list
46
+
47
+ List the Cloudflare Pages projects in an account.`).option(`page`,{type:`number`,description:`Page number of results to return.`}).option(`per-page`,{type:`number`,description:`Number of results to return per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const $={command:`list`,describe:`List Cloudflare Pages projects`,builder:oe,handler:async e=>l({command:`pages list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let i={page:e.page,per_page:e[`per-page`]};if(e.dryRun){s({command:`cf pages list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pages/projects`,pathParams:{},query:i,bodyKind:`none`});return}let l=await a(e),u=e.local?t:await r();e.accountId=u,o(await c(`Loading`,async()=>l.pages.list({account_id:u,...i})),{successLabel:`Loaded`})})};function se(e){return e.usage(`$0 pages source connect <project-name>
48
+
49
+ 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.
50
+ When disabled, no deployments (production or preview) will be triggered automatically.
51
+ `}).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`]}).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`]}).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 ce={command:`connect <project-name>`,describe:`Connect a Git repository`,builder:se,handler:async e=>l({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){s({command:`cf pages source connect`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<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?d({config:{deployments_enabled:e[`source-config-deployments-enabled`],owner:f(e[`source-config-owner`],`source-config-owner`,`text`),owner_id:f(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:f(e[`source-config-preview-deployment-setting`],`source-config-preview-deployment-setting`,`text`),production_branch:f(e[`source-config-production-branch`],`source-config-production-branch`,`text`),production_deployments_enabled:e[`source-config-production-deployments-enabled`],repo_id:f(e[`source-config-repo-id`],`source-config-repo-id`,`text`),repo_name:f(e[`source-config-repo-name`],`source-config-repo-name`,`text`)},type:f(e.type,`type`,`text`)}):u(e.body)});return}let i=await a(e),l=e.local?t:await r();if(e.accountId=l,e.body){let t=u(e.body);o(await c(`Creating`,async()=>i.pages.source.connect({...t,account_id:l,project_name:e[`project-name`]})),{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 m(`source-config-owner`,`The owner of the repository.`)),e[`source-config-owner-id`]===void 0&&(e[`source-config-owner-id`]=await m(`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 h(`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 m(`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 m(`source-config-repo-id`,`The ID of the repository.`)),e[`source-config-repo-name`]===void 0&&(e[`source-config-repo-name`]=await m(`source-config-repo-name`,`The name of the repository.`)),e.type===void 0&&(e.type=await h(`type`,`The source control management provider.`,[`github`,`gitlab`]));let p=d({config:{deployments_enabled:e[`source-config-deployments-enabled`],owner:f(e[`source-config-owner`],`source-config-owner`,`text`),owner_id:f(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:f(e[`source-config-preview-deployment-setting`],`source-config-preview-deployment-setting`,`text`),production_branch:f(e[`source-config-production-branch`],`source-config-production-branch`,`text`),production_deployments_enabled:e[`source-config-production-deployments-enabled`],repo_id:f(e[`source-config-repo-id`],`source-config-repo-id`,`text`),repo_name:f(e[`source-config-repo-name`],`source-config-repo-name`,`text`)},type:f(e.type,`type`,`text`)});o(await c(`Creating`,async()=>i.pages.source.connect({...p,account_id:l,project_name:e[`project-name`]})),{successLabel:`Created`})})};function le(e){return e.usage(`$0 pages source disconnect <project-name>
52
+
53
+ 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 ue={command:`disconnect <project-name>`,describe:`Disconnect a Git repository`,builder:le,handler:async e=>l({command:`pages source disconnect`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf pages source disconnect`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<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 i=await a(e),l=e.local?t:await r();if(e.accountId=l,!await g({force:!!e.force})){process.stderr.write(`Aborted.
54
+ `);return}o(await c(`Deleting`,async()=>i.pages.source.disconnect({account_id:l,project_name:e[`project-name`]})),{successLabel:`Deleted`})})},de={command:`source`,describe:`Operations for source`,builder:e=>e.command(ce).command(ue).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},fe={command:`pages`,describe:`Full-stack application hosting with Git-integrated builds, preview deployments, and custom domains`,builder:e=>e.command(S).command(w).command(_).command(re).command(ae).command($).command(b).command(te).command(Q).command(de).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{fe as default};