cf 0.12.0 → 0.13.0

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 (416) hide show
  1. package/dist/_meta/agent-context.json +55 -55
  2. package/dist/_meta/commands.json +24282 -24542
  3. package/dist/_meta/hand-written-commands.json +53 -12
  4. package/dist/_meta/schemas.json +27680 -28212
  5. package/dist/abuse-reports-BbaHw4ST.mjs +8 -0
  6. package/dist/access-D6Xz892p.mjs +11 -0
  7. package/dist/account-DvxcqeaK.mjs +2 -0
  8. package/dist/account-tags-CeqfEWpz.mjs +9 -0
  9. package/dist/accounts-Bx-8BMH9.mjs +30 -0
  10. package/dist/acm--0opdSGE.mjs +3 -0
  11. package/dist/addressing-BS1ynzLA.mjs +13 -0
  12. package/dist/agent-context-BPhyrSns.mjs +8 -0
  13. package/dist/agent-memory-DczzpEw5.mjs +6 -0
  14. package/dist/ai-CDdCTcQl.mjs +5 -0
  15. package/dist/ai-audit-Bx9KMQYh.mjs +2 -0
  16. package/dist/ai-gateway-BSXJEaYS.mjs +13 -0
  17. package/dist/ai-search-DRQj1aMu.mjs +7 -0
  18. package/dist/ai-security-C_Rb0lGT.mjs +4 -0
  19. package/dist/alerting-BAR9eFs2.mjs +6 -0
  20. package/dist/analytics-BaUZwNc5.mjs +4 -0
  21. package/dist/analytics_engine-DkEzlhfT.mjs +2 -0
  22. package/dist/api-security-jA0lOk6a.mjs +50 -0
  23. package/dist/argo-Cz4pDagx.mjs +2 -0
  24. package/dist/artifacts-BcLTGfAv.mjs +5 -0
  25. package/dist/audit-logs-DbIv4n6u.mjs +2 -0
  26. package/dist/auth-rW5d3jtr.mjs +5 -0
  27. package/dist/auth-tvDdC1J-.mjs +8 -0
  28. package/dist/billing-Md87QjqW.mjs +3 -0
  29. package/dist/bot-management-VHMo4hpU.mjs +5 -0
  30. package/dist/botnet-feed-BHqfo3sa.mjs +3 -0
  31. package/dist/brand-protection-HUeR6Pof.mjs +3 -0
  32. package/dist/browser-extension-199oZg3X.mjs +3 -0
  33. package/dist/browser-run-DDasyux-.mjs +4 -0
  34. package/dist/build-0QlYUfFS.mjs +2 -0
  35. package/dist/builds-B-lXn6JR.mjs +9 -0
  36. package/dist/cache-CevKpiTM.mjs +9 -0
  37. package/dist/certificate-authorities-DAg-aO1B.mjs +2 -0
  38. package/dist/{cf-yPz_IqW6.mjs → cf-C11NGkjx.mjs} +1 -1
  39. package/dist/{chunk-LQW53VED-9MACsvSG.mjs → chunk-LQW53VED-CoECHA3R.mjs} +1 -1
  40. package/dist/{chunk-QBZBEHZB-yeyhVUeD.mjs → chunk-QBZBEHZB-BuiXJn8j.mjs} +1 -1
  41. package/dist/client-certificates-Bay7oPLE.mjs +3 -0
  42. package/dist/client-side-security-CbU9xn0k.mjs +37 -0
  43. package/dist/cloud-connector-AH2ClcSL.mjs +2 -0
  44. package/dist/cloudforce-one-DwOfS75V.mjs +32 -0
  45. package/dist/{command-BV87D4tR.mjs → command-CMzMsll4.mjs} +1 -1
  46. package/dist/{completions-BnD46cXe.mjs → completions-nPO9PdSu.mjs} +1 -1
  47. package/dist/config-B8lwPpVl.mjs +2 -0
  48. package/dist/config.mjs +1 -1
  49. package/dist/connector-interrupts-DcLrqM2V.mjs +2 -0
  50. package/dist/connector-telemetry-events-PrJWgNs9.mjs +2 -0
  51. package/dist/connector-telemetry-snapshots-CIjJm5yu.mjs +2 -0
  52. package/dist/connectors-CEAy30E-.mjs +3 -0
  53. package/dist/containers-BsbDqbSn.mjs +58 -0
  54. package/dist/content-scan-BdK936iO.mjs +4 -0
  55. package/dist/cps-oP97-qkm.mjs +2 -0
  56. package/dist/csamScanner-DUNN4INg.mjs +6 -0
  57. package/dist/ct-alerting-dV_gsV2w.mjs +3 -0
  58. package/dist/custom-certificates-DYspvjo4.mjs +5 -0
  59. package/dist/custom-csrs-DjSWLQRu.mjs +3 -0
  60. package/dist/custom-hostnames-df1lH6IY.mjs +5 -0
  61. package/dist/custom-nameservers-CLTbN-9R.mjs +3 -0
  62. package/dist/custom-pages-DzKnSgL3.mjs +3 -0
  63. package/dist/d1-JBEqjJoj.mjs +20 -0
  64. package/dist/data-security-CIktWnXt.mjs +7 -0
  65. package/dist/dcv-delegation-_r6Vc6VL.mjs +2 -0
  66. package/dist/{deploy-BUSz35vq.mjs → deploy-QTGENpOM.mjs} +1 -1
  67. package/dist/{deploy-input-BvD9aRP1.mjs → deploy-input-C7W1Bsji.mjs} +1 -1
  68. package/dist/{dev-DY_DquQx.mjs → dev-CAubuxCc.mjs} +1 -1
  69. package/dist/diagnostics-B0DRh714.mjs +3 -0
  70. package/dist/{dist-DV7LR38l.mjs → dist-12KzRsBM.mjs} +36 -36
  71. package/dist/{dist-BBx1io2f.mjs → dist-BCVqQpg2.mjs} +1 -1
  72. package/dist/dist-Cp3uJN1x.mjs +48 -0
  73. package/dist/dist-DW5BPGFs.mjs +57 -0
  74. package/dist/{dist-Cb9TJ2VV.mjs → dist-S9K_8gq9.mjs} +1 -1
  75. package/dist/dls-CFzTHcZM.mjs +3 -0
  76. package/dist/dns-Dw6u-NV1.mjs +29 -0
  77. package/dist/dns-firewall-CIPptslp.mjs +57 -0
  78. package/dist/{dot-prop-6SRZBKHT-wwGHcwAa.mjs → dot-prop-6SRZBKHT-wIVDg_fl.mjs} +1 -1
  79. package/dist/dry-run-DiVy1lVo.mjs +2 -0
  80. package/dist/durable-objects-CCkeqqBq.mjs +2 -0
  81. package/dist/email-auth-kdxO51Oz.mjs +2 -0
  82. package/dist/email-routing-BLggZdQq.mjs +6 -0
  83. package/dist/email-security-DjADlgdM.mjs +18 -0
  84. package/dist/email-sending-Cz7E7GoP.mjs +7 -0
  85. package/dist/error-sanitization-DfLijlBJ.mjs +2 -0
  86. package/dist/fieldExtractors-BWaMi6lD.mjs +3 -0
  87. package/dist/firewall-5t6OBIOl.mjs +8 -0
  88. package/dist/flagship-CzG_VoNR.mjs +4 -0
  89. package/dist/fraud-UOg_69Ob.mjs +20 -0
  90. package/dist/google-tag-gateway-DirkD-Q2.mjs +2 -0
  91. package/dist/healthchecks-BkHZGTp1.mjs +4 -0
  92. package/dist/hostnames-EUYOZm21.mjs +3 -0
  93. package/dist/hyperdrive-ZoLJlJCL.mjs +21 -0
  94. package/dist/iam-BQ2xSgYN.mjs +6 -0
  95. package/dist/images-CkEq6ScP.mjs +8 -0
  96. package/dist/index.mjs +1 -1
  97. package/dist/intel-DDWEdGyl.mjs +8 -0
  98. package/dist/interactive-B2E03Fs-.mjs +11 -0
  99. package/dist/interactive-_B-EqD0Y.mjs +23 -0
  100. package/dist/ips-54Qmy-Uw.mjs +2 -0
  101. package/dist/keyless-certificates-CXHLc3Qz.mjs +3 -0
  102. package/dist/keys-rvI4TC3Z.mjs +2 -0
  103. package/dist/kv-CAeN1zBy.mjs +5 -0
  104. package/dist/leaked-credential-checks-CbbwtG-p.mjs +4 -0
  105. package/dist/lifecycle-XswDq0ZB.mjs +2 -0
  106. package/dist/load-balancers-BFwdwAIU.mjs +6 -0
  107. package/dist/{local-DGiIS1uM.mjs → local-C6XsFD_W.mjs} +1 -1
  108. package/dist/{local-runtime--IQr44qq.mjs → local-runtime-BUGCbx8r.mjs} +1 -1
  109. package/dist/logexplorer-D8rOPB5I.mjs +17 -0
  110. package/dist/logo-matches-Y3PxVn7t.mjs +2 -0
  111. package/dist/logos-BN8SvJhS.mjs +3 -0
  112. package/dist/logpush-BnLA4WVm.mjs +4 -0
  113. package/dist/logs-CDo7Y5sA.mjs +3 -0
  114. package/dist/magic-cloud-networking-wPuLwu-F.mjs +5 -0
  115. package/dist/magic-network-monitoring-BNERUpxS.mjs +4 -0
  116. package/dist/magic-transit-6tvVOECW.mjs +111 -0
  117. package/dist/managed-defense-AYwBOYIH.mjs +2 -0
  118. package/dist/managed-transforms-HZZNrkC7.mjs +3 -0
  119. package/dist/matches-Dp91L3dL.mjs +2 -0
  120. package/dist/mcp-P7pcieiT.mjs +4 -0
  121. package/dist/mesh-DjFrk6PL.mjs +4 -0
  122. package/dist/mtls-certificates-DZMoef2H.mjs +3 -0
  123. package/dist/network-7cd1U6-I.mjs +6 -0
  124. package/dist/network-interconnects-CQ7cPZjK.mjs +41 -0
  125. package/dist/oauth-DH3kMXSs.mjs +14 -0
  126. package/dist/oauth-clients-P9t-eMnx.mjs +4 -0
  127. package/dist/oauth-scopes-C3r9Qh_y.mjs +2 -0
  128. package/dist/observability-M1DnLhMR.mjs +10 -0
  129. package/dist/{open-PBXRGS4R-DIiYQyU9.mjs → open-PBXRGS4R-DARSUDEI.mjs} +1 -1
  130. package/dist/organization-cUE7GDCt.mjs +45 -0
  131. package/dist/organizations-C-Hcpd0w.mjs +2 -0
  132. package/dist/origin-ca-certificates-C8cJMyQH.mjs +3 -0
  133. package/dist/origin-post-quantum-encryption-DjZJCk8M.mjs +2 -0
  134. package/dist/origin-tls-client-auth-BsjR5EAV.mjs +4 -0
  135. package/dist/{output-BqDR9h74.mjs → output-COcSQsfn.mjs} +1 -1
  136. package/dist/page-rules-B-zq1EUb.mjs +27 -0
  137. package/dist/pages-B6YpkPos.mjs +14 -0
  138. package/dist/pay-per-crawl-B4wx0lUb.mjs +4 -0
  139. package/dist/pipelines-BJc_RylD.mjs +6 -0
  140. package/dist/precursor-CLQu7suY.mjs +4 -0
  141. package/dist/progress-V6SZV3Ux.mjs +2 -0
  142. package/dist/prompt-DjRTpML4.mjs +3 -0
  143. package/dist/queries-DSrrket-.mjs +3 -0
  144. package/dist/queues-Tf7kPBpn.mjs +7 -0
  145. package/dist/r2-DmKNnxtC.mjs +25 -0
  146. package/dist/r2-data-catalog-DBxoifOq.mjs +16 -0
  147. package/dist/radar-Csk7Ab-b.mjs +2 -0
  148. package/dist/rate-limits-cdChIg_S.mjs +2 -0
  149. package/dist/raw-fetch-BVYQR6C5.mjs +2 -0
  150. package/dist/realtime-CDehZVhV.mjs +20 -0
  151. package/dist/registrar-sandbox-BxVdfnam.mjs +56 -0
  152. package/dist/registrar-vflzeNQ9.mjs +43 -0
  153. package/dist/{registry-5-I2XLwF.mjs → registry-CWUfXloz.mjs} +1 -1
  154. package/dist/reporting-BaPZ1PHN.mjs +2 -0
  155. package/dist/request-headers-CC4eHmI2.mjs +3 -0
  156. package/dist/request-tracers-C_UVBexV.mjs +2 -0
  157. package/dist/resource-sharing-CoB4S9j1.mjs +6 -0
  158. package/dist/resource-tagging-CUiUC5g4.mjs +2 -0
  159. package/dist/rules-4O8076_s.mjs +4 -0
  160. package/dist/rulesets-C84MxTYo.mjs +5 -0
  161. package/dist/rum-Bvwkrntx.mjs +4 -0
  162. package/dist/run-CRfinkSe.mjs +2 -0
  163. package/dist/schema-C8hU6G9R.mjs +2 -0
  164. package/dist/{schema-flags-CTfQVGCs.mjs → schema-flags-DC4c6dka.mjs} +1 -1
  165. package/dist/scim-BvxQmde6.mjs +4 -0
  166. package/dist/{sdk-ZctLa5jW.mjs → sdk-C12y5qCN.mjs} +2 -2
  167. package/dist/secrets-store-DOKWiC-j.mjs +7 -0
  168. package/dist/security-center-Bhy_aC-w.mjs +2 -0
  169. package/dist/security-txt-L7HJ9tq5.mjs +3 -0
  170. package/dist/{shared-DlKGNPiT.mjs → shared-YJtB5KZB.mjs} +17 -17
  171. package/dist/smart-shield-COMXuQ1S.mjs +4 -0
  172. package/dist/snippets-DffQhlKt.mjs +4 -0
  173. package/dist/{spawn-C3_tJ3RB.mjs → spawn-C1AISA2V.mjs} +3 -3
  174. package/dist/spectrum-Cmf7SqQE.mjs +63 -0
  175. package/dist/speed-m8cdhLFS.mjs +4 -0
  176. package/dist/src-C8phrg-8.mjs +109 -0
  177. package/dist/ssl-D4ffsdSw.mjs +15 -0
  178. package/dist/{startup-profile-Dpxg-MjV.mjs → startup-profile-Dx95Y5cl.mjs} +1 -1
  179. package/dist/state-CHif8Y5I.mjs +2 -0
  180. package/dist/stream-DPF5fojV.mjs +16 -0
  181. package/dist/submit-Br8hfP0_.mjs +2 -0
  182. package/dist/tags-Bnt4JuxQ.mjs +2 -0
  183. package/dist/telemetry-Ch1vCICm.mjs +2 -0
  184. package/dist/telemetry-DjGNSlkU.mjs +5 -0
  185. package/dist/tenant-D8u0CxoC.mjs +2 -0
  186. package/dist/tenant-custom-nameservers-BrWMyslZ.mjs +3 -0
  187. package/dist/{tools-j8UGEtP1.mjs → tools-D9RZkZRc.mjs} +1 -1
  188. package/dist/tunnels-BkNPpTHa.mjs +5 -0
  189. package/dist/turnstile-MgwRECJv.mjs +23 -0
  190. package/dist/ui-DQSZeaG5.mjs +5 -0
  191. package/dist/url-info-Ddp7MgcI.mjs +2 -0
  192. package/dist/url-normalization-3ptK9ntV.mjs +3 -0
  193. package/dist/url-scanner-Psb9ollR.mjs +2 -0
  194. package/dist/user-DWdshcIu.mjs +12 -0
  195. package/dist/values-CDKQL1z2.mjs +2 -0
  196. package/dist/vectorize-CTYYUyQj.mjs +4 -0
  197. package/dist/waiting-rooms-BUdmwXDY.mjs +11 -0
  198. package/dist/web-assets-CpDwDEx8.mjs +8 -0
  199. package/dist/web3-YsjDyAzH.mjs +4 -0
  200. package/dist/workers-BKKxaZcz.mjs +6 -0
  201. package/dist/workers-builds-BWo5vUA9.mjs +2 -0
  202. package/dist/workers-for-platforms-ASJsxYdM.mjs +5 -0
  203. package/dist/workers-vpc-RkTnRvA2.mjs +3 -0
  204. package/dist/workflows-KrIFI9ns.mjs +5 -0
  205. package/dist/zaraz-DglXbVzZ.mjs +2 -0
  206. package/dist/zero-trust-RilTdSjX.mjs +91 -0
  207. package/dist/zone-DsBtVkvT.mjs +2 -0
  208. package/dist/zones-BFxvWFQW.mjs +44 -0
  209. package/package.json +1 -1
  210. package/dist/abuse-reports-D40QFl-y.mjs +0 -8
  211. package/dist/access-Dl2IU1ID.mjs +0 -11
  212. package/dist/account-CPbieCZ4.mjs +0 -2
  213. package/dist/account-tags-skfP7H8k.mjs +0 -9
  214. package/dist/accounts-CSgR6909.mjs +0 -28
  215. package/dist/acm-CVvCTaNk.mjs +0 -3
  216. package/dist/addressing-Uq5hEDDP.mjs +0 -13
  217. package/dist/agent-context-BvuDdaJb.mjs +0 -8
  218. package/dist/agent-memory-BrHMIU0E.mjs +0 -6
  219. package/dist/ai-audit-BoZuL84i.mjs +0 -2
  220. package/dist/ai-gateway-DE50Jem1.mjs +0 -13
  221. package/dist/ai-search-Fx7NHCHB.mjs +0 -7
  222. package/dist/ai-security-DyLbY9kv.mjs +0 -4
  223. package/dist/ai-v2fP1r0s.mjs +0 -5
  224. package/dist/alerting-5mFZjTcD.mjs +0 -6
  225. package/dist/analytics-BygTfozw.mjs +0 -3
  226. package/dist/analytics_engine-4L-q362P.mjs +0 -2
  227. package/dist/api-security-DjFsRYWx.mjs +0 -50
  228. package/dist/argo-TzXPN7tz.mjs +0 -2
  229. package/dist/args-CDgWUP4J.mjs +0 -2
  230. package/dist/artifacts-dEw2UUBV.mjs +0 -4
  231. package/dist/audit-logs-CqY7zzwv.mjs +0 -2
  232. package/dist/auth-CPLdkOC7.mjs +0 -5
  233. package/dist/auth-DY_Y2bXC.mjs +0 -9
  234. package/dist/billing-DHQuRT8S.mjs +0 -3
  235. package/dist/bot-management-CfqG79hF.mjs +0 -5
  236. package/dist/botnet-feed-BOeNnDoH.mjs +0 -3
  237. package/dist/brand-protection-DYttrKIM.mjs +0 -3
  238. package/dist/browser-extension-CTUCdgfn.mjs +0 -3
  239. package/dist/browser-run-373D4e1i.mjs +0 -4
  240. package/dist/build-D0ir_S70.mjs +0 -2
  241. package/dist/cache-DJXBmc3w.mjs +0 -7
  242. package/dist/calls-COO0Eoz1.mjs +0 -4
  243. package/dist/certificate-authorities-DbHLmKbd.mjs +0 -2
  244. package/dist/client-certificates-RBRqYP3f.mjs +0 -3
  245. package/dist/client-side-security-HOmA37et.mjs +0 -37
  246. package/dist/cloud-connector-C7hw1c1f.mjs +0 -2
  247. package/dist/cloudforce-one-DLOj76q4.mjs +0 -36
  248. package/dist/connector-interrupts-DY-z_LrH.mjs +0 -2
  249. package/dist/connector-telemetry-events-DCXmcAc9.mjs +0 -2
  250. package/dist/connector-telemetry-snapshots-D8GNuzx3.mjs +0 -2
  251. package/dist/connectors-fEOn-J_i.mjs +0 -3
  252. package/dist/containers-BDBsEs7-.mjs +0 -58
  253. package/dist/content-scan-Cmj9--XY.mjs +0 -4
  254. package/dist/csamScanner-BRXyMCyH.mjs +0 -6
  255. package/dist/ct-alerting-9AvYys-f.mjs +0 -3
  256. package/dist/custom-certificates-C5qrlyhb.mjs +0 -5
  257. package/dist/custom-csrs-BgOnTbBW.mjs +0 -3
  258. package/dist/custom-hostnames-CbQD9aYo.mjs +0 -5
  259. package/dist/custom-nameservers-2ZajBkRC.mjs +0 -3
  260. package/dist/custom-pages-Buki_Cb8.mjs +0 -3
  261. package/dist/d1-n2in0cSF.mjs +0 -20
  262. package/dist/data-security-DzOQMkv3.mjs +0 -7
  263. package/dist/dcv-delegation-BTP9LCOm.mjs +0 -2
  264. package/dist/diagnostics-BvHV8kQb.mjs +0 -3
  265. package/dist/directory-BeiSyg8A.mjs +0 -3
  266. package/dist/dispatch-namespaces-Dp8Jjpwy.mjs +0 -7
  267. package/dist/dist-DvizctjW.mjs +0 -48
  268. package/dist/dls-BwoU29mS.mjs +0 -3
  269. package/dist/dns-DISAfuzj.mjs +0 -29
  270. package/dist/dns-firewall-wBcCx_ua.mjs +0 -57
  271. package/dist/dry-run-ILZRVpnp.mjs +0 -2
  272. package/dist/durable-objects-DhDL3San.mjs +0 -2
  273. package/dist/email-auth-BROqK6-C.mjs +0 -2
  274. package/dist/email-routing-BZXHDAOO.mjs +0 -6
  275. package/dist/email-security-DVumybrk.mjs +0 -18
  276. package/dist/email-sending-CDQ3_wyz.mjs +0 -7
  277. package/dist/fieldExtractors-Cy1rxHEF.mjs +0 -3
  278. package/dist/firewall-C0g5X7Zd.mjs +0 -11
  279. package/dist/flagship-fFBiZUz-.mjs +0 -4
  280. package/dist/fraud-CjIETOaM.mjs +0 -20
  281. package/dist/google-tag-gateway-hPa5IHUx.mjs +0 -2
  282. package/dist/healthchecks-CoycpTf9.mjs +0 -4
  283. package/dist/hostnames-x_Yezxpr.mjs +0 -3
  284. package/dist/hyperdrive-BlfrTwSq.mjs +0 -21
  285. package/dist/iam-Bk7K_PPO.mjs +0 -6
  286. package/dist/images-BAEFb9q1.mjs +0 -8
  287. package/dist/intel-DDkyJVaP.mjs +0 -8
  288. package/dist/interactive-CRnq-B5I.mjs +0 -11
  289. package/dist/interactive-cytQzL94.mjs +0 -78
  290. package/dist/ips-DU0ti0i0.mjs +0 -2
  291. package/dist/keyless-certificates-E1P9jBTb.mjs +0 -3
  292. package/dist/keys-DqldTZqH.mjs +0 -2
  293. package/dist/kv-CcfCfnwq.mjs +0 -5
  294. package/dist/leaked-credential-checks-CqmKaEbd.mjs +0 -4
  295. package/dist/load-balancers-Dg4pDad1.mjs +0 -6
  296. package/dist/logexplorer-Bu2mG5rh.mjs +0 -17
  297. package/dist/logo-matches-CWUzxY7G.mjs +0 -2
  298. package/dist/logos-BTfdkDPi.mjs +0 -3
  299. package/dist/logpush-BZyay3h2.mjs +0 -4
  300. package/dist/logs-BqF7jjQO.mjs +0 -3
  301. package/dist/magic-cloud-networking-Dhd8pTyM.mjs +0 -5
  302. package/dist/magic-network-monitoring-D0FnkjuN.mjs +0 -4
  303. package/dist/magic-transit-B5skt0G7.mjs +0 -111
  304. package/dist/managed-transforms-B6X_crcJ.mjs +0 -3
  305. package/dist/matches-DeYaB4I0.mjs +0 -2
  306. package/dist/mcp-ChjBiMx2.mjs +0 -4
  307. package/dist/mesh-DRVAFLBX.mjs +0 -4
  308. package/dist/moq-DE7VDEFS.mjs +0 -13
  309. package/dist/mtls-certificates-Cbc3uAkN.mjs +0 -3
  310. package/dist/network-CDPZNFbn.mjs +0 -6
  311. package/dist/network-interconnects-CMRs_chR.mjs +0 -41
  312. package/dist/oauth-DAa7SwkM.mjs +0 -14
  313. package/dist/oauth-clients-DAI_gcuL.mjs +0 -4
  314. package/dist/oauth-scopes-BE6xF4_h.mjs +0 -2
  315. package/dist/observability-DnyI8rPJ.mjs +0 -4
  316. package/dist/organization-yh0mSUdI.mjs +0 -41
  317. package/dist/organizations-B3aU-RCG.mjs +0 -2
  318. package/dist/origin-ca-certificates-BaNWfVqf.mjs +0 -3
  319. package/dist/origin-post-quantum-encryption-CIUtQgyv.mjs +0 -2
  320. package/dist/origin-tls-client-auth-CvEpbX2Q.mjs +0 -4
  321. package/dist/page-rules-CzbyXbt6.mjs +0 -27
  322. package/dist/pages-CX8yefTI.mjs +0 -14
  323. package/dist/pay-per-crawl-v4vBOMWD.mjs +0 -4
  324. package/dist/pipelines-BZ1KGupx.mjs +0 -6
  325. package/dist/precursor-D42A9ay5.mjs +0 -4
  326. package/dist/progress-jYW64HY7.mjs +0 -2
  327. package/dist/project-settings-BN7tL0c7.mjs +0 -3
  328. package/dist/prompt-CyATfGUu.mjs +0 -3
  329. package/dist/queries-xvETUjUE.mjs +0 -3
  330. package/dist/queues-CpqHDtxF.mjs +0 -6
  331. package/dist/r2-data-catalog-DgKmlTKR.mjs +0 -16
  332. package/dist/r2-jhmLvD1z.mjs +0 -24
  333. package/dist/radar-C2J16wpX.mjs +0 -2
  334. package/dist/rate-limits-CoH9Xma0.mjs +0 -5
  335. package/dist/raw-fetch-CNKIypJ7.mjs +0 -2
  336. package/dist/realtimekit-CDs0Z5WW.mjs +0 -7
  337. package/dist/registrar-BI5ewTAk.mjs +0 -23
  338. package/dist/registrar-sandbox-al1znWMc.mjs +0 -61
  339. package/dist/reporting-CxsdHAH3.mjs +0 -2
  340. package/dist/request-tracers-DJJCncft.mjs +0 -2
  341. package/dist/resource-sharing-qQGn8AEn.mjs +0 -3
  342. package/dist/resource-tagging-aTtpX5e5.mjs +0 -2
  343. package/dist/rules-PpsDU89Q.mjs +0 -4
  344. package/dist/rulesets-DP12Aqik.mjs +0 -5
  345. package/dist/rum-DxvpzJYc.mjs +0 -4
  346. package/dist/schema-DlLbiOJj.mjs +0 -2
  347. package/dist/scim-DJ4AVU20.mjs +0 -4
  348. package/dist/secrets-store-D6KDNo_s.mjs +0 -7
  349. package/dist/security-center-008FMs_z.mjs +0 -2
  350. package/dist/security-txt-CqcfrhlN.mjs +0 -3
  351. package/dist/share-D5fzsVAJ.mjs +0 -5
  352. package/dist/smart-shield-DpFscIk8.mjs +0 -4
  353. package/dist/snippets-CCKgI2ZX.mjs +0 -4
  354. package/dist/spectrum-LmdqY3ki.mjs +0 -7
  355. package/dist/speed-CEK36h3A.mjs +0 -4
  356. package/dist/src-CEb2fgtT.mjs +0 -108
  357. package/dist/ssl-ChHUyaQm.mjs +0 -15
  358. package/dist/state-DeX23Kmg.mjs +0 -2
  359. package/dist/stream-DfUSELMX.mjs +0 -14
  360. package/dist/submit-DF2G5CIz.mjs +0 -2
  361. package/dist/tags-nFJJHlLJ.mjs +0 -2
  362. package/dist/tenant-CRLw1oRU.mjs +0 -2
  363. package/dist/tenant-custom-nameservers-BvBQRDcs.mjs +0 -3
  364. package/dist/tunnel-CMQeBgmb.mjs +0 -5
  365. package/dist/tunnels-iVA3MrdS.mjs +0 -2
  366. package/dist/turnstile-DQHP6-_b.mjs +0 -23
  367. package/dist/ui-DJFcf61J.mjs +0 -5
  368. package/dist/url-info-BVgdb_pf.mjs +0 -2
  369. package/dist/url-normalization-BTcxLxIQ.mjs +0 -3
  370. package/dist/url-scanner-DwuDZLPk.mjs +0 -2
  371. package/dist/user-I_MbB_KX.mjs +0 -12
  372. package/dist/values-S-Q7-5o8.mjs +0 -2
  373. package/dist/vectorize-CNZdF_0A.mjs +0 -4
  374. package/dist/waiting-rooms-Bo-OSsxu.mjs +0 -11
  375. package/dist/web-assets-tlFzKdNL.mjs +0 -8
  376. package/dist/web3-CdbfoZ2x.mjs +0 -4
  377. package/dist/workers-DQ9Q7czn.mjs +0 -28
  378. package/dist/workers-builds-CGRhYx-x.mjs +0 -9
  379. package/dist/workflows-BhEy-crm.mjs +0 -5
  380. package/dist/zaraz-DbKvA_8C.mjs +0 -2
  381. package/dist/zero-trust-DrHCPVOc.mjs +0 -93
  382. package/dist/zone-D2zrbJI2.mjs +0 -2
  383. package/dist/zones-DrpxQ_-A.mjs +0 -21
  384. /package/dist/{Page-9ry_XAVC.mjs → Page-C-JHZnIy.mjs} +0 -0
  385. /package/dist/{alerts-9PR5sQ_z.mjs → alerts-B2SJO4nd.mjs} +0 -0
  386. /package/dist/{autorag-Bevo1kIH.mjs → autorag-iNjZXw1n.mjs} +0 -0
  387. /package/dist/{body-parser-BGVbwPeM.mjs → body-parser-DIlfApuJ.mjs} +0 -0
  388. /package/dist/{brands-C4M04Man.mjs → brands-BrVnNrT3.mjs} +0 -0
  389. /package/dist/{chunk-6EUZQHAF-C3w62dek.mjs → chunk-6EUZQHAF-B7bSMYLe.mjs} +0 -0
  390. /package/dist/{chunk-Q72B4Q5Z-DVMMVVEs.mjs → chunk-Q72B4Q5Z-CPy_WJKU.mjs} +0 -0
  391. /package/dist/{clear-DS0eRXOc.mjs → clear-an9o3dJ3.mjs} +0 -0
  392. /package/dist/{cli-types-C3nVfpSG.mjs → cli-types-CrSoSMPF.mjs} +0 -0
  393. /package/dist/{connector-telemetry-events-latest-CKKG6_pD.mjs → connector-telemetry-events-latest-BqWfopFc.mjs} +0 -0
  394. /package/dist/{connector-telemetry-snapshots-latest-Bv5OddJr.mjs → connector-telemetry-snapshots-latest-C1m9U1En.mjs} +0 -0
  395. /package/dist/{domain-info-BUiaGCEq.mjs → domain-info-B0Ykqv5l.mjs} +0 -0
  396. /package/dist/{health-vX6Ml2Na.mjs → health-CIUg1C5o.mjs} +0 -0
  397. /package/dist/{input-validation-1esLElok.mjs → input-validation-BxchZ9jE.mjs} +0 -0
  398. /package/dist/{internal-ROz7anul.mjs → internal-DmpATljO.mjs} +0 -0
  399. /package/dist/{live-CSxvigCS.mjs → live-B66u3_0g.mjs} +0 -0
  400. /package/dist/{metadata-DEqBUaSv.mjs → metadata-D062SVyy.mjs} +0 -0
  401. /package/dist/{public-BMg6-Hxh-DgIH5obr.mjs → public-BMg6-Hxh-BfUOZTDP.mjs} +0 -0
  402. /package/dist/{rate-limit-analytics-CgHgKjmV.mjs → rate-limit-analytics-BknoecoM.mjs} +0 -0
  403. /package/dist/{ready-6G9zVGPJ.mjs → ready-C-H2cwp_.mjs} +0 -0
  404. /package/dist/{recent-submissions-B3Smh-QM.mjs → recent-submissions-DyuH_n5u.mjs} +0 -0
  405. /package/dist/{refute-DjkmLSNe.mjs → refute-uSlzkQKq.mjs} +0 -0
  406. /package/dist/{resolve-DEvdeprv.mjs → resolve-B8CyM1mi.mjs} +0 -0
  407. /package/dist/{scan-logo-545qLcGs.mjs → scan-logo-DMk--WT7.mjs} +0 -0
  408. /package/dist/{scan-page-DRQiVufl.mjs → scan-page-DEHnAOJo.mjs} +0 -0
  409. /package/dist/{schemas-BFCBlp_W.mjs → schemas-O_ZNaF8R.mjs} +0 -0
  410. /package/dist/{search-CXbqFoqe.mjs → search-BlKeSfVD.mjs} +0 -0
  411. /package/dist/{signed-url-rU_nvgFA.mjs → signed-url-CiGmGkLQ.mjs} +0 -0
  412. /package/dist/{submission-info-D6PgXNQP.mjs → submission-info-DHlTHDrs.mjs} +0 -0
  413. /package/dist/{theme-CrIBazAF.mjs → theme-CeVf-5qG.mjs} +0 -0
  414. /package/dist/{total-queries-XkFyu8H5.mjs → total-queries-D5WvVfYi.mjs} +0 -0
  415. /package/dist/{tracked-domains-CmcRXHj_.mjs → tracked-domains-9deBK9bp.mjs} +0 -0
  416. /package/dist/{verify-CM1NakP0.mjs → verify-S-TmhUDr.mjs} +0 -0
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env node
2
+ import{t as e}from"./local-C6XsFD_W.mjs";import{f as t,g as n}from"./oauth-DH3kMXSs.mjs";import{a as r,r as i}from"./auth-tvDdC1J-.mjs";import{t as a}from"./output-COcSQsfn.mjs";import{t as o}from"./dry-run-DiVy1lVo.mjs";import{t as s}from"./progress-V6SZV3Ux.mjs";import{t as c}from"./run-CRfinkSe.mjs";import"./telemetry-Ch1vCICm.mjs";import{n as l,r as u,t as d}from"./body-parser-DIlfApuJ.mjs";import{n as f,t as p}from"./input-validation-BxchZ9jE.mjs";import{a as m,i as h,n as g}from"./prompt-DjRTpML4.mjs";import{t as ee}from"./cli-types-CrSoSMPF.mjs";function _(e){return e.positional(`project-name`,{type:`string`,description:`Name of the project.`,demandOption:!0}).option(`config-deployments-enabled`,{type:`boolean`,description:`Whether to enable automatic deployments when pushing to the source repository.
3
+ When disabled, no deployments (production or preview) will be triggered automatically.
4
+ `}).option(`config-owner`,{type:`string`,description:`The owner of the repository.`}).option(`config-owner-id`,{type:`string`,description:`The owner ID of the repository.`}).option(`config-path-excludes`,{type:`string`,array:!0,description:"A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (`*`) is supported."}).option(`config-path-includes`,{type:`string`,array:!0,description:"A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (`*`) is supported."}).option(`config-pr-comments-enabled`,{type:`boolean`,description:`Whether to enable PR comments.`}).option(`config-preview-branch-excludes`,{type:`string`,array:!0,description:"A list of branches that should not trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`."}).option(`config-preview-branch-includes`,{type:`string`,array:!0,description:"A list of branches that should trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`."}).option(`config-preview-deployment-setting`,{type:`string`,description:`Controls whether commits to preview branches trigger a preview deployment.`,choices:[`all`,`none`,`custom`]}).option(`config-production-branch`,{type:`string`,description:`The production branch of the repository.`}).option(`config-production-deployments-enabled`,{type:`boolean`,description:`Whether to trigger a production deployment on commits to the production branch.`}).option(`config-repo-id`,{type:`string`,description:`The ID of the repository.`}).option(`config-repo-name`,{type:`string`,description:`The name of the repository.`}).option(`type`,{type:`string`,description:`The source control management provider.`,choices:[`github`,`gitlab`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Configs for the project source control.`})}const v={command:`connect-source <project-name>`,describe:`Connect a Git repository source to an existing Pages project.`,builder:_,handler:async r=>c({command:`pages projects connect-source`,classification:{safeFlags:[`config-deployments-enabled`,`config-pr-comments-enabled`,`config-preview-deployment-setting`,`config-production-deployments-enabled`,`type`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf pages projects connect-source`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pages/projects/${r[`project-name`]==null?`<project-name>`:encodeURIComponent(String(r[`project-name`]))}/source`,pathParams:{"project-name":String(r[`project-name`]??``)},bodyKind:`json`,body:r.body===void 0?d({config:{deployments_enabled:r[`config-deployments-enabled`],owner:f(r[`config-owner`],`config-owner`,`text`),owner_id:f(r[`config-owner-id`],`config-owner-id`,`text`),path_excludes:r[`config-path-excludes`],path_includes:r[`config-path-includes`],pr_comments_enabled:r[`config-pr-comments-enabled`],preview_branch_excludes:r[`config-preview-branch-excludes`],preview_branch_includes:r[`config-preview-branch-includes`],preview_deployment_setting:f(r[`config-preview-deployment-setting`],`config-preview-deployment-setting`,`text`),production_branch:f(r[`config-production-branch`],`config-production-branch`,`text`),production_deployments_enabled:r[`config-production-deployments-enabled`],repo_id:f(r[`config-repo-id`],`config-repo-id`,`text`),repo_name:f(r[`config-repo-name`],`config-repo-name`,`text`)},type:f(r.type,`type`,`text`)}):l(r.body)});return}let c=await i(r),u=r.local?e:await t();if(r.accountId=u,r.body){let e=l(r.body);a(await s(`Creating`,async()=>c.pages.projects.connectSource({body:e,account_id:u,project_name:r[`project-name`]})),{successLabel:`Created`});return}if(r[`config-deployments-enabled`]===void 0)throw Error(`--config-deployments-enabled is required (or pass --body with this field set).`);if(r[`config-owner`]===void 0&&(r[`config-owner`]=await m(`config-owner`,`The owner of the repository.`)),r[`config-owner-id`]===void 0&&(r[`config-owner-id`]=await m(`config-owner-id`,`The owner ID of the repository.`)),r[`config-path-excludes`]===void 0)throw Error(`--config-path-excludes is required (or pass --body with this field set).`);if(r[`config-path-includes`]===void 0)throw Error(`--config-path-includes is required (or pass --body with this field set).`);if(r[`config-pr-comments-enabled`]===void 0)throw Error(`--config-pr-comments-enabled is required (or pass --body with this field set).`);if(r[`config-preview-branch-excludes`]===void 0)throw Error(`--config-preview-branch-excludes is required (or pass --body with this field set).`);if(r[`config-preview-branch-includes`]===void 0)throw Error(`--config-preview-branch-includes is required (or pass --body with this field set).`);if(r[`config-preview-deployment-setting`]===void 0&&(r[`config-preview-deployment-setting`]=await h(`config-preview-deployment-setting`,`Controls whether commits to preview branches trigger a preview deployment.`,[`all`,`none`,`custom`])),r[`config-production-branch`]===void 0&&(r[`config-production-branch`]=await m(`config-production-branch`,`The production branch of the repository.`)),r[`config-production-deployments-enabled`]===void 0)throw Error(`--config-production-deployments-enabled is required (or pass --body with this field set).`);r[`config-repo-id`]===void 0&&(r[`config-repo-id`]=await m(`config-repo-id`,`The ID of the repository.`)),r[`config-repo-name`]===void 0&&(r[`config-repo-name`]=await m(`config-repo-name`,`The name of the repository.`)),r.type===void 0&&(r.type=await h(`type`,`The source control management provider.`,[`github`,`gitlab`]));let p=d({config:{deployments_enabled:r[`config-deployments-enabled`],owner:f(r[`config-owner`],`config-owner`,`text`),owner_id:f(r[`config-owner-id`],`config-owner-id`,`text`),path_excludes:r[`config-path-excludes`],path_includes:r[`config-path-includes`],pr_comments_enabled:r[`config-pr-comments-enabled`],preview_branch_excludes:r[`config-preview-branch-excludes`],preview_branch_includes:r[`config-preview-branch-includes`],preview_deployment_setting:f(r[`config-preview-deployment-setting`],`config-preview-deployment-setting`,`text`),production_branch:f(r[`config-production-branch`],`config-production-branch`,`text`),production_deployments_enabled:r[`config-production-deployments-enabled`],repo_id:f(r[`config-repo-id`],`config-repo-id`,`text`),repo_name:f(r[`config-repo-name`],`config-repo-name`,`text`)},type:f(r.type,`type`,`text`)});a(await s(`Creating`,async()=>c.pages.projects.connectSource({body:p,account_id:u,project_name:r[`project-name`]})),{successLabel:`Created`})})};function y(e){return e.option(`build-config-build-caching`,{type:`boolean`,description:`Enable build caching for the project.`}).option(`build-config-build-command`,{type:`string`,description:`Command used to build project.`}).option(`build-config-destination-dir`,{type:`string`,description:`Output directory of the build.`}).option(`build-config-root-dir`,{type:`string`,description:`Directory to run the command.`}).option(`build-config-web-analytics-tag`,{type:`string`,description:`The classifying tag for analytics.`}).option(`build-config-web-analytics-token`,{type:`string`,description:`The auth token for analytics.`}).option(`deployment-configs-preview-always-use-latest-compatibility-date`,{type:`boolean`,description:`Whether to always use the latest compatibility date for Pages Functions.`}).option(`deployment-configs-preview-build-image-major-version`,{type:`number`,description:`The major version of the build image to use for Pages Functions.`}).option(`deployment-configs-preview-compatibility-date`,{type:`string`,description:`Compatibility date used for Pages Functions.`}).option(`deployment-configs-preview-compatibility-flags`,{type:`string`,array:!0,description:`Compatibility flags used for Pages Functions.`}).option(`deployment-configs-preview-fail-open`,{type:`boolean`,description:`Whether to fail open when the deployment config cannot be applied.`}).option(`deployment-configs-preview-limits-cpu-ms`,{type:`number`,description:`CPU time limit in milliseconds.`}).option(`deployment-configs-preview-placement-mode`,{type:`string`,description:`Placement mode.`}).option(`deployment-configs-preview-usage-model`,{type:`string`,description:`The usage model for Pages Functions.`,choices:[`standard`,`bundled`,`unbound`]}).option(`deployment-configs-preview-wrangler-config-hash`,{type:`string`,description:`Hash of the Wrangler configuration used for the deployment.`}).option(`deployment-configs-production-always-use-latest-compatibility-date`,{type:`boolean`,description:`Whether to always use the latest compatibility date for Pages Functions.`}).option(`deployment-configs-production-build-image-major-version`,{type:`number`,description:`The major version of the build image to use for Pages Functions.`}).option(`deployment-configs-production-compatibility-date`,{type:`string`,description:`Compatibility date used for Pages Functions.`}).option(`deployment-configs-production-compatibility-flags`,{type:`string`,array:!0,description:`Compatibility flags used for Pages Functions.`}).option(`deployment-configs-production-fail-open`,{type:`boolean`,description:`Whether to fail open when the deployment config cannot be applied.`}).option(`deployment-configs-production-limits-cpu-ms`,{type:`number`,description:`CPU time limit in milliseconds.`}).option(`deployment-configs-production-placement-mode`,{type:`string`,description:`Placement mode.`}).option(`deployment-configs-production-usage-model`,{type:`string`,description:`The usage model for Pages Functions.`,choices:[`standard`,`bundled`,`unbound`]}).option(`deployment-configs-production-wrangler-config-hash`,{type:`string`,description:`Hash of the Wrangler configuration used for the deployment.`}).option(`name`,{type:`string`,description:`Name of the project.`}).option(`production-branch`,{type:`string`,description:`Production branch of the project. Used to identify production deployments.`}).option(`source-config-deployments-enabled`,{type:`boolean`,description:`Whether to enable automatic deployments when pushing to the source repository.
5
+ When disabled, no deployments (production or preview) will be triggered automatically.
6
+ `}).option(`source-config-owner`,{type:`string`,description:`The owner of the repository.`}).option(`source-config-owner-id`,{type:`string`,description:`The owner ID of the repository.`}).option(`source-config-path-excludes`,{type:`string`,array:!0,description:"A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (`*`) is supported."}).option(`source-config-path-includes`,{type:`string`,array:!0,description:"A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (`*`) is supported."}).option(`source-config-pr-comments-enabled`,{type:`boolean`,description:`Whether to enable PR comments.`}).option(`source-config-preview-branch-excludes`,{type:`string`,array:!0,description:"A list of branches that should not trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`."}).option(`source-config-preview-branch-includes`,{type:`string`,array:!0,description:"A list of branches that should trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`."}).option(`source-config-preview-deployment-setting`,{type:`string`,description:`Controls whether commits to preview branches trigger a preview deployment.`,choices:[`all`,`none`,`custom`]}).option(`source-config-production-branch`,{type:`string`,description:`The production branch of the repository.`}).option(`source-config-production-deployments-enabled`,{type:`boolean`,description:`Whether to trigger a production deployment on commits to the production branch.`}).option(`source-config-repo-id`,{type:`string`,description:`The ID of the repository.`}).option(`source-config-repo-name`,{type:`string`,description:`The name of the repository.`}).option(`source-type`,{type:`string`,description:`The source control management provider.`,choices:[`github`,`gitlab`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).check(e=>{if([`deployment-configs-preview-always-use-latest-compatibility-date`,`deployment-configs-preview-build-image-major-version`,`deployment-configs-preview-compatibility-date`,`deployment-configs-preview-compatibility-flags`,`deployment-configs-preview-fail-open`,`deployment-configs-preview-limits-cpu-ms`,`deployment-configs-preview-placement-mode`,`deployment-configs-preview-usage-model`,`deployment-configs-preview-wrangler-config-hash`,`deployment-configs-production-always-use-latest-compatibility-date`,`deployment-configs-production-build-image-major-version`,`deployment-configs-production-compatibility-date`,`deployment-configs-production-compatibility-flags`,`deployment-configs-production-fail-open`,`deployment-configs-production-limits-cpu-ms`,`deployment-configs-production-placement-mode`,`deployment-configs-production-usage-model`,`deployment-configs-production-wrangler-config-hash`].some(t=>e[t]!==void 0)){let t=[`deployment-configs-preview-limits-cpu-ms`,`deployment-configs-preview-placement-mode`,`deployment-configs-production-limits-cpu-ms`,`deployment-configs-production-placement-mode`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --deployment_configs-* flag is set`)}return!0}).check(e=>{if([`source-config-deployments-enabled`,`source-config-owner`,`source-config-owner-id`,`source-config-path-excludes`,`source-config-path-includes`,`source-config-pr-comments-enabled`,`source-config-preview-branch-excludes`,`source-config-preview-branch-includes`,`source-config-preview-deployment-setting`,`source-config-production-branch`,`source-config-production-deployments-enabled`,`source-config-repo-id`,`source-config-repo-name`,`source-type`].some(t=>e[t]!==void 0)){let t=[`source-type`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --source-* flag is set`)}return!0})}const b={command:`create`,describe:`Create a new project.`,builder:y,handler:async r=>c({command:`pages projects create`,classification:{safeFlags:[`build-config-build-caching`,`deployment-configs-preview-always-use-latest-compatibility-date`,`deployment-configs-preview-fail-open`,`deployment-configs-preview-usage-model`,`deployment-configs-production-always-use-latest-compatibility-date`,`deployment-configs-production-fail-open`,`deployment-configs-production-usage-model`,`source-config-deployments-enabled`,`source-config-pr-comments-enabled`,`source-config-preview-deployment-setting`,`source-config-production-deployments-enabled`,`source-type`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf pages projects create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pages/projects`,pathParams:{},bodyKind:`json`,body:r.body===void 0?d({build_config:{build_caching:r[`build-config-build-caching`],build_command:f(r[`build-config-build-command`],`build-config-build-command`,`text`),destination_dir:f(r[`build-config-destination-dir`],`build-config-destination-dir`,`text`),root_dir:f(r[`build-config-root-dir`],`build-config-root-dir`,`text`),web_analytics_tag:f(r[`build-config-web-analytics-tag`],`build-config-web-analytics-tag`,`text`),web_analytics_token:f(r[`build-config-web-analytics-token`],`build-config-web-analytics-token`,`text`)},deployment_configs:{preview:{always_use_latest_compatibility_date:r[`deployment-configs-preview-always-use-latest-compatibility-date`],build_image_major_version:r[`deployment-configs-preview-build-image-major-version`],compatibility_date:f(r[`deployment-configs-preview-compatibility-date`],`deployment-configs-preview-compatibility-date`,`text`),compatibility_flags:r[`deployment-configs-preview-compatibility-flags`],fail_open:r[`deployment-configs-preview-fail-open`],limits:{cpu_ms:r[`deployment-configs-preview-limits-cpu-ms`]},placement:{mode:f(r[`deployment-configs-preview-placement-mode`],`deployment-configs-preview-placement-mode`,`text`)},usage_model:f(r[`deployment-configs-preview-usage-model`],`deployment-configs-preview-usage-model`,`text`),wrangler_config_hash:f(r[`deployment-configs-preview-wrangler-config-hash`],`deployment-configs-preview-wrangler-config-hash`,`text`)},production:{always_use_latest_compatibility_date:r[`deployment-configs-production-always-use-latest-compatibility-date`],build_image_major_version:r[`deployment-configs-production-build-image-major-version`],compatibility_date:f(r[`deployment-configs-production-compatibility-date`],`deployment-configs-production-compatibility-date`,`text`),compatibility_flags:r[`deployment-configs-production-compatibility-flags`],fail_open:r[`deployment-configs-production-fail-open`],limits:{cpu_ms:r[`deployment-configs-production-limits-cpu-ms`]},placement:{mode:f(r[`deployment-configs-production-placement-mode`],`deployment-configs-production-placement-mode`,`text`)},usage_model:f(r[`deployment-configs-production-usage-model`],`deployment-configs-production-usage-model`,`text`),wrangler_config_hash:f(r[`deployment-configs-production-wrangler-config-hash`],`deployment-configs-production-wrangler-config-hash`,`text`)}},name:f(r.name,`name`,`text`),production_branch:f(r[`production-branch`],`production-branch`,`text`),source:{config:{deployments_enabled:r[`source-config-deployments-enabled`],owner:f(r[`source-config-owner`],`source-config-owner`,`text`),owner_id:f(r[`source-config-owner-id`],`source-config-owner-id`,`text`),path_excludes:r[`source-config-path-excludes`],path_includes:r[`source-config-path-includes`],pr_comments_enabled:r[`source-config-pr-comments-enabled`],preview_branch_excludes:r[`source-config-preview-branch-excludes`],preview_branch_includes:r[`source-config-preview-branch-includes`],preview_deployment_setting:f(r[`source-config-preview-deployment-setting`],`source-config-preview-deployment-setting`,`text`),production_branch:f(r[`source-config-production-branch`],`source-config-production-branch`,`text`),production_deployments_enabled:r[`source-config-production-deployments-enabled`],repo_id:f(r[`source-config-repo-id`],`source-config-repo-id`,`text`),repo_name:f(r[`source-config-repo-name`],`source-config-repo-name`,`text`)},type:f(r[`source-type`],`source-type`,`text`)}}):l(r.body)});return}let c=await i(r),u=r.local?e:await t();if(r.accountId=u,r.body){let e=l(r.body);a(await s(`Creating`,async()=>c.pages.projects.create({...e,account_id:u})),{successLabel:`Created`});return}r.name===void 0&&(r.name=await m(`name`,`Name of the project.`)),r[`production-branch`]===void 0&&(r[`production-branch`]=await m(`production-branch`,`Production branch of the project. Used to identify production deployments.`));let p=d({build_config:{build_caching:r[`build-config-build-caching`],build_command:f(r[`build-config-build-command`],`build-config-build-command`,`text`),destination_dir:f(r[`build-config-destination-dir`],`build-config-destination-dir`,`text`),root_dir:f(r[`build-config-root-dir`],`build-config-root-dir`,`text`),web_analytics_tag:f(r[`build-config-web-analytics-tag`],`build-config-web-analytics-tag`,`text`),web_analytics_token:f(r[`build-config-web-analytics-token`],`build-config-web-analytics-token`,`text`)},deployment_configs:{preview:{always_use_latest_compatibility_date:r[`deployment-configs-preview-always-use-latest-compatibility-date`],build_image_major_version:r[`deployment-configs-preview-build-image-major-version`],compatibility_date:f(r[`deployment-configs-preview-compatibility-date`],`deployment-configs-preview-compatibility-date`,`text`),compatibility_flags:r[`deployment-configs-preview-compatibility-flags`],fail_open:r[`deployment-configs-preview-fail-open`],limits:{cpu_ms:r[`deployment-configs-preview-limits-cpu-ms`]},placement:{mode:f(r[`deployment-configs-preview-placement-mode`],`deployment-configs-preview-placement-mode`,`text`)},usage_model:f(r[`deployment-configs-preview-usage-model`],`deployment-configs-preview-usage-model`,`text`),wrangler_config_hash:f(r[`deployment-configs-preview-wrangler-config-hash`],`deployment-configs-preview-wrangler-config-hash`,`text`)},production:{always_use_latest_compatibility_date:r[`deployment-configs-production-always-use-latest-compatibility-date`],build_image_major_version:r[`deployment-configs-production-build-image-major-version`],compatibility_date:f(r[`deployment-configs-production-compatibility-date`],`deployment-configs-production-compatibility-date`,`text`),compatibility_flags:r[`deployment-configs-production-compatibility-flags`],fail_open:r[`deployment-configs-production-fail-open`],limits:{cpu_ms:r[`deployment-configs-production-limits-cpu-ms`]},placement:{mode:f(r[`deployment-configs-production-placement-mode`],`deployment-configs-production-placement-mode`,`text`)},usage_model:f(r[`deployment-configs-production-usage-model`],`deployment-configs-production-usage-model`,`text`),wrangler_config_hash:f(r[`deployment-configs-production-wrangler-config-hash`],`deployment-configs-production-wrangler-config-hash`,`text`)}},name:f(r.name,`name`,`text`),production_branch:f(r[`production-branch`],`production-branch`,`text`),source:{config:{deployments_enabled:r[`source-config-deployments-enabled`],owner:f(r[`source-config-owner`],`source-config-owner`,`text`),owner_id:f(r[`source-config-owner-id`],`source-config-owner-id`,`text`),path_excludes:r[`source-config-path-excludes`],path_includes:r[`source-config-path-includes`],pr_comments_enabled:r[`source-config-pr-comments-enabled`],preview_branch_excludes:r[`source-config-preview-branch-excludes`],preview_branch_includes:r[`source-config-preview-branch-includes`],preview_deployment_setting:f(r[`source-config-preview-deployment-setting`],`source-config-preview-deployment-setting`,`text`),production_branch:f(r[`source-config-production-branch`],`source-config-production-branch`,`text`),production_deployments_enabled:r[`source-config-production-deployments-enabled`],repo_id:f(r[`source-config-repo-id`],`source-config-repo-id`,`text`),repo_name:f(r[`source-config-repo-name`],`source-config-repo-name`,`text`)},type:f(r[`source-type`],`source-type`,`text`)}});a(await s(`Creating`,async()=>c.pages.projects.create({...p,account_id:u})),{successLabel:`Created`})})};function x(e){return e.positional(`project-name`,{type:`string`,description:`Name of the project.`,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 S={command:`delete <project-name>`,describe:`Delete a project by name.`,builder:x,handler:async r=>c({command:`pages projects delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf pages projects delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pages/projects/${r[`project-name`]==null?`<project-name>`:encodeURIComponent(String(r[`project-name`]))}`,pathParams:{"project-name":String(r[`project-name`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await t();if(r.accountId=l,!await g({force:!!r.force})){process.stderr.write(`Aborted.
7
+ `);return}a(await s(`Deleting`,async()=>c.pages.projects.delete({account_id:l,project_name:r[`project-name`]})),{successLabel:`Deleted`})})};function C(e){return e.positional(`project-name`,{type:`string`,description:`Name of the project.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`}).option(`branch`,{type:`string`,description:"The branch to build the new deployment from. The `HEAD` of the branch will be used. If omitted, the production branch will be used by default."}).option(`commit-dirty`,{type:`string`,description:`Boolean string indicating if the working directory has uncommitted changes.`}).option(`commit-hash`,{type:`string`,description:`Git commit SHA associated with this deployment.`}).option(`commit-message`,{type:`string`,description:`Git commit message associated with this deployment.`}).option(`manifest`,{type:`string`,description:`JSON string containing a manifest of files to deploy. Maps file paths to their content hashes. Required for direct upload deployments. Maximum 20,000 entries. `}).option(`pages-build-output-dir`,{type:`string`,description:`The build output directory path.`}).option(`wrangler-config-hash`,{type:`string`,description:`Hash of the Wrangler configuration file used for this deployment.`})}const w={command:`create <project-name>`,describe:`Start a new deployment from production. The repository and account must have already been authorized on the Cloudflare Pages dashboard.`,builder:C,handler:async l=>c({command:`pages projects deployments create`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){o({command:`cf pages projects deployments create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pages/projects/${l[`project-name`]==null?`<project-name>`:encodeURIComponent(String(l[`project-name`]))}/deployments`,pathParams:{"project-name":String(l[`project-name`]??``)},bodyKind:`multipart`,body:{body:l.body,file:l.file,branch:l.branch,"commit-dirty":l[`commit-dirty`],"commit-hash":l[`commit-hash`],"commit-message":l[`commit-message`],manifest:l.manifest,"pages-build-output-dir":l[`pages-build-output-dir`],"wrangler-config-hash":l[`wrangler-config-hash`]}});return}let c=await i(l),u=l.local?e:await t();if(l.accountId=u,l.file!==void 0||l.body!==void 0||l.branch!==void 0||l[`commit-dirty`]!==void 0||l[`commit-hash`]!==void 0||l[`commit-message`]!==void 0||l.manifest!==void 0||l[`pages-build-output-dir`]!==void 0||l[`wrangler-config-hash`]!==void 0){let e=new FormData;if(l.file){let t=p(l.file);e.append(`_headers`,new Blob([t]),l.file.split(/[\\/]/).filter(Boolean).pop())}else l.body!==void 0&&e.append(`_headers`,l.body);l.branch!==void 0&&e.append(`branch`,String(f(l.branch,`branch`,`text`)??``)),l[`commit-dirty`]!==void 0&&e.append(`commit_dirty`,String(f(l[`commit-dirty`],`commit-dirty`,`text`)??``)),l[`commit-hash`]!==void 0&&e.append(`commit_hash`,String(f(l[`commit-hash`],`commit-hash`,`text`)??``)),l[`commit-message`]!==void 0&&e.append(`commit_message`,String(f(l[`commit-message`],`commit-message`,`text`)??``)),l.manifest!==void 0&&e.append(`manifest`,String(f(l.manifest,`manifest`,`text`)??``)),l[`pages-build-output-dir`]!==void 0&&e.append(`pages_build_output_dir`,String(f(l[`pages-build-output-dir`],`pages-build-output-dir`,`text`)??``)),l[`wrangler-config-hash`]!==void 0&&e.append(`wrangler_config_hash`,String(f(l[`wrangler-config-hash`],`wrangler-config-hash`,`text`)??``)),a(await s(`Creating`,async()=>r(c,`POST`,`/accounts/${u}/pages/projects/${encodeURIComponent(String(l[`project-name`]))}/deployments`,{body:e})),{successLabel:`Created`});return}if(l.body){let e=f(l.body,`body`,`binary`);a(await s(`Creating`,async()=>r(c,`POST`,`/accounts/${u}/pages/projects/${encodeURIComponent(String(l[`project-name`]))}/deployments`,{body:e,headers:{"Content-Type":`multipart/form-data`}})),{successLabel:`Created`});return}a(await s(`Creating`,async()=>c.pages.projects.deployments.create({account_id:u,project_name:l[`project-name`]})),{successLabel:`Created`})})};function T(e){return e.positional(`deployment-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`project-name`,{type:`string`,description:`Name of the project.`,demandOption:!0}).option(`force`,{type:`boolean`,description:`Allow deletion of aliased non-production deployments when a normal delete would be rejected.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`delete <deployment-id>`,describe:`Delete a deployment.`,builder:T,handler:async r=>c({command:`pages projects deployments delete`,classification:{safeFlags:[`force`,`dry-run`]}},r,async()=>{let c={force:r.force};if(r.dryRun){o({command:`cf pages projects deployments delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pages/projects/${r[`project-name`]==null?`<project-name>`:encodeURIComponent(String(r[`project-name`]))}/deployments/${r[`deployment-id`]==null?`<deployment-id>`:encodeURIComponent(String(r[`deployment-id`]))}`,pathParams:{"deployment-id":String(r[`deployment-id`]??``),"project-name":String(r[`project-name`]??``)},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await t();if(r.accountId=u,!await g({force:!!r.force})){process.stderr.write(`Aborted.
8
+ `);return}a(await s(`Deleting`,async()=>l.pages.projects.deployments.delete({account_id:u,project_name:r[`project-name`],deployment_id:r[`deployment-id`],...c})),{successLabel:`Deleted`})})};function D(e){return e.positional(`deployment-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`project-name`,{type:`string`,description:`Name of the project.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const O={command:`get <deployment-id>`,describe:`Fetch information about a deployment.`,builder:D,handler:async r=>c({command:`pages projects deployments get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf pages projects deployments get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pages/projects/${r[`project-name`]==null?`<project-name>`:encodeURIComponent(String(r[`project-name`]))}/deployments/${r[`deployment-id`]==null?`<deployment-id>`:encodeURIComponent(String(r[`deployment-id`]))}`,pathParams:{"deployment-id":String(r[`deployment-id`]??``),"project-name":String(r[`project-name`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await t();r.accountId=l,a(await s(`Loading`,async()=>c.pages.projects.deployments.get({account_id:l,project_name:r[`project-name`],deployment_id:r[`deployment-id`]})),{successLabel:`Loaded`})})};function k(e){return e.positional(`deployment-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`project-name`,{type:`string`,description:`Name of the project.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const A={command:`get <deployment-id>`,describe:`Fetch deployment logs for a project.`,builder:k,handler:async r=>c({command:`pages projects deployments history logs get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf pages projects deployments history logs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pages/projects/${r[`project-name`]==null?`<project-name>`:encodeURIComponent(String(r[`project-name`]))}/deployments/${r[`deployment-id`]==null?`<deployment-id>`:encodeURIComponent(String(r[`deployment-id`]))}/history/logs`,pathParams:{"deployment-id":String(r[`deployment-id`]??``),"project-name":String(r[`project-name`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await t();r.accountId=l,a(await s(`Loading`,async()=>c.pages.projects.deployments.history.logs.get({account_id:l,project_name:r[`project-name`],deployment_id:r[`deployment-id`]})),{successLabel:`Loaded`})})},j={command:`logs`,describe:`Operations for projects.deployments.history.logs`,builder:e=>e.command(A).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},M={command:`history`,describe:`Operations for projects.deployments.history`,builder:e=>e.command(j).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function N(e){return e.option(`project-name`,{type:`string`,description:`Name of the project.`,demandOption:!0}).option(`env`,{type:`string`,description:`What type of deployments to fetch.`,choices:[`production`,`preview`]}).option(`page`,{type:`number`,description:`Which page of deployments to fetch.`}).option(`per-page`,{type:`number`,description:`How many deployments to return per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const P={command:`list`,describe:`Fetch a list of project deployments.`,builder:ee(N),handler:async r=>c({command:`pages projects deployments list`,classification:{safeFlags:[`env`,`dry-run`]}},r,async()=>{let c={env:r.env,page:r.page,per_page:r[`per-page`]};if(r.dryRun){o({command:`cf pages projects deployments list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pages/projects/${r[`project-name`]==null?`<project-name>`:encodeURIComponent(String(r[`project-name`]))}/deployments`,pathParams:{"project-name":String(r[`project-name`]??``)},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await t();r.accountId=u,a(await s(`Loading`,async()=>l.pages.projects.deployments.list({account_id:u,project_name:r[`project-name`],...c})),{successLabel:`Loaded`})})};function F(e){return e.positional(`deployment-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`project-name`,{type:`string`,description:`Name of the project.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const I={command:`retry <deployment-id>`,describe:`Retry a previous deployment.`,builder:F,handler:async r=>c({command:`pages projects deployments retry`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf pages projects deployments retry`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pages/projects/${r[`project-name`]==null?`<project-name>`:encodeURIComponent(String(r[`project-name`]))}/deployments/${r[`deployment-id`]==null?`<deployment-id>`:encodeURIComponent(String(r[`deployment-id`]))}/retry`,pathParams:{"deployment-id":String(r[`deployment-id`]??``),"project-name":String(r[`project-name`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await t();r.accountId=l,a(await s(`Creating`,async()=>c.pages.projects.deployments.retry({account_id:l,project_name:r[`project-name`],deployment_id:r[`deployment-id`]})),{successLabel:`Created`})})};function L(e){return e.positional(`deployment-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`project-name`,{type:`string`,description:`Name of the project.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const R={command:`rollback <deployment-id>`,describe:`Rollback the production deployment to a previous deployment. You can only rollback to succesful builds on production.`,builder:L,handler:async r=>c({command:`pages projects deployments rollback`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf pages projects deployments rollback`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pages/projects/${r[`project-name`]==null?`<project-name>`:encodeURIComponent(String(r[`project-name`]))}/deployments/${r[`deployment-id`]==null?`<deployment-id>`:encodeURIComponent(String(r[`deployment-id`]))}/rollback`,pathParams:{"deployment-id":String(r[`deployment-id`]??``),"project-name":String(r[`project-name`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await t();r.accountId=l,a(await s(`Creating`,async()=>c.pages.projects.deployments.rollback({account_id:l,project_name:r[`project-name`],deployment_id:r[`deployment-id`]})),{successLabel:`Created`})})};function z(e){return e.positional(`deployment-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`project-name`,{type:`string`,description:`Name of the project.`,demandOption:!0}).option(`filters`,{type:`string`,description:`Filters to apply to the tail session. 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 B={command:`create <deployment-id>`,describe:`Start a tail that receives logs and exception data.`,builder:z,handler:async r=>c({command:`pages projects deployments tails create`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf pages projects deployments tails create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pages/projects/${r[`project-name`]==null?`<project-name>`:encodeURIComponent(String(r[`project-name`]))}/deployments/${r[`deployment-id`]==null?`<deployment-id>`:encodeURIComponent(String(r[`deployment-id`]))}/tails`,pathParams:{"deployment-id":String(r[`deployment-id`]??``),"project-name":String(r[`project-name`]??``)},bodyKind:`json`,body:r.body===void 0?d({filters:u(r.filters,`filters`)}):l(r.body)});return}let c=await i(r),f=r.local?e:await t();if(r.accountId=f,r.body){let e=l(r.body);a(await s(`Creating`,async()=>c.pages.projects.deployments.tails.create({...e,account_id:f,project_name:r[`project-name`],deployment_id:r[`deployment-id`]})),{successLabel:`Created`});return}let p=d({filters:u(r.filters,`filters`)});a(await s(`Creating`,async()=>c.pages.projects.deployments.tails.create({...p,account_id:f,project_name:r[`project-name`],deployment_id:r[`deployment-id`]})),{successLabel:`Created`})})};function te(e){return e.positional(`tail-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`project-name`,{type:`string`,description:`Name of the project.`,demandOption:!0}).option(`deployment-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 V={command:`delete <tail-id>`,describe:`Deletes a tail from a Pages deployment.`,builder:te,handler:async r=>c({command:`pages projects deployments tails delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf pages projects deployments tails delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pages/projects/${r[`project-name`]==null?`<project-name>`:encodeURIComponent(String(r[`project-name`]))}/deployments/${r[`deployment-id`]==null?`<deployment-id>`:encodeURIComponent(String(r[`deployment-id`]))}/tails/${r[`tail-id`]==null?`<tail-id>`:encodeURIComponent(String(r[`tail-id`]))}`,pathParams:{"tail-id":String(r[`tail-id`]??``),"deployment-id":String(r[`deployment-id`]??``),"project-name":String(r[`project-name`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await t();if(r.accountId=l,!await g({force:!!r.force})){process.stderr.write(`Aborted.
9
+ `);return}a(await s(`Deleting`,async()=>c.pages.projects.deployments.tails.delete({account_id:l,project_name:r[`project-name`],deployment_id:r[`deployment-id`],tail_id:r[`tail-id`]})),{successLabel:`Deleted`})})},H={command:`tails`,describe:`Operations for projects.deployments.tails`,builder:e=>e.command(B).command(V).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},U={command:`deployments`,describe:`Operations for projects.deployments`,builder:e=>e.command(w).command(E).command(O).command(P).command(I).command(R).command(M).command(H).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function W(e){return e.positional(`project-name`,{type:`string`,description:`Name of the project.`,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:`disconnect-source <project-name>`,describe:`Disconnect the Git repository source from an existing Pages project.`,builder:W,handler:async r=>c({command:`pages projects disconnect-source`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf pages projects disconnect-source`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pages/projects/${r[`project-name`]==null?`<project-name>`:encodeURIComponent(String(r[`project-name`]))}/source`,pathParams:{"project-name":String(r[`project-name`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await t();if(r.accountId=l,!await g({force:!!r.force})){process.stderr.write(`Aborted.
10
+ `);return}a(await s(`Deleting`,async()=>c.pages.projects.disconnectSource({account_id:l,project_name:r[`project-name`]})),{successLabel:`Deleted`})})};function K(e){return e.positional(`project-name`,{type:`string`,description:`Name of the project.`,demandOption:!0}).option(`name`,{type:`string`,description:`The domain name.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const q={command:`create <project-name>`,describe:`Add a new domain for the Pages project.`,builder:K,handler:async r=>c({command:`pages projects domains create`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf pages projects domains create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pages/projects/${r[`project-name`]==null?`<project-name>`:encodeURIComponent(String(r[`project-name`]))}/domains`,pathParams:{"project-name":String(r[`project-name`]??``)},bodyKind:`json`,body:r.body===void 0?d({name:f(r.name,`name`,`text`)}):l(r.body)});return}let c=await i(r),u=r.local?e:await t();if(r.accountId=u,r.body){let e=l(r.body);a(await s(`Creating`,async()=>c.pages.projects.domains.create({...e,account_id:u,project_name:r[`project-name`]})),{successLabel:`Created`});return}r.name===void 0&&(r.name=await m(`name`,`The domain name.`));let p=d({name:f(r.name,`name`,`text`)});a(await s(`Creating`,async()=>c.pages.projects.domains.create({...p,account_id:u,project_name:r[`project-name`]})),{successLabel:`Created`})})};function J(e){return e.positional(`domain-name`,{type:`string`,description:`The domain name.`,demandOption:!0}).option(`project-name`,{type:`string`,description:`Name of the project.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Y={command:`delete <domain-name>`,describe:`Delete a Pages project's domain.`,builder:J,handler:async r=>c({command:`pages projects domains delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf pages projects domains delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pages/projects/${r[`project-name`]==null?`<project-name>`:encodeURIComponent(String(r[`project-name`]))}/domains/${r[`domain-name`]==null?`<domain-name>`:encodeURIComponent(String(r[`domain-name`]))}`,pathParams:{"domain-name":String(r[`domain-name`]??``),"project-name":String(r[`project-name`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await t();if(r.accountId=l,!await g({force:!!r.force})){process.stderr.write(`Aborted.
11
+ `);return}a(await s(`Deleting`,async()=>c.pages.projects.domains.delete({account_id:l,project_name:r[`project-name`],domain_name:r[`domain-name`]})),{successLabel:`Deleted`})})};function X(e){return e.positional(`domain-name`,{type:`string`,description:`The domain name.`,demandOption:!0}).option(`project-name`,{type:`string`,description:`Name of the project.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Z={command:`edit <domain-name>`,describe:`Retry the validation status of a single domain.`,builder:X,handler:async r=>c({command:`pages projects domains edit`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf pages projects domains edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pages/projects/${r[`project-name`]==null?`<project-name>`:encodeURIComponent(String(r[`project-name`]))}/domains/${r[`domain-name`]==null?`<domain-name>`:encodeURIComponent(String(r[`domain-name`]))}`,pathParams:{"domain-name":String(r[`domain-name`]??``),"project-name":String(r[`project-name`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await t();r.accountId=l,a(await s(`Updating`,async()=>c.pages.projects.domains.edit({account_id:l,project_name:r[`project-name`],domain_name:r[`domain-name`]})),{successLabel:`Updated`})})};function Q(e){return e.positional(`domain-name`,{type:`string`,description:`The domain name.`,demandOption:!0}).option(`project-name`,{type:`string`,description:`Name of the project.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ne={command:`get <domain-name>`,describe:`Fetch a single domain.`,builder:Q,handler:async r=>c({command:`pages projects domains get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf pages projects domains get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pages/projects/${r[`project-name`]==null?`<project-name>`:encodeURIComponent(String(r[`project-name`]))}/domains/${r[`domain-name`]==null?`<domain-name>`:encodeURIComponent(String(r[`domain-name`]))}`,pathParams:{"domain-name":String(r[`domain-name`]??``),"project-name":String(r[`project-name`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await t();r.accountId=l,a(await s(`Loading`,async()=>c.pages.projects.domains.get({account_id:l,project_name:r[`project-name`],domain_name:r[`domain-name`]})),{successLabel:`Loaded`})})};function re(e){return e.option(`project-name`,{type:`string`,description:`Name of the project.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ie={command:`list`,describe:`Fetch a list of all domains associated with a Pages project.`,builder:re,handler:async r=>c({command:`pages projects domains list`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf pages projects domains list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pages/projects/${r[`project-name`]==null?`<project-name>`:encodeURIComponent(String(r[`project-name`]))}/domains`,pathParams:{"project-name":String(r[`project-name`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await t();r.accountId=l,a(await s(`Loading`,async()=>c.pages.projects.domains.list({account_id:l,project_name:r[`project-name`]})),{successLabel:`Loaded`})})},ae={command:`domains`,describe:`Operations for projects.domains`,builder:e=>e.command(q).command(Y).command(Z).command(ne).command(ie).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function oe(e){return e.positional(`project-name`,{type:`string`,description:`Name of the project.`,demandOption:!0}).option(`build-config-build-caching`,{type:`boolean`,description:`Enable build caching for the project.`}).option(`build-config-build-command`,{type:`string`,description:`Command used to build project.`}).option(`build-config-destination-dir`,{type:`string`,description:`Output directory of the build.`}).option(`build-config-root-dir`,{type:`string`,description:`Directory to run the command.`}).option(`build-config-web-analytics-tag`,{type:`string`,description:`The classifying tag for analytics.`}).option(`build-config-web-analytics-token`,{type:`string`,description:`The auth token for analytics.`}).option(`deployment-configs-preview-always-use-latest-compatibility-date`,{type:`boolean`,description:`Whether to always use the latest compatibility date for Pages Functions.`}).option(`deployment-configs-preview-build-image-major-version`,{type:`number`,description:`The major version of the build image to use for Pages Functions.`}).option(`deployment-configs-preview-compatibility-date`,{type:`string`,description:`Compatibility date used for Pages Functions.`}).option(`deployment-configs-preview-compatibility-flags`,{type:`string`,array:!0,description:`Compatibility flags used for Pages Functions.`}).option(`deployment-configs-preview-fail-open`,{type:`boolean`,description:`Whether to fail open when the deployment config cannot be applied.`}).option(`deployment-configs-preview-limits-cpu-ms`,{type:`number`,description:`CPU time limit in milliseconds.`}).option(`deployment-configs-preview-placement-mode`,{type:`string`,description:`Placement mode.`}).option(`deployment-configs-preview-usage-model`,{type:`string`,description:`The usage model for Pages Functions.`,choices:[`standard`,`bundled`,`unbound`]}).option(`deployment-configs-preview-wrangler-config-hash`,{type:`string`,description:`Hash of the Wrangler configuration used for the deployment.`}).option(`deployment-configs-production-always-use-latest-compatibility-date`,{type:`boolean`,description:`Whether to always use the latest compatibility date for Pages Functions.`}).option(`deployment-configs-production-build-image-major-version`,{type:`number`,description:`The major version of the build image to use for Pages Functions.`}).option(`deployment-configs-production-compatibility-date`,{type:`string`,description:`Compatibility date used for Pages Functions.`}).option(`deployment-configs-production-compatibility-flags`,{type:`string`,array:!0,description:`Compatibility flags used for Pages Functions.`}).option(`deployment-configs-production-fail-open`,{type:`boolean`,description:`Whether to fail open when the deployment config cannot be applied.`}).option(`deployment-configs-production-limits-cpu-ms`,{type:`number`,description:`CPU time limit in milliseconds.`}).option(`deployment-configs-production-placement-mode`,{type:`string`,description:`Placement mode.`}).option(`deployment-configs-production-usage-model`,{type:`string`,description:`The usage model for Pages Functions.`,choices:[`standard`,`bundled`,`unbound`]}).option(`deployment-configs-production-wrangler-config-hash`,{type:`string`,description:`Hash of the Wrangler configuration used for the deployment.`}).option(`name`,{type:`string`,description:`Name of the project.`}).option(`production-branch`,{type:`string`,description:`Production branch of the project. Used to identify production deployments.`}).option(`source-config-deployments-enabled`,{type:`boolean`,description:`Whether to enable automatic deployments when pushing to the source repository.
12
+ When disabled, no deployments (production or preview) will be triggered automatically.
13
+ `}).option(`source-config-owner`,{type:`string`,description:`The owner of the repository.`}).option(`source-config-owner-id`,{type:`string`,description:`The owner ID of the repository.`}).option(`source-config-path-excludes`,{type:`string`,array:!0,description:"A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (`*`) is supported."}).option(`source-config-path-includes`,{type:`string`,array:!0,description:"A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (`*`) is supported."}).option(`source-config-pr-comments-enabled`,{type:`boolean`,description:`Whether to enable PR comments.`}).option(`source-config-preview-branch-excludes`,{type:`string`,array:!0,description:"A list of branches that should not trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`."}).option(`source-config-preview-branch-includes`,{type:`string`,array:!0,description:"A list of branches that should trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`."}).option(`source-config-preview-deployment-setting`,{type:`string`,description:`Controls whether commits to preview branches trigger a preview deployment.`,choices:[`all`,`none`,`custom`]}).option(`source-config-production-branch`,{type:`string`,description:`The production branch of the repository.`}).option(`source-config-production-deployments-enabled`,{type:`boolean`,description:`Whether to trigger a production deployment on commits to the production branch.`}).option(`source-config-repo-id`,{type:`string`,description:`The ID of the repository.`}).option(`source-config-repo-name`,{type:`string`,description:`The name of the repository.`}).option(`source-type`,{type:`string`,description:`The source control management provider.`,choices:[`github`,`gitlab`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).check(e=>{if([`deployment-configs-preview-always-use-latest-compatibility-date`,`deployment-configs-preview-build-image-major-version`,`deployment-configs-preview-compatibility-date`,`deployment-configs-preview-compatibility-flags`,`deployment-configs-preview-fail-open`,`deployment-configs-preview-limits-cpu-ms`,`deployment-configs-preview-placement-mode`,`deployment-configs-preview-usage-model`,`deployment-configs-preview-wrangler-config-hash`,`deployment-configs-production-always-use-latest-compatibility-date`,`deployment-configs-production-build-image-major-version`,`deployment-configs-production-compatibility-date`,`deployment-configs-production-compatibility-flags`,`deployment-configs-production-fail-open`,`deployment-configs-production-limits-cpu-ms`,`deployment-configs-production-placement-mode`,`deployment-configs-production-usage-model`,`deployment-configs-production-wrangler-config-hash`].some(t=>e[t]!==void 0)){let t=[`deployment-configs-preview-limits-cpu-ms`,`deployment-configs-preview-placement-mode`,`deployment-configs-production-limits-cpu-ms`,`deployment-configs-production-placement-mode`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --deployment_configs-* flag is set`)}return!0}).check(e=>{if([`source-config-deployments-enabled`,`source-config-owner`,`source-config-owner-id`,`source-config-path-excludes`,`source-config-path-includes`,`source-config-pr-comments-enabled`,`source-config-preview-branch-excludes`,`source-config-preview-branch-includes`,`source-config-preview-deployment-setting`,`source-config-production-branch`,`source-config-production-deployments-enabled`,`source-config-repo-id`,`source-config-repo-name`,`source-type`].some(t=>e[t]!==void 0)){let t=[`source-type`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --source-* flag is set`)}return!0})}const $={command:`edit <project-name>`,describe:`Set new attributes for an existing project. Modify environment variables. To delete an environment variable, set the key to null.`,builder:oe,handler:async r=>c({command:`pages projects edit`,classification:{safeFlags:[`build-config-build-caching`,`deployment-configs-preview-always-use-latest-compatibility-date`,`deployment-configs-preview-fail-open`,`deployment-configs-preview-usage-model`,`deployment-configs-production-always-use-latest-compatibility-date`,`deployment-configs-production-fail-open`,`deployment-configs-production-usage-model`,`source-config-deployments-enabled`,`source-config-pr-comments-enabled`,`source-config-preview-deployment-setting`,`source-config-production-deployments-enabled`,`source-type`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf pages projects edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pages/projects/${r[`project-name`]==null?`<project-name>`:encodeURIComponent(String(r[`project-name`]))}`,pathParams:{"project-name":String(r[`project-name`]??``)},bodyKind:`json`,body:r.body===void 0?d({build_config:{build_caching:r[`build-config-build-caching`],build_command:f(r[`build-config-build-command`],`build-config-build-command`,`text`),destination_dir:f(r[`build-config-destination-dir`],`build-config-destination-dir`,`text`),root_dir:f(r[`build-config-root-dir`],`build-config-root-dir`,`text`),web_analytics_tag:f(r[`build-config-web-analytics-tag`],`build-config-web-analytics-tag`,`text`),web_analytics_token:f(r[`build-config-web-analytics-token`],`build-config-web-analytics-token`,`text`)},deployment_configs:{preview:{always_use_latest_compatibility_date:r[`deployment-configs-preview-always-use-latest-compatibility-date`],build_image_major_version:r[`deployment-configs-preview-build-image-major-version`],compatibility_date:f(r[`deployment-configs-preview-compatibility-date`],`deployment-configs-preview-compatibility-date`,`text`),compatibility_flags:r[`deployment-configs-preview-compatibility-flags`],fail_open:r[`deployment-configs-preview-fail-open`],limits:{cpu_ms:r[`deployment-configs-preview-limits-cpu-ms`]},placement:{mode:f(r[`deployment-configs-preview-placement-mode`],`deployment-configs-preview-placement-mode`,`text`)},usage_model:f(r[`deployment-configs-preview-usage-model`],`deployment-configs-preview-usage-model`,`text`),wrangler_config_hash:f(r[`deployment-configs-preview-wrangler-config-hash`],`deployment-configs-preview-wrangler-config-hash`,`text`)},production:{always_use_latest_compatibility_date:r[`deployment-configs-production-always-use-latest-compatibility-date`],build_image_major_version:r[`deployment-configs-production-build-image-major-version`],compatibility_date:f(r[`deployment-configs-production-compatibility-date`],`deployment-configs-production-compatibility-date`,`text`),compatibility_flags:r[`deployment-configs-production-compatibility-flags`],fail_open:r[`deployment-configs-production-fail-open`],limits:{cpu_ms:r[`deployment-configs-production-limits-cpu-ms`]},placement:{mode:f(r[`deployment-configs-production-placement-mode`],`deployment-configs-production-placement-mode`,`text`)},usage_model:f(r[`deployment-configs-production-usage-model`],`deployment-configs-production-usage-model`,`text`),wrangler_config_hash:f(r[`deployment-configs-production-wrangler-config-hash`],`deployment-configs-production-wrangler-config-hash`,`text`)}},name:f(r.name,`name`,`text`),production_branch:f(r[`production-branch`],`production-branch`,`text`),source:{config:{deployments_enabled:r[`source-config-deployments-enabled`],owner:f(r[`source-config-owner`],`source-config-owner`,`text`),owner_id:f(r[`source-config-owner-id`],`source-config-owner-id`,`text`),path_excludes:r[`source-config-path-excludes`],path_includes:r[`source-config-path-includes`],pr_comments_enabled:r[`source-config-pr-comments-enabled`],preview_branch_excludes:r[`source-config-preview-branch-excludes`],preview_branch_includes:r[`source-config-preview-branch-includes`],preview_deployment_setting:f(r[`source-config-preview-deployment-setting`],`source-config-preview-deployment-setting`,`text`),production_branch:f(r[`source-config-production-branch`],`source-config-production-branch`,`text`),production_deployments_enabled:r[`source-config-production-deployments-enabled`],repo_id:f(r[`source-config-repo-id`],`source-config-repo-id`,`text`),repo_name:f(r[`source-config-repo-name`],`source-config-repo-name`,`text`)},type:f(r[`source-type`],`source-type`,`text`)}}):l(r.body)});return}let c=await i(r),u=r.local?e:await t();if(r.accountId=u,r.body){let e=l(r.body);a(await s(`Updating`,async()=>c.pages.projects.edit({...e,account_id:u,project_name:r[`project-name`]})),{successLabel:`Updated`});return}let p=d({build_config:{build_caching:r[`build-config-build-caching`],build_command:f(r[`build-config-build-command`],`build-config-build-command`,`text`),destination_dir:f(r[`build-config-destination-dir`],`build-config-destination-dir`,`text`),root_dir:f(r[`build-config-root-dir`],`build-config-root-dir`,`text`),web_analytics_tag:f(r[`build-config-web-analytics-tag`],`build-config-web-analytics-tag`,`text`),web_analytics_token:f(r[`build-config-web-analytics-token`],`build-config-web-analytics-token`,`text`)},deployment_configs:{preview:{always_use_latest_compatibility_date:r[`deployment-configs-preview-always-use-latest-compatibility-date`],build_image_major_version:r[`deployment-configs-preview-build-image-major-version`],compatibility_date:f(r[`deployment-configs-preview-compatibility-date`],`deployment-configs-preview-compatibility-date`,`text`),compatibility_flags:r[`deployment-configs-preview-compatibility-flags`],fail_open:r[`deployment-configs-preview-fail-open`],limits:{cpu_ms:r[`deployment-configs-preview-limits-cpu-ms`]},placement:{mode:f(r[`deployment-configs-preview-placement-mode`],`deployment-configs-preview-placement-mode`,`text`)},usage_model:f(r[`deployment-configs-preview-usage-model`],`deployment-configs-preview-usage-model`,`text`),wrangler_config_hash:f(r[`deployment-configs-preview-wrangler-config-hash`],`deployment-configs-preview-wrangler-config-hash`,`text`)},production:{always_use_latest_compatibility_date:r[`deployment-configs-production-always-use-latest-compatibility-date`],build_image_major_version:r[`deployment-configs-production-build-image-major-version`],compatibility_date:f(r[`deployment-configs-production-compatibility-date`],`deployment-configs-production-compatibility-date`,`text`),compatibility_flags:r[`deployment-configs-production-compatibility-flags`],fail_open:r[`deployment-configs-production-fail-open`],limits:{cpu_ms:r[`deployment-configs-production-limits-cpu-ms`]},placement:{mode:f(r[`deployment-configs-production-placement-mode`],`deployment-configs-production-placement-mode`,`text`)},usage_model:f(r[`deployment-configs-production-usage-model`],`deployment-configs-production-usage-model`,`text`),wrangler_config_hash:f(r[`deployment-configs-production-wrangler-config-hash`],`deployment-configs-production-wrangler-config-hash`,`text`)}},name:f(r.name,`name`,`text`),production_branch:f(r[`production-branch`],`production-branch`,`text`),source:{config:{deployments_enabled:r[`source-config-deployments-enabled`],owner:f(r[`source-config-owner`],`source-config-owner`,`text`),owner_id:f(r[`source-config-owner-id`],`source-config-owner-id`,`text`),path_excludes:r[`source-config-path-excludes`],path_includes:r[`source-config-path-includes`],pr_comments_enabled:r[`source-config-pr-comments-enabled`],preview_branch_excludes:r[`source-config-preview-branch-excludes`],preview_branch_includes:r[`source-config-preview-branch-includes`],preview_deployment_setting:f(r[`source-config-preview-deployment-setting`],`source-config-preview-deployment-setting`,`text`),production_branch:f(r[`source-config-production-branch`],`source-config-production-branch`,`text`),production_deployments_enabled:r[`source-config-production-deployments-enabled`],repo_id:f(r[`source-config-repo-id`],`source-config-repo-id`,`text`),repo_name:f(r[`source-config-repo-name`],`source-config-repo-name`,`text`)},type:f(r[`source-type`],`source-type`,`text`)}});a(await s(`Updating`,async()=>c.pages.projects.edit({...p,account_id:u,project_name:r[`project-name`]})),{successLabel:`Updated`})})};function se(e){return e.positional(`project-name`,{type:`string`,description:`Name of the project.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ce={command:`get-upload-token <project-name>`,describe:`Get a short-lived JWT for Pages Direct Upload asset operations.`,builder:se,handler:async r=>c({command:`pages projects get-upload-token`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf pages projects get-upload-token`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pages/projects/${r[`project-name`]==null?`<project-name>`:encodeURIComponent(String(r[`project-name`]))}/upload-token`,pathParams:{"project-name":String(r[`project-name`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await t();r.accountId=l,a(await s(`Loading`,async()=>c.pages.projects.getUploadToken({account_id:l,project_name:r[`project-name`]})),{successLabel:`Loaded`})})};function le(e){return e.positional(`project-name`,{type:`string`,description:`Name of the project.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ue={command:`get <project-name>`,describe:`Fetch a project by name.`,builder:le,handler:async r=>c({command:`pages projects get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf pages projects get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pages/projects/${r[`project-name`]==null?`<project-name>`:encodeURIComponent(String(r[`project-name`]))}`,pathParams:{"project-name":String(r[`project-name`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await t();r.accountId=l,a(await s(`Loading`,async()=>c.pages.projects.get({account_id:l,project_name:r[`project-name`]})),{successLabel:`Loaded`})})};function de(e){return e.option(`page`,{type:`number`,description:`Which page of projects to fetch.`}).option(`per-page`,{type:`number`,description:`How many projects to return per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const fe={command:`list`,describe:`Fetch a list of all user projects.`,builder:de,handler:async r=>c({command:`pages projects list`,classification:{safeFlags:[`dry-run`]}},r,async()=>{let c={page:r.page,per_page:r[`per-page`]};if(r.dryRun){o({command:`cf pages projects list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pages/projects`,pathParams:{},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await t();r.accountId=u,a(await s(`Loading`,async()=>l.pages.projects.list({account_id:u,...c})),{successLabel:`Loaded`})})};function pe(e){return e.positional(`project-name`,{type:`string`,description:`Name of the project.`,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 me={command:`purge-build-cache <project-name>`,describe:`Purge all cached build artifacts for a Pages project`,builder:pe,handler:async r=>c({command:`pages projects purge-build-cache`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf pages projects purge-build-cache`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pages/projects/${r[`project-name`]==null?`<project-name>`:encodeURIComponent(String(r[`project-name`]))}/purge_build_cache`,pathParams:{"project-name":String(r[`project-name`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await t();if(r.accountId=l,!await g({force:!!r.force,message:`This operation purges the build cache for a Pages project.`})){process.stderr.write(`Aborted.
14
+ `);return}a(await s(`Deleting`,async()=>c.pages.projects.purgeBuildCache({account_id:l,project_name:r[`project-name`]})),{successLabel:`Deleted`})})},he={command:`projects`,describe:`Pages projects, deployments, build logs, and custom domain bindings`,builder:e=>e.command(v).command(b).command(S).command(G).command($).command(ue).command(ce).command(fe).command(me).command(U).command(ae).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ge={command:`pages`,describe:`Full-stack application hosting with Git-integrated builds, preview deployments, and custom domains`,builder:e=>e.command(he).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{ge as default};
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import{t as e}from"./local-C6XsFD_W.mjs";import{f as t,g as n,h as r}from"./oauth-DH3kMXSs.mjs";import{r as i}from"./auth-tvDdC1J-.mjs";import{t as a}from"./output-COcSQsfn.mjs";import{t as o}from"./dry-run-DiVy1lVo.mjs";import{t as s}from"./progress-V6SZV3Ux.mjs";import{t as c}from"./run-CRfinkSe.mjs";import"./telemetry-Ch1vCICm.mjs";import{n as l,r as u,t as d}from"./body-parser-DIlfApuJ.mjs";import{n as f}from"./prompt-DjRTpML4.mjs";import{t as p}from"./cli-types-CrSoSMPF.mjs";function m(e){return e.option(`enabled`,{type:`boolean`,description:`The enabled field`}).option(`price-usd-microcents`,{type:`number`,description:`Price in microcents 1 USD = 100,000,000 microcents. Must be 0 or a multiple of 100,000 $0.001. Range: $0.001–$9,999.999.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Data for setting flag on zones`})}const h={command:`create`,describe:`Creates the pay-per-crawl config for a zone.`,builder:m,handler:async e=>c({command:`pay-per-crawl config create`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf pay-per-crawl config create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/pay-per-crawl/configuration`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({enabled:e.enabled,price_usd_microcents:e[`price-usd-microcents`]}):l(e.body)});return}let t=await i(e),n=await r({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,e.body){let r=l(e.body);a(await s(`Creating`,async()=>t.payPerCrawl.config.create({body:r,zone_id:n})),{successLabel:`Created`});return}let c=d({enabled:e.enabled,price_usd_microcents:e[`price-usd-microcents`]});a(await s(`Creating`,async()=>t.payPerCrawl.config.create({body:c,zone_id:n})),{successLabel:`Created`})})};function g(e){return e.option(`enabled`,{type:`boolean`,description:`The enabled field`}).option(`price-usd-microcents`,{type:`number`,description:`Price in microcents 1 USD = 100,000,000 microcents. Must be 0 or a multiple of 100,000 $0.001. Range: $0.001–$9,999.999.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Data for setting flag on zones`})}const _={command:`edit`,describe:`Changes the pay-per-crawl config for a zone.`,builder:g,handler:async e=>c({command:`pay-per-crawl config edit`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf pay-per-crawl config edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/pay-per-crawl/configuration`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({enabled:e.enabled,price_usd_microcents:e[`price-usd-microcents`]}):l(e.body)});return}let t=await i(e),n=await r({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,e.body){let r=l(e.body);a(await s(`Updating`,async()=>t.payPerCrawl.config.edit({body:r,zone_id:n})),{successLabel:`Updated`});return}let c=d({enabled:e.enabled,price_usd_microcents:e[`price-usd-microcents`]});a(await s(`Updating`,async()=>t.payPerCrawl.config.edit({body:c,zone_id:n})),{successLabel:`Updated`})})};function v(e){return e.option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const y={command:`get`,describe:`Gets the pay-per-crawl config for a zone including the bot configuration.`,builder:v,handler:async e=>c({command:`pay-per-crawl config get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf pay-per-crawl config get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/pay-per-crawl/configuration`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await i(e),n=await r({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n,a(await s(`Loading`,async()=>t.payPerCrawl.config.get({zone_id:n})),{successLabel:`Loaded`})})},b={command:`config`,describe:`Operations for config`,builder:e=>e.command(h).command(_).command(y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function x(e){return e.option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`create`,describe:`Creates the stripe config for a crawler.`,builder:x,handler:async r=>c({command:`pay-per-crawl crawler stripe create`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf pay-per-crawl crawler stripe create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pay-per-crawl/crawler/stripe`,pathParams:{},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await t();r.accountId=l,a(await s(`Creating`,async()=>c.payPerCrawl.crawler.stripe.create({account_id:l})),{successLabel:`Created`})})};function C(e){return e.option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const w={command:`delete`,describe:`Deletes the stripe config for a crawler.`,builder:C,handler:async r=>c({command:`pay-per-crawl crawler stripe delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf pay-per-crawl crawler stripe delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pay-per-crawl/crawler/stripe`,pathParams:{},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await t();if(r.accountId=l,!await f({force:!!r.force})){process.stderr.write(`Aborted.
3
+ `);return}a(await s(`Deleting`,async()=>c.payPerCrawl.crawler.stripe.delete({account_id:l})),{successLabel:`Deleted`})})};function T(e){return e.option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`get`,describe:`Gets the stripe config for a crawler.`,builder:T,handler:async r=>c({command:`pay-per-crawl crawler stripe get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf pay-per-crawl crawler stripe get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pay-per-crawl/crawler/stripe`,pathParams:{},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await t();r.accountId=l,a(await s(`Loading`,async()=>c.payPerCrawl.crawler.stripe.get({account_id:l})),{successLabel:`Loaded`})})},D={command:`stripe`,describe:`Operations for crawler.stripe`,builder:e=>e.command(S).command(w).command(E).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},O={command:`crawler`,describe:`Operations for crawler`,builder:e=>e.command(D).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function k(e){return e.option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const A={command:`list`,describe:`Lists the crawlers known to pay-per-crawl.`,builder:k,handler:async r=>c({command:`pay-per-crawl crawlers list`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf pay-per-crawl crawlers list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pay-per-crawl/crawlers`,pathParams:{},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await t();r.accountId=l,a(await s(`Loading`,async()=>c.payPerCrawl.crawlers.list({account_id:l})),{successLabel:`Loaded`})})},j={command:`crawlers`,describe:`Operations for crawlers`,builder:e=>e.command(A).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function M(e){return e.option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const N={command:`create`,describe:`Creates the stripe config for a publisher.`,builder:M,handler:async r=>c({command:`pay-per-crawl publisher stripe create`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf pay-per-crawl publisher stripe create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pay-per-crawl/publisher/stripe`,pathParams:{},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await t();r.accountId=l,a(await s(`Creating`,async()=>c.payPerCrawl.publisher.stripe.create({account_id:l})),{successLabel:`Created`})})};function P(e){return e.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 ee={command:`delete`,describe:`Deletes the stripe config for a publisher.`,builder:P,handler:async r=>c({command:`pay-per-crawl publisher stripe delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf pay-per-crawl publisher stripe delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pay-per-crawl/publisher/stripe`,pathParams:{},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await t();if(r.accountId=l,!await f({force:!!r.force})){process.stderr.write(`Aborted.
4
+ `);return}a(await s(`Deleting`,async()=>c.payPerCrawl.publisher.stripe.delete({account_id:l})),{successLabel:`Deleted`})})};function F(e){return e.option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const I={command:`get`,describe:`Gets the stripe config for a publisher.`,builder:F,handler:async r=>c({command:`pay-per-crawl publisher stripe get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf pay-per-crawl publisher stripe get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pay-per-crawl/publisher/stripe`,pathParams:{},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await t();r.accountId=l,a(await s(`Loading`,async()=>c.payPerCrawl.publisher.stripe.get({account_id:l})),{successLabel:`Loaded`})})},L={command:`stripe`,describe:`Operations for publisher.stripe`,builder:e=>e.command(N).command(ee).command(I).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},R={command:`publisher`,describe:`Operations for publisher`,builder:e=>e.command(L).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function z(e){return e.option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const B={command:`get-signature-link`,describe:`Gets a download link for the account's signed pay-per-crawl terms.`,builder:z,handler:async r=>c({command:`pay-per-crawl terms get-signature-link`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf pay-per-crawl terms get-signature-link`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pay-per-crawl/signature_link`,pathParams:{},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await t();r.accountId=l,a(await s(`Loading`,async()=>c.payPerCrawl.terms.getSignatureLink({account_id:l})),{successLabel:`Loaded`})})};function V(e){return e.option(`remote`,{type:`boolean`,description:`Refresh the signature status from Ironclad.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const H={command:`get-signature`,describe:`Gets the account's pay-per-crawl terms signature status.`,builder:V,handler:async r=>c({command:`pay-per-crawl terms get-signature`,classification:{safeFlags:[`remote`,`dry-run`]}},r,async()=>{let c={remote:r.remote};if(r.dryRun){o({command:`cf pay-per-crawl terms get-signature`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pay-per-crawl/terms/signature`,pathParams:{},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await t();r.accountId=u,a(await s(`Loading`,async()=>l.payPerCrawl.terms.getSignature({account_id:u,...c})),{successLabel:`Loaded`})})};function U(e){return e.option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const W={command:`get`,describe:`Gets the pay-per-crawl terms and conditions contract.`,builder:U,handler:async r=>c({command:`pay-per-crawl terms get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf pay-per-crawl terms get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pay-per-crawl/terms`,pathParams:{},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await t();r.accountId=l,a(await s(`Loading`,async()=>c.payPerCrawl.terms.get({account_id:l})),{successLabel:`Loaded`})})};function G(e){return e.option(`event-type`,{type:`string`,description:`The terms activity to record.`,choices:[`agreed`,`displayed`],demandOption:!0}).option(`vid`,{type:`string`,description:`Ironclad contract version ID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const K={command:`send-signature-event`,describe:`Records that an account displayed or agreed to the pay-per-crawl terms.`,builder:p(G),handler:async r=>c({command:`pay-per-crawl terms send-signature-event`,classification:{safeFlags:[`event-type`,`dry-run`]}},r,async()=>{let c={event_type:r[`event-type`],vid:r.vid};if(r.dryRun){o({command:`cf pay-per-crawl terms send-signature-event`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pay-per-crawl/terms/signature`,pathParams:{},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await t();r.accountId=u,a(await s(`Creating`,async()=>l.payPerCrawl.terms.sendSignatureEvent({account_id:u,...c})),{successLabel:`Created`})})},q={command:`terms`,describe:`Operations for terms`,builder:e=>e.command(W).command(H).command(B).command(K).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function J(e){return e.option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Y={command:`get-can-be-enabled`,describe:`Gets whether pay-per-crawl can be enabled for a zone.`,builder:J,handler:async e=>c({command:`pay-per-crawl zones get-can-be-enabled`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf pay-per-crawl zones get-can-be-enabled`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/pay-per-crawl/can_be_enabled`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await i(e),n=await r({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n,a(await s(`Loading`,async()=>t.payPerCrawl.zones.getCanBeEnabled({zone_id:n})),{successLabel:`Loaded`})})};function X(e){return e.option(`zones`,{type:`string`,array:!0,description:`The zones field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Zone IDs to check for pay-per-crawl eligibility`})}const Z={command:`query-can-be-enabled`,describe:`Provided a list of pay-per-crawl configured zones this method will return whether they can enable PPC or not.`,builder:X,handler:async r=>c({command:`pay-per-crawl zones query-can-be-enabled`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf pay-per-crawl zones query-can-be-enabled`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pay-per-crawl/zones_can_be_enabled/query`,pathParams:{},bodyKind:`json`,body:r.body===void 0?d({zones:r.zones}):l(r.body)});return}let c=await i(r),u=r.local?e:await t();if(r.accountId=u,r.body){let e=l(r.body);a(await s(`Creating`,async()=>c.payPerCrawl.zones.queryCanBeEnabled({...e,account_id:u})),{successLabel:`Created`});return}let f=d({zones:r.zones});a(await s(`Creating`,async()=>c.payPerCrawl.zones.queryCanBeEnabled({...f,account_id:u})),{successLabel:`Created`})})};function Q(e){return e.option(`zones`,{type:`string`,description:`The zones field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Data for setting flag on zones`})}const $={command:`set-can-be-enabled`,describe:`Allows an account admin to set the can_be_enabled setting on a list of zones.`,builder:Q,handler:async r=>c({command:`pay-per-crawl zones set-can-be-enabled`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf pay-per-crawl zones set-can-be-enabled`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pay-per-crawl/zones_can_be_enabled`,pathParams:{},bodyKind:`json`,body:r.body===void 0?d({zones:u(r.zones,`zones`)}):l(r.body)});return}let c=await i(r),f=r.local?e:await t();if(r.accountId=f,r.body){let e=l(r.body);a(await s(`Updating`,async()=>c.payPerCrawl.zones.setCanBeEnabled({body:e,account_id:f})),{successLabel:`Updated`});return}let p=d({zones:u(r.zones,`zones`)});a(await s(`Updating`,async()=>c.payPerCrawl.zones.setCanBeEnabled({body:p,account_id:f})),{successLabel:`Updated`})})},te={command:`zones`,describe:`Operations for zones`,builder:e=>e.command(Y).command(Z).command($).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ne={command:`pay-per-crawl`,describe:`pay-per-crawl`,builder:e=>e.command(b).command(O).command(j).command(R).command(q).command(te).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{ne as default};
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env node
2
+ import{t as e}from"./local-C6XsFD_W.mjs";import{f as t,g as n}from"./oauth-DH3kMXSs.mjs";import{r}from"./auth-tvDdC1J-.mjs";import{t as i}from"./output-COcSQsfn.mjs";import{t as a}from"./dry-run-DiVy1lVo.mjs";import{t as o}from"./progress-V6SZV3Ux.mjs";import{t as s}from"./run-CRfinkSe.mjs";import"./telemetry-Ch1vCICm.mjs";import{n as c,r as l,t as u}from"./body-parser-DIlfApuJ.mjs";import{n as d}from"./input-validation-BxchZ9jE.mjs";import{a as f,i as p,n as m}from"./prompt-DjRTpML4.mjs";function h(e){return e.option(`name`,{type:`string`,description:`Specifies the name of the Pipeline.`}).option(`sql`,{type:`string`,description:`Specifies SQL for the Pipeline processing flow.`}).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 g={command:`create`,describe:`Create a new Pipeline.`,builder:h,handler:async l=>s({command:`pipelines create`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf pipelines create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pipelines/v1/pipelines`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({name:d(l.name,`name`,`text`),sql:d(l.sql,`sql`,`text`)}):c(l.body)});return}let s=await r(l),p=l.local?e:await t();if(l.accountId=p,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.pipelines.create({...e,account_id:p})),{successLabel:`Created`});return}l.name===void 0&&(l.name=await f(`name`,`Specifies the name of the Pipeline.`)),l.sql===void 0&&(l.sql=await f(`sql`,`Specifies SQL for the Pipeline processing flow.`));let m=u({name:d(l.name,`name`,`text`),sql:d(l.sql,`sql`,`text`)});i(await o(`Creating`,async()=>s.pipelines.create({...m,account_id:p})),{successLabel:`Created`})})};function _(e){return e.positional(`pipeline-id`,{type:`string`,description:`Specifies the public ID of the pipeline.`,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 <pipeline-id>`,describe:`Delete Pipeline in Account.`,builder:_,handler:async c=>s({command:`pipelines delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf pipelines delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pipelines/v1/pipelines/${c[`pipeline-id`]==null?`<pipeline-id>`:encodeURIComponent(String(c[`pipeline-id`]))}`,pathParams:{"pipeline-id":String(c[`pipeline-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();if(c.accountId=l,!await m({force:!!c.force})){process.stderr.write(`Aborted.
3
+ `);return}i(await o(`Deleting`,async()=>s.pipelines.delete({account_id:l,pipeline_id:c[`pipeline-id`]})),{successLabel:`Deleted`})})};function y(e){return e.positional(`pipeline-id`,{type:`string`,description:`Specifies the public ID of the pipeline.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const b={command:`get <pipeline-id>`,describe:`Get Pipeline details.`,builder:y,handler:async c=>s({command:`pipelines get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf pipelines get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pipelines/v1/pipelines/${c[`pipeline-id`]==null?`<pipeline-id>`:encodeURIComponent(String(c[`pipeline-id`]))}`,pathParams:{"pipeline-id":String(c[`pipeline-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Loading`,async()=>s.pipelines.get({account_id:l,pipeline_id:c[`pipeline-id`]})),{successLabel:`Loaded`})})};function x(e){return e.option(`destination-batch-max-bytes`,{type:`number`,description:`Specifies rough maximum size of files.`,default:1e8}).option(`destination-batch-max-duration-s`,{type:`number`,description:`Specifies duration to wait to aggregate batches files.`,default:300}).option(`destination-batch-max-rows`,{type:`number`,description:`Specifies rough maximum number of rows per file.`,default:1e7}).option(`destination-compression-type`,{type:`string`,description:`Specifies the desired compression algorithm and format.`,choices:[`none`,`gzip`,`deflate`],default:`gzip`}).option(`destination-credentials-access-key-id`,{type:`string`,description:`Specifies the R2 Bucket Access Key Id.`}).option(`destination-credentials-endpoint`,{type:`string`,description:`Specifies the R2 Endpoint.`}).option(`destination-credentials-secret-access-key`,{type:`string`,description:`Specifies the R2 Bucket Secret Access Key.`}).option(`destination-format`,{type:`string`,description:`Specifies the format of data to deliver.`,choices:[`json`]}).option(`destination-path-bucket`,{type:`string`,description:`Specifies the R2 Bucket to store files.`}).option(`destination-path-filepath`,{type:`string`,description:`Specifies the name pattern for directory.`}).option(`destination-path-prefix`,{type:`string`,description:`Specifies the base directory within the bucket.`}).option(`destination-type`,{type:`string`,description:`Specifies the type of destination.`,choices:[`r2`]}).option(`name`,{type:`string`,description:`Defines the name of the pipeline.`}).option(`source`,{type:`string`,description:`The source field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const S={command:`legacy-create`,describe:`[DEPRECATED] Create a new pipeline. Use the new /pipelines/v1/pipelines endpoint instead.`,builder:x,handler:async m=>s({command:`pipelines legacy-create`,classification:{safeFlags:[`destination-compression-type`,`destination-format`,`destination-type`,`dry-run`]}},m,async()=>{if(m.dryRun){a({command:`cf pipelines legacy-create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pipelines`,pathParams:{},bodyKind:`json`,body:m.body===void 0?u({destination:{batch:{max_bytes:m[`destination-batch-max-bytes`],max_duration_s:m[`destination-batch-max-duration-s`],max_rows:m[`destination-batch-max-rows`]},compression:{type:d(m[`destination-compression-type`],`destination-compression-type`,`text`)},credentials:{access_key_id:d(m[`destination-credentials-access-key-id`],`destination-credentials-access-key-id`,`text`),endpoint:d(m[`destination-credentials-endpoint`],`destination-credentials-endpoint`,`text`),secret_access_key:d(m[`destination-credentials-secret-access-key`],`destination-credentials-secret-access-key`,`text`)},format:d(m[`destination-format`],`destination-format`,`text`),path:{bucket:d(m[`destination-path-bucket`],`destination-path-bucket`,`text`),filepath:d(m[`destination-path-filepath`],`destination-path-filepath`,`text`),prefix:d(m[`destination-path-prefix`],`destination-path-prefix`,`text`)},type:d(m[`destination-type`],`destination-type`,`text`)},name:d(m.name,`name`,`text`),source:l(m.source,`source`)}):c(m.body)});return}let s=await r(m),h=m.local?e:await t();if(m.accountId=h,m.body){let e=c(m.body);i(await o(`Creating`,async()=>s.pipelines.legacyCreate({...e,account_id:h})),{successLabel:`Created`});return}if(m[`destination-credentials-access-key-id`]===void 0&&(m[`destination-credentials-access-key-id`]=await f(`destination-credentials-access-key-id`,`Specifies the R2 Bucket Access Key Id.`)),m[`destination-credentials-endpoint`]===void 0&&(m[`destination-credentials-endpoint`]=await f(`destination-credentials-endpoint`,`Specifies the R2 Endpoint.`)),m[`destination-credentials-secret-access-key`]===void 0&&(m[`destination-credentials-secret-access-key`]=await f(`destination-credentials-secret-access-key`,`Specifies the R2 Bucket Secret Access Key.`)),m[`destination-format`]===void 0&&(m[`destination-format`]=await p(`destination-format`,`Specifies the format of data to deliver.`,[`json`])),m[`destination-path-bucket`]===void 0&&(m[`destination-path-bucket`]=await f(`destination-path-bucket`,`Specifies the R2 Bucket to store files.`)),m[`destination-type`]===void 0&&(m[`destination-type`]=await p(`destination-type`,`Specifies the type of destination.`,[`r2`])),m.name===void 0&&(m.name=await f(`name`,`Defines the name of the pipeline.`)),m.source===void 0)throw Error(`--source is required (or pass --body with this field set).`);let g=u({destination:{batch:{max_bytes:m[`destination-batch-max-bytes`],max_duration_s:m[`destination-batch-max-duration-s`],max_rows:m[`destination-batch-max-rows`]},compression:{type:d(m[`destination-compression-type`],`destination-compression-type`,`text`)},credentials:{access_key_id:d(m[`destination-credentials-access-key-id`],`destination-credentials-access-key-id`,`text`),endpoint:d(m[`destination-credentials-endpoint`],`destination-credentials-endpoint`,`text`),secret_access_key:d(m[`destination-credentials-secret-access-key`],`destination-credentials-secret-access-key`,`text`)},format:d(m[`destination-format`],`destination-format`,`text`),path:{bucket:d(m[`destination-path-bucket`],`destination-path-bucket`,`text`),filepath:d(m[`destination-path-filepath`],`destination-path-filepath`,`text`),prefix:d(m[`destination-path-prefix`],`destination-path-prefix`,`text`)},type:d(m[`destination-type`],`destination-type`,`text`)},name:d(m.name,`name`,`text`),source:l(m.source,`source`)});i(await o(`Creating`,async()=>s.pipelines.legacyCreate({...g,account_id:h})),{successLabel:`Created`})})};function C(e){return e.positional(`pipeline-name`,{type:`string`,description:`Defines the name of the pipeline.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const w={command:`legacy-delete <pipeline-name>`,describe:`[DEPRECATED] Delete a pipeline. Use the new /pipelines/v1/pipelines endpoint instead.`,builder:C,handler:async c=>s({command:`pipelines legacy-delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf pipelines legacy-delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pipelines/${c[`pipeline-name`]==null?`<pipeline-name>`:encodeURIComponent(String(c[`pipeline-name`]))}`,pathParams:{"pipeline-name":String(c[`pipeline-name`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();if(c.accountId=l,!await m({force:!!c.force})){process.stderr.write(`Aborted.
4
+ `);return}i(await o(`Deleting`,async()=>s.pipelines.legacyDelete({account_id:l,pipeline_name:c[`pipeline-name`]})),{successLabel:`Deleted`})})};function T(e){return e.positional(`pipeline-name`,{type:`string`,description:`Defines the name of the pipeline.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`legacy-get <pipeline-name>`,describe:`[DEPRECATED] Get configuration of a pipeline. Use the new /pipelines/v1/pipelines endpoint instead.`,builder:T,handler:async c=>s({command:`pipelines legacy-get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf pipelines legacy-get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pipelines/${c[`pipeline-name`]==null?`<pipeline-name>`:encodeURIComponent(String(c[`pipeline-name`]))}`,pathParams:{"pipeline-name":String(c[`pipeline-name`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Loading`,async()=>s.pipelines.legacyGet({account_id:l,pipeline_name:c[`pipeline-name`]})),{successLabel:`Loaded`})})};function D(e){return e.option(`search`,{type:`string`,description:`Specifies the prefix of pipeline name to search.`}).option(`page`,{type:`string`,description:`Specifies which page to retrieve.`}).option(`per-page`,{type:`string`,description:`Specifies the number of pipelines per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const O={command:`legacy-list`,describe:`[DEPRECATED] List, filter, and paginate pipelines in an account. Use the new /pipelines/v1/pipelines endpoint instead.`,builder:D,handler:async c=>s({command:`pipelines legacy-list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={search:c.search,page:c.page,per_page:c[`per-page`]};if(c.dryRun){a({command:`cf pipelines legacy-list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pipelines`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await t();c.accountId=u,i(await o(`Loading`,async()=>l.pipelines.legacyList({account_id:u,...s})),{successLabel:`Loaded`})})};function k(e){return e.positional(`pipeline-name`,{type:`string`,description:`Defines the name of the pipeline.`,demandOption:!0}).option(`destination-batch-max-bytes`,{type:`number`,description:`Specifies rough maximum size of files.`}).option(`destination-batch-max-duration-s`,{type:`number`,description:`Specifies duration to wait to aggregate batches files.`}).option(`destination-batch-max-rows`,{type:`number`,description:`Specifies rough maximum number of rows per file.`}).option(`destination-compression-type`,{type:`string`,description:`Specifies the desired compression algorithm and format.`,choices:[`none`,`gzip`,`deflate`]}).option(`destination-credentials-access-key-id`,{type:`string`,description:`Specifies the R2 Bucket Access Key Id.`}).option(`destination-credentials-endpoint`,{type:`string`,description:`Specifies the R2 Endpoint.`}).option(`destination-credentials-secret-access-key`,{type:`string`,description:`Specifies the R2 Bucket Secret Access Key.`}).option(`destination-format`,{type:`string`,description:`Specifies the format of data to deliver.`,choices:[`json`]}).option(`destination-path-bucket`,{type:`string`,description:`Specifies the R2 Bucket to store files.`}).option(`destination-path-filepath`,{type:`string`,description:`Specifies the name pattern for directory.`}).option(`destination-path-prefix`,{type:`string`,description:`Specifies the base directory within the bucket.`}).option(`destination-type`,{type:`string`,description:`Specifies the type of destination.`,choices:[`r2`]}).option(`name`,{type:`string`,description:`Defines the name of the pipeline.`}).option(`source`,{type:`string`,description:`The source field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const A={command:`legacy-update <pipeline-name>`,describe:`[DEPRECATED] Update an existing pipeline. Use the new /pipelines/v1/pipelines endpoint instead.`,builder:k,handler:async m=>s({command:`pipelines legacy-update`,classification:{safeFlags:[`destination-compression-type`,`destination-format`,`destination-type`,`dry-run`]}},m,async()=>{if(m.dryRun){a({command:`cf pipelines legacy-update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pipelines/${m[`pipeline-name`]==null?`<pipeline-name>`:encodeURIComponent(String(m[`pipeline-name`]))}`,pathParams:{"pipeline-name":String(m[`pipeline-name`]??``)},bodyKind:`json`,body:m.body===void 0?u({destination:{batch:{max_bytes:m[`destination-batch-max-bytes`],max_duration_s:m[`destination-batch-max-duration-s`],max_rows:m[`destination-batch-max-rows`]},compression:{type:d(m[`destination-compression-type`],`destination-compression-type`,`text`)},credentials:{access_key_id:d(m[`destination-credentials-access-key-id`],`destination-credentials-access-key-id`,`text`),endpoint:d(m[`destination-credentials-endpoint`],`destination-credentials-endpoint`,`text`),secret_access_key:d(m[`destination-credentials-secret-access-key`],`destination-credentials-secret-access-key`,`text`)},format:d(m[`destination-format`],`destination-format`,`text`),path:{bucket:d(m[`destination-path-bucket`],`destination-path-bucket`,`text`),filepath:d(m[`destination-path-filepath`],`destination-path-filepath`,`text`),prefix:d(m[`destination-path-prefix`],`destination-path-prefix`,`text`)},type:d(m[`destination-type`],`destination-type`,`text`)},name:d(m.name,`name`,`text`),source:l(m.source,`source`)}):c(m.body)});return}let s=await r(m),h=m.local?e:await t();if(m.accountId=h,m.body){let e=c(m.body);i(await o(`Updating`,async()=>s.pipelines.legacyUpdate({...e,account_id:h,pipeline_name:m[`pipeline-name`]})),{successLabel:`Updated`});return}if(m[`destination-credentials-access-key-id`]===void 0&&(m[`destination-credentials-access-key-id`]=await f(`destination-credentials-access-key-id`,`Specifies the R2 Bucket Access Key Id.`)),m[`destination-credentials-endpoint`]===void 0&&(m[`destination-credentials-endpoint`]=await f(`destination-credentials-endpoint`,`Specifies the R2 Endpoint.`)),m[`destination-credentials-secret-access-key`]===void 0&&(m[`destination-credentials-secret-access-key`]=await f(`destination-credentials-secret-access-key`,`Specifies the R2 Bucket Secret Access Key.`)),m[`destination-format`]===void 0&&(m[`destination-format`]=await p(`destination-format`,`Specifies the format of data to deliver.`,[`json`])),m[`destination-path-bucket`]===void 0&&(m[`destination-path-bucket`]=await f(`destination-path-bucket`,`Specifies the R2 Bucket to store files.`)),m[`destination-type`]===void 0&&(m[`destination-type`]=await p(`destination-type`,`Specifies the type of destination.`,[`r2`])),m.name===void 0&&(m.name=await f(`name`,`Defines the name of the pipeline.`)),m.source===void 0)throw Error(`--source is required (or pass --body with this field set).`);let g=u({destination:{batch:{max_bytes:m[`destination-batch-max-bytes`],max_duration_s:m[`destination-batch-max-duration-s`],max_rows:m[`destination-batch-max-rows`]},compression:{type:d(m[`destination-compression-type`],`destination-compression-type`,`text`)},credentials:{access_key_id:d(m[`destination-credentials-access-key-id`],`destination-credentials-access-key-id`,`text`),endpoint:d(m[`destination-credentials-endpoint`],`destination-credentials-endpoint`,`text`),secret_access_key:d(m[`destination-credentials-secret-access-key`],`destination-credentials-secret-access-key`,`text`)},format:d(m[`destination-format`],`destination-format`,`text`),path:{bucket:d(m[`destination-path-bucket`],`destination-path-bucket`,`text`),filepath:d(m[`destination-path-filepath`],`destination-path-filepath`,`text`),prefix:d(m[`destination-path-prefix`],`destination-path-prefix`,`text`)},type:d(m[`destination-type`],`destination-type`,`text`)},name:d(m.name,`name`,`text`),source:l(m.source,`source`)});i(await o(`Updating`,async()=>s.pipelines.legacyUpdate({...g,account_id:h,pipeline_name:m[`pipeline-name`]})),{successLabel:`Updated`})})};function j(e){return e.option(`page`,{type:`number`,description:`Page`}).option(`per-page`,{type:`number`,description:`Per page`}).option(`name`,{type:`string`,description:`Filters pipelines by name (case-insensitive substring).`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const M={command:`list`,describe:`List/Filter Pipelines in Account.`,builder:j,handler:async c=>s({command:`pipelines list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`],name:c.name};if(c.dryRun){a({command:`cf pipelines list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pipelines/v1/pipelines`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await t();c.accountId=u,i(await o(`Loading`,async()=>l.pipelines.list({account_id:u,...s})),{successLabel:`Loaded`})})};function N(e){return e.option(`config-account-id`,{type:`string`,description:`Cloudflare Account ID for the bucket`}).option(`config-bucket`,{type:`string`,description:`R2 Bucket to write to`}).option(`config-credentials-access-key-id`,{type:`string`,description:`Cloudflare Account ID for the bucket`}).option(`config-credentials-secret-access-key`,{type:`string`,description:`Cloudflare Account ID for the bucket`}).option(`config-file-naming-prefix`,{type:`string`,description:`The prefix to use in file name. i.e prefix-<uuid>.parquet`}).option(`config-file-naming-strategy`,{type:`string`,description:`Filename generation strategy.`,choices:[`serial`,`uuid`,`uuid_v7`,`ulid`]}).option(`config-file-naming-suffix`,{type:`string`,description:`This will overwrite the default file suffix. i.e .parquet, use with caution`}).option(`config-jurisdiction`,{type:`string`,description:`Jurisdiction this bucket is hosted in`}).option(`config-partitioning-time-pattern`,{type:`string`,description:`The pattern of the date string`}).option(`config-path`,{type:`string`,description:`Subpath within the bucket to write to`}).option(`config-rolling-policy-file-size-bytes`,{type:`number`,description:`Files will be rolled after reaching this number of bytes`}).option(`config-rolling-policy-inactivity-seconds`,{type:`number`,description:`Number of seconds of inactivity to wait before rolling over to a new file`}).option(`config-rolling-policy-interval-seconds`,{type:`number`,description:`Number of seconds to wait before rolling over to a new file`}).option(`config-namespace`,{type:`string`,description:`Table namespace`}).option(`config-table-name`,{type:`string`,description:`Table name`}).option(`config-token`,{type:`string`,description:`Authentication token`}).option(`format-decimal-encoding`,{type:`string`,description:`The format.decimal_encoding field`,choices:[`number`,`string`,`bytes`]}).option(`format-timestamp-format`,{type:`string`,description:`The format.timestamp_format field`,choices:[`rfc3339`,`unix_millis`]}).option(`format-unstructured`,{type:`boolean`,description:`The format.unstructured field`}).option(`format-compression`,{type:`string`,description:`Specifies the compression applied to JSON sink output.`,choices:[`uncompressed`,`gzip`,`snappy`,`zstd`,`lz4`]}).option(`format-type`,{type:`string`,description:`The format.type field`,choices:[`json`,`parquet`]}).option(`format-row-group-bytes`,{type:`number`,description:`The format.row_group_bytes field`}).option(`name`,{type:`string`,description:`Defines the name of the Sink.`}).option(`schema-inferred`,{type:`boolean`,description:`The schema.inferred field`}).option(`type`,{type:`string`,description:`Specifies the type of sink.`,choices:[`r2`,`r2_data_catalog`]}).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)`}).conflicts(`config-credentials-access-key-id`,[`config-namespace`,`config-table-name`,`config-token`]).conflicts(`config-credentials-secret-access-key`,[`config-namespace`,`config-table-name`,`config-token`]).conflicts(`config-file-naming-prefix`,[`config-namespace`,`config-table-name`,`config-token`]).conflicts(`config-file-naming-strategy`,[`config-namespace`,`config-table-name`,`config-token`]).conflicts(`config-file-naming-suffix`,[`config-namespace`,`config-table-name`,`config-token`]).conflicts(`config-jurisdiction`,[`config-namespace`,`config-table-name`,`config-token`]).conflicts(`config-partitioning-time-pattern`,[`config-namespace`,`config-table-name`,`config-token`]).conflicts(`config-path`,[`config-namespace`,`config-table-name`,`config-token`]).conflicts(`config-namespace`,[`config-credentials-access-key-id`,`config-credentials-secret-access-key`,`config-file-naming-prefix`,`config-file-naming-strategy`,`config-file-naming-suffix`,`config-jurisdiction`,`config-partitioning-time-pattern`,`config-path`]).conflicts(`config-table-name`,[`config-credentials-access-key-id`,`config-credentials-secret-access-key`,`config-file-naming-prefix`,`config-file-naming-strategy`,`config-file-naming-suffix`,`config-jurisdiction`,`config-partitioning-time-pattern`,`config-path`]).implies(`config-table-name`,[`config-token`]).conflicts(`config-token`,[`config-credentials-access-key-id`,`config-credentials-secret-access-key`,`config-file-naming-prefix`,`config-file-naming-strategy`,`config-file-naming-suffix`,`config-jurisdiction`,`config-partitioning-time-pattern`,`config-path`]).implies(`config-token`,[`config-table-name`]).conflicts(`format-decimal-encoding`,[`format-row-group-bytes`]).conflicts(`format-timestamp-format`,[`format-row-group-bytes`]).conflicts(`format-unstructured`,[`format-row-group-bytes`]).conflicts(`format-row-group-bytes`,[`format-decimal-encoding`,`format-timestamp-format`,`format-unstructured`]).check(e=>{if([`config-account-id`,`config-bucket`,`config-credentials-access-key-id`,`config-credentials-secret-access-key`,`config-file-naming-prefix`,`config-file-naming-strategy`,`config-file-naming-suffix`,`config-jurisdiction`,`config-partitioning-time-pattern`,`config-path`,`config-rolling-policy-file-size-bytes`,`config-rolling-policy-inactivity-seconds`,`config-rolling-policy-interval-seconds`,`config-namespace`,`config-table-name`,`config-token`].some(t=>e[t]!==void 0)){let t={"config-credentials-access-key-id":[`config-namespace`,`config-table-name`,`config-token`],"config-credentials-secret-access-key":[`config-namespace`,`config-table-name`,`config-token`]},n=[`config-account-id`,`config-bucket`,`config-credentials-access-key-id`,`config-credentials-secret-access-key`].filter(n=>e[n]===void 0&&!(t[n]??[]).some(t=>e[t]!==void 0));if(n.length>0)throw Error(`${n.map(e=>`--`+e).join(`, `)} ${n.length===1?`is`:`are`} required when any --config-* flag is set`)}return!0}).check(e=>{if([`format-decimal-encoding`,`format-timestamp-format`,`format-unstructured`,`format-compression`,`format-type`,`format-row-group-bytes`].some(t=>e[t]!==void 0)){let t=[`format-type`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --format-* flag is set`)}return!0})}const ee={command:`create`,describe:`Create a new Sink.`,builder:N,handler:async l=>s({command:`pipelines sinks create`,classification:{safeFlags:[`config-file-naming-strategy`,`format-decimal-encoding`,`format-timestamp-format`,`format-unstructured`,`format-compression`,`format-type`,`schema-inferred`,`type`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf pipelines sinks create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pipelines/v1/sinks`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({config:{account_id:d(l[`config-account-id`],`config-account-id`,`text`),bucket:d(l[`config-bucket`],`config-bucket`,`text`),credentials:{access_key_id:d(l[`config-credentials-access-key-id`],`config-credentials-access-key-id`,`text`),secret_access_key:d(l[`config-credentials-secret-access-key`],`config-credentials-secret-access-key`,`text`)},file_naming:{prefix:d(l[`config-file-naming-prefix`],`config-file-naming-prefix`,`text`),strategy:d(l[`config-file-naming-strategy`],`config-file-naming-strategy`,`text`),suffix:d(l[`config-file-naming-suffix`],`config-file-naming-suffix`,`text`)},jurisdiction:d(l[`config-jurisdiction`],`config-jurisdiction`,`text`),partitioning:{time_pattern:d(l[`config-partitioning-time-pattern`],`config-partitioning-time-pattern`,`text`)},path:d(l[`config-path`],`config-path`,`text`),rolling_policy:{file_size_bytes:l[`config-rolling-policy-file-size-bytes`],inactivity_seconds:l[`config-rolling-policy-inactivity-seconds`],interval_seconds:l[`config-rolling-policy-interval-seconds`]},namespace:d(l[`config-namespace`],`config-namespace`,`text`),table_name:d(l[`config-table-name`],`config-table-name`,`text`),token:d(l[`config-token`],`config-token`,`text`)},format:{decimal_encoding:d(l[`format-decimal-encoding`],`format-decimal-encoding`,`text`),timestamp_format:d(l[`format-timestamp-format`],`format-timestamp-format`,`text`),unstructured:l[`format-unstructured`],compression:d(l[`format-compression`],`format-compression`,`text`),type:d(l[`format-type`],`format-type`,`text`),row_group_bytes:l[`format-row-group-bytes`]},name:d(l.name,`name`,`text`),schema:{inferred:l[`schema-inferred`]},type:d(l.type,`type`,`text`)}):c(l.body)});return}let s=await r(l),m=l.local?e:await t();if(l.accountId=m,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.pipelines.sinks.create({...e,account_id:m})),{successLabel:`Created`});return}l.name===void 0&&(l.name=await f(`name`,`Defines the name of the Sink.`)),l.type===void 0&&(l.type=await p(`type`,`Specifies the type of sink.`,[`r2`,`r2_data_catalog`]));let h=u({config:{account_id:d(l[`config-account-id`],`config-account-id`,`text`),bucket:d(l[`config-bucket`],`config-bucket`,`text`),credentials:{access_key_id:d(l[`config-credentials-access-key-id`],`config-credentials-access-key-id`,`text`),secret_access_key:d(l[`config-credentials-secret-access-key`],`config-credentials-secret-access-key`,`text`)},file_naming:{prefix:d(l[`config-file-naming-prefix`],`config-file-naming-prefix`,`text`),strategy:d(l[`config-file-naming-strategy`],`config-file-naming-strategy`,`text`),suffix:d(l[`config-file-naming-suffix`],`config-file-naming-suffix`,`text`)},jurisdiction:d(l[`config-jurisdiction`],`config-jurisdiction`,`text`),partitioning:{time_pattern:d(l[`config-partitioning-time-pattern`],`config-partitioning-time-pattern`,`text`)},path:d(l[`config-path`],`config-path`,`text`),rolling_policy:{file_size_bytes:l[`config-rolling-policy-file-size-bytes`],inactivity_seconds:l[`config-rolling-policy-inactivity-seconds`],interval_seconds:l[`config-rolling-policy-interval-seconds`]},namespace:d(l[`config-namespace`],`config-namespace`,`text`),table_name:d(l[`config-table-name`],`config-table-name`,`text`),token:d(l[`config-token`],`config-token`,`text`)},format:{decimal_encoding:d(l[`format-decimal-encoding`],`format-decimal-encoding`,`text`),timestamp_format:d(l[`format-timestamp-format`],`format-timestamp-format`,`text`),unstructured:l[`format-unstructured`],compression:d(l[`format-compression`],`format-compression`,`text`),type:d(l[`format-type`],`format-type`,`text`),row_group_bytes:l[`format-row-group-bytes`]},name:d(l.name,`name`,`text`),schema:{inferred:l[`schema-inferred`]},type:d(l.type,`type`,`text`)});i(await o(`Creating`,async()=>s.pipelines.sinks.create({...h,account_id:m})),{successLabel:`Created`})})};function P(e){return e.positional(`sink-id`,{type:`string`,description:`Specifies the publid ID of the sink.`,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 F={command:`delete <sink-id>`,describe:`Delete Sink in Account.`,builder:P,handler:async c=>s({command:`pipelines sinks delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf pipelines sinks delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pipelines/v1/sinks/${c[`sink-id`]==null?`<sink-id>`:encodeURIComponent(String(c[`sink-id`]))}`,pathParams:{"sink-id":String(c[`sink-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();if(c.accountId=l,!await m({force:!!c.force})){process.stderr.write(`Aborted.
5
+ `);return}i(await o(`Deleting`,async()=>s.pipelines.sinks.delete({account_id:l,sink_id:c[`sink-id`]})),{successLabel:`Deleted`})})};function I(e){return e.positional(`sink-id`,{type:`string`,description:`Specifies the publid ID of the sink.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const L={command:`get <sink-id>`,describe:`Get Sink Details.`,builder:I,handler:async c=>s({command:`pipelines sinks get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf pipelines sinks get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pipelines/v1/sinks/${c[`sink-id`]==null?`<sink-id>`:encodeURIComponent(String(c[`sink-id`]))}`,pathParams:{"sink-id":String(c[`sink-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Loading`,async()=>s.pipelines.sinks.get({account_id:l,sink_id:c[`sink-id`]})),{successLabel:`Loaded`})})};function R(e){return e.option(`pipeline-id`,{type:`string`,description:`Pipeline ID`}).option(`name`,{type:`string`,description:`Filters sinks by name (case-insensitive substring).`}).option(`page`,{type:`number`,description:`Page`}).option(`per-page`,{type:`number`,description:`Per page`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const z={command:`list`,describe:`List/Filter Sinks in Account.`,builder:R,handler:async c=>s({command:`pipelines sinks list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={pipeline_id:c[`pipeline-id`],name:c.name,page:c.page,per_page:c[`per-page`]};if(c.dryRun){a({command:`cf pipelines sinks list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pipelines/v1/sinks`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await t();c.accountId=u,i(await o(`Loading`,async()=>l.pipelines.sinks.list({account_id:u,...s})),{successLabel:`Loaded`})})},B={command:`sinks`,describe:`Destinations where pipeline data is written — R2 buckets, HTTP endpoints, or other storage`,builder:e=>e.command(ee).command(F).command(L).command(z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function V(e){return e.option(`format-decimal-encoding`,{type:`string`,description:`The format.decimal_encoding field`,choices:[`number`,`string`,`bytes`]}).option(`format-timestamp-format`,{type:`string`,description:`The format.timestamp_format field`,choices:[`rfc3339`,`unix_millis`]}).option(`format-unstructured`,{type:`boolean`,description:`The format.unstructured field`}).option(`format-type`,{type:`string`,description:`The format.type field`,choices:[`json`,`parquet`]}).option(`format-compression`,{type:`string`,description:`The format.compression field`,choices:[`uncompressed`,`snappy`,`gzip`,`zstd`,`lz4`]}).option(`format-row-group-bytes`,{type:`number`,description:`The format.row_group_bytes field`}).option(`http-authentication`,{type:`boolean`,description:`Indicates that authentication is required for the HTTP endpoint.`}).option(`http-cors-origins`,{type:`string`,array:!0,description:`The http.cors.origins field`}).option(`http-enabled`,{type:`boolean`,description:`Indicates that the HTTP endpoint is enabled.`}).option(`name`,{type:`string`,description:`Specifies the name of the Stream.`}).option(`schema-inferred`,{type:`boolean`,description:`The schema.inferred field`}).option(`worker-binding-enabled`,{type:`boolean`,description:`Indicates that the worker binding is enabled.`}).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)`}).conflicts(`format-decimal-encoding`,[`format-compression`,`format-row-group-bytes`]).conflicts(`format-timestamp-format`,[`format-compression`,`format-row-group-bytes`]).conflicts(`format-unstructured`,[`format-compression`,`format-row-group-bytes`]).conflicts(`format-compression`,[`format-decimal-encoding`,`format-timestamp-format`,`format-unstructured`]).conflicts(`format-row-group-bytes`,[`format-decimal-encoding`,`format-timestamp-format`,`format-unstructured`]).check(e=>{if([`format-decimal-encoding`,`format-timestamp-format`,`format-unstructured`,`format-type`,`format-compression`,`format-row-group-bytes`].some(t=>e[t]!==void 0)){let t=[`format-type`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --format-* flag is set`)}return!0}).check(e=>{if([`http-authentication`,`http-cors-origins`,`http-enabled`].some(t=>e[t]!==void 0)){let t=[`http-authentication`,`http-enabled`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --http-* flag is set`)}return!0}).check(e=>{if([`worker-binding-enabled`].some(t=>e[t]!==void 0)){let t=[`worker-binding-enabled`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --worker_binding-* flag is set`)}return!0})}const H={command:`create`,describe:`Create a new Stream.`,builder:V,handler:async l=>s({command:`pipelines streams create`,classification:{safeFlags:[`format-decimal-encoding`,`format-timestamp-format`,`format-unstructured`,`format-type`,`format-compression`,`http-authentication`,`http-enabled`,`schema-inferred`,`worker-binding-enabled`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf pipelines streams create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pipelines/v1/streams`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({format:{decimal_encoding:d(l[`format-decimal-encoding`],`format-decimal-encoding`,`text`),timestamp_format:d(l[`format-timestamp-format`],`format-timestamp-format`,`text`),unstructured:l[`format-unstructured`],type:d(l[`format-type`],`format-type`,`text`),compression:d(l[`format-compression`],`format-compression`,`text`),row_group_bytes:l[`format-row-group-bytes`]},http:{authentication:l[`http-authentication`],cors:{origins:l[`http-cors-origins`]},enabled:l[`http-enabled`]},name:d(l.name,`name`,`text`),schema:{inferred:l[`schema-inferred`]},worker_binding:{enabled:l[`worker-binding-enabled`]}}):c(l.body)});return}let s=await r(l),p=l.local?e:await t();if(l.accountId=p,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.pipelines.streams.create({...e,account_id:p})),{successLabel:`Created`});return}l.name===void 0&&(l.name=await f(`name`,`Specifies the name of the Stream.`));let m=u({format:{decimal_encoding:d(l[`format-decimal-encoding`],`format-decimal-encoding`,`text`),timestamp_format:d(l[`format-timestamp-format`],`format-timestamp-format`,`text`),unstructured:l[`format-unstructured`],type:d(l[`format-type`],`format-type`,`text`),compression:d(l[`format-compression`],`format-compression`,`text`),row_group_bytes:l[`format-row-group-bytes`]},http:{authentication:l[`http-authentication`],cors:{origins:l[`http-cors-origins`]},enabled:l[`http-enabled`]},name:d(l.name,`name`,`text`),schema:{inferred:l[`schema-inferred`]},worker_binding:{enabled:l[`worker-binding-enabled`]}});i(await o(`Creating`,async()=>s.pipelines.streams.create({...m,account_id:p})),{successLabel:`Created`})})};function U(e){return e.positional(`stream-id`,{type:`string`,description:`Specifies the public ID of the stream.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const W={command:`delete <stream-id>`,describe:`Delete Stream in Account.`,builder:U,handler:async c=>s({command:`pipelines streams delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf pipelines streams delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pipelines/v1/streams/${c[`stream-id`]==null?`<stream-id>`:encodeURIComponent(String(c[`stream-id`]))}`,pathParams:{"stream-id":String(c[`stream-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();if(c.accountId=l,!await m({force:!!c.force})){process.stderr.write(`Aborted.
6
+ `);return}i(await o(`Deleting`,async()=>s.pipelines.streams.delete({account_id:l,stream_id:c[`stream-id`]})),{successLabel:`Deleted`})})};function G(e){return e.positional(`stream-id`,{type:`string`,description:`Specifies the public ID of the stream.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const K={command:`get <stream-id>`,describe:`Get Stream Details.`,builder:G,handler:async c=>s({command:`pipelines streams get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf pipelines streams get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pipelines/v1/streams/${c[`stream-id`]==null?`<stream-id>`:encodeURIComponent(String(c[`stream-id`]))}`,pathParams:{"stream-id":String(c[`stream-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Loading`,async()=>s.pipelines.streams.get({account_id:l,stream_id:c[`stream-id`]})),{successLabel:`Loaded`})})};function q(e){return e.option(`pipeline-id`,{type:`string`,description:`Specifies the public ID of the pipeline.`}).option(`name`,{type:`string`,description:`Filters streams by name (case-insensitive substring).`}).option(`page`,{type:`number`,description:`Page`}).option(`per-page`,{type:`number`,description:`Per page`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const J={command:`list`,describe:`List/Filter Streams in Account.`,builder:q,handler:async c=>s({command:`pipelines streams list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={pipeline_id:c[`pipeline-id`],name:c.name,page:c.page,per_page:c[`per-page`]};if(c.dryRun){a({command:`cf pipelines streams list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pipelines/v1/streams`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await t();c.accountId=u,i(await o(`Loading`,async()=>l.pipelines.streams.list({account_id:u,...s})),{successLabel:`Loaded`})})};function Y(e){return e.positional(`stream-id`,{type:`string`,description:`Specifies the public ID of the stream.`,demandOption:!0}).option(`http-authentication`,{type:`boolean`,description:`Indicates that authentication is required for the HTTP endpoint.`}).option(`http-cors-origins`,{type:`string`,array:!0,description:`The http.cors.origins field`}).option(`http-enabled`,{type:`boolean`,description:`Indicates that the HTTP endpoint is enabled.`}).option(`worker-binding-enabled`,{type:`boolean`,description:`Indicates that the worker binding is enabled.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).check(e=>{if([`http-authentication`,`http-cors-origins`,`http-enabled`].some(t=>e[t]!==void 0)){let t=[`http-authentication`,`http-enabled`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --http-* flag is set`)}return!0}).check(e=>{if([`worker-binding-enabled`].some(t=>e[t]!==void 0)){let t=[`worker-binding-enabled`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --worker_binding-* flag is set`)}return!0})}const X={command:`update <stream-id>`,describe:`Update a Stream.`,builder:Y,handler:async l=>s({command:`pipelines streams update`,classification:{safeFlags:[`http-authentication`,`http-enabled`,`worker-binding-enabled`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf pipelines streams update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pipelines/v1/streams/${l[`stream-id`]==null?`<stream-id>`:encodeURIComponent(String(l[`stream-id`]))}`,pathParams:{"stream-id":String(l[`stream-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({http:{authentication:l[`http-authentication`],cors:{origins:l[`http-cors-origins`]},enabled:l[`http-enabled`]},worker_binding:{enabled:l[`worker-binding-enabled`]}}):c(l.body)});return}let s=await r(l),d=l.local?e:await t();if(l.accountId=d,l.body){let e=c(l.body);i(await o(`Updating`,async()=>s.pipelines.streams.update({...e,account_id:d,stream_id:l[`stream-id`]})),{successLabel:`Updated`});return}let f=u({http:{authentication:l[`http-authentication`],cors:{origins:l[`http-cors-origins`]},enabled:l[`http-enabled`]},worker_binding:{enabled:l[`worker-binding-enabled`]}});i(await o(`Updating`,async()=>s.pipelines.streams.update({...f,account_id:d,stream_id:l[`stream-id`]})),{successLabel:`Updated`})})},Z={command:`streams`,describe:`Inbound data streams that feed events into a pipeline for processing`,builder:e=>e.command(H).command(W).command(K).command(J).command(X).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Q(e){return e.option(`sql`,{type:`string`,description:`Specifies SQL to validate.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const $={command:`validate-sql`,describe:`Validates that the Pipelines SQL is correct.`,builder:Q,handler:async l=>s({command:`pipelines validate-sql`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf pipelines validate-sql`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/pipelines/v1/validate_sql`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({sql:d(l.sql,`sql`,`text`)}):c(l.body)});return}let s=await r(l),p=l.local?e:await t();if(l.accountId=p,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.pipelines.validateSql({...e,account_id:p})),{successLabel:`Created`});return}l.sql===void 0&&(l.sql=await f(`sql`,`Specifies SQL to validate.`));let m=u({sql:d(l.sql,`sql`,`text`)});i(await o(`Creating`,async()=>s.pipelines.validateSql({...m,account_id:p})),{successLabel:`Created`})})},te={command:`pipelines`,describe:`Ingest, transform, and route event streams into R2, analytics, or other destinations in real time`,builder:e=>e.command(g).command(v).command(b).command(S).command(w).command(E).command(O).command(A).command(M).command($).command(B).command(Z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{te as default};
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import{h as e}from"./oauth-DH3kMXSs.mjs";import{r as t}from"./auth-tvDdC1J-.mjs";import{t as n}from"./output-COcSQsfn.mjs";import{t as r}from"./dry-run-DiVy1lVo.mjs";import{t as i}from"./progress-V6SZV3Ux.mjs";import{t as a}from"./run-CRfinkSe.mjs";import"./telemetry-Ch1vCICm.mjs";import{n as o,r as s,t as c}from"./body-parser-DIlfApuJ.mjs";import{n as l}from"./input-validation-BxchZ9jE.mjs";function u(e){return e.option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const d={command:`get`,describe:"Retrieve a zone's Precursor configuration: the zone-level `default_mode` and the ordered list of `enforcement_rules`.",builder:u,handler:async o=>a({command:`precursor get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf precursor get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/precursor`,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.precursor.get({zone_id:s})),{successLabel:`Loaded`})})};function f(e){return e.option(`default-mode`,{type:`string`,description:`The zone-level Precursor enforcement mode applied to requests that do
3
+ not match a more specific enforcement rule.
4
+ `,choices:[`off`,`min-friction`,`max-security`]}).option(`enforcement-rules`,{type:`string`,description:`The ordered list of enforcement rules for the zone. 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 p={command:`update`,describe:"Updates the Precursor configuration for a zone. `default_mode` sets the zone-level enforcement mode. `enforcement_rules` is the ordered list of rules that override enforcement for matching requests. This is a partial update: only the fields present in the request body are changed. - Sending an empty array (`[]`) clears all enforcement rules. - At least one of `default_mode` or `enforcement_rules` must be present; an empty body (`{}`) is rejected with `400`. - Rule `id` is read-only (assigned by Cloudflare) and ignored on input. - Rule `mode` must be `min-friction` or `max-security` (`off` is not a valid rule mode; use `default_mode` to disable enforcement). - Rule `expression` is limited to 4000 characters. The limit applies to each rule individually, not to the combined size of all rules.",builder:f,handler:async u=>a({command:`precursor update`,classification:{safeFlags:[`default-mode`,`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf precursor update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/precursor`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?c({default_mode:l(u[`default-mode`],`default-mode`,`text`),enforcement_rules:s(u[`enforcement-rules`],`enforcement-rules`)}):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.precursor.update({body:e,zone_id:d})),{successLabel:`Updated`});return}let f=c({default_mode:l(u[`default-mode`],`default-mode`,`text`),enforcement_rules:s(u[`enforcement-rules`],`enforcement-rules`)});n(await i(`Updating`,async()=>a.precursor.update({body:f,zone_id:d})),{successLabel:`Updated`})})},m={command:`precursor`,describe:`Precursor settings for a zone`,builder:e=>e.command(d).command(p).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{m as default};
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import{c as e,s as t}from"./src-C8phrg-8.mjs";import{s as n}from"./lifecycle-XswDq0ZB.mjs";import{r}from"./theme-CeVf-5qG.mjs";import{a as i}from"./dist-DW5BPGFs.mjs";const a={Hidden:0,Normal:1,Error:2,Indeterminate:3,Warning:4},o=new class{cleanupRegistered=!1;get isDisabled(){return process.env.CF_NO_OSC_PROGRESS===`1`||process.env.CF_QUIET===`1`||e()}get isSupported(){if(this.isDisabled||!process.stderr.isTTY)return!1;if(process.env.CF_FORCE_OSC_PROGRESS===`1`)return!0;let e=process.env.TERM_PROGRAM?.toLowerCase()??``;return!!(e.includes(`ghostty`)||e.includes(`iterm`)||e.includes(`wezterm`)||process.env.WT_SESSION||process.env.ConEmuANSI===`ON`)}setIndeterminate(){this.isSupported&&(this.ensureCleanup(),this.write(a.Indeterminate))}clear(){this.isSupported&&process.stderr.write(`\x1b]9;4;${a.Hidden};0\x07`)}ensureCleanup(){this.cleanupRegistered||(this.cleanupRegistered=!0,process.on(`exit`,()=>{this.clear()}))}write(e){this.isSupported&&process.stderr.write(`\x1b]9;4;${e};0\x07`)}},s=[`⠋`,`⠙`,`⠹`,`⠸`,`⠼`,`⠴`,`⠦`,`⠧`,`⠇`,`⠏`];function c(){return!(!r()||!process.stdout.isTTY||process.env.CF_QUIET===`1`)}async function l(e,r){if(!c())return r();t(n);let a=i({frames:[...s],indicator:`timer`,delay:80});o.setIndeterminate(),a.start(e);try{let t=await r();return o.clear(),a.stop(e),t}catch(t){throw o.clear(),a.error(e),t}}export{l as t};
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import{s as e,t}from"./src-C8phrg-8.mjs";import{s as n}from"./lifecycle-XswDq0ZB.mjs";import{n as r,t as i}from"./theme-CeVf-5qG.mjs";import{f as a,n as o}from"./interactive-_B-EqD0Y.mjs";import{i as s,o as c,r as l,t as u}from"./dist-DW5BPGFs.mjs";function d(e){return e.replace(/[\p{Cc}\p{Cf}\p{Zl}\p{Zp}]/gu,` `)}function f(){e(n)}async function p(){let e=[];for await(let t of process.stdin)e.push(Buffer.from(t));let t=Buffer.concat(e).toString(`utf-8`);return t.endsWith(`
3
+ `)?t.slice(0,-1):t}async function m(e,n,r){let i=r?.kind??`text`;if(o()){if(i===`secret`){let t=await p();if(t.length>0)return t;throw Error(`--${e} is required. Pipe the value via stdin, pass --${e} <value>, or run interactively.`)}throw Error(`--${e} is required. Pass --${e} <value> or run interactively.`)}let s=`Enter value for --${e}`,u=n||r?.question||s,d=e=>e&&e.length>0?r?.validate?.(e):`Value cannot be empty`;f();let m=i===`secret`?await l({message:u,mask:`•`,validate:d}):await c({message:u,validate:d});if(a(m)||typeof m!=`string`)throw new t(130);return m}async function h(e,n,r,i={}){let c=d(e),l=r.map(d);if(o())throw Error(`--${c} is required (one of: ${l.join(`, `)}). Pass --${c} <value> or run interactively.`);let u=`Select value for --${c}`,p=d(n||u);f();let m=await s({message:p,options:r.map(e=>({value:e,label:d((Object.hasOwn(i,e)?i[e]:void 0)??e)}))});if(a(m)||typeof m!=`string`)throw new t(130);return m}async function g(e,n){if(o())throw Error(`--${e} is required and must be true. Pass --${e} or run interactively.`);f();let r=await u({message:n||`Confirm --${e}`,initialValue:!1});if(a(r))throw new t(130);return r===!0}async function _(e,{defaultValue:n=!0,fallbackValue:r=!0}={}){if(o())return process.stderr.write(`? ${e}\n Using fallback value in non-interactive context: ${r?`yes`:`no`}\n`),r;f();let i=await u({message:e,initialValue:n});if(a(i))throw new t(130);return i===!0}async function v(e={}){if(e.force===!0)return!0;let n=e.message?`${e.message} Continue?`:`This permanently deletes the resource. Continue?`;if(o()){let e=r();return process.stderr.write(`${e.hex(i.warning)(`?`)} ${n}\n ${e.dim(`(non-interactive; pass --force to confirm)`)}\n`),!1}f();let s=await u({message:n,initialValue:!1});if(a(s))throw new t(130);return s===!0}export{m as a,h as i,v as n,d as o,g as r,_ as t};
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import{t as e}from"./local-C6XsFD_W.mjs";import{f as t,g as n}from"./oauth-DH3kMXSs.mjs";import{r}from"./auth-tvDdC1J-.mjs";import{t as i}from"./output-COcSQsfn.mjs";import{t as a}from"./dry-run-DiVy1lVo.mjs";import{t as o}from"./progress-V6SZV3Ux.mjs";import{t as s}from"./run-CRfinkSe.mjs";import"./telemetry-Ch1vCICm.mjs";import{n as c,r as l,t as u}from"./body-parser-DIlfApuJ.mjs";import{n as d}from"./input-validation-BxchZ9jE.mjs";import{n as f}from"./prompt-DjRTpML4.mjs";function p(e){return e.option(`queries`,{type:`string`,description:`The queries field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const m={command:`create`,describe:`Return a success message after creating new saved string queries in bulk`,builder:p,handler:async d=>s({command:`queries bulk create`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf queries bulk create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/brand-protection/queries/bulk`,pathParams:{},bodyKind:`json`,body:d.body===void 0?u({queries:l(d.queries,`queries`)}):c(d.body)});return}let s=await r(d),f=d.local?e:await t();if(d.accountId=f,d.body){let e=c(d.body);i(await o(`Creating`,async()=>s.queries.bulk.create({...e,account_id:f})),{successLabel:`Created`});return}let p=u({queries:l(d.queries,`queries`)});i(await o(`Creating`,async()=>s.queries.bulk.create({...p,account_id:f})),{successLabel:`Created`})})},h={command:`bulk`,describe:`Operations for bulk`,builder:e=>e.command(m).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function g(e){return e.option(`id`,{type:`string`,description:`ID`}).option(`max-time`,{type:`string`,description:`The max_time field`}).option(`min-time`,{type:`string`,description:`The min_time field`}).option(`scan`,{type:`boolean`,description:`The scan field`}).option(`tag`,{type:`string`,description:`The tag field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const _={command:`create`,describe:`Return a success message after creating new saved string queries`,builder:g,handler:async l=>s({command:`queries create`,classification:{safeFlags:[`scan`,`dry-run`]}},l,async()=>{let s={id:l.id};if(l.dryRun){a({command:`cf queries create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/brand-protection/queries`,pathParams:{},query:s,bodyKind:`json`,body:l.body===void 0?u({max_time:d(l[`max-time`],`max-time`,`text`),min_time:d(l[`min-time`],`min-time`,`text`),scan:l.scan,tag:d(l.tag,`tag`,`text`)}):c(l.body)});return}let f=await r(l),p=l.local?e:await t();if(l.accountId=p,l.body){let e=c(l.body);new URLSearchParams(Object.entries(s).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString(),i(await o(`Creating`,async()=>f.queries.create({...e,account_id:p,...s})),{successLabel:`Created`});return}let m=u({max_time:d(l[`max-time`],`max-time`,`text`),min_time:d(l[`min-time`],`min-time`,`text`),scan:l.scan,tag:d(l.tag,`tag`,`text`)});new URLSearchParams(Object.entries(s).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString(),i(await o(`Creating`,async()=>f.queries.create({...m,account_id:p,...s})),{successLabel:`Created`})})};function v(e){return e.option(`id`,{type:`string`,description:`ID`}).option(`tag`,{type:`string`,description:`Tag`}).option(`scan`,{type:`boolean`,description:`Scan`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const y={command:`delete`,describe:`Return a success message after deleting saved string queries by ID`,builder:v,handler:async c=>s({command:`queries delete`,classification:{safeFlags:[`scan`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{let s={id:c.id,tag:c.tag,scan:c.scan};if(c.dryRun){a({command:`cf queries delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/brand-protection/queries`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await t();if(c.accountId=u,!await f({force:!!c.force})){process.stderr.write(`Aborted.
3
+ `);return}i(await o(`Deleting`,async()=>l.queries.delete({account_id:u,...s})),{successLabel:`Deleted`})})},b={command:`queries`,describe:`queries`,builder:e=>e.command(_).command(y).command(h).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{b as default};
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ import{t as e}from"./local-C6XsFD_W.mjs";import{f as t,g as n}from"./oauth-DH3kMXSs.mjs";import{r}from"./auth-tvDdC1J-.mjs";import{t as i}from"./output-COcSQsfn.mjs";import{t as a}from"./dry-run-DiVy1lVo.mjs";import{t as o}from"./progress-V6SZV3Ux.mjs";import{t as s}from"./run-CRfinkSe.mjs";import"./telemetry-Ch1vCICm.mjs";import{n as c,r as l,t as u}from"./body-parser-DIlfApuJ.mjs";import{n as d}from"./input-validation-BxchZ9jE.mjs";import{a as f,i as p,n as m}from"./prompt-DjRTpML4.mjs";import{t as h}from"./cli-types-CrSoSMPF.mjs";function ee(e){return e.positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dead-letter-queue`,{type:`string`,description:`The dead_letter_queue field`}).option(`script-name`,{type:`string`,description:`Name of a Worker`}).option(`settings-batch-size`,{type:`number`,description:`The maximum number of messages to include in a batch.`}).option(`settings-max-concurrency`,{type:`number`,description:"Maximum number of concurrent consumers that may consume from this Queue. Set to `null` to automatically opt in to the platform's maximum (recommended)."}).option(`settings-max-retries`,{type:`number`,description:`The maximum number of retries`}).option(`settings-max-wait-time-ms`,{type:`number`,description:`The number of milliseconds to wait for a batch to fill up before attempting to deliver it`}).option(`settings-retry-delay`,{type:`number`,description:`The number of seconds to delay before making the message available for another attempt.`}).option(`settings-visibility-timeout-ms`,{type:`number`,description:`The number of milliseconds that a message is exclusively leased. After the timeout, the message becomes available for another attempt.`}).option(`type`,{type:`string`,description:`The type field`,choices:[`worker`,`http_pull`,`notification`]}).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 or updating a consumer`}).conflicts(`script-name`,[`settings-visibility-timeout-ms`]).conflicts(`settings-max-concurrency`,[`settings-visibility-timeout-ms`]).conflicts(`settings-max-wait-time-ms`,[`settings-visibility-timeout-ms`]).conflicts(`settings-visibility-timeout-ms`,[`script-name`,`settings-max-concurrency`,`settings-max-wait-time-ms`])}const g={command:`create <queue-id>`,describe:`Creates a consumer for a Queue.`,builder:ee,handler:async l=>s({command:`queues consumers create`,classification:{safeFlags:[`type`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf queues consumers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/queues/${l[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(l[`queue-id`]))}/consumers`,pathParams:{"queue-id":String(l[`queue-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({dead_letter_queue:d(l[`dead-letter-queue`],`dead-letter-queue`,`text`),script_name:d(l[`script-name`],`script-name`,`text`),settings:{batch_size:l[`settings-batch-size`],max_concurrency:l[`settings-max-concurrency`],max_retries:l[`settings-max-retries`],max_wait_time_ms:l[`settings-max-wait-time-ms`],retry_delay:l[`settings-retry-delay`],visibility_timeout_ms:l[`settings-visibility-timeout-ms`]},type:d(l.type,`type`,`text`)}):c(l.body)});return}let s=await r(l),m=l.local?e:await t();if(l.accountId=m,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.queues.consumers.create({body:e,account_id:m,queue_id:l[`queue-id`]})),{successLabel:`Created`});return}l.type===void 0&&(l.type=await p(`type`,`The type field`,[`worker`,`http_pull`,`notification`])),l.type===`worker`&&l[`script-name`]===void 0&&(l[`script-name`]=await f(`script-name`,`Name of a Worker`,{question:`Enter value for --script-name`}));let h=u({dead_letter_queue:d(l[`dead-letter-queue`],`dead-letter-queue`,`text`),script_name:d(l[`script-name`],`script-name`,`text`),settings:{batch_size:l[`settings-batch-size`],max_concurrency:l[`settings-max-concurrency`],max_retries:l[`settings-max-retries`],max_wait_time_ms:l[`settings-max-wait-time-ms`],retry_delay:l[`settings-retry-delay`],visibility_timeout_ms:l[`settings-visibility-timeout-ms`]},type:d(l.type,`type`,`text`)});i(await o(`Creating`,async()=>s.queues.consumers.create({body:h,account_id:m,queue_id:l[`queue-id`]})),{successLabel:`Created`})})};function _(e){return e.positional(`consumer-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`queue-id`,{type:`string`,description:`A Resource 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 v={command:`delete <consumer-id>`,describe:`Deletes a consumer from a Queue.`,builder:_,handler:async c=>s({command:`queues consumers delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf queues consumers delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/queues/${c[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(c[`queue-id`]))}/consumers/${c[`consumer-id`]==null?`<consumer-id>`:encodeURIComponent(String(c[`consumer-id`]))}`,pathParams:{"consumer-id":String(c[`consumer-id`]??``),"queue-id":String(c[`queue-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();if(c.accountId=l,!await m({force:!!c.force})){process.stderr.write(`Aborted.
3
+ `);return}i(await o(`Deleting`,async()=>s.queues.consumers.delete({account_id:l,queue_id:c[`queue-id`],consumer_id:c[`consumer-id`]})),{successLabel:`Deleted`})})};function y(e){return e.positional(`consumer-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const b={command:`get <consumer-id>`,describe:`Returns a Queue consumer by identifier.`,builder:y,handler:async c=>s({command:`queues consumers get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf queues consumers get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/queues/${c[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(c[`queue-id`]))}/consumers/${c[`consumer-id`]==null?`<consumer-id>`:encodeURIComponent(String(c[`consumer-id`]))}`,pathParams:{"consumer-id":String(c[`consumer-id`]??``),"queue-id":String(c[`queue-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Loading`,async()=>s.queues.consumers.get({account_id:l,queue_id:c[`queue-id`],consumer_id:c[`consumer-id`]})),{successLabel:`Loaded`})})};function x(e){return e.option(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`list`,describe:`Returns the consumers configured for a Queue.`,builder:x,handler:async c=>s({command:`queues consumers list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf queues consumers list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/queues/${c[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(c[`queue-id`]))}/consumers`,pathParams:{"queue-id":String(c[`queue-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Loading`,async()=>s.queues.consumers.list({account_id:l,queue_id:c[`queue-id`]})),{successLabel:`Loaded`})})};function C(e){return e.positional(`consumer-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dead-letter-queue`,{type:`string`,description:`The dead_letter_queue field`}).option(`script-name`,{type:`string`,description:`Name of a Worker`}).option(`settings-batch-size`,{type:`number`,description:`The maximum number of messages to include in a batch.`}).option(`settings-max-concurrency`,{type:`number`,description:"Maximum number of concurrent consumers that may consume from this Queue. Set to `null` to automatically opt in to the platform's maximum (recommended)."}).option(`settings-max-retries`,{type:`number`,description:`The maximum number of retries`}).option(`settings-max-wait-time-ms`,{type:`number`,description:`The number of milliseconds to wait for a batch to fill up before attempting to deliver it`}).option(`settings-retry-delay`,{type:`number`,description:`The number of seconds to delay before making the message available for another attempt.`}).option(`settings-visibility-timeout-ms`,{type:`number`,description:`The number of milliseconds that a message is exclusively leased. After the timeout, the message becomes available for another attempt.`}).option(`type`,{type:`string`,description:`The type field`,choices:[`worker`,`http_pull`,`notification`]}).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 or updating a consumer`}).conflicts(`script-name`,[`settings-visibility-timeout-ms`]).conflicts(`settings-max-concurrency`,[`settings-visibility-timeout-ms`]).conflicts(`settings-max-wait-time-ms`,[`settings-visibility-timeout-ms`]).conflicts(`settings-visibility-timeout-ms`,[`script-name`,`settings-max-concurrency`,`settings-max-wait-time-ms`])}const w={command:`update <consumer-id>`,describe:`Replaces a Queue consumer, or creates it if it does not exist.`,builder:C,handler:async l=>s({command:`queues consumers update`,classification:{safeFlags:[`type`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf queues consumers update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/queues/${l[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(l[`queue-id`]))}/consumers/${l[`consumer-id`]==null?`<consumer-id>`:encodeURIComponent(String(l[`consumer-id`]))}`,pathParams:{"consumer-id":String(l[`consumer-id`]??``),"queue-id":String(l[`queue-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({dead_letter_queue:d(l[`dead-letter-queue`],`dead-letter-queue`,`text`),script_name:d(l[`script-name`],`script-name`,`text`),settings:{batch_size:l[`settings-batch-size`],max_concurrency:l[`settings-max-concurrency`],max_retries:l[`settings-max-retries`],max_wait_time_ms:l[`settings-max-wait-time-ms`],retry_delay:l[`settings-retry-delay`],visibility_timeout_ms:l[`settings-visibility-timeout-ms`]},type:d(l.type,`type`,`text`)}):c(l.body)});return}let s=await r(l),m=l.local?e:await t();if(l.accountId=m,l.body){let e=c(l.body);i(await o(`Updating`,async()=>s.queues.consumers.update({body:e,account_id:m,queue_id:l[`queue-id`],consumer_id:l[`consumer-id`]})),{successLabel:`Updated`});return}l.type===void 0&&(l.type=await p(`type`,`The type field`,[`worker`,`http_pull`,`notification`])),l.type===`worker`&&l[`script-name`]===void 0&&(l[`script-name`]=await f(`script-name`,`Name of a Worker`,{question:`Enter value for --script-name`}));let h=u({dead_letter_queue:d(l[`dead-letter-queue`],`dead-letter-queue`,`text`),script_name:d(l[`script-name`],`script-name`,`text`),settings:{batch_size:l[`settings-batch-size`],max_concurrency:l[`settings-max-concurrency`],max_retries:l[`settings-max-retries`],max_wait_time_ms:l[`settings-max-wait-time-ms`],retry_delay:l[`settings-retry-delay`],visibility_timeout_ms:l[`settings-visibility-timeout-ms`]},type:d(l.type,`type`,`text`)});i(await o(`Updating`,async()=>s.queues.consumers.update({body:h,account_id:m,queue_id:l[`queue-id`],consumer_id:l[`consumer-id`]})),{successLabel:`Updated`})})},T={command:`consumers`,describe:`Workers that automatically receive and process messages from a queue`,builder:e=>e.command(g).command(v).command(b).command(S).command(w).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function E(e){return e.option(`jurisdiction`,{type:`string`,description:`The jurisdiction field`,choices:[`eu`,`us`,`fedramp`]}).option(`queue-name`,{type:`string`,description:`The queue_name field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const D={command:`create`,describe:`Creates a Queue in the account.`,builder:E,handler:async l=>s({command:`queues create`,classification:{safeFlags:[`jurisdiction`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf queues create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/queues`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({jurisdiction:d(l.jurisdiction,`jurisdiction`,`text`),queue_name:d(l[`queue-name`],`queue-name`,`text`)}):c(l.body)});return}let s=await r(l),p=l.local?e:await t();if(l.accountId=p,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.queues.create({...e,account_id:p})),{successLabel:`Created`});return}l[`queue-name`]===void 0&&(l[`queue-name`]=await f(`queue-name`,`The queue_name field`));let m=u({jurisdiction:d(l.jurisdiction,`jurisdiction`,`text`),queue_name:d(l[`queue-name`],`queue-name`,`text`)});i(await o(`Creating`,async()=>s.queues.create({...m,account_id:p})),{successLabel:`Created`})})};function O(e){return e.positional(`queue-id`,{type:`string`,description:`A Resource 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 k={command:`delete <queue-id>`,describe:`Deletes a Queue.`,builder:O,handler:async c=>s({command:`queues delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf queues delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/queues/${c[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(c[`queue-id`]))}`,pathParams:{"queue-id":String(c[`queue-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();if(c.accountId=l,!await m({force:!!c.force})){process.stderr.write(`Aborted.
4
+ `);return}i(await o(`Deleting`,async()=>s.queues.delete({account_id:l,queue_id:c[`queue-id`]})),{successLabel:`Deleted`})})};function A(e){return e.positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`jurisdiction`,{type:`string`,description:`The jurisdiction field`,choices:[`eu`,`us`,`fedramp`]}).option(`queue-name`,{type:`string`,description:`The queue_name field`}).option(`settings-delivery-delay`,{type:`number`,description:`Number of seconds to delay delivery of all messages to consumers.`}).option(`settings-delivery-paused`,{type:`boolean`,description:`Indicates if message delivery to consumers is currently paused.`}).option(`settings-message-retention-period`,{type:`number`,description:`Number of seconds after which an unconsumed message will be delayed.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const j={command:`edit <queue-id>`,describe:`Updates part of a Queue's configuration.`,builder:A,handler:async l=>s({command:`queues edit`,classification:{safeFlags:[`jurisdiction`,`settings-delivery-paused`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf queues edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/queues/${l[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(l[`queue-id`]))}`,pathParams:{"queue-id":String(l[`queue-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({jurisdiction:d(l.jurisdiction,`jurisdiction`,`text`),queue_name:d(l[`queue-name`],`queue-name`,`text`),settings:{delivery_delay:l[`settings-delivery-delay`],delivery_paused:l[`settings-delivery-paused`],message_retention_period:l[`settings-message-retention-period`]}}):c(l.body)});return}let s=await r(l),f=l.local?e:await t();if(l.accountId=f,l.body){let e=c(l.body);i(await o(`Updating`,async()=>s.queues.edit({body:e,account_id:f,queue_id:l[`queue-id`]})),{successLabel:`Updated`});return}let p=u({jurisdiction:d(l.jurisdiction,`jurisdiction`,`text`),queue_name:d(l[`queue-name`],`queue-name`,`text`),settings:{delivery_delay:l[`settings-delivery-delay`],delivery_paused:l[`settings-delivery-paused`],message_retention_period:l[`settings-message-retention-period`]}});i(await o(`Updating`,async()=>s.queues.edit({body:p,account_id:f,queue_id:l[`queue-id`]})),{successLabel:`Updated`})})};function M(e){return e.positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const N={command:`get <queue-id>`,describe:`Returns details about a specific Queue.`,builder:M,handler:async c=>s({command:`queues get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf queues get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/queues/${c[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(c[`queue-id`]))}`,pathParams:{"queue-id":String(c[`queue-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Loading`,async()=>s.queues.get({account_id:l,queue_id:c[`queue-id`]})),{successLabel:`Loaded`})})};function P(e){return e.option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const F={command:`list`,describe:`Returns the queues owned by an account.`,builder:P,handler:async c=>s({command:`queues list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf queues list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/queues`,pathParams:{},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Loading`,async()=>s.queues.list({account_id:l})),{successLabel:`Loaded`})})};function I(e){return e.positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`acks`,{type:`string`,description:`The acks field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`retries`,{type:`string`,description:`The retries field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const L={command:`ack-preview <queue-id>`,describe:`Delete messages returned by the legacy preview endpoint. This deprecated route is retained for compatibility; use the peek and purge endpoints for new integrations. Deleting messages this way does not count as delivery and does not affect metrics.`,builder:I,handler:async d=>s({command:`queues messages ack-preview`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf queues messages ack-preview`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/queues/${d[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(d[`queue-id`]))}/messages/preview/ack`,pathParams:{"queue-id":String(d[`queue-id`]??``)},bodyKind:`json`,body:d.body===void 0?u({acks:l(d.acks,`acks`),retries:l(d.retries,`retries`)}):c(d.body)});return}let s=await r(d),f=d.local?e:await t();if(d.accountId=f,d.body){let e=c(d.body);i(await o(`Creating`,async()=>s.queues.messages.ackPreview({...e,account_id:f,queue_id:d[`queue-id`]})),{successLabel:`Created`});return}let p=u({acks:l(d.acks,`acks`),retries:l(d.retries,`retries`)});i(await o(`Creating`,async()=>s.queues.messages.ackPreview({...p,account_id:f,queue_id:d[`queue-id`]})),{successLabel:`Created`})})};function R(e){return e.positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`acks`,{type:`string`,description:`The acks field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`retries`,{type:`string`,description:`The retries field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const z={command:`ack <queue-id>`,describe:`Acknowledges successfully processed Queue messages and retries messages that were not processed successfully.`,builder:R,handler:async d=>s({command:`queues messages ack`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf queues messages ack`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/queues/${d[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(d[`queue-id`]))}/messages/ack`,pathParams:{"queue-id":String(d[`queue-id`]??``)},bodyKind:`json`,body:d.body===void 0?u({acks:l(d.acks,`acks`),retries:l(d.retries,`retries`)}):c(d.body)});return}let s=await r(d),f=d.local?e:await t();if(d.accountId=f,d.body){let e=c(d.body);i(await o(`Creating`,async()=>s.queues.messages.ack({...e,account_id:f,queue_id:d[`queue-id`]})),{successLabel:`Created`});return}let p=u({acks:l(d.acks,`acks`),retries:l(d.retries,`retries`)});i(await o(`Creating`,async()=>s.queues.messages.ack({...p,account_id:f,queue_id:d[`queue-id`]})),{successLabel:`Created`})})};function B(e){return e.option(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`delay-seconds`,{type:`number`,description:`The number of seconds to wait for attempting to deliver this batch to consumers`}).option(`messages`,{type:`string`,description:`The messages field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const V={command:`bulk-push`,describe:`Pushes a batch of messages to a Queue.`,builder:B,handler:async d=>s({command:`queues messages bulk-push`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf queues messages bulk-push`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/queues/${d[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(d[`queue-id`]))}/messages/batch`,pathParams:{"queue-id":String(d[`queue-id`]??``)},bodyKind:`json`,body:d.body===void 0?u({delay_seconds:d[`delay-seconds`],messages:l(d.messages,`messages`)}):c(d.body)});return}let s=await r(d),f=d.local?e:await t();if(d.accountId=f,d.body){let e=c(d.body);i(await o(`Creating`,async()=>s.queues.messages.bulkPush({...e,account_id:f,queue_id:d[`queue-id`]})),{successLabel:`Created`});return}let p=u({delay_seconds:d[`delay-seconds`],messages:l(d.messages,`messages`)});i(await o(`Creating`,async()=>s.queues.messages.bulkPush({...p,account_id:f,queue_id:d[`queue-id`]})),{successLabel:`Created`})})};function H(e){return e.positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`extend`,{type:`string`,description:`The extend field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`visibility-timeout-ms`,{type:`number`,description:`The number of milliseconds that a message is exclusively leased. After the timeout, the message becomes available for another attempt.`}).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 U={command:`extend-leases <queue-id>`,describe:"Extends message leases without incrementing the messages' `attempts` counters. Each message receives a new lease identifier.",builder:H,handler:async d=>s({command:`queues messages extend-leases`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf queues messages extend-leases`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/queues/${d[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(d[`queue-id`]))}/messages/extend`,pathParams:{"queue-id":String(d[`queue-id`]??``)},bodyKind:`json`,body:d.body===void 0?u({extend:l(d.extend,`extend`),visibility_timeout_ms:d[`visibility-timeout-ms`]}):c(d.body)});return}let s=await r(d),f=d.local?e:await t();if(d.accountId=f,d.body){let e=c(d.body);i(await o(`Creating`,async()=>s.queues.messages.extendLeases({...e,account_id:f,queue_id:d[`queue-id`]})),{successLabel:`Created`});return}let p=u({extend:l(d.extend,`extend`),visibility_timeout_ms:d[`visibility-timeout-ms`]});i(await o(`Creating`,async()=>s.queues.messages.extendLeases({...p,account_id:f,queue_id:d[`queue-id`]})),{successLabel:`Created`})})};function te(e){return e.positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`batch-size`,{type:`number`,description:`The maximum number of messages to include in a batch.`}).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:`peek <queue-id>`,describe:`Peek messages from a Queue without leasing them. Each message includes a ref that can be passed to the purge endpoint, and remains available for subsequent peek or pull operations until it is purged.`,builder:te,handler:async l=>s({command:`queues messages peek`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf queues messages peek`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/queues/${l[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(l[`queue-id`]))}/messages/peek`,pathParams:{"queue-id":String(l[`queue-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({batch_size:l[`batch-size`]}):c(l.body)});return}let s=await r(l),d=l.local?e:await t();if(l.accountId=d,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.queues.messages.peek({...e,account_id:d,queue_id:l[`queue-id`]})),{successLabel:`Created`});return}let f=u({batch_size:l[`batch-size`]});i(await o(`Creating`,async()=>s.queues.messages.peek({...f,account_id:d,queue_id:l[`queue-id`]})),{successLabel:`Created`})})};function G(e){return e.positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`batch-size`,{type:`number`,description:`The maximum number of messages to include in a batch.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const K={command:`preview <queue-id>`,describe:`Preview messages from a Queue without leasing them. This deprecated route is retained for compatibility; use the peek endpoint for new integrations.`,builder:G,handler:async l=>s({command:`queues messages preview`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf queues messages preview`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/queues/${l[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(l[`queue-id`]))}/messages/preview`,pathParams:{"queue-id":String(l[`queue-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({batch_size:l[`batch-size`]}):c(l.body)});return}let s=await r(l),d=l.local?e:await t();if(l.accountId=d,l.body){let e=c(l.body);i(await o(`Loading`,async()=>s.queues.messages.preview({...e,account_id:d,queue_id:l[`queue-id`]})),{successLabel:`Loaded`});return}let f=u({batch_size:l[`batch-size`]});i(await o(`Loading`,async()=>s.queues.messages.preview({...f,account_id:d,queue_id:l[`queue-id`]})),{successLabel:`Loaded`})})};function q(e){return e.positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`batch-size`,{type:`number`,description:`The maximum number of messages to include in a batch.`}).option(`visibility-timeout-ms`,{type:`number`,description:`The number of milliseconds that a message is exclusively leased. After the timeout, the message becomes available for another attempt.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const J={command:`pull <queue-id>`,describe:`Pulls a batch of messages from a Queue for an HTTP pull consumer.`,builder:q,handler:async l=>s({command:`queues messages pull`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf queues messages pull`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/queues/${l[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(l[`queue-id`]))}/messages/pull`,pathParams:{"queue-id":String(l[`queue-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({batch_size:l[`batch-size`],visibility_timeout_ms:l[`visibility-timeout-ms`]}):c(l.body)});return}let s=await r(l),d=l.local?e:await t();if(l.accountId=d,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.queues.messages.pull({...e,account_id:d,queue_id:l[`queue-id`]})),{successLabel:`Created`});return}let f=u({batch_size:l[`batch-size`],visibility_timeout_ms:l[`visibility-timeout-ms`]});i(await o(`Creating`,async()=>s.queues.messages.pull({...f,account_id:d,queue_id:l[`queue-id`]})),{successLabel:`Created`})})};function Y(e){return e.positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`refs`,{type:`string`,description:`The refs field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const X={command:`purge <queue-id>`,describe:`Delete messages from a Queue by using refs returned by the peek endpoint. Purging messages does not count as delivery and does not affect metrics.`,builder:Y,handler:async d=>s({command:`queues messages purge`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},d,async()=>{if(d.dryRun){a({command:`cf queues messages purge`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/queues/${d[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(d[`queue-id`]))}/messages/purge`,pathParams:{"queue-id":String(d[`queue-id`]??``)},bodyKind:`json`,body:d.body===void 0?u({refs:l(d.refs,`refs`)}):c(d.body)});return}let s=await r(d),f=d.local?e:await t();if(d.accountId=f,!await m({force:!!d.force,message:`This operation permanently deletes the selected messages from the Queue.`})){process.stderr.write(`Aborted.
5
+ `);return}if(d.body){let e=c(d.body);i(await o(`Deleting`,async()=>s.queues.messages.purge({...e,account_id:f,queue_id:d[`queue-id`]})),{successLabel:`Deleted`});return}if(d.refs===void 0)throw Error(`--refs is required (or pass --body with this field set).`);let p=u({refs:l(d.refs,`refs`)});i(await o(`Deleting`,async()=>s.queues.messages.purge({...p,account_id:f,queue_id:d[`queue-id`]})),{successLabel:`Deleted`})})};function Z(e){return e.positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`delay-seconds`,{type:`number`,description:`The number of seconds to wait for attempting to deliver this message to consumers`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Q={command:`push <queue-id>`,describe:`Pushes a message to a Queue.`,builder:Z,handler:async l=>s({command:`queues messages push`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf queues messages push`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/queues/${l[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(l[`queue-id`]))}/messages`,pathParams:{"queue-id":String(l[`queue-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({delay_seconds:l[`delay-seconds`]}):c(l.body)});return}let s=await r(l),d=l.local?e:await t();if(l.accountId=d,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.queues.messages.push({body:e,account_id:d,queue_id:l[`queue-id`]})),{successLabel:`Created`});return}let f=u({delay_seconds:l[`delay-seconds`]});i(await o(`Creating`,async()=>s.queues.messages.push({body:f,account_id:d,queue_id:l[`queue-id`]})),{successLabel:`Created`})})},ne={command:`messages`,describe:`Push messages to a queue and pull or acknowledge them from consumers`,builder:e=>e.command(z).command(L).command(V).command(U).command(W).command(K).command(J).command(X).command(Q).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function re(e){return e.positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ie={command:`get <queue-id>`,describe:`Returns best-effort metrics for a Queue. Values may be approximate due to the distributed nature of Queues.`,builder:re,handler:async c=>s({command:`queues metrics get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf queues metrics get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/queues/${c[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(c[`queue-id`]))}/metrics`,pathParams:{"queue-id":String(c[`queue-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Loading`,async()=>s.queues.metrics.get({account_id:l,queue_id:c[`queue-id`]})),{successLabel:`Loaded`})})},ae={command:`metrics`,describe:`Operations for metrics`,builder:e=>e.command(ie).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function oe(e){return e.positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`delete-messages-permanently`,{type:`boolean`,description:`Confirms that all messages will be permanently deleted.`}).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:`Raw JSON request body (bypasses individual flags)`})}const se={command:`start <queue-id>`,describe:`Starts a purge that deletes all messages from a Queue.`,builder:oe,handler:async l=>s({command:`queues purge start`,classification:{safeFlags:[`delete-messages-permanently`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},l,async()=>{if(l.dryRun){a({command:`cf queues purge start`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/queues/${l[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(l[`queue-id`]))}/purge`,pathParams:{"queue-id":String(l[`queue-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({delete_messages_permanently:l[`delete-messages-permanently`]}):c(l.body)});return}let s=await r(l),d=l.local?e:await t();if(l.accountId=d,!await m({force:!!l.force,message:`This operation drops every message in the queue.`})){process.stderr.write(`Aborted.
6
+ `);return}if(l.body){let e=c(l.body);i(await o(`Deleting`,async()=>s.queues.purge.start({...e,account_id:d,queue_id:l[`queue-id`]})),{successLabel:`Deleted`});return}let f=u({delete_messages_permanently:l[`delete-messages-permanently`]});i(await o(`Deleting`,async()=>s.queues.purge.start({...f,account_id:d,queue_id:l[`queue-id`]})),{successLabel:`Deleted`})})};function ce(e){return e.positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const le={command:`status <queue-id>`,describe:`Returns the status of a Queue purge operation.`,builder:ce,handler:async c=>s({command:`queues purge status`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf queues purge status`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/queues/${c[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(c[`queue-id`]))}/purge`,pathParams:{"queue-id":String(c[`queue-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Loading`,async()=>s.queues.purge.status({account_id:l,queue_id:c[`queue-id`]})),{successLabel:`Loaded`})})},ue={command:`purge`,describe:`Remove all pending messages from a queue`,builder:e=>e.command(se).command(le).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function de(e){return e.option(`destination-queue-id`,{type:`string`,description:`ID of the target queue`}).option(`destination-type`,{type:`string`,description:`Type of destination`,choices:[`queues.queue`]}).option(`enabled`,{type:`boolean`,description:`Whether the subscription is active`}).option(`events`,{type:`string`,array:!0,description:`List of event types this subscription handles`}).option(`name`,{type:`string`,description:`Name of the subscription`}).option(`source-type`,{type:`string`,description:`Type of source`,choices:[`images`,`kv`,`r2`,`superSlurper`,`vectorize`,`workersAi.model`,`workersBuilds.worker`,`workers.script`,`workflows.workflow`]}).option(`source-model-name`,{type:`string`,description:`Name of the Workers AI model`}).option(`source-worker-name`,{type:`string`,description:`Name of the worker`}).option(`source-script-tag`,{type:`string`,description:`Tag of the Worker script`}).option(`source-workflow-name`,{type:`string`,description:`Name of the workflow`}).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)`}).conflicts(`source-model-name`,[`source-worker-name`,`source-script-tag`,`source-workflow-name`]).conflicts(`source-worker-name`,[`source-model-name`,`source-script-tag`,`source-workflow-name`]).conflicts(`source-script-tag`,[`source-model-name`,`source-worker-name`,`source-workflow-name`]).conflicts(`source-workflow-name`,[`source-model-name`,`source-worker-name`,`source-script-tag`]).check(e=>{if([`destination-queue-id`,`destination-type`].some(t=>e[t]!==void 0)){let t=[`destination-queue-id`,`destination-type`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --destination-* flag is set`)}return!0})}const fe={command:`create`,describe:`Creates an event subscription for a Queue.`,builder:de,handler:async l=>s({command:`queues subscriptions create`,classification:{safeFlags:[`destination-type`,`enabled`,`source-type`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf queues subscriptions create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/event_subscriptions/subscriptions`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({destination:{queue_id:d(l[`destination-queue-id`],`destination-queue-id`,`text`),type:d(l[`destination-type`],`destination-type`,`text`)},enabled:l.enabled,events:l.events,name:d(l.name,`name`,`text`),source:{type:d(l[`source-type`],`source-type`,`text`),model_name:d(l[`source-model-name`],`source-model-name`,`text`),worker_name:d(l[`source-worker-name`],`source-worker-name`,`text`),script_tag:d(l[`source-script-tag`],`source-script-tag`,`text`),workflow_name:d(l[`source-workflow-name`],`source-workflow-name`,`text`)}}):c(l.body)});return}let s=await r(l),f=l.local?e:await t();if(l.accountId=f,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.queues.subscriptions.create({...e,account_id:f})),{successLabel:`Created`});return}let p=u({destination:{queue_id:d(l[`destination-queue-id`],`destination-queue-id`,`text`),type:d(l[`destination-type`],`destination-type`,`text`)},enabled:l.enabled,events:l.events,name:d(l.name,`name`,`text`),source:{type:d(l[`source-type`],`source-type`,`text`),model_name:d(l[`source-model-name`],`source-model-name`,`text`),worker_name:d(l[`source-worker-name`],`source-worker-name`,`text`),script_tag:d(l[`source-script-tag`],`source-script-tag`,`text`),workflow_name:d(l[`source-workflow-name`],`source-workflow-name`,`text`)}});i(await o(`Creating`,async()=>s.queues.subscriptions.create({...p,account_id:f})),{successLabel:`Created`})})};function pe(e){return e.positional(`subscription-id`,{type:`string`,description:`A Resource 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 $={command:`delete <subscription-id>`,describe:`Deletes an existing Queue event subscription.`,builder:pe,handler:async c=>s({command:`queues subscriptions delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf queues subscriptions delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/event_subscriptions/subscriptions/${c[`subscription-id`]==null?`<subscription-id>`:encodeURIComponent(String(c[`subscription-id`]))}`,pathParams:{"subscription-id":String(c[`subscription-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();if(c.accountId=l,!await m({force:!!c.force})){process.stderr.write(`Aborted.
7
+ `);return}i(await o(`Deleting`,async()=>s.queues.subscriptions.delete({account_id:l,subscription_id:c[`subscription-id`]})),{successLabel:`Deleted`})})};function me(e){return e.positional(`subscription-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const he={command:`get <subscription-id>`,describe:`Returns an existing Queue event subscription.`,builder:me,handler:async c=>s({command:`queues subscriptions get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf queues subscriptions get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/event_subscriptions/subscriptions/${c[`subscription-id`]==null?`<subscription-id>`:encodeURIComponent(String(c[`subscription-id`]))}`,pathParams:{"subscription-id":String(c[`subscription-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Loading`,async()=>s.queues.subscriptions.get({account_id:l,subscription_id:c[`subscription-id`]})),{successLabel:`Loaded`})})};function ge(e){return e.option(`page`,{type:`number`,description:`Page number for pagination`}).option(`per-page`,{type:`number`,description:`Number of items per page`}).option(`order`,{type:`string`,description:`Field to sort by`,choices:[`created_at`,`name`,`enabled`,`source`]}).option(`direction`,{type:`string`,description:`Sort direction`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _e={command:`list`,describe:`Returns a paginated list of Queue event subscriptions with optional sorting and filtering.`,builder:h(ge),handler:async c=>s({command:`queues subscriptions list`,classification:{safeFlags:[`order`,`direction`,`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`],order:c.order,direction:c.direction};if(c.dryRun){a({command:`cf queues subscriptions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/event_subscriptions/subscriptions`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await t();c.accountId=u,i(await o(`Loading`,async()=>l.queues.subscriptions.list({account_id:u,...s})),{successLabel:`Loaded`})})};function ve(e){return e.positional(`subscription-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`destination-queue-id`,{type:`string`,description:`ID of the target queue`}).option(`destination-type`,{type:`string`,description:`Type of destination`,choices:[`queues.queue`]}).option(`enabled`,{type:`boolean`,description:`Whether the subscription is active`}).option(`events`,{type:`string`,array:!0,description:`List of event types this subscription handles`}).option(`name`,{type:`string`,description:`Name of the subscription`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).check(e=>{if([`destination-queue-id`,`destination-type`].some(t=>e[t]!==void 0)){let t=[`destination-queue-id`,`destination-type`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --destination-* flag is set`)}return!0})}const ye={command:`update <subscription-id>`,describe:`Updates an existing Queue event subscription.`,builder:ve,handler:async l=>s({command:`queues subscriptions update`,classification:{safeFlags:[`destination-type`,`enabled`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf queues subscriptions update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/event_subscriptions/subscriptions/${l[`subscription-id`]==null?`<subscription-id>`:encodeURIComponent(String(l[`subscription-id`]))}`,pathParams:{"subscription-id":String(l[`subscription-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({destination:{queue_id:d(l[`destination-queue-id`],`destination-queue-id`,`text`),type:d(l[`destination-type`],`destination-type`,`text`)},enabled:l.enabled,events:l.events,name:d(l.name,`name`,`text`)}):c(l.body)});return}let s=await r(l),f=l.local?e:await t();if(l.accountId=f,l.body){let e=c(l.body);i(await o(`Updating`,async()=>s.queues.subscriptions.update({...e,account_id:f,subscription_id:l[`subscription-id`]})),{successLabel:`Updated`});return}let p=u({destination:{queue_id:d(l[`destination-queue-id`],`destination-queue-id`,`text`),type:d(l[`destination-type`],`destination-type`,`text`)},enabled:l.enabled,events:l.events,name:d(l.name,`name`,`text`)});i(await o(`Updating`,async()=>s.queues.subscriptions.update({...p,account_id:f,subscription_id:l[`subscription-id`]})),{successLabel:`Updated`})})},be={command:`subscriptions`,describe:`Manage queue subscriptions for event-driven message routing`,builder:e=>e.command(fe).command($).command(he).command(_e).command(ye).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function xe(e){return e.positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`jurisdiction`,{type:`string`,description:`The jurisdiction field`,choices:[`eu`,`us`,`fedramp`]}).option(`queue-name`,{type:`string`,description:`The queue_name field`}).option(`settings-delivery-delay`,{type:`number`,description:`Number of seconds to delay delivery of all messages to consumers.`}).option(`settings-delivery-paused`,{type:`boolean`,description:`Indicates if message delivery to consumers is currently paused.`}).option(`settings-message-retention-period`,{type:`number`,description:`Number of seconds after which an unconsumed message will be delayed.`}).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 Se={command:`update <queue-id>`,describe:`Replaces a Queue's configuration with the supplied configuration. This endpoint does not support partial updates.`,builder:xe,handler:async l=>s({command:`queues update`,classification:{safeFlags:[`jurisdiction`,`settings-delivery-paused`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf queues update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/queues/${l[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(l[`queue-id`]))}`,pathParams:{"queue-id":String(l[`queue-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({jurisdiction:d(l.jurisdiction,`jurisdiction`,`text`),queue_name:d(l[`queue-name`],`queue-name`,`text`),settings:{delivery_delay:l[`settings-delivery-delay`],delivery_paused:l[`settings-delivery-paused`],message_retention_period:l[`settings-message-retention-period`]}}):c(l.body)});return}let s=await r(l),f=l.local?e:await t();if(l.accountId=f,l.body){let e=c(l.body);i(await o(`Updating`,async()=>s.queues.update({body:e,account_id:f,queue_id:l[`queue-id`]})),{successLabel:`Updated`});return}let p=u({jurisdiction:d(l.jurisdiction,`jurisdiction`,`text`),queue_name:d(l[`queue-name`],`queue-name`,`text`),settings:{delivery_delay:l[`settings-delivery-delay`],delivery_paused:l[`settings-delivery-paused`],message_retention_period:l[`settings-message-retention-period`]}});i(await o(`Updating`,async()=>s.queues.update({body:p,account_id:f,queue_id:l[`queue-id`]})),{successLabel:`Updated`})})},Ce={command:`queues`,describe:`Reliable message queuing between Workers — produce, consume, and batch-process messages at scale`,builder:e=>e.command(D).command(k).command(j).command(N).command(F).command(Se).command(T).command(ne).command(ae).command(ue).command(be).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Ce as default};