cf 1.0.0-beta.1 → 1.0.0-beta.11

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 (378) hide show
  1. package/README.md +12 -0
  2. package/dist/_meta/commands.json +11448 -13819
  3. package/dist/_meta/hand-written-commands.json +579 -41
  4. package/dist/_meta/schemas.json +14496 -16450
  5. package/dist/abuse-reports-DX5xgeka.mjs +24 -0
  6. package/dist/access-DuHs0Mii.mjs +2 -0
  7. package/dist/{account-tags-DAf-hq1m.mjs → account-tags-CiKwgOWd.mjs} +6 -6
  8. package/dist/{accounts-BDIKjiG2.mjs → accounts-DfXSHrkF.mjs} +63 -57
  9. package/dist/{acm-D-q1FVWJ.mjs → acm-BgSr3Ig4.mjs} +7 -7
  10. package/dist/{addressing-0w2U1NEy.mjs → addressing-B70NFnrX.mjs} +43 -43
  11. package/dist/agent-context-GRiQ4zRU.mjs +2 -0
  12. package/dist/{agent-memory-Drumm4qd.mjs → agent-memory-DJRquHeq.mjs} +15 -15
  13. package/dist/ai-CP2oIS-I.mjs +29 -0
  14. package/dist/{ai-audit-CPrmohqf.mjs → ai-audit-Bn_BfMFS.mjs} +3 -3
  15. package/dist/ai-gateway-CrrEtzUP.mjs +82 -0
  16. package/dist/{ai-search-B5l4IDSR.mjs → ai-search-C4YWVTCa.mjs} +42 -42
  17. package/dist/{ai-security-C7_IGDDl.mjs → ai-security-Bt_fG65f.mjs} +4 -4
  18. package/dist/{alerting-B6m1Rhf4.mjs → alerting-CRr88fVR.mjs} +26 -26
  19. package/dist/{analytics-nnzFBB_7.mjs → analytics-XqS9OP5B.mjs} +11 -12
  20. package/dist/{analytics_engine-BvjKCwn1.mjs → analytics_engine-CzmYem4f.mjs} +2 -2
  21. package/dist/{api-security-B9IozS2a.mjs → api-security-gB1FHrHq.mjs} +57 -57
  22. package/dist/{argo-C_QcqR6P.mjs → argo-wFCAsYx7.mjs} +5 -5
  23. package/dist/args-CXgkQKK7.mjs +2 -0
  24. package/dist/{artifacts-DDFNpYBz.mjs → artifacts-qFjlNRqb.mjs} +20 -20
  25. package/dist/{audit-logs-cTzNV0DV.mjs → audit-logs-CpPUjMUP.mjs} +2 -2
  26. package/dist/auth-7Fk7PVIC.mjs +2 -0
  27. package/dist/auth-BmJ946bE.mjs +2 -0
  28. package/dist/auth-Br-t8vL_.mjs +2 -0
  29. package/dist/auth-token-DeG33BMQ.mjs +8 -0
  30. package/dist/autoconfig-D-copdZG.mjs +511 -0
  31. package/dist/banner-Xk4xBN8U.mjs +2 -0
  32. package/dist/basin-catalog-CshcpsAH.mjs +46 -0
  33. package/dist/{billing-DU2X-q-x.mjs → billing-B-xNxxiP.mjs} +11 -11
  34. package/dist/{bot-management-BHAAoZOh.mjs → bot-management-DhafeA2J.mjs} +4 -4
  35. package/dist/{botnet-feed-DOOnGVVY.mjs → botnet-feed-D6uCLE_D.mjs} +5 -5
  36. package/dist/{brand-protection-C_DYa7IK.mjs → brand-protection-c3WiHbYn.mjs} +13 -13
  37. package/dist/browser-extension-Dee2Y1qn.mjs +2 -0
  38. package/dist/{browser-run-Dw-vgWGR.mjs → browser-run-D9_cwaSD.mjs} +24 -24
  39. package/dist/build-9ihDp-Gy.mjs +2 -0
  40. package/dist/build-DrG6TqMw.mjs +2 -0
  41. package/dist/{builds-CO0MmSd3.mjs → builds-Dl8if-2k.mjs} +32 -32
  42. package/dist/cache-CIZokBjd.mjs +45 -0
  43. package/dist/{certificate-authorities-Dmxh7w-Z.mjs → certificate-authorities-NUQzCDK8.mjs} +3 -3
  44. package/dist/cf-DfQfIu3q.mjs +18 -0
  45. package/dist/chunk-FT2NMTJB-BFqlGcem.mjs +97 -0
  46. package/dist/chunk-KKDV4JPS-B_t8sDTz.mjs +2 -0
  47. package/dist/chunk-U6NEESU5-BhF4rnpx.mjs +2 -0
  48. package/dist/chunk-WMOON6TZ-B8xCqjB1.mjs +2 -0
  49. package/dist/cli-aChy8ou_.mjs +6 -0
  50. package/dist/cli-exit-Dqoo6Jgb.mjs +2 -0
  51. package/dist/client-certificates-qgLpBn8t.mjs +13 -0
  52. package/dist/{client-side-security-D7NWV0YH.mjs → client-side-security-DZO6Xw14.mjs} +14 -14
  53. package/dist/{cloud-connector-XMFOTNqT.mjs → cloud-connector-C7vGDCzX.mjs} +3 -3
  54. package/dist/{cloudflared-DhItYrCq.mjs → cloudflared-CEfZhSQH.mjs} +1 -1
  55. package/dist/{cloudforce-one-Cew4MHvA.mjs → cloudforce-one-CE7y5UkF.mjs} +237 -246
  56. package/dist/command-07vhr56i.mjs +2 -0
  57. package/dist/command-B6TpINoN.mjs +2 -0
  58. package/dist/command-BWC9CbE7.mjs +2 -0
  59. package/dist/command-BsmF3J_l.mjs +2 -0
  60. package/dist/command-C2pNxAeL.mjs +2 -0
  61. package/dist/command-C65Ed0o9.mjs +2 -0
  62. package/dist/command-Cdx___59.mjs +2 -0
  63. package/dist/command-CrtDkZNs.mjs +2 -0
  64. package/dist/command-D0MKPucK.mjs +2 -0
  65. package/dist/command-DHdWKtqx.mjs +2 -0
  66. package/dist/command-Ds5OVat3.mjs +2 -0
  67. package/dist/command-Dv6YavZa.mjs +2 -0
  68. package/dist/command-dAYWrB5y.mjs +2 -0
  69. package/dist/command-eM48o0J6.mjs +2 -0
  70. package/dist/command-maDJWJgu.mjs +2 -0
  71. package/dist/{completions-xPLd1cvL.mjs → completions-D0280hul.mjs} +26 -26
  72. package/dist/{connector-interrupts-BfQN_pm6.mjs → connector-interrupts-CVjFhU-C.mjs} +3 -3
  73. package/dist/{connector-telemetry-events-B7qLZsZJ.mjs → connector-telemetry-events-Bu3LKP6T.mjs} +3 -3
  74. package/dist/{connector-telemetry-snapshots-Ckvg9BPc.mjs → connector-telemetry-snapshots-BbDTIc06.mjs} +3 -3
  75. package/dist/{connectors-BhvAP5fb.mjs → connectors-DGtx-rPI.mjs} +7 -7
  76. package/dist/{containers-Cq1gtnq6.mjs → containers-CzNbBrYE.mjs} +70 -72
  77. package/dist/{containers-Bl3EY-cy.mjs → containers-DEFrbNgO.mjs} +17 -17
  78. package/dist/{content-scan-BYGe9fFj.mjs → content-scan-BCtWBCqd.mjs} +6 -6
  79. package/dist/context-CquYYyS3.mjs +7 -0
  80. package/dist/{cps-BWMDWeVq.mjs → cps-C8BbnbuD.mjs} +1 -1
  81. package/dist/{csamScanner-DMYGzLNi.mjs → csamScanner-CsJ9H2fA.mjs} +3 -3
  82. package/dist/{ct-alerting-Vq4l2s7n.mjs → ct-alerting-CYsQZO2H.mjs} +3 -3
  83. package/dist/{custom-certificates-BDEHH0Ym.mjs → custom-certificates-CA8HqolM.mjs} +8 -8
  84. package/dist/{custom-csrs-CHSkZNdX.mjs → custom-csrs-D0P2vWJE.mjs} +5 -5
  85. package/dist/{custom-hostnames-Bch3iQZC.mjs → custom-hostnames-CzYMChbh.mjs} +12 -12
  86. package/dist/{custom-nameservers-Tdvu1-vr.mjs → custom-nameservers-Cet3oF56.mjs} +5 -5
  87. package/dist/{custom-pages-rFsiIXlr.mjs → custom-pages-DUkHIaTP.mjs} +10 -10
  88. package/dist/d1-B2duXfH2.mjs +41 -0
  89. package/dist/{dcv-delegation-D6xiYj2l.mjs → dcv-delegation-BkdRVEAH.mjs} +2 -2
  90. package/dist/{delegate-GctF_lrq.mjs → delegate-CCGgla7X.mjs} +1 -1
  91. package/dist/delegate.mjs +1 -1
  92. package/dist/{deploy-D04Xvm0m.mjs → deploy-BdWBEbLj.mjs} +1 -1
  93. package/dist/{deploy-input-COEKxOA1.mjs → deploy-input-LmLfj6kI.mjs} +1 -1
  94. package/dist/dev-BHkVwAea.mjs +4 -0
  95. package/dist/{diagnostics-BZVAAguV.mjs → diagnostics-9Wj5UWBL.mjs} +7 -7
  96. package/dist/dialog-Dpi-UVbz.mjs +2 -0
  97. package/dist/discover-BYkHr5Ja.mjs +2 -0
  98. package/dist/discover-t6E9lpf3.mjs +2 -0
  99. package/dist/{dist-BpadEMNY.mjs → dist-Cpb7_h4N.mjs} +35 -35
  100. package/dist/dist-D1iG7guo.mjs +366 -0
  101. package/dist/dist-zep5OXGt.mjs +48 -0
  102. package/dist/{dls-BsnURYja.mjs → dls-Caya7FZc.mjs} +8 -8
  103. package/dist/{dns-B_nTXhuM.mjs → dns-BLNa0GrP.mjs} +72 -63
  104. package/dist/{dns-firewall-DDsrdulo.mjs → dns-firewall-ChCvC5rT.mjs} +8 -8
  105. package/dist/dot-prop-IITUZ2XW-BsZYdILY.mjs +2 -0
  106. package/dist/dotenv-CcQjGlV0.mjs +4 -0
  107. package/dist/dry-run-p9Q7nMZ5.mjs +2 -0
  108. package/dist/durable-objects-DuRbdp7N.mjs +6 -0
  109. package/dist/{email-auth-CzjtGH6g.mjs → email-auth-C28s03aI.mjs} +3 -3
  110. package/dist/{email-routing-B92fty1-.mjs → email-routing-Ci-xjXIN.mjs} +24 -24
  111. package/dist/email-security-DPU6xvI9.mjs +158 -0
  112. package/dist/{email-sending-B7f95epu.mjs → email-sending-kTVAlVKO.mjs} +23 -23
  113. package/dist/error-sanitization-BbEw--0B.mjs +2 -0
  114. package/dist/error-sanitization-p5rmb53x.mjs +2 -0
  115. package/dist/errors-cuuW88wR.mjs +3 -0
  116. package/dist/{fieldExtractors-DL_H1m7E.mjs → fieldExtractors-ceaXu4zD.mjs} +4 -4
  117. package/dist/firewall-BND3qSY2.mjs +36 -0
  118. package/dist/flagship-DfxbNzgx.mjs +28 -0
  119. package/dist/{fraud-DU_YCLC5.mjs → fraud-DgyYv_CC.mjs} +3 -3
  120. package/dist/generate-9P8Q_RiO.mjs +2 -0
  121. package/dist/generate-VxmGG8BF.mjs +3 -0
  122. package/dist/{google-tag-gateway-xqN-QudN.mjs → google-tag-gateway-v3p7murv.mjs} +3 -3
  123. package/dist/gt-KlYHH-UC.mjs +2 -0
  124. package/dist/{healthchecks-COnq1YOx.mjs → healthchecks-CByb4qYA.mjs} +10 -10
  125. package/dist/{hostnames-CxRAY_Pp.mjs → hostnames-3CqeMF5g.mjs} +6 -6
  126. package/dist/hyperdrive-CmyYTE-K.mjs +37 -0
  127. package/dist/{iam-CtX9NPCy.mjs → iam-CV_M681j.mjs} +24 -24
  128. package/dist/{images-CuWFOsGw.mjs → images-DaLPjskW.mjs} +33 -33
  129. package/dist/index.mjs +1 -1
  130. package/dist/init-CBKifk5L.mjs +39 -0
  131. package/dist/{intel-BeGV3VXt.mjs → intel-MpftjuPB.mjs} +36 -36
  132. package/dist/interactive-D80kbTap.mjs +32 -0
  133. package/dist/interactive-mJQ_IrGd.mjs +2 -0
  134. package/dist/{ips-d6aoKAI4.mjs → ips-WWvPwSBc.mjs} +1 -1
  135. package/dist/k2-D0QYUFqT.mjs +13 -0
  136. package/dist/keyless-certificates-DqILy3t9.mjs +13 -0
  137. package/dist/{keys-Fyf3vWcA.mjs → keys-DhX4AcqF.mjs} +2 -2
  138. package/dist/kv-DLUfUL0_.mjs +15 -0
  139. package/dist/lazy-command--5YpWUVY.mjs +2 -0
  140. package/dist/{leaked-credential-checks-B7ewx3W-.mjs → leaked-credential-checks-C0U1oYM5.mjs} +8 -8
  141. package/dist/{load-balancers-DHD4f2CT.mjs → load-balancers-BJKI9lm7.mjs} +39 -39
  142. package/dist/local-DkYQiSQQ.mjs +2 -0
  143. package/dist/{local-B6b2OIBW.mjs → local-rYpzEQb-.mjs} +1 -1
  144. package/dist/{local-runtime-DD8DAIlm.mjs → local-runtime-DZTTIe6x.mjs} +1 -1
  145. package/dist/login-CnE2Ii_F.mjs +2 -0
  146. package/dist/login-bnylLTit.mjs +5 -0
  147. package/dist/{logo-matches-BAX8v3iL.mjs → logo-matches-DFZybI0C.mjs} +3 -3
  148. package/dist/{logos-BWBVGwU6.mjs → logos-Da2YtqSN.mjs} +4 -4
  149. package/dist/{logpush-CZKR8DHO.mjs → logpush-Q7WIEHS1.mjs} +23 -23
  150. package/dist/logs-c3b3USyS.mjs +36 -0
  151. package/dist/{magic-cloud-networking-DttrBXqd.mjs → magic-cloud-networking-BoyDmFq3.mjs} +37 -37
  152. package/dist/{magic-network-monitoring-9VXDSYuL.mjs → magic-network-monitoring-BkUbpMUp.mjs} +18 -18
  153. package/dist/{magic-transit-Dsu_cSGM.mjs → magic-transit-4-THD45G.mjs} +161 -165
  154. package/dist/{managed-defense-SYreve4W.mjs → managed-defense-CTMqSp6z.mjs} +9 -9
  155. package/dist/{managed-transforms-CzSy_xPw.mjs → managed-transforms-DcYAvqTe.mjs} +4 -4
  156. package/dist/{matches-qf7GReyu.mjs → matches-hnU16rSJ.mjs} +3 -3
  157. package/dist/{mcp-DYSk5_gc.mjs → mcp-kZX4irfN.mjs} +15 -15
  158. package/dist/{mesh-DdY07OYt.mjs → mesh-Dxzvvso6.mjs} +12 -12
  159. package/dist/migrate-BNvUWrjy.mjs +2 -0
  160. package/dist/monetization-Dsqj9DCA.mjs +20 -0
  161. package/dist/mtls-certificates-BSbMwIna.mjs +13 -0
  162. package/dist/{network-interconnects-C4uUoeNa.mjs → network-interconnects-osO_vAPu.mjs} +17 -17
  163. package/dist/{network-DpaZ5LJL.mjs → network-mEnXTEiG.mjs} +24 -24
  164. package/dist/oauth-CeZ3d_dB.mjs +9 -0
  165. package/dist/{oauth-clients-D7Ou7oAS.mjs → oauth-clients-CWPHi-Yn.mjs} +7 -7
  166. package/dist/{oauth-scopes-BFoE82Mv.mjs → oauth-scopes-CxpRD6d7.mjs} +1 -1
  167. package/dist/{oauth-nsTDJ0dF.mjs → oauth-w0fWmrwU.mjs} +1 -1
  168. package/dist/{observability-smcOFbC1.mjs → observability-BxL2RqWZ.mjs} +44 -44
  169. package/dist/open-PCXX3ZDZ-C7gpxSsl.mjs +4 -0
  170. package/dist/{organization-Dyf_0mq4.mjs → organization-DNieJ1xJ.mjs} +7 -7
  171. package/dist/{organizations-D7zGPLVm.mjs → organizations-BIXPmTy5.mjs} +1 -1
  172. package/dist/{origin-ca-certificates-DJrp29gv.mjs → origin-ca-certificates-dVJvSIH8.mjs} +3 -3
  173. package/dist/{origin-post-quantum-encryption-BYj3kJiq.mjs → origin-post-quantum-encryption-CO6tDW1t.mjs} +3 -3
  174. package/dist/{origin-tls-client-auth-j0tGh6Fy.mjs → origin-tls-client-auth-DeTY8aN2.mjs} +14 -14
  175. package/dist/output-ClYel9WX.mjs +2 -0
  176. package/dist/{page-rules-CLzba_nr.mjs → page-rules-DA552Ra4.mjs} +7 -7
  177. package/dist/pages-B0x7tidm.mjs +54 -0
  178. package/dist/{pay-per-crawl-DbaTVI8V.mjs → pay-per-crawl-DoTg9VP7.mjs} +32 -32
  179. package/dist/{pay-per-use-BEvtoppJ.mjs → pay-per-use-yRO2QBfe.mjs} +3 -3
  180. package/dist/{pipelines-lps71uoA.mjs → pipelines-CQxrm9ao.mjs} +20 -20
  181. package/dist/precursor-FiGYDRV9.mjs +4 -0
  182. package/dist/previews-BthBa50j.mjs +4 -0
  183. package/dist/progress-TLUEIYE6.mjs +2 -0
  184. package/dist/prompt-Ck_1PCHm.mjs +3 -0
  185. package/dist/{queries-EJYlFw8m.mjs → queries-C0RRdol7.mjs} +4 -4
  186. package/dist/{queues-CozKGaA4.mjs → queues-sLgvjsRP.mjs} +29 -35
  187. package/dist/r2-C2PllL6i.mjs +125 -0
  188. package/dist/r2-data-catalog-Bg7zq1IB.mjs +2 -0
  189. package/dist/{radar-NmpdyMo5.mjs → radar-Bez6k9Dw.mjs} +1 -1
  190. package/dist/raw-fetch-DNxNCoeP.mjs +2 -0
  191. package/dist/{realtime-iWTz8WbH.mjs → realtime-D-HSXznX.mjs} +78 -78
  192. package/dist/{registrar-Cza1L8i_.mjs → registrar-DwHrG9QR.mjs} +9 -9
  193. package/dist/{registrar-sandbox-BP4GQg5s.mjs → registrar-sandbox-jNukmzQP.mjs} +6 -6
  194. package/dist/{registry-vreNkX6u.mjs → registry-CsSLAAOE.mjs} +1 -1
  195. package/dist/{reporting-gvXX2MxY.mjs → reporting-DolhAb10.mjs} +7 -7
  196. package/dist/request-headers-Lhj314mk.mjs +2 -0
  197. package/dist/{request-tracers-F8a_aj32.mjs → request-tracers-w72hKc33.mjs} +2 -2
  198. package/dist/resolve-Djf2xgBx.mjs +2 -0
  199. package/dist/{resource-sharing-D6XWIDmb.mjs → resource-sharing-DTrSkqI4.mjs} +18 -18
  200. package/dist/{resource-tagging-c_z4VZt0.mjs → resource-tagging-aURR4fIJ.mjs} +2 -2
  201. package/dist/{rules-_QDaG3U5.mjs → rules-C8a7cV-W.mjs} +8 -8
  202. package/dist/{rulesets-Bc4ZuPG_.mjs → rulesets-RJ6yBefy.mjs} +20 -20
  203. package/dist/{rum-ChPyfpM2.mjs → rum-Bk1dPW4p.mjs} +14 -14
  204. package/dist/run-BJOAPmsz.mjs +2 -0
  205. package/dist/run-iFM5TxtQ.mjs +2 -0
  206. package/dist/{schema-flags-C9lbLgE-.mjs → schema-flags-PagOq-G2.mjs} +2 -2
  207. package/dist/schema-v7mOxMdx.mjs +2 -0
  208. package/dist/{scim-BjiswXbC.mjs → scim-C0FmjkkV.mjs} +10 -10
  209. package/dist/{secrets-store-Cn3D5a0d.mjs → secrets-store-cG_5RMzK.mjs} +11 -11
  210. package/dist/security-insights-DVAqroY5.mjs +40 -0
  211. package/dist/{security-txt-CaR5Idmz.mjs → security-txt-rfrrdiZV.mjs} +4 -4
  212. package/dist/session-B6mFkaVZ.mjs +2 -0
  213. package/dist/shared-BqsWoApw.mjs +2 -0
  214. package/dist/{smart-shield-CphSzoh4.mjs → smart-shield-_HA814Im.mjs} +11 -11
  215. package/dist/{snippets-r-Mre0cE.mjs → snippets-mRelEw0p.mjs} +10 -10
  216. package/dist/source-38bULAR8.mjs +6 -0
  217. package/dist/spawn-BzPhcLJI.mjs +10 -0
  218. package/dist/{spectrum-BhjCVFZk.mjs → spectrum-BwtOiaDw.mjs} +11 -11
  219. package/dist/{speed-CPgypY7n.mjs → speed-DmqsZtiJ.mjs} +11 -11
  220. package/dist/src--KDGqL5N.mjs +109 -0
  221. package/dist/{ssl-DsMrXyqK.mjs → ssl-DCvfveJB.mjs} +16 -16
  222. package/dist/startup-profile-BCe9k9sR.mjs +17 -0
  223. package/dist/startup-profile-WrwRyMwH.mjs +2 -0
  224. package/dist/{state-BxCejn42.mjs → state-BPwdiNO_.mjs} +1 -1
  225. package/dist/state-a1tTOGjm.mjs +2 -0
  226. package/dist/{stream-L2NmGPby.mjs → stream-aroClJeD.mjs} +56 -56
  227. package/dist/{submit-KN0Ul5fV.mjs → submit-BBKhoKT8.mjs} +2 -2
  228. package/dist/{tags-CZMFKGdP.mjs → tags-Djw0e-4j.mjs} +2 -2
  229. package/dist/telemetry-DoBQOGRk.mjs +2 -0
  230. package/dist/telemetry-DrFNujdx.mjs +2 -0
  231. package/dist/{tenant-custom-nameservers-Nx59Buv0.mjs → tenant-custom-nameservers-XCbXryBZ.mjs} +1 -1
  232. package/dist/tenant-tc1wb_ym.mjs +10 -0
  233. package/dist/{theme-BiIYWOed.mjs → theme-BIWQFmZ0.mjs} +2 -2
  234. package/dist/tools-CB4NleeJ.mjs +2 -0
  235. package/dist/{tunnels-C-mMZy4v.mjs → tunnels-C2FTswb6.mjs} +15 -15
  236. package/dist/{turnstile-39JL9tMt.mjs → turnstile-BV4Mdd-j.mjs} +8 -8
  237. package/dist/ui-D1hhIDIs.mjs +5 -0
  238. package/dist/update-check-CFt6cMOi.mjs +2 -0
  239. package/dist/update-check-Dtj9fzNe.mjs +2 -0
  240. package/dist/update-check-worker.mjs +1 -1
  241. package/dist/{url-info-7ikewAnp.mjs → url-info-CeegsDK7.mjs} +2 -2
  242. package/dist/{url-normalization-B0D7Fhf3.mjs → url-normalization-Dbypc9wz.mjs} +4 -4
  243. package/dist/{url-scanner-DpKIqkin.mjs → url-scanner-BFXMrpJF.mjs} +8 -8
  244. package/dist/{user-BFq8UM1s.mjs → user-3uwLMH78.mjs} +1 -1
  245. package/dist/{values-DnBYV1ZD.mjs → values-BTncDc3U.mjs} +2 -2
  246. package/dist/{vectorize-BpZ4UsUj.mjs → vectorize-CtMAtx8r.mjs} +17 -17
  247. package/dist/version-oN1bmOgM.mjs +2 -0
  248. package/dist/{waiting-rooms-DJfqehy9.mjs → waiting-rooms-1xDvjF13.mjs} +25 -25
  249. package/dist/{web-assets-CCSSW_JH.mjs → web-assets-BfEprX1S.mjs} +29 -29
  250. package/dist/{web3-bbT1REPc.mjs → web3-DNbp5sZw.mjs} +13 -13
  251. package/dist/workers-DK_JgS4Y.mjs +38 -0
  252. package/dist/{workers-builds-TRF3K416.mjs → workers-builds-CdhwmmsQ.mjs} +7 -7
  253. package/dist/workers-for-platforms-CP6IqxrK.mjs +42 -0
  254. package/dist/{workers-vpc-kgryQ48l.mjs → workers-vpc-LVfayM2-.mjs} +6 -6
  255. package/dist/{workflows-CKdPlIkK.mjs → workflows-CA5K8FFb.mjs} +23 -23
  256. package/dist/wrangler-migration-B0mKHqGd.mjs +2 -0
  257. package/dist/{zaraz-BXFlEWSx.mjs → zaraz-BY60ZUQ4.mjs} +11 -11
  258. package/dist/{zero-trust-M08mBsYd.mjs → zero-trust-CQNohO7_.mjs} +460 -434
  259. package/dist/{zone-DHmrotGW.mjs → zone-BVDW2UGd.mjs} +2 -2
  260. package/dist/{zones-C0eKBTqG.mjs → zones-CcZL0YQp.mjs} +44 -44
  261. package/package.json +23 -15
  262. package/dist/abuse-reports-Dd6kJM7r.mjs +0 -26
  263. package/dist/access-C_2rEi0H.mjs +0 -27
  264. package/dist/account-CZ9SPVdz.mjs +0 -12
  265. package/dist/ai-ARwLeQ1O.mjs +0 -31
  266. package/dist/ai-gateway-DNY4FPF2.mjs +0 -147
  267. package/dist/auth-DJhSjNNL.mjs +0 -8
  268. package/dist/auth-sAorfdWU.mjs +0 -2
  269. package/dist/browser-extension-C48pKh3t.mjs +0 -15
  270. package/dist/build-1a8CiNIT.mjs +0 -2
  271. package/dist/build-Ca_drQY2.mjs +0 -2
  272. package/dist/cache-XxusQxXe.mjs +0 -45
  273. package/dist/cf-oadujOtC.mjs +0 -18
  274. package/dist/chunk-6EUZQHAF-QVTL_mC-.mjs +0 -2
  275. package/dist/chunk-DL5FNmn1.mjs +0 -2
  276. package/dist/chunk-Q72B4Q5Z-Cr1H_iK6.mjs +0 -2
  277. package/dist/chunk-Q72B4Q5Z-DKhx_4ok.mjs +0 -2
  278. package/dist/chunk-QBZBEHZB-Byagrlop.mjs +0 -2
  279. package/dist/chunk-XLADBZ7F-BXKOjWbx.mjs +0 -374
  280. package/dist/client-certificates-CgaIc3zN.mjs +0 -13
  281. package/dist/command-CF0giIIc.mjs +0 -3
  282. package/dist/command-CsZFRm3P.mjs +0 -2
  283. package/dist/command-DBz8QiFk.mjs +0 -2
  284. package/dist/command-RiZ_LYcm.mjs +0 -2
  285. package/dist/config-B4vIa0zp.mjs +0 -2
  286. package/dist/d1-C1GK7DsW.mjs +0 -45
  287. package/dist/data-security-DDhPnX8Z.mjs +0 -71
  288. package/dist/dev-CVD3BVUG.mjs +0 -4
  289. package/dist/dialog--iw0F2s-.mjs +0 -2
  290. package/dist/dist-CUUGKvjh.mjs +0 -48
  291. package/dist/dist-dc4E1u01.mjs +0 -272
  292. package/dist/dot-prop-6SRZBKHT-Dj7YOlwR.mjs +0 -2
  293. package/dist/dry-run-CLX6Pbtq.mjs +0 -2
  294. package/dist/durable-objects-8U8DpF9q.mjs +0 -8
  295. package/dist/email-security-keTqF0nJ.mjs +0 -160
  296. package/dist/error-sanitization-Cbd_oegl.mjs +0 -2
  297. package/dist/error-sanitization-DwOlM3R7.mjs +0 -2
  298. package/dist/firewall-67qoXiqD.mjs +0 -56
  299. package/dist/flagship-CjC3dF7L.mjs +0 -28
  300. package/dist/hyperdrive-DPWyiXpj.mjs +0 -37
  301. package/dist/interactive-B6woOLo-.mjs +0 -32
  302. package/dist/interactive-DnUvQHjc.mjs +0 -2
  303. package/dist/keyless-certificates-Dvib4jhw.mjs +0 -13
  304. package/dist/kv-CA4J7cCq.mjs +0 -21
  305. package/dist/local-BrfySqnx.mjs +0 -2
  306. package/dist/login-CLW108XX.mjs +0 -5
  307. package/dist/login-xgRjiyJa.mjs +0 -2
  308. package/dist/logs-CiDyrqEu.mjs +0 -48
  309. package/dist/mtls-certificates-LXlgdkf1.mjs +0 -13
  310. package/dist/oauth-Dzk6Gy-6.mjs +0 -14
  311. package/dist/open-PBXRGS4R-C4CKEADM.mjs +0 -4
  312. package/dist/open-PBXRGS4R-C_-G_4DC.mjs +0 -4
  313. package/dist/output-Bia1u2k5.mjs +0 -2
  314. package/dist/pages-pah6dZBJ.mjs +0 -60
  315. package/dist/precursor-DTTYLDEa.mjs +0 -4
  316. package/dist/previews-B89cUmpr.mjs +0 -4
  317. package/dist/progress-D_mL-Kcy.mjs +0 -2
  318. package/dist/prompt-sL_yMZbI.mjs +0 -3
  319. package/dist/r2-Chn_JQUM.mjs +0 -127
  320. package/dist/r2-data-catalog-Bfn3AWzn.mjs +0 -44
  321. package/dist/raw-fetch-lSVttVJF.mjs +0 -2
  322. package/dist/request-headers-POBKmu93.mjs +0 -2
  323. package/dist/resolve-BXemCSyA.mjs +0 -2
  324. package/dist/run-DtN51G2A.mjs +0 -2
  325. package/dist/run-oACgYK8I.mjs +0 -2
  326. package/dist/schema-DZSSJaY0.mjs +0 -2
  327. package/dist/sdk-CsWOex96.mjs +0 -3
  328. package/dist/security-center-DP4GC1cG.mjs +0 -30
  329. package/dist/shared-W9uoX1-W.mjs +0 -2
  330. package/dist/source-BR4_k2ad.mjs +0 -6
  331. package/dist/spawn-BWEuIO-w.mjs +0 -523
  332. package/dist/src-Hw-TlVAO.mjs +0 -108
  333. package/dist/startup-profile-CYEokTVe.mjs +0 -2
  334. package/dist/startup-profile-CgWHy4rE.mjs +0 -17
  335. package/dist/state-DSzkxXML.mjs +0 -2
  336. package/dist/telemetry-CSj_ezpk.mjs +0 -2
  337. package/dist/telemetry-DAf9gLyH.mjs +0 -2
  338. package/dist/telemetry-Dk1GcQ0u.mjs +0 -5
  339. package/dist/tenant-Cu4P-foo.mjs +0 -12
  340. package/dist/tools-BMKpYraQ.mjs +0 -2
  341. package/dist/ui-DH95w1Qk.mjs +0 -5
  342. package/dist/undici-DTSBJHNS.mjs +0 -96
  343. package/dist/update-check-BKQBD4MQ.mjs +0 -2
  344. package/dist/update-check-CE9XB6gf.mjs +0 -2
  345. package/dist/version-Bh3b9vTa.mjs +0 -2
  346. package/dist/workers-CXuyjZB8.mjs +0 -36
  347. package/dist/workers-for-platforms-B57iKiSN.mjs +0 -25
  348. /package/dist/{Page-C-JHZnIy.mjs → Page-DAgOEX17.mjs} +0 -0
  349. /package/dist/{alerts-CstOk8n0.mjs → alerts-D3iKtzoN.mjs} +0 -0
  350. /package/dist/{autorag-PRTwXGgn.mjs → autorag-pvRfDwne.mjs} +0 -0
  351. /package/dist/{body-parser-CUWbw_Tq.mjs → body-parser-NjzJZMOV.mjs} +0 -0
  352. /package/dist/{brands-BHRXlWDm.mjs → brands-DP5Ndir1.mjs} +0 -0
  353. /package/dist/{clear-UvKESVx3.mjs → clear-qLKPlJqb.mjs} +0 -0
  354. /package/dist/{cli-types-tt_LZMbn.mjs → cli-types-_Kmwfpnp.mjs} +0 -0
  355. /package/dist/{connector-telemetry-events-latest-DwnFeZg0.mjs → connector-telemetry-events-latest-_aCmWeZx.mjs} +0 -0
  356. /package/dist/{connector-telemetry-snapshots-latest-Dv6rZlxs.mjs → connector-telemetry-snapshots-latest-CffEplpV.mjs} +0 -0
  357. /package/dist/{domain-info-BqTDXNBo.mjs → domain-info-BQh9XapD.mjs} +0 -0
  358. /package/dist/{health-CwPzzrV6.mjs → health--10IShMi.mjs} +0 -0
  359. /package/dist/{input-validation-Ch4Vllrm.mjs → input-validation-0CeePPHp.mjs} +0 -0
  360. /package/dist/{internal-WLHfxX64.mjs → internal-BUs583vv.mjs} +0 -0
  361. /package/dist/{lifecycle-Ichnb2x1.mjs → lifecycle-Cyc3fmyN.mjs} +0 -0
  362. /package/dist/{live-D_k7eHdv.mjs → live-VCSxA0N9.mjs} +0 -0
  363. /package/dist/{metadata-APBiectA.mjs → metadata-C33s4rc-.mjs} +0 -0
  364. /package/dist/{project-settings-DSXevRvj.mjs → project-settings-Bf6rReo1.mjs} +0 -0
  365. /package/dist/{rate-limit-analytics-CDTPxSET.mjs → rate-limit-analytics-D3q0mGv2.mjs} +0 -0
  366. /package/dist/{rate-limits-C3K9smdl.mjs → rate-limits-BIxlBuMn.mjs} +0 -0
  367. /package/dist/{ready-CvwvbdTX.mjs → ready-CAgelFmC.mjs} +0 -0
  368. /package/dist/{recent-submissions-CjzcT-iH.mjs → recent-submissions-B3TOjNmk.mjs} +0 -0
  369. /package/dist/{refute-CIAFMj00.mjs → refute-BZNkFpBB.mjs} +0 -0
  370. /package/dist/{resolve-CUDKxUrW.mjs → resolve-CGKqk7q8.mjs} +0 -0
  371. /package/dist/{scan-logo-zFkphtQ3.mjs → scan-logo-StecHiaf.mjs} +0 -0
  372. /package/dist/{scan-page-CLl2MAkZ.mjs → scan-page-B4adr-vD.mjs} +0 -0
  373. /package/dist/{search-12jA1b4l.mjs → search-Devngw4M.mjs} +0 -0
  374. /package/dist/{signed-url-U0T_PEMR.mjs → signed-url-ChR5eXXd.mjs} +0 -0
  375. /package/dist/{submission-info-CZ84a3Nb.mjs → submission-info-BGb81HZN.mjs} +0 -0
  376. /package/dist/{total-queries-CJTc9Pde.mjs → total-queries-_wa6KxEl.mjs} +0 -0
  377. /package/dist/{tracked-domains-BKLxnnSv.mjs → tracked-domains-BesKGqfI.mjs} +0 -0
  378. /package/dist/{verify-CZW5Fo1q.mjs → verify-CYM5GlPu.mjs} +0 -0
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{E as e}from"./dist-dc4E1u01.mjs";import{a as t}from"./ui-DH95w1Qk.mjs";import{t as n}from"./local-B6b2OIBW.mjs";import{h as r,m as i,v as a}from"./oauth-Dzk6Gy-6.mjs";import{n as o}from"./request-headers-POBKmu93.mjs";import{i as s,r as c}from"./auth-DJhSjNNL.mjs";import{t as l}from"./output-Bia1u2k5.mjs";import{t as u}from"./dry-run-CLX6Pbtq.mjs";import{t as d}from"./progress-D_mL-Kcy.mjs";import{n as f,t as p}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as m,r as h,t as g}from"./body-parser-CUWbw_Tq.mjs";import{n as _}from"./input-validation-Ch4Vllrm.mjs";import{a as v,i as y,n as b}from"./prompt-sL_yMZbI.mjs";import{t as x}from"./cli-types-tt_LZMbn.mjs";import{D as S,T as C,_ as w,d as T,f as E,g as D,l as ee,m as te,o as O,w as k,x as A,y as j}from"./dist-CUUGKvjh.mjs";function M(e){return e.positional(`path`,{type:`string`,demandOption:!0,description:`Directory containing the Dockerfile to build`}).option(`tag`,{alias:`t`,type:`string`,demandOption:!0,description:`Name and optional tag for the built image`}).option(`push`,{alias:`p`,type:`boolean`,default:!1,description:`Push the built image to Cloudflare's managed registry`}).option(`path-to-docker`,{type:`string`,description:`Path to the Docker binary if it is not on PATH`})}var N=f({command:`build <path>`,describe:`Build a Container image`,builder:M,handler:async t=>{if(t.local)throw Error("--local is not supported with `cf containers build`.");let n={compliance_region:t.push?await r():`public`},a=t.push?await s():``,o=S(a);D({logger:o.logger,fetchResult:o.fetchResult,fetchPagedListResult:o.fetchPagedListResult}),t.push&&T(await i(),a,e(n)),await ee({PATH:t.path,tag:t.tag,push:t.push,pathToDocker:t[`path-to-docker`]},n)}},{command:`containers build`,classification:{safeFlags:[`push`],shortFlagAliases:{p:{canonical:`push`,type:`boolean`},t:{canonical:`tag`,type:`value`}}}});function P(e){return e.option(`tag`,{alias:`t`,type:`string`,demandOption:!0,description:`Tag of the local image to push`}).option(`path-to-docker`,{type:`string`,description:`Path to the Docker binary if it is not on PATH`})}var F=f({command:`push`,describe:`Push a local image to the Cloudflare managed registry`,builder:P,handler:async t=>{if(t.local)throw Error("--local is not supported with `cf containers push`.");let n=await s(),a=await i(),o={compliance_region:await r()},c=S(n);D({logger:c.logger,fetchResult:c.fetchResult,fetchPagedListResult:c.fetchPagedListResult}),T(a,n,e(o)),await A({TAG:t.tag,pathToDocker:t[`path-to-docker`]},a,o)}},{command:`containers push`,classification:{safeFlags:[],shortFlagAliases:{t:{canonical:`tag`,type:`value`}}}});function I(e){return e.positional(`id`,{type:`string`,demandOption:!0,description:`ID of the container instance`}).positional(`ssh-command`,{type:`string`,array:!0,description:`Command and arguments to run in the container`}).options(E).middleware(e=>{k(e)&&(e.quiet=!0)},!0).parserConfiguration({"populate--":!0,"unknown-options-as-args":!0,"parse-positional-numbers":!1})}const L={command:`ssh <id> [ssh-command..]`,describe:`SSH into a container`,builder:I,handler:async t=>{if(t.local)throw Error("--local is not supported with `cf containers ssh`.");let n=await s(),a=await i(),c={compliance_region:await r()},l=S(n);D({logger:l.logger,fetchResult:l.fetchResult}),O.HEADERS=o(),T(a,n,e(c)),await C({...t,id:t.id,command:[...t[`ssh-command`]??[],...Array.isArray(t[`--`])?t[`--`].map(String):[]]})}},R=f(L,{command:`containers ssh`,recordArgs:!1});var z={...R,handler:async e=>{if(k(e)){let{markCommandReported:t}=await import(`./telemetry-CSj_ezpk.mjs`);return t(),L.handler(e)}return R.handler(e)}};function B(e){return e.usage('$0 containers applications create\n\nCreate a Containers application. Use `scheduling_policy: "default"` for a scheduler-backed application. The Containers scheduler maintains the requested instance count and manages deployment configuration, placement, scaling, versions, and rollouts. Use `scheduling_policy: "durable_object"` for a Durable Object-managed application. Each Durable Object creates and manages the lifecycle of its container instance. Supply `name`, `scheduling_policy`, and `durable_objects`, with optional `configuration` and optional top-level `observability` settings. Deployment configuration, scaling, constraints, versions, and rollouts do not apply.').option(`configuration-command`,{type:`string`,array:!0,description:`The command that runs when the container starts, passed to the entrypoint.
2
+ import{G as e}from"./dist-D1iG7guo.mjs";import{a as t}from"./banner-Xk4xBN8U.mjs";import{t as n}from"./local-rYpzEQb-.mjs";import{n as r}from"./auth-Br-t8vL_.mjs";import{a as i,n as a,t as o}from"./context-CquYYyS3.mjs";import{t as s}from"./auth-token-DeG33BMQ.mjs";import{n as c}from"./request-headers-Lhj314mk.mjs";import{t as l}from"./output-ClYel9WX.mjs";import{t as u}from"./dry-run-p9Q7nMZ5.mjs";import{t as d}from"./progress-TLUEIYE6.mjs";import{n as f,t as p}from"./run-iFM5TxtQ.mjs";import"./telemetry-DoBQOGRk.mjs";import{n as m,r as h,t as g}from"./body-parser-NjzJZMOV.mjs";import{n as _}from"./input-validation-0CeePPHp.mjs";import{a as v,i as y,n as b}from"./prompt-Ck_1PCHm.mjs";import{t as x}from"./cli-types-_Kmwfpnp.mjs";import{D as S,T as C,_ as w,d as T,f as E,g as D,l as ee,m as te,o as O,w as k,x as A,y as j}from"./dist-zep5OXGt.mjs";function M(e){return e.positional(`path`,{type:`string`,demandOption:!0,description:`Directory containing the Dockerfile to build`}).option(`tag`,{alias:`t`,type:`string`,demandOption:!0,description:`Name and optional tag for the built image`}).option(`push`,{alias:`p`,type:`boolean`,default:!1,description:`Push the built image to Cloudflare's managed registry`}).option(`path-to-docker`,{type:`string`,description:`Path to the Docker binary if it is not on PATH`})}var N=f({command:`build <path>`,describe:`Build a Container image`,builder:M,handler:async t=>{if(t.local)throw Error("--local is not supported with `cf containers build`.");let n={compliance_region:t.push?await a():`public`},r=t.push?await s():``,i=S(r);D({logger:i.logger,fetchResult:i.fetchResult,fetchPagedListResult:i.fetchPagedListResult}),t.push&&T(await o(),r,e(n)),await ee({PATH:t.path,tag:t.tag,push:t.push,pathToDocker:t[`path-to-docker`]},n)}},{command:`containers build`,classification:{safeFlags:[`push`],shortFlagAliases:{p:{canonical:`push`,type:`boolean`},t:{canonical:`tag`,type:`value`}}}});function P(e){return e.option(`tag`,{alias:`t`,type:`string`,demandOption:!0,description:`Tag of the local image to push`}).option(`path-to-docker`,{type:`string`,description:`Path to the Docker binary if it is not on PATH`})}var F=f({command:`push`,describe:`Push a local image to the Cloudflare managed registry`,builder:P,handler:async t=>{if(t.local)throw Error("--local is not supported with `cf containers push`.");let n=await s(),r=await o(),i={compliance_region:await a()},c=S(n);D({logger:c.logger,fetchResult:c.fetchResult,fetchPagedListResult:c.fetchPagedListResult}),T(r,n,e(i)),await A({TAG:t.tag,pathToDocker:t[`path-to-docker`]},r,i)}},{command:`containers push`,classification:{safeFlags:[],shortFlagAliases:{t:{canonical:`tag`,type:`value`}}}});function I(e){return e.positional(`id`,{type:`string`,demandOption:!0,description:`ID of the container instance`}).positional(`ssh-command`,{type:`string`,array:!0,description:`Command and arguments to run in the container`}).options(E).middleware(e=>{k(e)&&(e.quiet=!0)},!0).parserConfiguration({"populate--":!0,"unknown-options-as-args":!0,"parse-positional-numbers":!1})}const L={command:`ssh <id> [ssh-command..]`,describe:`SSH into a container`,builder:I,handler:async t=>{if(t.local)throw Error("--local is not supported with `cf containers ssh`.");let n=await s(),r=await o(),i={compliance_region:await a()},l=S(n);D({logger:l.logger,fetchResult:l.fetchResult}),O.HEADERS=c(),T(r,n,e(i)),await C({...t,id:t.id,command:[...t[`ssh-command`]??[],...Array.isArray(t[`--`])?t[`--`].map(String):[]]})}},R=f(L,{command:`containers ssh`,recordArgs:!1});var z={...R,handler:async e=>{if(k(e)){let{markCommandReported:t}=await import(`./telemetry-DrFNujdx.mjs`);return t(),L.handler(e)}return R.handler(e)}};function B(e){return e.usage('$0 containers applications create\n\nCreate a Containers application. Use `scheduling_policy: "default"` for a scheduler-backed application. The Containers scheduler maintains the requested instance count and manages deployment configuration, placement, scaling, versions, and rollouts. Use `scheduling_policy: "durable_object"` for a Durable Object-managed application. Each Durable Object creates and manages the lifecycle of its container instance. Supply `name`, `scheduling_policy`, and `durable_objects`, with optional `configuration` and optional top-level `observability` settings. Deployment configuration, scaling, constraints, versions, and rollouts do not apply.').option(`configuration-command`,{type:`string`,array:!0,description:`The command that runs when the container starts, passed to the entrypoint.
3
3
  You can override this at run-time. If you override only the command,
4
4
  it gets passed to the default entrypoint specified in the image.
5
5
  `}).option(`configuration-entrypoint`,{type:`string`,array:!0,description:`The entry point for the container, specifying the executable to run when the container starts.
@@ -13,25 +13,25 @@ Specify both entrypoint and command at run-time to completely replace the image
13
13
  - "standard-2": 1 vCPU, 6 GiB memory, 12 GB disk
14
14
  - "standard-3": 2 vCPU, 8 GiB memory, 16 GB disk
15
15
  - "standard-4": 4 vCPU, 12 GiB memory, 20 GB disk
16
- `}).option(`configuration-observability-logs-enabled`,{type:`boolean`,description:`The configuration.observability.logs.enabled field`}).option(`configuration-wrangler-ssh-enabled`,{type:`boolean`,description:`The configuration.wrangler_ssh.enabled field`}).option(`configuration-wrangler-ssh-port`,{type:`number`,description:`The configuration.wrangler_ssh.port field`}).option(`constraints-jurisdiction`,{type:`string`,description:`Currently supports only "eu" and "fedramp". Overlap between jurisdiction and region is allowed for ENAM, WNAM (FedRAMP) and EEUR, WEUR (EU).`}).option(`constraints-regions`,{type:`string`,array:!0,description:`The constraints.regions field`}).option(`instances`,{type:`number`,description:`The initial number of deployments to create.`}).option(`max-instances`,{type:`number`,description:`Sets the maximum number of instances that the application can run.`}).option(`name`,{type:`string`,description:`The name for this application.`}).option(`observability-logs-enabled`,{type:`boolean`,description:`The observability.logs.enabled field`}).option(`rollout-active-grace-period`,{type:`number`,description:`Grace period for active instances to stay alive before becoming eligible for shutdown signal due to a rollout, in seconds.
16
+ `}).option(`configuration-observability-logs-enabled`,{type:`boolean`,description:`The configuration.observability.logs.enabled field`}).option(`configuration-wrangler-ssh-enabled`,{type:`boolean`,description:`The configuration.wrangler_ssh.enabled field`}).option(`configuration-wrangler-ssh-port`,{type:`number`,description:`The configuration.wrangler_ssh.port field`}).option(`constraints-jurisdiction`,{type:`string`,description:`Restricts placement to datacenters in the selected jurisdiction. Choose "eu", "fedramp", or "us". When combined with regions, EU supports EEUR and WEUR while FedRAMP and US support ENAM and WNAM.`}).option(`constraints-regions`,{type:`string`,array:!0,description:`The constraints.regions field`}).option(`instances`,{type:`number`,description:`The initial number of deployments to create.`}).option(`max-instances`,{type:`number`,description:`Sets the maximum number of instances that the application can run.`}).option(`name`,{type:`string`,description:`The name for this application.`}).option(`observability-logs-enabled`,{type:`boolean`,description:`The observability.logs.enabled field`}).option(`rollout-active-grace-period`,{type:`number`,description:`Grace period for active instances to stay alive before becoming eligible for shutdown signal due to a rollout, in seconds.
17
17
  Defaults to 0.
18
18
  `}).option(`scheduling-policy`,{type:`string`,description:`Selects a scheduler-backed application. Use \`default\` when the Containers
19
19
  scheduler should maintain the requested number of instances and manage deployment
20
20
  configuration, placement, scaling, versions, and rollouts.
21
- `,choices:[`default`,`durable_object`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:"Create a Containers application. Set `scheduling_policy` to `default` for a scheduler-backed application with deployment configuration, instance counts, constraints, versions, and rollouts. Set it to `durable_object` for a Durable Object-managed application where each Durable Object creates and manages the lifecycle of its container instance. For `durable_object` requests, supply `name`, `scheduling_policy`, and `durable_objects`, with optional `configuration` and top-level `observability` settings. "}).conflicts(`configuration-command`,[`configuration-wrangler-ssh-port`]).conflicts(`configuration-entrypoint`,[`configuration-wrangler-ssh-port`]).conflicts(`configuration-image`,[`configuration-wrangler-ssh-port`]).conflicts(`configuration-instance-type`,[`configuration-wrangler-ssh-port`]).conflicts(`configuration-wrangler-ssh-port`,[`configuration-command`,`configuration-entrypoint`,`configuration-image`,`configuration-instance-type`,`constraints-jurisdiction`,`constraints-regions`,`instances`,`max-instances`,`rollout-active-grace-period`]).conflicts(`constraints-jurisdiction`,[`configuration-wrangler-ssh-port`]).conflicts(`constraints-regions`,[`configuration-wrangler-ssh-port`]).conflicts(`instances`,[`configuration-wrangler-ssh-port`]).implies(`instances`,[`max-instances`]).conflicts(`max-instances`,[`configuration-wrangler-ssh-port`]).implies(`max-instances`,[`instances`]).conflicts(`rollout-active-grace-period`,[`configuration-wrangler-ssh-port`])}const V={command:`create`,describe:`Create a new application`,builder:B,handler:async e=>p({command:`containers applications create`,classification:{safeFlags:[`configuration-observability-logs-enabled`,`configuration-wrangler-ssh-enabled`,`observability-logs-enabled`,`scheduling-policy`,`dry-run`]}},e,async()=>{if(e.dryRun){u({command:`cf containers applications create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await a()??`<account-id>`}/containers/applications`,pathParams:{},bodyKind:`json`,body:e.body===void 0?g({configuration:{command:e[`configuration-command`],entrypoint:e[`configuration-entrypoint`],image:_(e[`configuration-image`],`configuration-image`,`text`),instance_type:_(e[`configuration-instance-type`],`configuration-instance-type`,`text`),observability:{logs:{enabled:e[`configuration-observability-logs-enabled`]}},wrangler_ssh:{enabled:e[`configuration-wrangler-ssh-enabled`],port:e[`configuration-wrangler-ssh-port`]}},constraints:{jurisdiction:_(e[`constraints-jurisdiction`],`constraints-jurisdiction`,`text`),regions:e[`constraints-regions`]},instances:e.instances,max_instances:e[`max-instances`],name:_(e.name,`name`,`text`),observability:{logs:{enabled:e[`observability-logs-enabled`]}},rollout_active_grace_period:e[`rollout-active-grace-period`],scheduling_policy:_(e[`scheduling-policy`],`scheduling-policy`,`text`)}):m(e.body)});return}let t=await c(e),r=e.local?n:await i();if(e.accountId=r,e.body){let n=m(e.body);l(await d(`Creating`,async()=>t.containers.applications.create({body:n,account_id:r})),{successLabel:`Created`});return}e.name===void 0&&(e.name=await v(`name`,`The name for this application.`)),e[`scheduling-policy`]===void 0&&(e[`scheduling-policy`]=await y(`scheduling-policy`,"Selects a scheduler-backed application. Use `default` when the Containers scheduler should maintain the requested number of instances and manage deployment configuration, placement, scaling, versions, and rollouts. ",[`default`,`durable_object`]));let o=g({configuration:{command:e[`configuration-command`],entrypoint:e[`configuration-entrypoint`],image:_(e[`configuration-image`],`configuration-image`,`text`),instance_type:_(e[`configuration-instance-type`],`configuration-instance-type`,`text`),observability:{logs:{enabled:e[`configuration-observability-logs-enabled`]}},wrangler_ssh:{enabled:e[`configuration-wrangler-ssh-enabled`],port:e[`configuration-wrangler-ssh-port`]}},constraints:{jurisdiction:_(e[`constraints-jurisdiction`],`constraints-jurisdiction`,`text`),regions:e[`constraints-regions`]},instances:e.instances,max_instances:e[`max-instances`],name:_(e.name,`name`,`text`),observability:{logs:{enabled:e[`observability-logs-enabled`]}},rollout_active_grace_period:e[`rollout-active-grace-period`],scheduling_policy:_(e[`scheduling-policy`],`scheduling-policy`,`text`)});l(await d(`Creating`,async()=>t.containers.applications.create({body:o,account_id:r})),{successLabel:`Created`})})};function H(e){return e.usage(`$0 containers applications delete <application-id>
21
+ `,choices:[`default`,`durable_object`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:"Create a Containers application. Set `scheduling_policy` to `default` for a scheduler-backed application with deployment configuration, instance counts, constraints, versions, and rollouts. Set it to `durable_object` for a Durable Object-managed application where each Durable Object creates and manages the lifecycle of its container instance. For `durable_object` requests, supply `name`, `scheduling_policy`, and `durable_objects`, with optional `configuration` and top-level `observability` settings. "}).conflicts(`configuration-command`,[`configuration-wrangler-ssh-port`]).conflicts(`configuration-entrypoint`,[`configuration-wrangler-ssh-port`]).conflicts(`configuration-image`,[`configuration-wrangler-ssh-port`]).conflicts(`configuration-instance-type`,[`configuration-wrangler-ssh-port`]).conflicts(`configuration-wrangler-ssh-port`,[`configuration-command`,`configuration-entrypoint`,`configuration-image`,`configuration-instance-type`,`constraints-jurisdiction`,`constraints-regions`,`instances`,`max-instances`,`rollout-active-grace-period`]).conflicts(`constraints-jurisdiction`,[`configuration-wrangler-ssh-port`]).conflicts(`constraints-regions`,[`configuration-wrangler-ssh-port`]).conflicts(`instances`,[`configuration-wrangler-ssh-port`]).implies(`instances`,[`max-instances`]).conflicts(`max-instances`,[`configuration-wrangler-ssh-port`]).implies(`max-instances`,[`instances`]).conflicts(`rollout-active-grace-period`,[`configuration-wrangler-ssh-port`])}const V={command:`create`,describe:`Create a new application`,builder:B,handler:async e=>p({command:`containers applications create`,classification:{safeFlags:[`configuration-observability-logs-enabled`,`configuration-wrangler-ssh-enabled`,`observability-logs-enabled`,`scheduling-policy`,`dry-run`]}},e,async()=>{if(e.dryRun){u({command:`cf containers applications create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await i()??`<account-id>`}/containers/applications`,pathParams:{},bodyKind:`json`,body:e.body===void 0?g({configuration:{command:e[`configuration-command`],entrypoint:e[`configuration-entrypoint`],image:_(e[`configuration-image`],`configuration-image`,`text`),instance_type:_(e[`configuration-instance-type`],`configuration-instance-type`,`text`),observability:{logs:{enabled:e[`configuration-observability-logs-enabled`]}},wrangler_ssh:{enabled:e[`configuration-wrangler-ssh-enabled`],port:e[`configuration-wrangler-ssh-port`]}},constraints:{jurisdiction:_(e[`constraints-jurisdiction`],`constraints-jurisdiction`,`text`),regions:e[`constraints-regions`]},instances:e.instances,max_instances:e[`max-instances`],name:_(e.name,`name`,`text`),observability:{logs:{enabled:e[`observability-logs-enabled`]}},rollout_active_grace_period:e[`rollout-active-grace-period`],scheduling_policy:_(e[`scheduling-policy`],`scheduling-policy`,`text`)}):m(e.body)});return}let t=await r(e),a=e.local?n:await o();if(e.accountId=a,e.body){let n=m(e.body);l(await d(`Creating`,async()=>t.containers.applications.create({body:n,account_id:a})),{successLabel:`Created`});return}e.name===void 0&&(e.name=await v(`name`,`The name for this application.`)),e[`scheduling-policy`]===void 0&&(e[`scheduling-policy`]=await y(`scheduling-policy`,"Selects a scheduler-backed application. Use `default` when the Containers scheduler should maintain the requested number of instances and manage deployment configuration, placement, scaling, versions, and rollouts. ",[`default`,`durable_object`]));let s=g({configuration:{command:e[`configuration-command`],entrypoint:e[`configuration-entrypoint`],image:_(e[`configuration-image`],`configuration-image`,`text`),instance_type:_(e[`configuration-instance-type`],`configuration-instance-type`,`text`),observability:{logs:{enabled:e[`configuration-observability-logs-enabled`]}},wrangler_ssh:{enabled:e[`configuration-wrangler-ssh-enabled`],port:e[`configuration-wrangler-ssh-port`]}},constraints:{jurisdiction:_(e[`constraints-jurisdiction`],`constraints-jurisdiction`,`text`),regions:e[`constraints-regions`]},instances:e.instances,max_instances:e[`max-instances`],name:_(e.name,`name`,`text`),observability:{logs:{enabled:e[`observability-logs-enabled`]}},rollout_active_grace_period:e[`rollout-active-grace-period`],scheduling_policy:_(e[`scheduling-policy`],`scheduling-policy`,`text`)});l(await d(`Creating`,async()=>t.containers.applications.create({body:s,account_id:a})),{successLabel:`Created`})})};function H(e){return e.usage(`$0 containers applications delete <application-id>
22
22
 
23
- Deletes a single application by id.`).positional(`application-id`,{type:`string`,description:`An Application ID represents an identifier of an application.`,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 U={command:`delete <application-id>`,describe:`Delete a single application by id`,builder:H,handler:async e=>p({command:`containers applications delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){u({command:`cf containers applications delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await a()??`<account-id>`}/containers/applications/${e[`application-id`]==null?`<application-id>`:encodeURIComponent(String(e[`application-id`]))}`,pathParams:{"application-id":String(e[`application-id`]??``)},bodyKind:`none`});return}let t=await c(e),r=e.local?n:await i();if(e.accountId=r,!await b({force:!!e.force,message:`This operation permanently deletes the application and stops its containers.`})){process.stderr.write(`Aborted.
24
- `);return}l(await d(`Deleting`,async()=>t.containers.applications.delete({account_id:r,application_id:e[`application-id`]})),{successLabel:`Deleted`})})};function W(e){return e.usage("$0 containers applications edit <application-id>\n\nModifies a single application by id. Durable Object-managed application settings are published to runtime metadata without creating deployments or rollouts. Top-level `observability` for these applications supports only `logs.enabled`. The supported fields depend on the existing application's scheduling policy. For scheduler-backed applications, changes that replace instance deployment configuration, including the image, require a rollout.").positional(`application-id`,{type:`string`,description:`An Application ID represents an identifier of an application.`,demandOption:!0}).option(`configuration-wrangler-ssh-enabled`,{type:`boolean`,description:`The configuration.wrangler_ssh.enabled field`}).option(`configuration-wrangler-ssh-port`,{type:`number`,description:`The configuration.wrangler_ssh.port field`}).option(`constraints-jurisdiction`,{type:`string`,description:`Currently supports only "eu" and "fedramp". Overlap between jurisdiction and region is allowed for ENAM, WNAM (FedRAMP) and EEUR, WEUR (EU).`}).option(`constraints-regions`,{type:`string`,array:!0,description:`The constraints.regions field`}).option(`max-instances`,{type:`number`,description:`Maximum number of instances that an autoscaling application can run.`}).option(`observability-logs-enabled`,{type:`boolean`,description:`The observability.logs.enabled field`}).option(`rollout-active-grace-period`,{type:`number`,description:`Grace period for active instances to stay alive before becoming eligible for shutdown signal due to a rollout, in seconds.
23
+ Deletes a single application by id.`).positional(`application-id`,{type:`string`,description:`An Application ID represents an identifier of an application.`,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 U={command:`delete <application-id>`,describe:`Delete a single application by id`,builder:H,handler:async e=>p({command:`containers applications delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){u({command:`cf containers applications delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await i()??`<account-id>`}/containers/applications/${e[`application-id`]==null?`<application-id>`:encodeURIComponent(String(e[`application-id`]))}`,pathParams:{"application-id":String(e[`application-id`]??``)},bodyKind:`none`});return}let t=await r(e),a=e.local?n:await o();if(e.accountId=a,!await b({force:!!e.force,message:`This operation permanently deletes the application and stops its containers.`})){process.stderr.write(`Aborted.
24
+ `);return}l(await d(`Deleting`,async()=>t.containers.applications.delete({account_id:a,application_id:e[`application-id`]})),{successLabel:`Deleted`})})};function W(e){return e.usage("$0 containers applications edit <application-id>\n\nModifies a single application by id. Durable Object-managed application settings are published to runtime metadata without creating deployments or rollouts. Top-level `observability` for these applications supports only `logs.enabled`. The supported fields depend on the existing application's scheduling policy. For scheduler-backed applications, changes that replace instance deployment configuration, including the image, require a rollout.").positional(`application-id`,{type:`string`,description:`An Application ID represents an identifier of an application.`,demandOption:!0}).option(`configuration-wrangler-ssh-enabled`,{type:`boolean`,description:`The configuration.wrangler_ssh.enabled field`}).option(`configuration-wrangler-ssh-port`,{type:`number`,description:`The configuration.wrangler_ssh.port field`}).option(`constraints-jurisdiction`,{type:`string`,description:`Restricts placement to datacenters in the selected jurisdiction. Choose "eu", "fedramp", or "us". When combined with regions, EU supports EEUR and WEUR while FedRAMP and US support ENAM and WNAM.`}).option(`constraints-regions`,{type:`string`,array:!0,description:`The constraints.regions field`}).option(`max-instances`,{type:`number`,description:`Maximum number of instances that an autoscaling application can run.`}).option(`observability-logs-enabled`,{type:`boolean`,description:`The observability.logs.enabled field`}).option(`rollout-active-grace-period`,{type:`number`,description:`Grace period for active instances to stay alive before becoming eligible for shutdown signal due to a rollout, in seconds.
25
25
  Defaults to 0.
26
- `}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for modifying a Containers application without replacing its instances. Durable Object-managed applications support only top-level observability.logs.enabled. The other fields apply to scheduler-backed applications, where deployment configuration changes such as image, resource allocation, command, and environment variables require an application rollout. `})}const G={command:`edit <application-id>`,describe:`Modify an application`,builder:W,handler:async e=>p({command:`containers applications edit`,classification:{safeFlags:[`configuration-wrangler-ssh-enabled`,`observability-logs-enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){u({command:`cf containers applications edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await a()??`<account-id>`}/containers/applications/${e[`application-id`]==null?`<application-id>`:encodeURIComponent(String(e[`application-id`]))}`,pathParams:{"application-id":String(e[`application-id`]??``)},bodyKind:`json`,body:e.body===void 0?g({configuration:{wrangler_ssh:{enabled:e[`configuration-wrangler-ssh-enabled`],port:e[`configuration-wrangler-ssh-port`]}},constraints:{jurisdiction:_(e[`constraints-jurisdiction`],`constraints-jurisdiction`,`text`),regions:e[`constraints-regions`]},max_instances:e[`max-instances`],observability:{logs:{enabled:e[`observability-logs-enabled`]}},rollout_active_grace_period:e[`rollout-active-grace-period`]}):m(e.body)});return}let t=await c(e),r=e.local?n:await i();if(e.accountId=r,e.body){let n=m(e.body);l(await d(`Updating`,async()=>t.containers.applications.edit({...n,account_id:r,application_id:e[`application-id`]})),{successLabel:`Updated`});return}let o=g({configuration:{wrangler_ssh:{enabled:e[`configuration-wrangler-ssh-enabled`],port:e[`configuration-wrangler-ssh-port`]}},constraints:{jurisdiction:_(e[`constraints-jurisdiction`],`constraints-jurisdiction`,`text`),regions:e[`constraints-regions`]},max_instances:e[`max-instances`],observability:{logs:{enabled:e[`observability-logs-enabled`]}},rollout_active_grace_period:e[`rollout-active-grace-period`]});l(await d(`Updating`,async()=>t.containers.applications.edit({...o,account_id:r,application_id:e[`application-id`]})),{successLabel:`Updated`})})};function K(e){return e.usage(`$0 containers applications get <application-id>
26
+ `}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for modifying a Containers application without replacing its instances. Durable Object-managed applications support only top-level observability.logs.enabled. The other fields apply to scheduler-backed applications, where deployment configuration changes such as image, resource allocation, command, and environment variables require an application rollout. `})}const G={command:`edit <application-id>`,describe:`Modify an application`,builder:W,handler:async e=>p({command:`containers applications edit`,classification:{safeFlags:[`configuration-wrangler-ssh-enabled`,`observability-logs-enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){u({command:`cf containers applications edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await i()??`<account-id>`}/containers/applications/${e[`application-id`]==null?`<application-id>`:encodeURIComponent(String(e[`application-id`]))}`,pathParams:{"application-id":String(e[`application-id`]??``)},bodyKind:`json`,body:e.body===void 0?g({configuration:{wrangler_ssh:{enabled:e[`configuration-wrangler-ssh-enabled`],port:e[`configuration-wrangler-ssh-port`]}},constraints:{jurisdiction:_(e[`constraints-jurisdiction`],`constraints-jurisdiction`,`text`),regions:e[`constraints-regions`]},max_instances:e[`max-instances`],observability:{logs:{enabled:e[`observability-logs-enabled`]}},rollout_active_grace_period:e[`rollout-active-grace-period`]}):m(e.body)});return}let t=await r(e),a=e.local?n:await o();if(e.accountId=a,e.body){let n=m(e.body);l(await d(`Updating`,async()=>t.containers.applications.edit({...n,account_id:a,application_id:e[`application-id`]})),{successLabel:`Updated`});return}let s=g({configuration:{wrangler_ssh:{enabled:e[`configuration-wrangler-ssh-enabled`],port:e[`configuration-wrangler-ssh-port`]}},constraints:{jurisdiction:_(e[`constraints-jurisdiction`],`constraints-jurisdiction`,`text`),regions:e[`constraints-regions`]},max_instances:e[`max-instances`],observability:{logs:{enabled:e[`observability-logs-enabled`]}},rollout_active_grace_period:e[`rollout-active-grace-period`]});l(await d(`Updating`,async()=>t.containers.applications.edit({...s,account_id:a,application_id:e[`application-id`]})),{successLabel:`Updated`})})};function K(e){return e.usage(`$0 containers applications get <application-id>
27
27
 
28
- Returns a single application by id.`).positional(`application-id`,{type:`string`,description:`An Application ID represents an identifier of an application.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const q={command:`get <application-id>`,describe:`Get a single application by id`,builder:K,handler:async e=>p({command:`containers applications get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){u({command:`cf containers applications get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await a()??`<account-id>`}/containers/applications/${e[`application-id`]==null?`<application-id>`:encodeURIComponent(String(e[`application-id`]))}`,pathParams:{"application-id":String(e[`application-id`]??``)},bodyKind:`none`});return}let t=await c(e),r=e.local?n:await i();e.accountId=r,l(await d(`Loading`,async()=>t.containers.applications.get({account_id:r,application_id:e[`application-id`]})),{successLabel:`Loaded`})})};function J(e){return e.usage(`$0 containers applications instances get <instance-id>
28
+ Returns a single application by id.`).positional(`application-id`,{type:`string`,description:`An Application ID represents an identifier of an application.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const q={command:`get <application-id>`,describe:`Get a single application by id`,builder:K,handler:async e=>p({command:`containers applications get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){u({command:`cf containers applications get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await i()??`<account-id>`}/containers/applications/${e[`application-id`]==null?`<application-id>`:encodeURIComponent(String(e[`application-id`]))}`,pathParams:{"application-id":String(e[`application-id`]??``)},bodyKind:`none`});return}let t=await r(e),a=e.local?n:await o();e.accountId=a,l(await d(`Loading`,async()=>t.containers.applications.get({account_id:a,application_id:e[`application-id`]})),{successLabel:`Loaded`})})};function J(e){return e.usage(`$0 containers applications instances get <instance-id>
29
29
 
30
- Returns a container instance belonging to an application.`).positional(`instance-id`,{type:`string`,description:`A container instance ID (64-character hex Durable Object actor ID).`,demandOption:!0}).option(`application-id`,{type:`string`,description:`An Application ID represents an identifier of an application.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Y={command:`get <instance-id>`,describe:`Get a container instance`,builder:J,handler:async e=>p({command:`containers applications instances get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){u({command:`cf containers applications instances get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await a()??`<account-id>`}/containers/applications/${e[`application-id`]==null?`<application-id>`:encodeURIComponent(String(e[`application-id`]))}/instances/${e[`instance-id`]==null?`<instance-id>`:encodeURIComponent(String(e[`instance-id`]))}`,pathParams:{"application-id":String(e[`application-id`]??``),"instance-id":String(e[`instance-id`]??``)},bodyKind:`none`});return}let t=await c(e),r=e.local?n:await i();e.accountId=r,l(await d(`Loading`,async()=>t.containers.applications.instances.get({account_id:r,application_id:e[`application-id`],instance_id:e[`instance-id`]})),{successLabel:`Loaded`})})};function X(e){return e.usage(`$0 containers applications instances list
30
+ Returns a container instance belonging to an application.`).positional(`instance-id`,{type:`string`,description:`A container instance ID (64-character hex Durable Object actor ID).`,demandOption:!0}).option(`application-id`,{type:`string`,description:`An Application ID represents an identifier of an application.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Y={command:`get <instance-id>`,describe:`Get a container instance`,builder:J,handler:async e=>p({command:`containers applications instances get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){u({command:`cf containers applications instances get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await i()??`<account-id>`}/containers/applications/${e[`application-id`]==null?`<application-id>`:encodeURIComponent(String(e[`application-id`]))}/instances/${e[`instance-id`]==null?`<instance-id>`:encodeURIComponent(String(e[`instance-id`]))}`,pathParams:{"application-id":String(e[`application-id`]??``),"instance-id":String(e[`instance-id`]??``)},bodyKind:`none`});return}let t=await r(e),a=e.local?n:await o();e.accountId=a,l(await d(`Loading`,async()=>t.containers.applications.instances.get({account_id:a,application_id:e[`application-id`],instance_id:e[`instance-id`]})),{successLabel:`Loaded`})})};function X(e){return e.usage(`$0 containers applications instances list
31
31
 
32
- Lists container instances belonging to an application.`).option(`application-id`,{type:`string`,description:`An Application ID represents an identifier of an application.`,demandOption:!0}).option(`per-page`,{type:`number`,description:`Maximum number of instances to return per page. Defaults to 100.`}).option(`page-token`,{type:`string`,description:`Opaque token from a previous response to retrieve the next page.`}).option(`state`,{type:`string`,description:"Filters instances by lifecycle state. `active` includes provisioning, running, and stopping instances; `not-active` includes stopped and failed instances. When omitted, all instances are returned.",choices:[`active`,`not-active`]}).option(`name-prefix`,{type:`string`,description:`Filter instances by a case-sensitive name prefix, falling back to the actor ID when no name is known. Keep the same prefix when using a page token.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Z={command:`list`,describe:`List container instances`,builder:x(X),handler:async e=>p({command:`containers applications instances list`,classification:{safeFlags:[`state`,`dry-run`]}},e,async()=>{let t={per_page:e[`per-page`],page_token:e[`page-token`],state:e.state,name_prefix:e[`name-prefix`]};if(e.dryRun){u({command:`cf containers applications instances list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await a()??`<account-id>`}/containers/applications/${e[`application-id`]==null?`<application-id>`:encodeURIComponent(String(e[`application-id`]))}/instances-v2`,pathParams:{"application-id":String(e[`application-id`]??``)},query:t,bodyKind:`none`});return}let r=await c(e),o=e.local?n:await i();e.accountId=o,l(await d(`Loading`,async()=>r.containers.applications.instances.list({account_id:o,application_id:e[`application-id`],...t})),{successLabel:`Loaded`})})},ne={command:`instances`,describe:`Inspect Containers instances belonging to applications`,builder:e=>e.command(Y).command(Z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function re(e){return e.usage(`$0 containers applications list
32
+ Lists container instances belonging to an application.`).option(`application-id`,{type:`string`,description:`An Application ID represents an identifier of an application.`,demandOption:!0}).option(`per-page`,{type:`number`,description:`Maximum number of instances to return per page. Defaults to 100.`}).option(`page-token`,{type:`string`,description:`Opaque token from a previous response to retrieve the next page.`}).option(`state`,{type:`string`,description:"Filters instances by lifecycle state. `active` includes provisioning, running, and stopping instances; `not-active` includes stopped and failed instances. When omitted, all instances are returned.",choices:[`active`,`not-active`]}).option(`name-prefix`,{type:`string`,description:`Filter instances by a case-sensitive name prefix, falling back to the actor ID when no name is known. Keep the same prefix when using a page token.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Z={command:`list`,describe:`List container instances`,builder:x(X),handler:async e=>p({command:`containers applications instances list`,classification:{safeFlags:[`state`,`dry-run`]}},e,async()=>{let t={per_page:e[`per-page`],page_token:e[`page-token`],state:e.state,name_prefix:e[`name-prefix`]};if(e.dryRun){u({command:`cf containers applications instances list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await i()??`<account-id>`}/containers/applications/${e[`application-id`]==null?`<application-id>`:encodeURIComponent(String(e[`application-id`]))}/instances-v2`,pathParams:{"application-id":String(e[`application-id`]??``)},query:t,bodyKind:`none`});return}let a=await r(e),s=e.local?n:await o();e.accountId=s,l(await d(`Loading`,async()=>a.containers.applications.instances.list({account_id:s,application_id:e[`application-id`],...t})),{successLabel:`Loaded`})})},ne={command:`instances`,describe:`Inspect Containers instances belonging to applications`,builder:e=>e.command(Y).command(Z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function re(e){return e.usage(`$0 containers applications list
33
33
 
34
- Lists all the applications that are associated with your account.`).option(`per-page`,{type:`number`,description:"Maximum number of applications to return per page. Defaults to all, or 100 when `page_token` is set."}).option(`page-token`,{type:`string`,description:`Opaque token from a previous response to retrieve the next page.`}).option(`name`,{type:`string`,description:`Filter applications by name.`}).option(`image`,{type:`string`,description:`Filter applications by image.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ie={command:`list`,describe:`List Applications associated with your account`,builder:re,handler:async e=>p({command:`containers applications list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={per_page:e[`per-page`],page_token:e[`page-token`],name:e.name,image:e.image};if(e.dryRun){u({command:`cf containers applications list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await a()??`<account-id>`}/containers/applications`,pathParams:{},query:t,bodyKind:`none`});return}let r=await c(e),o=e.local?n:await i();e.accountId=o,l(await d(`Loading`,async()=>r.containers.applications.list({account_id:o,...t})),{successLabel:`Loaded`})})};function ae(e){return e.usage('$0 containers applications rollouts create <application-id>\n\nCreates a rollout to update the application\'s configuration across instances with minimal downtime. Rollouts apply only to scheduler-backed applications with `scheduling_policy: "default"`. Versions and rollouts do not apply to applications with `scheduling_policy: "durable_object"`.').positional(`application-id`,{type:`string`,description:`An Application ID represents an identifier of an application.`,demandOption:!0}).option(`description`,{type:`string`,description:`Description of the rollout process.`}).option(`kind`,{type:`string`,description:`Kind of the rollout process. Defaults to "full_auto".
34
+ Lists all the applications that are associated with your account.`).option(`per-page`,{type:`number`,description:"Maximum number of applications to return per page. Defaults to all, or 100 when `page_token` is set."}).option(`page-token`,{type:`string`,description:`Opaque token from a previous response to retrieve the next page.`}).option(`name`,{type:`string`,description:`Filter applications by name.`}).option(`image`,{type:`string`,description:`Filter applications by image.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ie={command:`list`,describe:`List Applications associated with your account`,builder:re,handler:async e=>p({command:`containers applications list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={per_page:e[`per-page`],page_token:e[`page-token`],name:e.name,image:e.image};if(e.dryRun){u({command:`cf containers applications list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await i()??`<account-id>`}/containers/applications`,pathParams:{},query:t,bodyKind:`none`});return}let a=await r(e),s=e.local?n:await o();e.accountId=s,l(await d(`Loading`,async()=>a.containers.applications.list({account_id:s,...t})),{successLabel:`Loaded`})})};function ae(e){return e.usage('$0 containers applications rollouts create <application-id>\n\nCreates a rollout to update the application\'s configuration across instances with minimal downtime. Rollouts apply only to scheduler-backed applications with `scheduling_policy: "default"`. Versions and rollouts do not apply to applications with `scheduling_policy: "durable_object"`.').positional(`application-id`,{type:`string`,description:`An Application ID represents an identifier of an application.`,demandOption:!0}).option(`description`,{type:`string`,description:`Description of the rollout process.`}).option(`kind`,{type:`string`,description:`Kind of the rollout process. Defaults to "full_auto".
35
35
  - "full_auto": For rolling rollouts, starts progressing steps upon rollout creation. For new_instances rollouts, advances percentage targets automatically after target-version health is observed.
36
36
  - "full_manual": Requires manually progressing each step in the rollout using the UpdateRollout's action parameter.
37
37
  `,choices:[`full_auto`,`full_manual`],default:`full_auto`}).option(`percentage`,{type:`number`,description:`Initial target version percentage (0-100). Version sync actively replaces instances to match.
@@ -60,19 +60,19 @@ Specify both entrypoint and command at run-time to completely replace the image
60
60
  - "standard-2": 1 vCPU, 6 GiB memory, 12 GB disk
61
61
  - "standard-3": 2 vCPU, 8 GiB memory, 16 GB disk
62
62
  - "standard-4": 4 vCPU, 12 GiB memory, 20 GB disk
63
- `,default:`lite`}).option(`target-configuration-observability-logs-enabled`,{type:`boolean`,description:`The target_configuration.observability.logs.enabled field`,default:!1}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body to create a new rollout for a scheduler-backed application.`})}const oe={command:`create <application-id>`,describe:`Create a new rollout for an application`,builder:ae,handler:async e=>p({command:`containers applications rollouts create`,classification:{safeFlags:[`kind`,`strategy`,`target-configuration-observability-logs-enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){u({command:`cf containers applications rollouts create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await a()??`<account-id>`}/containers/applications/${e[`application-id`]==null?`<application-id>`:encodeURIComponent(String(e[`application-id`]))}/rollouts`,pathParams:{"application-id":String(e[`application-id`]??``)},bodyKind:`json`,body:e.body===void 0?g({description:_(e.description,`description`,`text`),kind:_(e.kind,`kind`,`text`),percentage:e.percentage,step_percentage:e[`step-percentage`],steps:h(e.steps,`steps`),strategy:_(e.strategy,`strategy`,`text`),target_configuration:{command:e[`target-configuration-command`],entrypoint:e[`target-configuration-entrypoint`],image:_(e[`target-configuration-image`],`target-configuration-image`,`text`),instance_type:_(e[`target-configuration-instance-type`],`target-configuration-instance-type`,`text`),observability:{logs:{enabled:e[`target-configuration-observability-logs-enabled`]}}}}):m(e.body)});return}let t=await c(e),r=e.local?n:await i();if(e.accountId=r,e.body){let n=m(e.body);l(await d(`Creating`,async()=>t.containers.applications.rollouts.create({...n,account_id:r,application_id:e[`application-id`]})),{successLabel:`Created`});return}e.description===void 0&&(e.description=await v(`description`,`Description of the rollout process.`)),e.strategy===void 0&&(e.strategy=await y(`strategy`,`Strategy used for the rollout. - "rolling": Step-based rollout with health gates. Actively replaces instances to reach each step's target percentage. - "new_instances": Percentage control over version distribution. Version sync actively replaces instances to match the configured percentage. The "full_auto" kind advances through fixed percentage targets after target-version health is observed. `,[`rolling`,`new_instances`]));let o=g({description:_(e.description,`description`,`text`),kind:_(e.kind,`kind`,`text`),percentage:e.percentage,step_percentage:e[`step-percentage`],steps:h(e.steps,`steps`),strategy:_(e.strategy,`strategy`,`text`),target_configuration:{command:e[`target-configuration-command`],entrypoint:e[`target-configuration-entrypoint`],image:_(e[`target-configuration-image`],`target-configuration-image`,`text`),instance_type:_(e[`target-configuration-instance-type`],`target-configuration-instance-type`,`text`),observability:{logs:{enabled:e[`target-configuration-observability-logs-enabled`]}}}});l(await d(`Creating`,async()=>t.containers.applications.rollouts.create({...o,account_id:r,application_id:e[`application-id`]})),{successLabel:`Created`})})},se={command:`rollouts`,describe:`Manage rollouts for scheduler-backed applications`,builder:e=>e.command(oe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ce(e){return e.usage('$0 containers applications versions list\n\nReturns all versions for a scheduler-backed application with `scheduling_policy: "default"`. Versions and rollouts do not apply to applications with `scheduling_policy: "durable_object"`.').option(`application-id`,{type:`string`,description:`An Application ID represents an identifier of an application.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const le={command:`list`,describe:`List all application versions`,builder:ce,handler:async e=>p({command:`containers applications versions list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){u({command:`cf containers applications versions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await a()??`<account-id>`}/containers/applications/${e[`application-id`]==null?`<application-id>`:encodeURIComponent(String(e[`application-id`]))}/versions`,pathParams:{"application-id":String(e[`application-id`]??``)},bodyKind:`none`});return}let t=await c(e),r=e.local?n:await i();e.accountId=r,l(await d(`Loading`,async()=>t.containers.applications.versions.list({account_id:r,application_id:e[`application-id`]})),{successLabel:`Loaded`})})},ue={command:`versions`,describe:`Inspect versions of scheduler-backed applications`,builder:e=>e.command(le).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},de={command:`applications`,describe:`Manage Containers applications`,builder:e=>e.command(V).command(U).command(G).command(q).command(ie).command(ne).command(se).command(ue).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};async function Q(){let t=await s(),n=await i(),a={compliance_region:await r()};return O.HEADERS=o(),T(n,t,e(a)),{accountId:n,complianceConfig:a}}function fe(e){return e.positional(`image`,{type:`string`,demandOption:!0,description:`Image and tag to delete, of the form IMAGE:TAG`}).option(`force`,{type:`boolean`,alias:`f`,default:!1,description:`Skip the deletion confirmation prompt`})}var pe=f({command:`delete <image>`,describe:`Delete an image tag from the Cloudflare managed registry`,builder:fe,async handler(e){if(e.local)throw Error("--local is not supported with `cf containers images delete`.");if(j(e.image),!await b({force:e.force,message:`Delete ${e.image}? This action cannot be undone.`}))return;let n=await Q(),r=await d(`Deleting`,()=>te({...n,image:e.image}));l({image:e.image,...r},{quiet:e.quiet}),r.warning&&console.warn(t(r.warning))}},{command:`containers images delete`,classification:{safeFlags:[`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}});function me(e){return e.option(`filter`,{type:`string`,description:`Regex to filter repository names`})}var he=f({command:`list`,describe:`List images in the Cloudflare managed registry`,builder:me,async handler(e){if(e.local)throw Error("--local is not supported with `cf containers images list`.");e.filter!==void 0&&new RegExp(e.filter);let t=await Q();l(await d(`Loading`,()=>w({...t,filter:e.filter})),{quiet:e.quiet})}},{command:`containers images list`,classification:{safeFlags:[]}});function ge(e){return e.usage(`$0 containers images prepare
63
+ `,default:`lite`}).option(`target-configuration-observability-logs-enabled`,{type:`boolean`,description:`The target_configuration.observability.logs.enabled field`,default:!1}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body to create a new rollout for a scheduler-backed application.`})}const oe={command:`create <application-id>`,describe:`Create a new rollout for an application`,builder:ae,handler:async e=>p({command:`containers applications rollouts create`,classification:{safeFlags:[`kind`,`strategy`,`target-configuration-observability-logs-enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){u({command:`cf containers applications rollouts create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await i()??`<account-id>`}/containers/applications/${e[`application-id`]==null?`<application-id>`:encodeURIComponent(String(e[`application-id`]))}/rollouts`,pathParams:{"application-id":String(e[`application-id`]??``)},bodyKind:`json`,body:e.body===void 0?g({description:_(e.description,`description`,`text`),kind:_(e.kind,`kind`,`text`),percentage:e.percentage,step_percentage:e[`step-percentage`],steps:h(e.steps,`steps`),strategy:_(e.strategy,`strategy`,`text`),target_configuration:{command:e[`target-configuration-command`],entrypoint:e[`target-configuration-entrypoint`],image:_(e[`target-configuration-image`],`target-configuration-image`,`text`),instance_type:_(e[`target-configuration-instance-type`],`target-configuration-instance-type`,`text`),observability:{logs:{enabled:e[`target-configuration-observability-logs-enabled`]}}}}):m(e.body)});return}let t=await r(e),a=e.local?n:await o();if(e.accountId=a,e.body){let n=m(e.body);l(await d(`Creating`,async()=>t.containers.applications.rollouts.create({...n,account_id:a,application_id:e[`application-id`]})),{successLabel:`Created`});return}e.description===void 0&&(e.description=await v(`description`,`Description of the rollout process.`)),e.strategy===void 0&&(e.strategy=await y(`strategy`,`Strategy used for the rollout. - "rolling": Step-based rollout with health gates. Actively replaces instances to reach each step's target percentage. - "new_instances": Percentage control over version distribution. Version sync actively replaces instances to match the configured percentage. The "full_auto" kind advances through fixed percentage targets after target-version health is observed. `,[`rolling`,`new_instances`]));let s=g({description:_(e.description,`description`,`text`),kind:_(e.kind,`kind`,`text`),percentage:e.percentage,step_percentage:e[`step-percentage`],steps:h(e.steps,`steps`),strategy:_(e.strategy,`strategy`,`text`),target_configuration:{command:e[`target-configuration-command`],entrypoint:e[`target-configuration-entrypoint`],image:_(e[`target-configuration-image`],`target-configuration-image`,`text`),instance_type:_(e[`target-configuration-instance-type`],`target-configuration-instance-type`,`text`),observability:{logs:{enabled:e[`target-configuration-observability-logs-enabled`]}}}});l(await d(`Creating`,async()=>t.containers.applications.rollouts.create({...s,account_id:a,application_id:e[`application-id`]})),{successLabel:`Created`})})},se={command:`rollouts`,describe:`Manage rollouts for scheduler-backed applications`,builder:e=>e.command(oe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ce(e){return e.usage('$0 containers applications versions list\n\nReturns all versions for a scheduler-backed application with `scheduling_policy: "default"`. Versions and rollouts do not apply to applications with `scheduling_policy: "durable_object"`.').option(`application-id`,{type:`string`,description:`An Application ID represents an identifier of an application.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const le={command:`list`,describe:`List all application versions`,builder:ce,handler:async e=>p({command:`containers applications versions list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){u({command:`cf containers applications versions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await i()??`<account-id>`}/containers/applications/${e[`application-id`]==null?`<application-id>`:encodeURIComponent(String(e[`application-id`]))}/versions`,pathParams:{"application-id":String(e[`application-id`]??``)},bodyKind:`none`});return}let t=await r(e),a=e.local?n:await o();e.accountId=a,l(await d(`Loading`,async()=>t.containers.applications.versions.list({account_id:a,application_id:e[`application-id`]})),{successLabel:`Loaded`})})},ue={command:`versions`,describe:`Inspect versions of scheduler-backed applications`,builder:e=>e.command(le).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},de={command:`applications`,describe:`Manage Containers applications`,builder:e=>e.command(V).command(U).command(G).command(q).command(ie).command(ne).command(se).command(ue).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};async function Q(){let t=await s(),n=await o(),r={compliance_region:await a()};return O.HEADERS=c(),T(n,t,e(r)),{accountId:n,complianceConfig:r}}function fe(e){return e.positional(`image`,{type:`string`,demandOption:!0,description:`Image and tag to delete, of the form IMAGE:TAG`}).option(`force`,{type:`boolean`,alias:`f`,default:!1,description:`Skip the deletion confirmation prompt`})}var pe=f({command:`delete <image>`,describe:`Delete an image tag from the Cloudflare managed registry`,builder:fe,async handler(e){if(e.local)throw Error("--local is not supported with `cf containers images delete`.");if(j(e.image),!await b({force:e.force,message:`Delete ${e.image}? This action cannot be undone.`}))return;let n=await Q(),r=await d(`Deleting`,()=>te({...n,image:e.image}));l({image:e.image,...r},{quiet:e.quiet}),r.warning&&console.warn(t(r.warning))}},{command:`containers images delete`,classification:{safeFlags:[`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}});function me(e){return e.option(`filter`,{type:`string`,description:`Regex to filter repository names`})}var he=f({command:`list`,describe:`List images in the Cloudflare managed registry`,builder:me,async handler(e){if(e.local)throw Error("--local is not supported with `cf containers images list`.");e.filter!==void 0&&new RegExp(e.filter);let t=await Q();l(await d(`Loading`,()=>w({...t,filter:e.filter})),{quiet:e.quiet})}},{command:`containers images list`,classification:{safeFlags:[]}});function ge(e){return e.usage(`$0 containers images prepare
64
64
 
65
- Idempotently starts or observes preparation of the runtime artifacts required to run one digest-pinned managed container image on Cloudflare's network. Returns 202 while durable preparation continues and 200 when the image is ready or preparation has reached a terminal error.`).option(`image`,{type:`string`,description:`Image url.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`A digest-pinned managed container image to prepare for the new runtime.`})}const _e={command:`prepare`,describe:`Prepare a container image`,builder:ge,handler:async e=>p({command:`containers images prepare`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){u({command:`cf containers images prepare`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await a()??`<account-id>`}/containers/image-preparations`,pathParams:{},bodyKind:`json`,body:e.body===void 0?g({image:_(e.image,`image`,`text`)}):m(e.body)});return}let t=await c(e),r=e.local?n:await i();if(e.accountId=r,e.body){let n=m(e.body);l(await d(`Creating`,async()=>t.containers.images.prepare({...n,account_id:r})),{successLabel:`Created`});return}e.image===void 0&&(e.image=await v(`image`,`Image url.`));let o=g({image:_(e.image,`image`,`text`)});l(await d(`Creating`,async()=>t.containers.images.prepare({...o,account_id:r})),{successLabel:`Created`})})},ve={command:`images`,describe:`Operations for images`,builder:e=>e.command(pe).command(he).command(_e).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ye(e){return e.usage(`$0 containers registries create
65
+ Idempotently starts or observes preparation of the runtime artifacts required to run one digest-pinned managed container image on Cloudflare's network. Returns 202 while durable preparation continues and 200 when the image is ready or preparation has reached a terminal error.`).option(`image`,{type:`string`,description:`Image url.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`A digest-pinned managed container image to prepare for the new runtime.`})}const _e={command:`prepare`,describe:`Prepare a container image`,builder:ge,handler:async e=>p({command:`containers images prepare`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){u({command:`cf containers images prepare`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await i()??`<account-id>`}/containers/image-preparations`,pathParams:{},bodyKind:`json`,body:e.body===void 0?g({image:_(e.image,`image`,`text`)}):m(e.body)});return}let t=await r(e),a=e.local?n:await o();if(e.accountId=a,e.body){let n=m(e.body);l(await d(`Creating`,async()=>t.containers.images.prepare({...n,account_id:a})),{successLabel:`Created`});return}e.image===void 0&&(e.image=await v(`image`,`Image url.`));let s=g({image:_(e.image,`image`,`text`)});l(await d(`Creating`,async()=>t.containers.images.prepare({...s,account_id:a})),{successLabel:`Created`})})},ve={command:`images`,describe:`Operations for images`,builder:e=>e.command(pe).command(he).command(_e).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ye(e){return e.usage(`$0 containers registries create
66
66
 
67
67
  Registers credentials for a supported private external image registry so Containers can pull images from it. This endpoint does not create a registry or upload an image. Public Docker Hub images and images in the Cloudflare managed registry do not require this configuration. Refer to [Image management](https://developers.cloudflare.com/containers/platform-details/image-management/) for supported registries and instructions for storing registry credentials.`).option(`auth-private-credential-secret-name`,{type:`string`,description:`Name of the secret within the store.`}).option(`auth-private-credential-store-id`,{type:`string`,description:`Identifier of the Secrets Store containing the secret.`}).option(`auth-public-credential`,{type:`string`,description:`The non-secret part of the registry credential: an AWS access key ID for ECR,
68
68
  a username for Docker Hub, or a service account email for Google Artifact Registry.
69
69
  `}).option(`domain`,{type:`string`,description:"Hostname of the private registry, without a scheme or image path. Supported\nhostnames are `docker.io`, AWS ECR hostnames, and Google Artifact Registry\n`*-docker.pkg.dev` hostnames.\n"}).option(`is-public`,{type:`boolean`,description:`Omit this field or set it to \`false\`. Public Docker Hub images do not require
70
70
  registry configuration and cannot be added with this endpoint.
71
- `}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Configuration for connecting Containers to a supported private external image registry. See [Image management](https://developers.cloudflare.com/containers/platform-details/image-management/) for supported providers and credential setup instructions. `})}const be={command:`create`,describe:`Configure a private external image registry`,builder:ye,handler:async e=>p({command:`containers registries create`,classification:{safeFlags:[`is-public`,`dry-run`]}},e,async()=>{if(e.dryRun){u({command:`cf containers registries create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await a()??`<account-id>`}/containers/registries`,pathParams:{},bodyKind:`json`,body:e.body===void 0?g({auth:{private_credential:{secret_name:_(e[`auth-private-credential-secret-name`],`auth-private-credential-secret-name`,`text`),store_id:_(e[`auth-private-credential-store-id`],`auth-private-credential-store-id`,`text`)},public_credential:_(e[`auth-public-credential`],`auth-public-credential`,`text`)},domain:_(e.domain,`domain`,`text`),is_public:e[`is-public`]}):m(e.body)});return}let t=await c(e),r=e.local?n:await i();if(e.accountId=r,e.body){let n=m(e.body);l(await d(`Creating`,async()=>t.containers.registries.create({...n,account_id:r})),{successLabel:`Created`});return}e[`auth-private-credential-secret-name`]===void 0&&(e[`auth-private-credential-secret-name`]=await v(`auth-private-credential-secret-name`,`Name of the secret within the store.`)),e[`auth-private-credential-store-id`]===void 0&&(e[`auth-private-credential-store-id`]=await v(`auth-private-credential-store-id`,`Identifier of the Secrets Store containing the secret.`)),e[`auth-public-credential`]===void 0&&(e[`auth-public-credential`]=await v(`auth-public-credential`,`The non-secret part of the registry credential: an AWS access key ID for ECR, a username for Docker Hub, or a service account email for Google Artifact Registry. `)),e.domain===void 0&&(e.domain=await v(`domain`,"Hostname of the private registry, without a scheme or image path. Supported hostnames are `docker.io`, AWS ECR hostnames, and Google Artifact Registry `*-docker.pkg.dev` hostnames. "));let o=g({auth:{private_credential:{secret_name:_(e[`auth-private-credential-secret-name`],`auth-private-credential-secret-name`,`text`),store_id:_(e[`auth-private-credential-store-id`],`auth-private-credential-store-id`,`text`)},public_credential:_(e[`auth-public-credential`],`auth-public-credential`,`text`)},domain:_(e.domain,`domain`,`text`),is_public:e[`is-public`]});l(await d(`Creating`,async()=>t.containers.registries.create({...o,account_id:r})),{successLabel:`Created`})})};function $(e){return e.usage(`$0 containers registries credentials generate <domain>
71
+ `}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Configuration for connecting Containers to a supported private external image registry. See [Image management](https://developers.cloudflare.com/containers/platform-details/image-management/) for supported providers and credential setup instructions. `})}const be={command:`create`,describe:`Configure a private external image registry`,builder:ye,handler:async e=>p({command:`containers registries create`,classification:{safeFlags:[`is-public`,`dry-run`]}},e,async()=>{if(e.dryRun){u({command:`cf containers registries create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await i()??`<account-id>`}/containers/registries`,pathParams:{},bodyKind:`json`,body:e.body===void 0?g({auth:{private_credential:{secret_name:_(e[`auth-private-credential-secret-name`],`auth-private-credential-secret-name`,`text`),store_id:_(e[`auth-private-credential-store-id`],`auth-private-credential-store-id`,`text`)},public_credential:_(e[`auth-public-credential`],`auth-public-credential`,`text`)},domain:_(e.domain,`domain`,`text`),is_public:e[`is-public`]}):m(e.body)});return}let t=await r(e),a=e.local?n:await o();if(e.accountId=a,e.body){let n=m(e.body);l(await d(`Creating`,async()=>t.containers.registries.create({...n,account_id:a})),{successLabel:`Created`});return}e[`auth-private-credential-secret-name`]===void 0&&(e[`auth-private-credential-secret-name`]=await v(`auth-private-credential-secret-name`,`Name of the secret within the store.`)),e[`auth-private-credential-store-id`]===void 0&&(e[`auth-private-credential-store-id`]=await v(`auth-private-credential-store-id`,`Identifier of the Secrets Store containing the secret.`)),e[`auth-public-credential`]===void 0&&(e[`auth-public-credential`]=await v(`auth-public-credential`,`The non-secret part of the registry credential: an AWS access key ID for ECR, a username for Docker Hub, or a service account email for Google Artifact Registry. `)),e.domain===void 0&&(e.domain=await v(`domain`,"Hostname of the private registry, without a scheme or image path. Supported hostnames are `docker.io`, AWS ECR hostnames, and Google Artifact Registry `*-docker.pkg.dev` hostnames. "));let s=g({auth:{private_credential:{secret_name:_(e[`auth-private-credential-secret-name`],`auth-private-credential-secret-name`,`text`),store_id:_(e[`auth-private-credential-store-id`],`auth-private-credential-store-id`,`text`)},public_credential:_(e[`auth-public-credential`],`auth-public-credential`,`text`)},domain:_(e.domain,`domain`,`text`),is_public:e[`is-public`]});l(await d(`Creating`,async()=>t.containers.registries.create({...s,account_id:a})),{successLabel:`Created`})})};function $(e){return e.usage(`$0 containers registries credentials generate <domain>
72
72
 
73
- Generates credentials for accessing a configured container image registry.`).positional(`domain`,{type:`string`,description:`The domain to get credentials for.`,demandOption:!0}).option(`expiration-minutes`,{type:`number`,description:`The number of minutes Cloudflare managed registry credentials stay valid. Required for managed registries and must remain positive. Cloudflare ignores this value for external registries.`}).option(`permissions`,{type:`string`,array:!0,description:`The permissions for Cloudflare managed registry credentials. Required for managed registries. Cloudflare ignores this value for external registries.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Specifies the configuration for the image registry credential to create. Cloudflare requires both fields for managed registries. For external registries, Cloudflare ignores both fields, and the registry provider determines the returned credentials' permissions and lifetime.`})}const xe={command:`generate <domain>`,describe:`Generate a JWT to interact with the specified image registry.`,builder:$,handler:async e=>p({command:`containers registries credentials generate`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){u({command:`cf containers registries credentials generate`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await a()??`<account-id>`}/containers/registries/${e.domain==null?`<domain>`:encodeURIComponent(String(e.domain))}/credentials`,pathParams:{domain:String(e.domain??``)},bodyKind:`json`,body:e.body===void 0?g({expiration_minutes:e[`expiration-minutes`],permissions:e.permissions}):m(e.body)});return}let t=await c(e),r=e.local?n:await i();if(e.accountId=r,e.body){let n=m(e.body);l(await d(`Creating`,async()=>t.containers.registries.credentials.generate({...n,account_id:r,domain:e.domain})),{successLabel:`Created`});return}let o=g({expiration_minutes:e[`expiration-minutes`],permissions:e.permissions});l(await d(`Creating`,async()=>t.containers.registries.credentials.generate({...o,account_id:r,domain:e.domain})),{successLabel:`Created`})})},Se={command:`credentials`,describe:`Generate image registry credentials`,builder:e=>e.command(xe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Ce(e){return e.usage(`$0 containers registries delete <domain>
73
+ Generates credentials for accessing a configured container image registry.`).positional(`domain`,{type:`string`,description:`The domain to get credentials for.`,demandOption:!0}).option(`expiration-minutes`,{type:`number`,description:`The number of minutes Cloudflare managed registry credentials stay valid. Required for managed registries and must remain positive. Cloudflare ignores this value for external registries.`}).option(`permissions`,{type:`string`,array:!0,description:`The permissions for Cloudflare managed registry credentials. Required for managed registries. Cloudflare ignores this value for external registries.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Specifies the configuration for the image registry credential to create. Cloudflare requires both fields for managed registries. For external registries, Cloudflare ignores both fields, and the registry provider determines the returned credentials' permissions and lifetime.`})}const xe={command:`generate <domain>`,describe:`Generate a JWT to interact with the specified image registry.`,builder:$,handler:async e=>p({command:`containers registries credentials generate`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){u({command:`cf containers registries credentials generate`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await i()??`<account-id>`}/containers/registries/${e.domain==null?`<domain>`:encodeURIComponent(String(e.domain))}/credentials`,pathParams:{domain:String(e.domain??``)},bodyKind:`json`,body:e.body===void 0?g({expiration_minutes:e[`expiration-minutes`],permissions:e.permissions}):m(e.body)});return}let t=await r(e),a=e.local?n:await o();if(e.accountId=a,e.body){let n=m(e.body);l(await d(`Creating`,async()=>t.containers.registries.credentials.generate({...n,account_id:a,domain:e.domain})),{successLabel:`Created`});return}let s=g({expiration_minutes:e[`expiration-minutes`],permissions:e.permissions});l(await d(`Creating`,async()=>t.containers.registries.credentials.generate({...s,account_id:a,domain:e.domain})),{successLabel:`Created`})})},Se={command:`credentials`,describe:`Generate image registry credentials`,builder:e=>e.command(xe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Ce(e){return e.usage(`$0 containers registries delete <domain>
74
74
 
75
- Delete a registry from the account, this will prevent Containers from pulling images from the registry.`).positional(`domain`,{type:`string`,description:`The domain 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 we={command:`delete <domain>`,describe:`Delete a registry from the account`,builder:Ce,handler:async e=>p({command:`containers registries delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){u({command:`cf containers registries delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await a()??`<account-id>`}/containers/registries/${e.domain==null?`<domain>`:encodeURIComponent(String(e.domain))}`,pathParams:{domain:String(e.domain??``)},bodyKind:`none`});return}let t=await c(e),r=e.local?n:await i();if(e.accountId=r,!await b({force:!!e.force,message:`This operation deletes the registry configuration. Containers will no longer be able to pull images from it.`})){process.stderr.write(`Aborted.
76
- `);return}l(await d(`Deleting`,async()=>t.containers.registries.delete({account_id:r,domain:e.domain})),{successLabel:`Deleted`})})};function Te(e){return e.usage(`$0 containers registries list
75
+ Delete a registry from the account, this will prevent Containers from pulling images from the registry.`).positional(`domain`,{type:`string`,description:`The domain 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 we={command:`delete <domain>`,describe:`Delete a registry from the account`,builder:Ce,handler:async e=>p({command:`containers registries delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){u({command:`cf containers registries delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await i()??`<account-id>`}/containers/registries/${e.domain==null?`<domain>`:encodeURIComponent(String(e.domain))}`,pathParams:{domain:String(e.domain??``)},bodyKind:`none`});return}let t=await r(e),a=e.local?n:await o();if(e.accountId=a,!await b({force:!!e.force,message:`This operation deletes the registry configuration. Containers will no longer be able to pull images from it.`})){process.stderr.write(`Aborted.
76
+ `);return}l(await d(`Deleting`,async()=>t.containers.registries.delete({account_id:a,domain:e.domain})),{successLabel:`Deleted`})})};function Te(e){return e.usage(`$0 containers registries list
77
77
 
78
- Get the list of configured registries in the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ee={command:`list`,describe:`Get the list of configured registries in the account`,builder:Te,handler:async e=>p({command:`containers registries list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){u({command:`cf containers registries list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await a()??`<account-id>`}/containers/registries`,pathParams:{},bodyKind:`none`});return}let t=await c(e),r=e.local?n:await i();e.accountId=r,l(await d(`Loading`,async()=>t.containers.registries.list({account_id:r})),{successLabel:`Loaded`})})},De={command:`registries`,describe:`Manage Containers image registries`,builder:e=>e.command(be).command(we).command(Ee).command(Se).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Oe={command:`containers`,describe:`Deploy and manage Containers applications on Cloudflare's global network`,builder:e=>e.command(N).command(F).command(z).command(de).command(ve).command(De).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Oe as default};
78
+ Get the list of configured registries in the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ee={command:`list`,describe:`Get the list of configured registries in the account`,builder:Te,handler:async e=>p({command:`containers registries list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){u({command:`cf containers registries list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await i()??`<account-id>`}/containers/registries`,pathParams:{},bodyKind:`none`});return}let t=await r(e),a=e.local?n:await o();e.accountId=a,l(await d(`Loading`,async()=>t.containers.registries.list({account_id:a})),{successLabel:`Loaded`})})},De={command:`registries`,describe:`Manage Containers image registries`,builder:e=>e.command(be).command(we).command(Ee).command(Se).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Oe={command:`containers`,describe:`Deploy and manage Containers applications on Cloudflare's global network`,builder:e=>e.command(N).command(F).command(z).command(de).command(ve).command(De).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Oe as default};
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
- import{_ as e}from"./oauth-Dzk6Gy-6.mjs";import{r as t}from"./auth-DJhSjNNL.mjs";import{t as n}from"./output-Bia1u2k5.mjs";import{t as r}from"./dry-run-CLX6Pbtq.mjs";import{t as i}from"./progress-D_mL-Kcy.mjs";import{t as a}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n 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-sL_yMZbI.mjs";function f(e){return e.usage(`$0 content-scan expressions create
2
+ import{n as e}from"./auth-Br-t8vL_.mjs";import{i as t}from"./context-CquYYyS3.mjs";import{t as n}from"./output-ClYel9WX.mjs";import{t as r}from"./dry-run-p9Q7nMZ5.mjs";import{t as i}from"./progress-TLUEIYE6.mjs";import{t as a}from"./run-iFM5TxtQ.mjs";import"./telemetry-DoBQOGRk.mjs";import{n as o,t as s}from"./body-parser-NjzJZMOV.mjs";import{n as c}from"./input-validation-0CeePPHp.mjs";import{a as l,i as u,n as d}from"./prompt-Ck_1PCHm.mjs";function f(e){return e.usage(`$0 content-scan expressions create
3
3
 
4
- Create one or more Content Scanning custom expressions, appending them to the existing list of the zone, and return the updated list. Each expression reaches content objects the scanner cannot find automatically, for example \`lookup_json_string(http.request.body.raw, "file")\`.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Array of Content Scanning custom expressions to create.`})}const p={command:`create`,describe:`Create Content Scanning custom expressions for a zone.`,builder:f,handler:async s=>a({command:`content-scan expressions create`,classification:{safeFlags:[`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf content-scan expressions create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/content-upload-scan/payloads`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?void 0:o(s.body)});return}let a=await t(s),c=await e({zone:s.zone},a,{quiet:s.quiet});if(s.zoneId=c,s.body){let e=o(s.body);n(await i(`Creating`,async()=>a.contentScan.expressions.create({body:e,zone_id:c})),{successLabel:`Created`});return}if(s.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function m(e){return e.usage(`$0 content-scan expressions delete <expression-id>
4
+ Create one or more Content Scanning custom expressions, appending them to the existing list of the zone, and return the updated list. Each expression reaches content objects the scanner cannot find automatically, for example \`lookup_json_string(http.request.body.raw, "file")\`.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Array of Content Scanning custom expressions to create.`})}const p={command:`create`,describe:`Create Content Scanning custom expressions for a zone.`,builder:f,handler:async s=>a({command:`content-scan expressions create`,classification:{safeFlags:[`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf content-scan expressions create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/content-upload-scan/payloads`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?void 0:o(s.body)});return}let a=await e(s),c=await t({zone:s.zone},a,{quiet:s.quiet});if(s.zoneId=c,s.body){let e=o(s.body);n(await i(`Creating`,async()=>a.contentScan.expressions.create({body:e,zone_id:c})),{successLabel:`Created`});return}if(s.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function m(e){return e.usage(`$0 content-scan expressions delete <expression-id>
5
5
 
6
- Delete the Content Scanning custom expression with the given identifier and return the expressions that remain. Content objects reached only by the deleted expression are no longer scanned.`).positional(`expression-id`,{type:`string`,description:`Defines the unique ID for this Content Scanning custom expression.`,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 <expression-id>`,describe:`Delete a Content Scanning custom expression from a zone.`,builder:m,handler:async o=>a({command:`content-scan expressions delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf content-scan expressions delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/content-upload-scan/payloads/${o[`expression-id`]==null?`<expression-id>`:encodeURIComponent(String(o[`expression-id`]))}`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``),"expression-id":String(o[`expression-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,message:`This operation deletes a Content Scanning custom expression.`})){process.stderr.write(`Aborted.
6
+ Delete the Content Scanning custom expression with the given identifier and return the expressions that remain. Content objects reached only by the deleted expression are no longer scanned.`).positional(`expression-id`,{type:`string`,description:`Defines the unique ID for this Content Scanning custom expression.`,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 <expression-id>`,describe:`Delete a Content Scanning custom expression from a zone.`,builder:m,handler:async o=>a({command:`content-scan expressions delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf content-scan expressions delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/content-upload-scan/payloads/${o[`expression-id`]==null?`<expression-id>`:encodeURIComponent(String(o[`expression-id`]))}`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``),"expression-id":String(o[`expression-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});if(o.zoneId=s,!await d({force:!!o.force,message:`This operation deletes a Content Scanning custom expression.`})){process.stderr.write(`Aborted.
7
7
  `);return}n(await i(`Deleting`,async()=>a.contentScan.expressions.delete({zone_id:s,expression_id:o[`expression-id`]})),{successLabel:`Deleted`})})};function g(e){return e.usage(`$0 content-scan expressions list
8
8
 
9
- List the Content Scanning custom expressions configured for the zone, each with its own identifier. A custom expression tells the scanner how to reach content objects in a request it cannot parse on its own, such as files Base64-encoded inside a JSON body.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _={command:`list`,describe:`List the Content Scanning custom expressions of a zone.`,builder:g,handler:async o=>a({command:`content-scan expressions list`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf content-scan expressions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/content-upload-scan/payloads`,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.contentScan.expressions.list({zone_id:s})),{successLabel:`Loaded`})})};function v(e){return e.usage(`$0 content-scan expressions update <expression-id>
9
+ List the Content Scanning custom expressions configured for the zone, each with its own identifier. A custom expression tells the scanner how to reach content objects in a request it cannot parse on its own, such as files Base64-encoded inside a JSON body.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _={command:`list`,describe:`List the Content Scanning custom expressions of a zone.`,builder:g,handler:async o=>a({command:`content-scan expressions list`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf content-scan expressions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/content-upload-scan/payloads`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.contentScan.expressions.list({zone_id:s})),{successLabel:`Loaded`})})};function v(e){return e.usage(`$0 content-scan expressions update <expression-id>
10
10
 
11
- Update the Content Scanning custom expression with the given identifier and return the updated list of expressions.`).positional(`expression-id`,{type:`string`,description:`Defines the unique ID for this Content Scanning custom expression.`,demandOption:!0}).option(`payload`,{type:`string`,description:`Defines the custom content extraction expression used to reach content objects in the request.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Content Scanning custom expression to update.`})}const y={command:`update <expression-id>`,describe:`Update a Content Scanning custom expression for a zone.`,builder:v,handler:async u=>a({command:`content-scan expressions update`,classification:{safeFlags:[`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf content-scan expressions update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/content-upload-scan/payloads/${u[`expression-id`]==null?`<expression-id>`:encodeURIComponent(String(u[`expression-id`]))}`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``),"expression-id":String(u[`expression-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({payload:c(u.payload,`payload`,`text`)}):o(u.body)});return}let a=await t(u),d=await e({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,u.body){let e=o(u.body);n(await i(`Updating`,async()=>a.contentScan.expressions.update({...e,zone_id:d,expression_id:u[`expression-id`]})),{successLabel:`Updated`});return}u.payload===void 0&&(u.payload=await l(`payload`,`Defines the custom content extraction expression used to reach content objects in the request.`));let f=s({payload:c(u.payload,`payload`,`text`)});n(await i(`Updating`,async()=>a.contentScan.expressions.update({...f,zone_id:d,expression_id:u[`expression-id`]})),{successLabel:`Updated`})})},b={command:`expressions`,describe:`Custom expressions that tell the scanner how to reach content objects it cannot parse on its own`,builder:e=>e.command(p).command(h).command(_).command(y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function x(e){return e.usage(`$0 content-scan get
11
+ Update the Content Scanning custom expression with the given identifier and return the updated list of expressions.`).positional(`expression-id`,{type:`string`,description:`Defines the unique ID for this Content Scanning custom expression.`,demandOption:!0}).option(`payload`,{type:`string`,description:`Defines the custom content extraction expression used to reach content objects in the request.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Content Scanning custom expression to update.`})}const y={command:`update <expression-id>`,describe:`Update a Content Scanning custom expression for a zone.`,builder:v,handler:async u=>a({command:`content-scan expressions update`,classification:{safeFlags:[`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf content-scan expressions update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/content-upload-scan/payloads/${u[`expression-id`]==null?`<expression-id>`:encodeURIComponent(String(u[`expression-id`]))}`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``),"expression-id":String(u[`expression-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({payload:c(u.payload,`payload`,`text`)}):o(u.body)});return}let a=await e(u),d=await t({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,u.body){let e=o(u.body);n(await i(`Updating`,async()=>a.contentScan.expressions.update({...e,zone_id:d,expression_id:u[`expression-id`]})),{successLabel:`Updated`});return}u.payload===void 0&&(u.payload=await l(`payload`,`Defines the custom content extraction expression used to reach content objects in the request.`));let f=s({payload:c(u.payload,`payload`,`text`)});n(await i(`Updating`,async()=>a.contentScan.expressions.update({...f,zone_id:d,expression_id:u[`expression-id`]})),{successLabel:`Updated`})})},b={command:`expressions`,describe:`Custom expressions that tell the scanner how to reach content objects it cannot parse on its own`,builder:e=>e.command(p).command(h).command(_).command(y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function x(e){return e.usage(`$0 content-scan get
12
12
 
13
- Get the current Content Scanning status for the zone, together with the date the status was last modified.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`get`,describe:`Get the Content Scanning status for a zone.`,builder:x,handler:async o=>a({command:`content-scan get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf content-scan get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/content-upload-scan/settings`,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.contentScan.get({zone_id:s})),{successLabel:`Loaded`})})};function C(e){return e.usage("$0 content-scan update\n\nUpdate the Content Scanning status by setting the status value to `enabled` or `disabled`. This is equivalent to calling the dedicated enable and disable endpoints.").option(`value`,{type:`string`,description:`The status value for Content Scanning.`,choices:[`enabled`,`disabled`]}).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}).option(`body`,{type:`string`,description:`Content Scanning settings to update.`})}const w={command:`update`,describe:`Update the Content Scanning status for a zone.`,builder:C,handler:async l=>a({command:`content-scan update`,classification:{safeFlags:[`value`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},l,async()=>{if(l.dryRun){r({command:`cf content-scan update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${l.zone??l.zoneId??`<zone>`}/content-upload-scan/settings`,pathParams:{"zone-id":String(l.zone??l[`zone-id`]??``)},bodyKind:`json`,body:l.body===void 0?s({value:c(l.value,`value`,`text`)}):o(l.body)});return}let a=await t(l),f=await e({zone:l.zone},a,{quiet:l.quiet});if(l.zoneId=f,!await d({force:!!l.force,message:`This operation toggles Content Scanning for a zone.`})){process.stderr.write(`Aborted.
13
+ Get the current Content Scanning status for the zone, together with the date the status was last modified.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`get`,describe:`Get the Content Scanning status for a zone.`,builder:x,handler:async o=>a({command:`content-scan get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf content-scan get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/content-upload-scan/settings`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.contentScan.get({zone_id:s})),{successLabel:`Loaded`})})};function C(e){return e.usage("$0 content-scan update\n\nUpdate the Content Scanning status by setting the status value to `enabled` or `disabled`. This is equivalent to calling the dedicated enable and disable endpoints.").option(`value`,{type:`string`,description:`The status value for Content Scanning.`,choices:[`enabled`,`disabled`]}).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}).option(`body`,{type:`string`,description:`Content Scanning settings to update.`})}const w={command:`update`,describe:`Update the Content Scanning status for a zone.`,builder:C,handler:async l=>a({command:`content-scan update`,classification:{safeFlags:[`value`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},l,async()=>{if(l.dryRun){r({command:`cf content-scan update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${l.zone??l.zoneId??`<zone>`}/content-upload-scan/settings`,pathParams:{"zone-id":String(l.zone??l[`zone-id`]??``)},bodyKind:`json`,body:l.body===void 0?s({value:c(l.value,`value`,`text`)}):o(l.body)});return}let a=await e(l),f=await t({zone:l.zone},a,{quiet:l.quiet});if(l.zoneId=f,!await d({force:!!l.force,message:`This operation toggles Content Scanning for a zone.`})){process.stderr.write(`Aborted.
14
14
  `);return}if(l.body){let e=o(l.body);n(await i(`Deleting`,async()=>a.contentScan.update({...e,zone_id:f})),{successLabel:`Deleted`});return}l.value===void 0&&(l.value=await u(`value`,`The status value for Content Scanning.`,[`enabled`,`disabled`]));let p=s({value:c(l.value,`value`,`text`)});n(await i(`Deleting`,async()=>a.contentScan.update({...p,zone_id:f})),{successLabel:`Deleted`})})},T={command:`content-scan`,describe:`Malicious uploads detection, scan uploaded content in HTTP requests for malware and malicious payloads`,builder:e=>e.command(S).command(w).command(b).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{T as default};
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ import{i as e,r as t}from"./project-settings-Bf6rReo1.mjs";import{n}from"./resolve-CGKqk7q8.mjs";function r(e,t){if(t)return{value:t,source:`flag`};let n=process.env[e];if(n)return{value:n,source:`env`}}async function i(n={}){let r=process.env.CLOUDFLARE_ACCOUNT_ID;if(r)return{value:r,source:`env`};if(n.skipProjectSettings)return;let i=t(void 0,n),a=i===void 0?await e(void 0,n):i;if(a?.settings?.accountId)return{value:a.settings.accountId,source:`settings`,path:a.path}}async function a(){let e=await i();if(e)return e.value;let{getActiveAccountId:t}=await import(`./oauth-w0fWmrwU.mjs`);try{return t()}catch{return}}async function o(e){let t=await i(e);t&&s(t.value,g(t,`accountId`));let{getOrSelectAccountId:n}=await import(`./oauth-w0fWmrwU.mjs`);return n(t?.value,e)}function s(e,t){if(!process.env.DEBUG)return;let n=e.length>12?e.slice(0,12)+`…`:e;process.stderr.write(`Using account: ${n} (${t})\n`)}async function c(e,t,n){if(e?.zoneId)return l(e.zoneId,t);let i=r(`CLOUDFLARE_ZONE_ID`,e?.zone);if(i){if(!n?.quiet&&i.source!==`flag`){let e=g(i);console.error(`Using zone: ${i.value} (from ${e})`)}return l(i.value,t)}throw Error(`No zone specified.
3
+
4
+ Please provide one of the following:
5
+ 1. Zone as a positional argument: cf dns records list <zone>
6
+ 2. --zone flag (or -z): cf dns records list --zone example.com
7
+ 3. CLOUDFLARE_ZONE_ID environment variable`)}async function l(e,t){if(n(e)||!t)return e;let{resolveZoneId:r}=await import(`./resolve-Djf2xgBx.mjs`);return r(t,await o(),e)}function u(e){if(e?.scriptName)return e.scriptName;throw Error("Required Worker name missing. Please specify the Worker name with `--worker <name>`.")}const d=[`public`,`fedramp_high`];let f=!1;async function p(n={}){let r=t(void 0,n),i=(r===void 0?await e(void 0,n):r)?.settings?.complianceRegion,a=h(i,`cloudflare.config.ts`),o=process.env.CLOUDFLARE_COMPLIANCE_REGION,s=h(o,`CLOUDFLARE_COMPLIANCE_REGION`);return s?(a&&a!==s&&!f&&(f=!0,console.warn(`The compliance region was resolved to "${o}" from the \`CLOUDFLARE_COMPLIANCE_REGION\` environment variable, which takes precedence over the configured value "${i}" in \`cloudflare.config.ts\`.`)),s):a}async function m(e){return await p(e)??`public`}function h(e,t){switch(e){case`fedramp-high`:return`fedramp_high`;case`fedramp_high`:case`public`:case void 0:return e;default:throw Error(`Invalid compliance region "${e}" from ${t}. Valid values are: ${d.join(`, `)}`)}}function g(e,t=`zone`){switch(e.source){case`flag`:return t===`zone`?`--zone flag`:`(flag)`;case`env`:return{accountId:`CLOUDFLARE_ACCOUNT_ID`,zone:`CLOUDFLARE_ZONE_ID`,complianceRegion:`CLOUDFLARE_COMPLIANCE_REGION`}[t];case`settings`:return`cloudflare.config.ts`}}export{a,c as i,m as n,u as r,o as t};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{r as e}from"./auth-DJhSjNNL.mjs";import{t}from"./output-Bia1u2k5.mjs";import{t as n}from"./dry-run-CLX6Pbtq.mjs";import{t as r}from"./progress-D_mL-Kcy.mjs";import{t as i}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as a,t as o}from"./body-parser-CUWbw_Tq.mjs";import{n as s}from"./input-validation-Ch4Vllrm.mjs";function c(e){return e.usage(`$0 cps get
2
+ import{n as e}from"./auth-Br-t8vL_.mjs";import{t}from"./output-ClYel9WX.mjs";import{t as n}from"./dry-run-p9Q7nMZ5.mjs";import{t as r}from"./progress-TLUEIYE6.mjs";import{t as i}from"./run-iFM5TxtQ.mjs";import"./telemetry-DoBQOGRk.mjs";import{n as a,t as o}from"./body-parser-NjzJZMOV.mjs";import{n as s}from"./input-validation-0CeePPHp.mjs";function c(e){return e.usage(`$0 cps get
3
3
 
4
4
  Retrieve the communication preferences for the authenticated user, including email verification status, marketing subscription opt-in/opt-out state, and language locale. Callers authenticate with standard Cloudflare API tokens or keys.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`get`,describe:`Get communication preferences`,builder:c,handler:async a=>i({command:`cps get`,classification:{safeFlags:[`dry-run`]}},a,async()=>{if(a.dryRun){n({command:`cf cps get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/communication_preferences`,pathParams:{},bodyKind:`none`});return}let i=await e(a);t(await r(`Loading`,async()=>i.cps.get()),{successLabel:`Loaded`})})};function u(e){return e.usage(`$0 cps update
5
5
 
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
- import{_ as e}from"./oauth-Dzk6Gy-6.mjs";import{r as t}from"./auth-DJhSjNNL.mjs";import{t as n}from"./output-Bia1u2k5.mjs";import{t as r}from"./dry-run-CLX6Pbtq.mjs";import{t as i}from"./progress-D_mL-Kcy.mjs";import{t as a}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as o,t as s}from"./body-parser-CUWbw_Tq.mjs";import{n as c}from"./input-validation-Ch4Vllrm.mjs";function l(e){return e.usage(`$0 csamScanner edit
2
+ import{n as e}from"./auth-Br-t8vL_.mjs";import{i as t}from"./context-CquYYyS3.mjs";import{t as n}from"./output-ClYel9WX.mjs";import{t as r}from"./dry-run-p9Q7nMZ5.mjs";import{t as i}from"./progress-TLUEIYE6.mjs";import{t as a}from"./run-iFM5TxtQ.mjs";import"./telemetry-DoBQOGRk.mjs";import{n as o,t as s}from"./body-parser-NjzJZMOV.mjs";import{n as c}from"./input-validation-0CeePPHp.mjs";function l(e){return e.usage(`$0 csamScanner edit
3
3
 
4
4
  Update the CSAM Scanner configuration for a zone. Allows enabling or disabling CSAM scanning, updating the notification email, and configuring scanning sources. When a new email is provided, email verification is triggered automatically. The \`enabled\` field is a toggle; the server may adjust it based on whether the notification email is verified. Returns 403 if the zone or account is locked by Trust & Safety.`).option(`id`,{type:`string`,description:`The feature identifier.`,choices:[`csam_scanner`]}).option(`value-email`,{type:`string`,description:`Notification email address for CSAM scan results. When changed,
5
5
  email verification is triggered automatically.
6
6
  `}).option(`value-enabled`,{type:`boolean`,description:`Whether CSAM scanning is enabled for this zone.`}).option(`value-resend-email`,{type:`boolean`,description:`Set to true to trigger re-sending the email verification.
7
7
  Write-only; never appears in responses (omitted when false).
8
- `}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for updating CSAM Scanner configuration. `})}const u={command:`edit`,describe:`Update CSAM Scanner setting`,builder:l,handler:async l=>a({command:`csamScanner edit`,classification:{safeFlags:[`id`,`value-enabled`,`value-resend-email`,`dry-run`]}},l,async()=>{if(l.dryRun){r({command:`cf csamScanner edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${l.zone??l.zoneId??`<zone>`}/settings/csam_scanner_third_party`,pathParams:{"zone-id":String(l.zone??l[`zone-id`]??``)},bodyKind:`json`,body:l.body===void 0?s({id:c(l.id,`id`,`text`),value:{email:c(l[`value-email`],`value-email`,`text`),enabled:l[`value-enabled`],resend_email:l[`value-resend-email`]}}):o(l.body)});return}let a=await t(l),u=await e({zone:l.zone},a,{quiet:l.quiet});if(l.zoneId=u,l.body){let e=o(l.body);n(await i(`Updating`,async()=>a.csamScanner.edit({...e,zone_id:u})),{successLabel:`Updated`});return}let d=s({id:c(l.id,`id`,`text`),value:{email:c(l[`value-email`],`value-email`,`text`),enabled:l[`value-enabled`],resend_email:l[`value-resend-email`]}});n(await i(`Updating`,async()=>a.csamScanner.edit({...d,zone_id:u})),{successLabel:`Updated`})})};function d(e){return e.usage(`$0 csamScanner get
8
+ `}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for updating CSAM Scanner configuration. `})}const u={command:`edit`,describe:`Update CSAM Scanner setting`,builder:l,handler:async l=>a({command:`csamScanner edit`,classification:{safeFlags:[`id`,`value-enabled`,`value-resend-email`,`dry-run`]}},l,async()=>{if(l.dryRun){r({command:`cf csamScanner edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${l.zone??l.zoneId??`<zone>`}/settings/csam_scanner_third_party`,pathParams:{"zone-id":String(l.zone??l[`zone-id`]??``)},bodyKind:`json`,body:l.body===void 0?s({id:c(l.id,`id`,`text`),value:{email:c(l[`value-email`],`value-email`,`text`),enabled:l[`value-enabled`],resend_email:l[`value-resend-email`]}}):o(l.body)});return}let a=await e(l),u=await t({zone:l.zone},a,{quiet:l.quiet});if(l.zoneId=u,l.body){let e=o(l.body);n(await i(`Updating`,async()=>a.csamScanner.edit({...e,zone_id:u})),{successLabel:`Updated`});return}let d=s({id:c(l.id,`id`,`text`),value:{email:c(l[`value-email`],`value-email`,`text`),enabled:l[`value-enabled`],resend_email:l[`value-resend-email`]}});n(await i(`Updating`,async()=>a.csamScanner.edit({...d,zone_id:u})),{successLabel:`Updated`})})};function d(e){return e.usage(`$0 csamScanner get
9
9
 
10
- Retrieve the current CSAM Scanner configuration for a zone. The notification email is masked by default in responses.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const f={command:`get`,describe:`Get CSAM Scanner setting`,builder:d,handler:async o=>a({command:`csamScanner get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf csamScanner get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/settings/csam_scanner_third_party`,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.csamScanner.get({zone_id:s})),{successLabel:`Loaded`})})},p={command:`csamScanner`,describe:`csamScanner`,builder:e=>e.command(u).command(f).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{p as default};
10
+ Retrieve the current CSAM Scanner configuration for a zone. The notification email is masked by default in responses.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const f={command:`get`,describe:`Get CSAM Scanner setting`,builder:d,handler:async o=>a({command:`csamScanner get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf csamScanner get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/settings/csam_scanner_third_party`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.csamScanner.get({zone_id:s})),{successLabel:`Loaded`})})},p={command:`csamScanner`,describe:`csamScanner`,builder:e=>e.command(u).command(f).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{p as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{_ as e}from"./oauth-Dzk6Gy-6.mjs";import{r as t}from"./auth-DJhSjNNL.mjs";import{t as n}from"./output-Bia1u2k5.mjs";import{t as r}from"./dry-run-CLX6Pbtq.mjs";import{t as i}from"./progress-D_mL-Kcy.mjs";import{t as a}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as o,t as s}from"./body-parser-CUWbw_Tq.mjs";function c(e){return e.usage(`$0 ct-alerting get
2
+ import{n as e}from"./auth-Br-t8vL_.mjs";import{i as t}from"./context-CquYYyS3.mjs";import{t as n}from"./output-ClYel9WX.mjs";import{t as r}from"./dry-run-p9Q7nMZ5.mjs";import{t as i}from"./progress-TLUEIYE6.mjs";import{t as a}from"./run-iFM5TxtQ.mjs";import"./telemetry-DoBQOGRk.mjs";import{n as o,t as s}from"./body-parser-NjzJZMOV.mjs";function c(e){return e.usage(`$0 ct-alerting get
3
3
 
4
- Retrieve the Certificate Transparency alerting subscription settings for a zone. Returns whether CT monitoring is enabled and the list of email addresses that receive alerts, if any have been configured.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`get`,describe:`Get CT Alerting Subscription`,builder:c,handler:async o=>a({command:`ct-alerting get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf ct-alerting get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/ct/alerting`,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.ctAlerting.get({zone_id:s})),{successLabel:`Loaded`})})};function u(e){return e.usage("$0 ct-alerting update\n\nCreate or update the Certificate Transparency alerting subscription for a zone. Enables or disables email notifications when certificates are issued for the zone's domains. The `enabled` field is required on every request and controls whether the subscription is active. The `emails` field is optional and, when provided, replaces the stored recipient list for the zone. When `emails` is omitted, the stored recipient list is preserved and only the enabled state is toggled. A maximum of 100 email addresses may be configured per zone. Requests that omit `enabled` are rejected with error code 1008. Subscribe and unsubscribe notification emails are only sent for recipients whose effective subscription state changes. Idempotent requests (no state change) send no notification email.").option(`emails`,{type:`string`,array:!0,description:`Email addresses that receive CT alert notifications for the zone. A maximum of 100 addresses may be configured. Each address must be a valid RFC 5322 email address and must not contain a comma.
5
- `}).option(`enabled`,{type:`boolean`,description:`Whether CT alerting is enabled for the zone.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for updating CT alerting subscription settings.`})}const d={command:`update`,describe:`Update CT Alerting Subscription`,builder:u,handler:async c=>a({command:`ct-alerting update`,classification:{safeFlags:[`enabled`,`dry-run`]}},c,async()=>{if(c.dryRun){r({command:`cf ct-alerting update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${c.zone??c.zoneId??`<zone>`}/ct/alerting`,pathParams:{"zone-id":String(c.zone??c[`zone-id`]??``)},bodyKind:`json`,body:c.body===void 0?s({emails:c.emails,enabled:c.enabled}):o(c.body)});return}let a=await t(c),l=await e({zone:c.zone},a,{quiet:c.quiet});if(c.zoneId=l,c.body){let e=o(c.body);n(await i(`Updating`,async()=>a.ctAlerting.update({...e,zone_id:l})),{successLabel:`Updated`});return}if(c.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);let u=s({emails:c.emails,enabled:c.enabled});n(await i(`Updating`,async()=>a.ctAlerting.update({...u,zone_id:l})),{successLabel:`Updated`})})},f={command:`ct-alerting`,describe:`ct-alerting`,builder:e=>e.command(l).command(d).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{f as default};
4
+ Retrieve the Certificate Transparency alerting subscription settings for a zone. Returns whether CT monitoring is enabled and the list of email addresses that receive alerts, if any have been configured.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`get`,describe:`Get CT Alerting Subscription`,builder:c,handler:async o=>a({command:`ct-alerting get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf ct-alerting get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/ct/alerting`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.ctAlerting.get({zone_id:s})),{successLabel:`Loaded`})})};function u(e){return e.usage("$0 ct-alerting update\n\nCreate or update the Certificate Transparency alerting subscription for a zone. Enables or disables email notifications when certificates are issued for the zone's domains. The `enabled` field is required on every request and controls whether the subscription is active. The `emails` field is optional and, when provided, replaces the stored recipient list for the zone. When `emails` is omitted, the stored recipient list is preserved and only the enabled state is toggled. A maximum of 100 email addresses may be configured per zone. Requests that omit `enabled` are rejected with error code 1008. Subscribe and unsubscribe notification emails are only sent for recipients whose effective subscription state changes. Idempotent requests (no state change) send no notification email.").option(`emails`,{type:`string`,array:!0,description:`Email addresses that receive CT alert notifications for the zone. A maximum of 100 addresses may be configured. Each address must be a valid RFC 5322 email address and must not contain a comma.
5
+ `}).option(`enabled`,{type:`boolean`,description:`Whether CT alerting is enabled for the zone.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for updating CT alerting subscription settings.`})}const d={command:`update`,describe:`Update CT Alerting Subscription`,builder:u,handler:async c=>a({command:`ct-alerting update`,classification:{safeFlags:[`enabled`,`dry-run`]}},c,async()=>{if(c.dryRun){r({command:`cf ct-alerting update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${c.zone??c.zoneId??`<zone>`}/ct/alerting`,pathParams:{"zone-id":String(c.zone??c[`zone-id`]??``)},bodyKind:`json`,body:c.body===void 0?s({emails:c.emails,enabled:c.enabled}):o(c.body)});return}let a=await e(c),l=await t({zone:c.zone},a,{quiet:c.quiet});if(c.zoneId=l,c.body){let e=o(c.body);n(await i(`Updating`,async()=>a.ctAlerting.update({...e,zone_id:l})),{successLabel:`Updated`});return}if(c.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);let u=s({emails:c.emails,enabled:c.enabled});n(await i(`Updating`,async()=>a.ctAlerting.update({...u,zone_id:l})),{successLabel:`Updated`})})},f={command:`ct-alerting`,describe:`ct-alerting`,builder:e=>e.command(l).command(d).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{f as default};
@@ -1,17 +1,17 @@
1
1
  #!/usr/bin/env node
2
- import{_ as e}from"./oauth-Dzk6Gy-6.mjs";import{r as t}from"./auth-DJhSjNNL.mjs";import{t as n}from"./output-Bia1u2k5.mjs";import{t as r}from"./dry-run-CLX6Pbtq.mjs";import{t as i}from"./progress-D_mL-Kcy.mjs";import{t as a}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.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-sL_yMZbI.mjs";import{t as f}from"./cli-types-tt_LZMbn.mjs";function p(e){return e.usage(`$0 custom-certificates create
2
+ import{n as e}from"./auth-Br-t8vL_.mjs";import{i as t}from"./context-CquYYyS3.mjs";import{t as n}from"./output-ClYel9WX.mjs";import{t as r}from"./dry-run-p9Q7nMZ5.mjs";import{t as i}from"./progress-TLUEIYE6.mjs";import{t as a}from"./run-iFM5TxtQ.mjs";import"./telemetry-DoBQOGRk.mjs";import{n as o,r as s,t as c}from"./body-parser-NjzJZMOV.mjs";import{n as l}from"./input-validation-0CeePPHp.mjs";import{a as u,n as d}from"./prompt-Ck_1PCHm.mjs";import{t as f}from"./cli-types-_Kmwfpnp.mjs";function p(e){return e.usage(`$0 custom-certificates create
3
3
 
4
4
  Upload a new SSL certificate for a zone.`).option(`bundle-method`,{type:`string`,description:`A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it.`,choices:[`ubiquitous`,`optimal`,`force`],default:`ubiquitous`}).option(`certificate`,{type:`string`,description:`The zone's SSL certificate or certificate and the intermediate(s).`}).option(`custom-csr-id`,{type:`string`,description:`The identifier for the Custom CSR that was used.`}).option(`deploy`,{type:`string`,description:`The environment to deploy the certificate to, defaults to production.`,choices:[`staging`,`production`],default:`production`}).option(`geo-restrictions-label`,{type:`string`,description:`The geo_restrictions.label field`,choices:[`us`,`eu`,`highest_security`]}).option(`policy`,{type:`string`,description:`Specify the policy that determines the region where your private key will be held locally. HTTPS connections to any excluded data center will still be fully encrypted, but will incur some latency while Keyless SSL is used to complete the handshake with the nearest allowed data center. Any combination of countries, specified by their two letter country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) can be chosen, such as 'country: IN', as well as 'region: EU' which refers to the EU region. If there are too few data centers satisfying the policy, it will be rejected.
5
- Note: The API accepts this field as either "policy" or "policy_restrictions" in requests. Responses return this field as "policy_restrictions".`}).option(`private-key`,{type:`string`,description:`The zone's private key. Not required if custom_csr_id is provided, in which case the private key is retrieved from the CSR record held by Cloudflare.`}).option(`type`,{type:`string`,description:`The type 'legacy_custom' enables support for legacy clients which do not include SNI in the TLS handshake.`,choices:[`legacy_custom`,`sni_custom`],default:`legacy_custom`}).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 m={command:`create`,describe:`Create SSL Configuration`,builder:p,handler:async s=>a({command:`custom-certificates create`,classification:{safeFlags:[`bundle-method`,`deploy`,`geo-restrictions-label`,`type`,`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf custom-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/custom_certificates`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({bundle_method:l(s[`bundle-method`],`bundle-method`,`text`),certificate:l(s.certificate,`certificate`,`text`),custom_csr_id:l(s[`custom-csr-id`],`custom-csr-id`,`text`),deploy:l(s.deploy,`deploy`,`text`),geo_restrictions:{label:l(s[`geo-restrictions-label`],`geo-restrictions-label`,`text`)},policy:l(s.policy,`policy`,`text`),private_key:l(s[`private-key`],`private-key`,`text`),type:l(s.type,`type`,`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.customCertificates.create({...e,zone_id:d})),{successLabel:`Created`});return}s.certificate===void 0&&(s.certificate=await u(`certificate`,`The zone's SSL certificate or certificate and the intermediate(s).`));let f=c({bundle_method:l(s[`bundle-method`],`bundle-method`,`text`),certificate:l(s.certificate,`certificate`,`text`),custom_csr_id:l(s[`custom-csr-id`],`custom-csr-id`,`text`),deploy:l(s.deploy,`deploy`,`text`),geo_restrictions:{label:l(s[`geo-restrictions-label`],`geo-restrictions-label`,`text`)},policy:l(s.policy,`policy`,`text`),private_key:l(s[`private-key`],`private-key`,`text`),type:l(s.type,`type`,`text`)});n(await i(`Creating`,async()=>a.customCertificates.create({...f,zone_id:d})),{successLabel:`Created`})})};function h(e){return e.usage(`$0 custom-certificates delete <custom-certificate-id>
5
+ Note: The API accepts this field as either "policy" or "policy_restrictions" in requests. Responses return this field as "policy_restrictions".`}).option(`private-key`,{type:`string`,description:`The zone's private key. Not required if custom_csr_id is provided, in which case the private key is retrieved from the CSR record held by Cloudflare.`}).option(`type`,{type:`string`,description:`The type 'legacy_custom' enables support for legacy clients which do not include SNI in the TLS handshake.`,choices:[`legacy_custom`,`sni_custom`],default:`legacy_custom`}).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 m={command:`create`,describe:`Create SSL Configuration`,builder:p,handler:async s=>a({command:`custom-certificates create`,classification:{safeFlags:[`bundle-method`,`deploy`,`geo-restrictions-label`,`type`,`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf custom-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/custom_certificates`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({bundle_method:l(s[`bundle-method`],`bundle-method`,`text`),certificate:l(s.certificate,`certificate`,`text`),custom_csr_id:l(s[`custom-csr-id`],`custom-csr-id`,`text`),deploy:l(s.deploy,`deploy`,`text`),geo_restrictions:{label:l(s[`geo-restrictions-label`],`geo-restrictions-label`,`text`)},policy:l(s.policy,`policy`,`text`),private_key:l(s[`private-key`],`private-key`,`text`),type:l(s.type,`type`,`text`)}):o(s.body)});return}let a=await e(s),d=await t({zone:s.zone},a,{quiet:s.quiet});if(s.zoneId=d,s.body){let e=o(s.body);n(await i(`Creating`,async()=>a.customCertificates.create({...e,zone_id:d})),{successLabel:`Created`});return}s.certificate===void 0&&(s.certificate=await u(`certificate`,`The zone's SSL certificate or certificate and the intermediate(s).`));let f=c({bundle_method:l(s[`bundle-method`],`bundle-method`,`text`),certificate:l(s.certificate,`certificate`,`text`),custom_csr_id:l(s[`custom-csr-id`],`custom-csr-id`,`text`),deploy:l(s.deploy,`deploy`,`text`),geo_restrictions:{label:l(s[`geo-restrictions-label`],`geo-restrictions-label`,`text`)},policy:l(s.policy,`policy`,`text`),private_key:l(s[`private-key`],`private-key`,`text`),type:l(s.type,`type`,`text`)});n(await i(`Creating`,async()=>a.customCertificates.create({...f,zone_id:d})),{successLabel:`Created`})})};function h(e){return e.usage(`$0 custom-certificates delete <custom-certificate-id>
6
6
 
7
- Remove a SSL certificate from a zone.`).positional(`custom-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 g={command:`delete <custom-certificate-id>`,describe:`Delete SSL Configuration`,builder:h,handler:async o=>a({command:`custom-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf custom-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/custom_certificates/${o[`custom-certificate-id`]==null?`<custom-certificate-id>`:encodeURIComponent(String(o[`custom-certificate-id`]))}`,pathParams:{"custom-certificate-id":String(o[`custom-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.
7
+ Remove a SSL certificate from a zone.`).positional(`custom-certificate-id`,{type:`string`,description:`Custom 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 g={command:`delete <custom-certificate-id>`,describe:`Delete SSL Configuration`,builder:h,handler:async o=>a({command:`custom-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf custom-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/custom_certificates/${o[`custom-certificate-id`]==null?`<custom-certificate-id>`:encodeURIComponent(String(o[`custom-certificate-id`]))}`,pathParams:{"custom-certificate-id":String(o[`custom-certificate-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});if(o.zoneId=s,!await d({force:!!o.force})){process.stderr.write(`Aborted.
8
8
  `);return}n(await i(`Deleting`,async()=>a.customCertificates.delete({zone_id:s,custom_certificate_id:o[`custom-certificate-id`]})),{successLabel:`Deleted`})})};function _(e){return e.usage(`$0 custom-certificates edit <custom-certificate-id>
9
9
 
10
- Upload a new private key and/or PEM/CRT for the SSL certificate. Note: PATCHing a configuration for sni_custom certificates will result in a new resource id being returned, and the previous one being deleted.`).positional(`custom-certificate-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`bundle-method`,{type:`string`,description:`A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it.`,choices:[`ubiquitous`,`optimal`,`force`]}).option(`certificate`,{type:`string`,description:`The zone's SSL certificate or certificate and the intermediate(s).`}).option(`custom-csr-id`,{type:`string`,description:`The identifier for the Custom CSR that was used.`}).option(`deploy`,{type:`string`,description:`The environment to deploy the certificate to, defaults to production.`,choices:[`staging`,`production`]}).option(`geo-restrictions-label`,{type:`string`,description:`The geo_restrictions.label field`,choices:[`us`,`eu`,`highest_security`]}).option(`policy`,{type:`string`,description:`Specify the policy that determines the region where your private key will be held locally. HTTPS connections to any excluded data center will still be fully encrypted, but will incur some latency while Keyless SSL is used to complete the handshake with the nearest allowed data center. Any combination of countries, specified by their two letter country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) can be chosen, such as 'country: IN', as well as 'region: EU' which refers to the EU region. If there are too few data centers satisfying the policy, it will be rejected.
11
- Note: The API accepts this field as either "policy" or "policy_restrictions" in requests. Responses return this field as "policy_restrictions".`}).option(`private-key`,{type:`string`,description:`The zone's private key. Not required if custom_csr_id is provided, in which case the private key is retrieved from the CSR record held by Cloudflare.`}).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 v={command:`edit <custom-certificate-id>`,describe:`Edit SSL Configuration`,builder:_,handler:async s=>a({command:`custom-certificates edit`,classification:{safeFlags:[`bundle-method`,`deploy`,`geo-restrictions-label`,`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf custom-certificates edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/custom_certificates/${s[`custom-certificate-id`]==null?`<custom-certificate-id>`:encodeURIComponent(String(s[`custom-certificate-id`]))}`,pathParams:{"custom-certificate-id":String(s[`custom-certificate-id`]??``),"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({bundle_method:l(s[`bundle-method`],`bundle-method`,`text`),certificate:l(s.certificate,`certificate`,`text`),custom_csr_id:l(s[`custom-csr-id`],`custom-csr-id`,`text`),deploy:l(s.deploy,`deploy`,`text`),geo_restrictions:{label:l(s[`geo-restrictions-label`],`geo-restrictions-label`,`text`)},policy:l(s.policy,`policy`,`text`),private_key:l(s[`private-key`],`private-key`,`text`)}):o(s.body)});return}let a=await t(s),u=await e({zone:s.zone},a,{quiet:s.quiet});if(s.zoneId=u,s.body){let e=o(s.body);n(await i(`Updating`,async()=>a.customCertificates.edit({...e,zone_id:u,custom_certificate_id:s[`custom-certificate-id`]})),{successLabel:`Updated`});return}let d=c({bundle_method:l(s[`bundle-method`],`bundle-method`,`text`),certificate:l(s.certificate,`certificate`,`text`),custom_csr_id:l(s[`custom-csr-id`],`custom-csr-id`,`text`),deploy:l(s.deploy,`deploy`,`text`),geo_restrictions:{label:l(s[`geo-restrictions-label`],`geo-restrictions-label`,`text`)},policy:l(s.policy,`policy`,`text`),private_key:l(s[`private-key`],`private-key`,`text`)});n(await i(`Updating`,async()=>a.customCertificates.edit({...d,zone_id:u,custom_certificate_id:s[`custom-certificate-id`]})),{successLabel:`Updated`})})};function y(e){return e.usage(`$0 custom-certificates get <custom-certificate-id>
10
+ Upload a new private key and/or PEM/CRT for the SSL certificate. Note: PATCHing a configuration for sni_custom certificates will result in a new resource id being returned, and the previous one being deleted.`).positional(`custom-certificate-id`,{type:`string`,description:`Custom certificate identifier tag.`,demandOption:!0}).option(`bundle-method`,{type:`string`,description:`A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it.`,choices:[`ubiquitous`,`optimal`,`force`]}).option(`certificate`,{type:`string`,description:`The zone's SSL certificate or certificate and the intermediate(s).`}).option(`custom-csr-id`,{type:`string`,description:`The identifier for the Custom CSR that was used.`}).option(`deploy`,{type:`string`,description:`The environment to deploy the certificate to, defaults to production.`,choices:[`staging`,`production`]}).option(`geo-restrictions-label`,{type:`string`,description:`The geo_restrictions.label field`,choices:[`us`,`eu`,`highest_security`]}).option(`policy`,{type:`string`,description:`Specify the policy that determines the region where your private key will be held locally. HTTPS connections to any excluded data center will still be fully encrypted, but will incur some latency while Keyless SSL is used to complete the handshake with the nearest allowed data center. Any combination of countries, specified by their two letter country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) can be chosen, such as 'country: IN', as well as 'region: EU' which refers to the EU region. If there are too few data centers satisfying the policy, it will be rejected.
11
+ Note: The API accepts this field as either "policy" or "policy_restrictions" in requests. Responses return this field as "policy_restrictions".`}).option(`private-key`,{type:`string`,description:`The zone's private key. Not required if custom_csr_id is provided, in which case the private key is retrieved from the CSR record held by Cloudflare.`}).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 v={command:`edit <custom-certificate-id>`,describe:`Edit SSL Configuration`,builder:_,handler:async s=>a({command:`custom-certificates edit`,classification:{safeFlags:[`bundle-method`,`deploy`,`geo-restrictions-label`,`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf custom-certificates edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/custom_certificates/${s[`custom-certificate-id`]==null?`<custom-certificate-id>`:encodeURIComponent(String(s[`custom-certificate-id`]))}`,pathParams:{"custom-certificate-id":String(s[`custom-certificate-id`]??``),"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({bundle_method:l(s[`bundle-method`],`bundle-method`,`text`),certificate:l(s.certificate,`certificate`,`text`),custom_csr_id:l(s[`custom-csr-id`],`custom-csr-id`,`text`),deploy:l(s.deploy,`deploy`,`text`),geo_restrictions:{label:l(s[`geo-restrictions-label`],`geo-restrictions-label`,`text`)},policy:l(s.policy,`policy`,`text`),private_key:l(s[`private-key`],`private-key`,`text`)}):o(s.body)});return}let a=await e(s),u=await t({zone:s.zone},a,{quiet:s.quiet});if(s.zoneId=u,s.body){let e=o(s.body);n(await i(`Updating`,async()=>a.customCertificates.edit({...e,zone_id:u,custom_certificate_id:s[`custom-certificate-id`]})),{successLabel:`Updated`});return}let d=c({bundle_method:l(s[`bundle-method`],`bundle-method`,`text`),certificate:l(s.certificate,`certificate`,`text`),custom_csr_id:l(s[`custom-csr-id`],`custom-csr-id`,`text`),deploy:l(s.deploy,`deploy`,`text`),geo_restrictions:{label:l(s[`geo-restrictions-label`],`geo-restrictions-label`,`text`)},policy:l(s.policy,`policy`,`text`),private_key:l(s[`private-key`],`private-key`,`text`)});n(await i(`Updating`,async()=>a.customCertificates.edit({...d,zone_id:u,custom_certificate_id:s[`custom-certificate-id`]})),{successLabel:`Updated`})})};function y(e){return e.usage(`$0 custom-certificates get <custom-certificate-id>
12
12
 
13
- Retrieves details for a specific custom SSL certificate, including certificate metadata, bundle method, geographic restrictions, and associated keyless server configuration.`).positional(`custom-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 <custom-certificate-id>`,describe:`SSL Configuration Details`,builder:y,handler:async o=>a({command:`custom-certificates get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf custom-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/custom_certificates/${o[`custom-certificate-id`]==null?`<custom-certificate-id>`:encodeURIComponent(String(o[`custom-certificate-id`]))}`,pathParams:{"custom-certificate-id":String(o[`custom-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.customCertificates.get({zone_id:s,custom_certificate_id:o[`custom-certificate-id`]})),{successLabel:`Loaded`})})};function x(e){return e.usage(`$0 custom-certificates list
13
+ Retrieves details for a specific custom SSL certificate, including certificate metadata, bundle method, geographic restrictions, and associated keyless server configuration.`).positional(`custom-certificate-id`,{type:`string`,description:`Custom 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 <custom-certificate-id>`,describe:`SSL Configuration Details`,builder:y,handler:async o=>a({command:`custom-certificates get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf custom-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/custom_certificates/${o[`custom-certificate-id`]==null?`<custom-certificate-id>`:encodeURIComponent(String(o[`custom-certificate-id`]))}`,pathParams:{"custom-certificate-id":String(o[`custom-certificate-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.customCertificates.get({zone_id:s,custom_certificate_id:o[`custom-certificate-id`]})),{successLabel:`Loaded`})})};function x(e){return e.usage(`$0 custom-certificates list
14
14
 
15
- List, search, and filter all of your custom SSL certificates. The higher priority will break ties across overlapping 'legacy_custom' certificates, but 'legacy_custom' certificates will always supercede 'sni_custom' certificates.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of zones per page.`}).option(`match`,{type:`string`,description:`Whether to match all search requirements or at least one (any).`,choices:[`any`,`all`]}).option(`status`,{type:`string`,description:`Status of the zone's custom SSL.`,choices:[`active`,`expired`,`deleted`,`pending`,`initializing`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`list`,describe:`List SSL Configurations`,builder:f(x),handler:async o=>a({command:`custom-certificates list`,classification:{safeFlags:[`match`,`status`,`dry-run`]}},o,async()=>{let a={page:o.page,per_page:o[`per-page`],match:o.match,status:o.status};if(o.dryRun){r({command:`cf custom-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/custom_certificates`,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.customCertificates.list({zone_id:c,...a})),{successLabel:`Loaded`})})};function C(e){return e.usage(`$0 custom-certificates prioritize update
15
+ List, search, and filter all of your custom SSL certificates. The higher priority will break ties across overlapping 'legacy_custom' certificates, but 'legacy_custom' certificates will always supercede 'sni_custom' certificates.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of zones per page.`}).option(`match`,{type:`string`,description:`Whether to match all search requirements or at least one (any).`,choices:[`any`,`all`]}).option(`status`,{type:`string`,description:`Status of the zone's custom SSL.`,choices:[`active`,`expired`,`deleted`,`pending`,`initializing`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`list`,describe:`List SSL Configurations`,builder:f(x),handler:async o=>a({command:`custom-certificates list`,classification:{safeFlags:[`match`,`status`,`dry-run`]}},o,async()=>{let a={page:o.page,per_page:o[`per-page`],match:o.match,status:o.status};if(o.dryRun){r({command:`cf custom-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/custom_certificates`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},query:a,bodyKind:`none`});return}let s=await e(o),c=await t({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c,n(await i(`Loading`,async()=>s.customCertificates.list({zone_id:c,...a})),{successLabel:`Loaded`})})};function C(e){return e.usage(`$0 custom-certificates prioritize update
16
16
 
17
- If a zone has multiple SSL certificates, you can set the order in which they should be used during a request. The higher priority will break ties across overlapping 'legacy_custom' certificates.`).option(`certificates`,{type:`string`,description:`Array of ordered certificates. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const w={command:`update`,describe:`Re-prioritize SSL Certificates`,builder:C,handler:async l=>a({command:`custom-certificates prioritize update`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){r({command:`cf custom-certificates prioritize update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${l.zone??l.zoneId??`<zone>`}/custom_certificates/prioritize`,pathParams:{"zone-id":String(l.zone??l[`zone-id`]??``)},bodyKind:`json`,body:l.body===void 0?c({certificates:s(l.certificates,`certificates`)}):o(l.body)});return}let a=await t(l),u=await e({zone:l.zone},a,{quiet:l.quiet});if(l.zoneId=u,l.body){let e=o(l.body);n(await i(`Updating`,async()=>a.customCertificates.prioritize.update({...e,zone_id:u})),{successLabel:`Updated`});return}if(l.certificates===void 0)throw Error(`--certificates is required (or pass --body with this field set).`);let d=c({certificates:s(l.certificates,`certificates`)});n(await i(`Updating`,async()=>a.customCertificates.prioritize.update({...d,zone_id:u})),{successLabel:`Updated`})})},T={command:`prioritize`,describe:`Operations for prioritize`,builder:e=>e.command(w).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},E={command:`custom-certificates`,describe:`custom-certificates`,builder:e=>e.command(m).command(g).command(v).command(b).command(S).command(T).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{E as default};
17
+ If a zone has multiple SSL certificates, you can set the order in which they should be used during a request. The higher priority will break ties across overlapping 'legacy_custom' certificates.`).option(`certificates`,{type:`string`,description:`Array of ordered certificates. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const w={command:`update`,describe:`Re-prioritize SSL Certificates`,builder:C,handler:async l=>a({command:`custom-certificates prioritize update`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){r({command:`cf custom-certificates prioritize update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${l.zone??l.zoneId??`<zone>`}/custom_certificates/prioritize`,pathParams:{"zone-id":String(l.zone??l[`zone-id`]??``)},bodyKind:`json`,body:l.body===void 0?c({certificates:s(l.certificates,`certificates`)}):o(l.body)});return}let a=await e(l),u=await t({zone:l.zone},a,{quiet:l.quiet});if(l.zoneId=u,l.body){let e=o(l.body);n(await i(`Updating`,async()=>a.customCertificates.prioritize.update({...e,zone_id:u})),{successLabel:`Updated`});return}if(l.certificates===void 0)throw Error(`--certificates is required (or pass --body with this field set).`);let d=c({certificates:s(l.certificates,`certificates`)});n(await i(`Updating`,async()=>a.customCertificates.prioritize.update({...d,zone_id:u})),{successLabel:`Updated`})})},T={command:`prioritize`,describe:`Operations for prioritize`,builder:e=>e.command(w).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},E={command:`custom-certificates`,describe:`custom-certificates`,builder:e=>e.command(m).command(g).command(v).command(b).command(S).command(T).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{E as default};
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-B6b2OIBW.mjs";import{_ as t,m as n,v as r}from"./oauth-Dzk6Gy-6.mjs";import{r as i}from"./auth-DJhSjNNL.mjs";import{t as a}from"./output-Bia1u2k5.mjs";import{t as o}from"./dry-run-CLX6Pbtq.mjs";import{t as s}from"./progress-D_mL-Kcy.mjs";import{t as c}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as l,t as u}from"./body-parser-CUWbw_Tq.mjs";import{n as d}from"./input-validation-Ch4Vllrm.mjs";import{a as f,n as p}from"./prompt-sL_yMZbI.mjs";import{t as m}from"./cli-types-tt_LZMbn.mjs";function h(e){return e.usage(`$0 custom-csrs create
2
+ import{t as e}from"./local-rYpzEQb-.mjs";import{n as t}from"./auth-Br-t8vL_.mjs";import{a as n,i as r,t as i}from"./context-CquYYyS3.mjs";import{t as a}from"./output-ClYel9WX.mjs";import{t as o}from"./dry-run-p9Q7nMZ5.mjs";import{t as s}from"./progress-TLUEIYE6.mjs";import{t as c}from"./run-iFM5TxtQ.mjs";import"./telemetry-DoBQOGRk.mjs";import{n as l,t as u}from"./body-parser-NjzJZMOV.mjs";import{n as d}from"./input-validation-0CeePPHp.mjs";import{a as f,n as p}from"./prompt-Ck_1PCHm.mjs";import{t as m}from"./cli-types-_Kmwfpnp.mjs";function h(e){return e.usage(`$0 custom-csrs create
3
3
 
4
- Generate a new custom Certificate Signing Request (CSR) for an account or zone. Cloudflare generates and securely stores the private key associated with the CSR.`).option(`common-name`,{type:`string`,description:`The common name (domain) for the CSR. Must be at most 64 characters.`}).option(`country`,{type:`string`,description:`Two-letter ISO 3166-1 alpha-2 country code.`}).option(`description`,{type:`string`,description:`Optional description for the CSR.`}).option(`key-type`,{type:`string`,description:`Key algorithm to use for the CSR. Defaults to rsa2048 if not specified.`,choices:[`rsa2048`,`p256v1`],default:`rsa2048`}).option(`locality`,{type:`string`,description:`City or locality name.`}).option(`name`,{type:`string`,description:`Human-readable name for the CSR.`}).option(`organization`,{type:`string`,description:`Organization name.`}).option(`organizational-unit`,{type:`string`,description:`Organizational unit name.`}).option(`sans`,{type:`string`,array:!0,description:`Subject Alternative Names for the CSR. At least one SAN is required.`}).option(`state`,{type:`string`,description:`State or province name.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for creating a custom CSR.`})}const g={command:`create`,describe:`Create Custom CSR`,builder:h,handler:async p=>c({command:`custom-csrs create`,classification:{safeFlags:[`key-type`,`dry-run`]}},p,async()=>{if(p.dryRun){let e=p.zone===void 0?await r():void 0,t=p.zone===void 0?`accounts`:`zones`,n=p.zone??e??`<account-id>`;o({command:`cf custom-csrs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/custom_csrs`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(n)},bodyKind:`json`,body:p.body===void 0?u({common_name:d(p[`common-name`],`common-name`,`text`),country:d(p.country,`country`,`text`),description:d(p.description,`description`,`text`),key_type:d(p[`key-type`],`key-type`,`text`),locality:d(p.locality,`locality`,`text`),name:d(p.name,`name`,`text`),organization:d(p.organization,`organization`,`text`),organizational_unit:d(p[`organizational-unit`],`organizational-unit`,`text`),sans:p.sans,state:d(p.state,`state`,`text`)}):l(p.body)});return}let c=await i(p),m=p.zone===void 0?`accounts`:`zones`,h=m===`zones`?await t({zone:p.zone},c,{quiet:p.quiet}):p.local?e:await n();if(m===`zones`?p.zoneId=h:p.accountId=h,p.body){let e=l(p.body);a(await s(`Creating`,async()=>c.customCsrs.create({...e,account_or_zone:m,account_or_zone_id:h})),{successLabel:`Created`});return}if(p[`common-name`]===void 0&&(p[`common-name`]=await f(`common-name`,`The common name (domain) for the CSR. Must be at most 64 characters.`)),p.country===void 0&&(p.country=await f(`country`,`Two-letter ISO 3166-1 alpha-2 country code.`)),p.locality===void 0&&(p.locality=await f(`locality`,`City or locality name.`)),p.organization===void 0&&(p.organization=await f(`organization`,`Organization name.`)),p.sans===void 0)throw Error(`--sans is required (or pass --body with this field set).`);p.state===void 0&&(p.state=await f(`state`,`State or province name.`));let g=u({common_name:d(p[`common-name`],`common-name`,`text`),country:d(p.country,`country`,`text`),description:d(p.description,`description`,`text`),key_type:d(p[`key-type`],`key-type`,`text`),locality:d(p.locality,`locality`,`text`),name:d(p.name,`name`,`text`),organization:d(p.organization,`organization`,`text`),organizational_unit:d(p[`organizational-unit`],`organizational-unit`,`text`),sans:p.sans,state:d(p.state,`state`,`text`)});a(await s(`Creating`,async()=>c.customCsrs.create({...g,account_or_zone:m,account_or_zone_id:h})),{successLabel:`Created`})})};function _(e){return e.usage(`$0 custom-csrs delete <custom-csr-id>
4
+ Generate a new custom Certificate Signing Request (CSR) for an account or zone. Cloudflare generates and securely stores the private key associated with the CSR.`).option(`common-name`,{type:`string`,description:`The common name (domain) for the CSR. Must be at most 64 characters.`}).option(`country`,{type:`string`,description:`Two-letter ISO 3166-1 alpha-2 country code.`}).option(`description`,{type:`string`,description:`Optional description for the CSR.`}).option(`key-type`,{type:`string`,description:`Key algorithm to use for the CSR. Defaults to rsa2048 if not specified.`,choices:[`rsa2048`,`p256v1`],default:`rsa2048`}).option(`locality`,{type:`string`,description:`City or locality name.`}).option(`name`,{type:`string`,description:`Human-readable name for the CSR.`}).option(`organization`,{type:`string`,description:`Organization name.`}).option(`organizational-unit`,{type:`string`,description:`Organizational unit name.`}).option(`sans`,{type:`string`,array:!0,description:`Subject Alternative Names for the CSR. At least one SAN is required.`}).option(`state`,{type:`string`,description:`State or province name.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for creating a custom CSR.`})}const g={command:`create`,describe:`Create Custom CSR`,builder:h,handler:async p=>c({command:`custom-csrs create`,classification:{safeFlags:[`key-type`,`dry-run`]}},p,async()=>{if(p.dryRun){let e=p.zone===void 0?await n():void 0,t=p.zone===void 0?`accounts`:`zones`,r=p.zone??e??`<account-id>`;o({command:`cf custom-csrs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${t}/${r}/custom_csrs`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(r)},bodyKind:`json`,body:p.body===void 0?u({common_name:d(p[`common-name`],`common-name`,`text`),country:d(p.country,`country`,`text`),description:d(p.description,`description`,`text`),key_type:d(p[`key-type`],`key-type`,`text`),locality:d(p.locality,`locality`,`text`),name:d(p.name,`name`,`text`),organization:d(p.organization,`organization`,`text`),organizational_unit:d(p[`organizational-unit`],`organizational-unit`,`text`),sans:p.sans,state:d(p.state,`state`,`text`)}):l(p.body)});return}let c=await t(p),m=p.zone===void 0?`accounts`:`zones`,h=m===`zones`?await r({zone:p.zone},c,{quiet:p.quiet}):p.local?e:await i();if(m===`zones`?p.zoneId=h:p.accountId=h,p.body){let e=l(p.body);a(await s(`Creating`,async()=>c.customCsrs.create({...e,account_or_zone:m,account_or_zone_id:h})),{successLabel:`Created`});return}if(p[`common-name`]===void 0&&(p[`common-name`]=await f(`common-name`,`The common name (domain) for the CSR. Must be at most 64 characters.`)),p.country===void 0&&(p.country=await f(`country`,`Two-letter ISO 3166-1 alpha-2 country code.`)),p.locality===void 0&&(p.locality=await f(`locality`,`City or locality name.`)),p.organization===void 0&&(p.organization=await f(`organization`,`Organization name.`)),p.sans===void 0)throw Error(`--sans is required (or pass --body with this field set).`);p.state===void 0&&(p.state=await f(`state`,`State or province name.`));let g=u({common_name:d(p[`common-name`],`common-name`,`text`),country:d(p.country,`country`,`text`),description:d(p.description,`description`,`text`),key_type:d(p[`key-type`],`key-type`,`text`),locality:d(p.locality,`locality`,`text`),name:d(p.name,`name`,`text`),organization:d(p.organization,`organization`,`text`),organizational_unit:d(p[`organizational-unit`],`organizational-unit`,`text`),sans:p.sans,state:d(p.state,`state`,`text`)});a(await s(`Creating`,async()=>c.customCsrs.create({...g,account_or_zone:m,account_or_zone_id:h})),{successLabel:`Created`})})};function _(e){return e.usage(`$0 custom-csrs delete <custom-csr-id>
5
5
 
6
- Delete a custom Certificate Signing Request (CSR) and its associated private key.`).positional(`custom-csr-id`,{type:`string`,description:`Custom CSR 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 v={command:`delete <custom-csr-id>`,describe:`Delete Custom CSR`,builder:_,handler:async l=>c({command:`custom-csrs delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},l,async()=>{if(l.dryRun){let e=l.zone===void 0?await r():void 0,t=l.zone===void 0?`accounts`:`zones`,n=l.zone??e??`<account-id>`;o({command:`cf custom-csrs delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/custom_csrs/${l[`custom-csr-id`]==null?`<custom-csr-id>`:encodeURIComponent(String(l[`custom-csr-id`]))}`,pathParams:{"account-or-zone":String(t),"custom-csr-id":String(l[`custom-csr-id`]??``),"account-or-zone-id":String(n)},bodyKind:`none`});return}let c=await i(l),u=l.zone===void 0?`accounts`:`zones`,d=u===`zones`?await t({zone:l.zone},c,{quiet:l.quiet}):l.local?e:await n();if(u===`zones`?l.zoneId=d:l.accountId=d,!await p({force:!!l.force})){process.stderr.write(`Aborted.
6
+ Delete a custom Certificate Signing Request (CSR) and its associated private key.`).positional(`custom-csr-id`,{type:`string`,description:`Custom CSR 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 v={command:`delete <custom-csr-id>`,describe:`Delete Custom CSR`,builder:_,handler:async l=>c({command:`custom-csrs delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},l,async()=>{if(l.dryRun){let e=l.zone===void 0?await n():void 0,t=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf custom-csrs delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${t}/${r}/custom_csrs/${l[`custom-csr-id`]==null?`<custom-csr-id>`:encodeURIComponent(String(l[`custom-csr-id`]))}`,pathParams:{"account-or-zone":String(t),"custom-csr-id":String(l[`custom-csr-id`]??``),"account-or-zone-id":String(r)},bodyKind:`none`});return}let c=await t(l),u=l.zone===void 0?`accounts`:`zones`,d=u===`zones`?await r({zone:l.zone},c,{quiet:l.quiet}):l.local?e:await i();if(u===`zones`?l.zoneId=d:l.accountId=d,!await p({force:!!l.force})){process.stderr.write(`Aborted.
7
7
  `);return}a(await s(`Deleting`,async()=>c.customCsrs.delete({account_or_zone:u,account_or_zone_id:d,custom_csr_id:l[`custom-csr-id`]})),{successLabel:`Deleted`})})};function y(e){return e.usage(`$0 custom-csrs get <custom-csr-id>
8
8
 
9
- Retrieve details for a specific custom Certificate Signing Request (CSR).`).positional(`custom-csr-id`,{type:`string`,description:`Custom CSR identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const b={command:`get <custom-csr-id>`,describe:`Custom CSR Details`,builder:y,handler:async l=>c({command:`custom-csrs get`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){let e=l.zone===void 0?await r():void 0,t=l.zone===void 0?`accounts`:`zones`,n=l.zone??e??`<account-id>`;o({command:`cf custom-csrs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/custom_csrs/${l[`custom-csr-id`]==null?`<custom-csr-id>`:encodeURIComponent(String(l[`custom-csr-id`]))}`,pathParams:{"account-or-zone":String(t),"custom-csr-id":String(l[`custom-csr-id`]??``),"account-or-zone-id":String(n)},bodyKind:`none`});return}let c=await i(l),u=l.zone===void 0?`accounts`:`zones`,d=u===`zones`?await t({zone:l.zone},c,{quiet:l.quiet}):l.local?e:await n();u===`zones`?l.zoneId=d:l.accountId=d,a(await s(`Loading`,async()=>c.customCsrs.get({account_or_zone:u,account_or_zone_id:d,custom_csr_id:l[`custom-csr-id`]})),{successLabel:`Loaded`})})};function x(e){return e.usage(`$0 custom-csrs list
9
+ Retrieve details for a specific custom Certificate Signing Request (CSR).`).positional(`custom-csr-id`,{type:`string`,description:`Custom CSR identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const b={command:`get <custom-csr-id>`,describe:`Custom CSR Details`,builder:y,handler:async l=>c({command:`custom-csrs get`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){let e=l.zone===void 0?await n():void 0,t=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf custom-csrs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${t}/${r}/custom_csrs/${l[`custom-csr-id`]==null?`<custom-csr-id>`:encodeURIComponent(String(l[`custom-csr-id`]))}`,pathParams:{"account-or-zone":String(t),"custom-csr-id":String(l[`custom-csr-id`]??``),"account-or-zone-id":String(r)},bodyKind:`none`});return}let c=await t(l),u=l.zone===void 0?`accounts`:`zones`,d=u===`zones`?await r({zone:l.zone},c,{quiet:l.quiet}):l.local?e:await i();u===`zones`?l.zoneId=d:l.accountId=d,a(await s(`Loading`,async()=>c.customCsrs.get({account_or_zone:u,account_or_zone_id:d,custom_csr_id:l[`custom-csr-id`]})),{successLabel:`Loaded`})})};function x(e){return e.usage(`$0 custom-csrs list
10
10
 
11
- List all custom Certificate Signing Requests (CSRs) for an account or zone.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of custom CSRs per page.`}).option(`order`,{type:`string`,description:`The field to sort the returned custom CSRs by.`,choices:[`name`,`account_tag`,`created_at`]}).option(`direction`,{type:`string`,description:`The direction to sort by.`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`list`,describe:`List Custom CSRs`,builder:m(x),handler:async l=>c({command:`custom-csrs list`,classification:{safeFlags:[`order`,`direction`,`dry-run`]}},l,async()=>{let c={page:l.page,per_page:l[`per-page`],order:l.order,direction:l.direction};if(l.dryRun){let e=l.zone===void 0?await r():void 0,t=l.zone===void 0?`accounts`:`zones`,n=l.zone??e??`<account-id>`;o({command:`cf custom-csrs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/custom_csrs`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(n)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await t({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await n();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.customCsrs.list({account_or_zone:d,account_or_zone_id:f,...c})),{successLabel:`Loaded`})})},C={command:`custom-csrs`,describe:`custom-csrs`,builder:e=>e.command(g).command(v).command(b).command(S).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{C as default};
11
+ List all custom Certificate Signing Requests (CSRs) for an account or zone.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of custom CSRs per page.`}).option(`order`,{type:`string`,description:`The field to sort the returned custom CSRs by.`,choices:[`name`,`account_tag`,`created_at`]}).option(`direction`,{type:`string`,description:`The direction to sort by.`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`list`,describe:`List Custom CSRs`,builder:m(x),handler:async l=>c({command:`custom-csrs list`,classification:{safeFlags:[`order`,`direction`,`dry-run`]}},l,async()=>{let c={page:l.page,per_page:l[`per-page`],order:l.order,direction:l.direction};if(l.dryRun){let e=l.zone===void 0?await n():void 0,t=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf custom-csrs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${t}/${r}/custom_csrs`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(r)},query:c,bodyKind:`none`});return}let u=await t(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await r({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await i();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.customCsrs.list({account_or_zone:d,account_or_zone_id:f,...c})),{successLabel:`Loaded`})})},C={command:`custom-csrs`,describe:`custom-csrs`,builder:e=>e.command(g).command(v).command(b).command(S).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{C as default};