cf 1.0.0-beta.6 → 1.0.0-beta.7
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.
- package/dist/_meta/commands.json +119 -218
- package/dist/_meta/schemas.json +77 -126
- package/dist/{abuse-reports-BtI6fvRl.mjs → abuse-reports-D7Hrm0MV.mjs} +1 -1
- package/dist/{access-CqOyTHw4.mjs → access-_upGyV1N.mjs} +1 -1
- package/dist/{account-tags-7I77Dwsd.mjs → account-tags-CrijxKW6.mjs} +2 -2
- package/dist/{accounts-Cq-eOPzL.mjs → accounts-Db5SMjh2.mjs} +1 -1
- package/dist/{acm-CSXnlN6o.mjs → acm-9cXKVj2C.mjs} +1 -1
- package/dist/{addressing-C5XvjNhk.mjs → addressing-D_FtdMEM.mjs} +1 -1
- package/dist/{agent-memory-CSzr9gty.mjs → agent-memory-BygNv4aJ.mjs} +1 -1
- package/dist/{ai-C0xWIvsG.mjs → ai-D-55e3UD.mjs} +3 -3
- package/dist/{ai-audit-B43vm1KJ.mjs → ai-audit-DDQ68vrA.mjs} +1 -1
- package/dist/{ai-gateway-BK3MbIzT.mjs → ai-gateway-sP2B_8Ef.mjs} +1 -1
- package/dist/{ai-search-TrFTxBbn.mjs → ai-search-DvMUOhub.mjs} +1 -1
- package/dist/{ai-security-JrYa27qd.mjs → ai-security-BVWVxZmP.mjs} +1 -1
- package/dist/{alerting-B1-ZwfVT.mjs → alerting-DZ9gxuKS.mjs} +1 -1
- package/dist/{analytics-B-wlVtDV.mjs → analytics-Y2xckwX1.mjs} +1 -1
- package/dist/{analytics_engine-DWzzQzOs.mjs → analytics_engine-A8gMyUty.mjs} +1 -1
- package/dist/{api-security-BWFWWmXl.mjs → api-security-CNMyTBs-.mjs} +1 -1
- package/dist/{argo-DHPGTvCT.mjs → argo-Be_3wk6n.mjs} +1 -1
- package/dist/{artifacts-mmBDk3wO.mjs → artifacts-B8roQjRg.mjs} +1 -1
- package/dist/{audit-logs-CCF5e500.mjs → audit-logs-DgkSAyTu.mjs} +1 -1
- package/dist/{auth-Dnp10uLy.mjs → auth-B74oTm3b.mjs} +1 -1
- package/dist/{auth-gOCL6Pm0.mjs → auth-CHTMVVW3.mjs} +2 -2
- package/dist/{autoconfig-DqEPKpj0.mjs → autoconfig-DXXV-Xyz.mjs} +1 -1
- package/dist/{basin-catalog-hRY01t_Z.mjs → basin-catalog-85ubk7YB.mjs} +20 -18
- package/dist/{billing-C_ev-9nh.mjs → billing-Cc6_LzwM.mjs} +1 -1
- package/dist/{bot-management-CyYsXkZt.mjs → bot-management-DSJtyyh_.mjs} +1 -1
- package/dist/{botnet-feed-Dj5R5v2o.mjs → botnet-feed-BkhLL1Oz.mjs} +1 -1
- package/dist/{brand-protection-CmQ6Iu0I.mjs → brand-protection-Bldu6Tvz.mjs} +1 -1
- package/dist/{browser-run-sWHTsCSB.mjs → browser-run-B_0Fh5Cg.mjs} +1 -1
- package/dist/{build-_qqitpn0.mjs → build-SxtWgMkQ.mjs} +1 -1
- package/dist/build-VB6btUkb.mjs +2 -0
- package/dist/{builds-c21rTfcg.mjs → builds-BwP-UvyR.mjs} +1 -1
- package/dist/{cache-CuNjJl6m.mjs → cache-DQDer_pF.mjs} +1 -1
- package/dist/{certificate-authorities-DRUUzvI3.mjs → certificate-authorities-Dfc0QVyT.mjs} +1 -1
- package/dist/{cf-O3gEaXYZ.mjs → cf-Dw3HK_Qy.mjs} +2 -2
- package/dist/chunk-FT2NMTJB-1VFYM1Ro.mjs +97 -0
- package/dist/chunk-KKDV4JPS-DdzLLtnl.mjs +2 -0
- package/dist/{cli-Caa776EB.mjs → cli-B0_EbPK6.mjs} +1 -1
- package/dist/{client-certificates-BSi1CEGk.mjs → client-certificates-BVfmuFsa.mjs} +1 -1
- package/dist/{client-side-security-BdxUX3Y8.mjs → client-side-security-DiaSjw1y.mjs} +1 -1
- package/dist/{cloud-connector-B46ajuAj.mjs → cloud-connector-B6iUAIzF.mjs} +1 -1
- package/dist/{cloudflared-Ciq4L97v.mjs → cloudflared-C4KjWoEY.mjs} +1 -1
- package/dist/{cloudforce-one-adbVR2Ah.mjs → cloudforce-one-B2PweUyv.mjs} +1 -1
- package/dist/{command-C2bU5Etc.mjs → command-8lsstsSi.mjs} +1 -1
- package/dist/{command-BmXnByw9.mjs → command-BC7oCgWp.mjs} +1 -1
- package/dist/{command-DV196MKR.mjs → command-BOktUlKN.mjs} +1 -1
- package/dist/{command-eBmGBTA7.mjs → command-Bi0InjEd.mjs} +1 -1
- package/dist/{command-Bw-M_qxb.mjs → command-BtmIP6e1.mjs} +1 -1
- package/dist/{command-CkJvjkfK.mjs → command-CNfYJjg7.mjs} +1 -1
- package/dist/{command-B5Itp2BM.mjs → command-CnEF-7o0.mjs} +1 -1
- package/dist/{command-B47VlNBp.mjs → command-CrS8Q6U3.mjs} +1 -1
- package/dist/{command-CVg0qT13.mjs → command-CvzUv83h.mjs} +1 -1
- package/dist/{command-CRgQ0dM3.mjs → command-CzzAaOGK.mjs} +1 -1
- package/dist/{command-Du3MiYA7.mjs → command-D1S9Z0gV.mjs} +1 -1
- package/dist/{command-eqgT8zz4.mjs → command-DVSwnnMJ.mjs} +1 -1
- package/dist/{command-D1Z5uf_S.mjs → command-WCtue6i1.mjs} +1 -1
- package/dist/{command-CHcCSvVz.mjs → command-WrVIhg73.mjs} +1 -1
- package/dist/{completions-DbT6O2ol.mjs → completions-UDpzduKn.mjs} +1 -1
- package/dist/{connector-interrupts-BhfMiPcq.mjs → connector-interrupts-47IuSZFG.mjs} +1 -1
- package/dist/{connector-telemetry-events-CxKECRgO.mjs → connector-telemetry-events-BQb3Hsnt.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-BHi-jHE5.mjs → connector-telemetry-snapshots-CeFJqT4_.mjs} +1 -1
- package/dist/{connectors-gkP2aNSN.mjs → connectors-CF9n8yHv.mjs} +1 -1
- package/dist/{containers-BY8pinEV.mjs → containers-D4pJisp-.mjs} +7 -7
- package/dist/{containers-DUvBpnRo.mjs → containers-DBs5P8vO.mjs} +1 -1
- package/dist/{content-scan-BCPhAjMZ.mjs → content-scan-DLdl9ZpM.mjs} +1 -1
- package/dist/{context-CE7QFX-z.mjs → context-C71TA0Yp.mjs} +1 -1
- package/dist/{cps-B35EPUAk.mjs → cps-X4HFj7Qw.mjs} +1 -1
- package/dist/{csamScanner-DcTA9oLR.mjs → csamScanner-tkB73Sgi.mjs} +1 -1
- package/dist/{ct-alerting-B3CS-CPk.mjs → ct-alerting-HDZJVnZS.mjs} +1 -1
- package/dist/{custom-certificates-IjJJhl7_.mjs → custom-certificates-ClGBR4Oo.mjs} +1 -1
- package/dist/{custom-csrs-ChYOaEQg.mjs → custom-csrs-D3b2bNiX.mjs} +1 -1
- package/dist/{custom-hostnames-Bai3cqAD.mjs → custom-hostnames-CWyObX98.mjs} +1 -1
- package/dist/{custom-nameservers-DsukmLNZ.mjs → custom-nameservers-Di8z6ioQ.mjs} +1 -1
- package/dist/{custom-pages-CiboX-9D.mjs → custom-pages-D2l1rZfJ.mjs} +1 -1
- package/dist/{d1-s293SFAJ.mjs → d1-aDiX5BdB.mjs} +1 -1
- package/dist/{dcv-delegation-BfgvmpQT.mjs → dcv-delegation-D-vyZC0M.mjs} +1 -1
- package/dist/{deploy-CvxNMDbS.mjs → deploy-DBmw0fiq.mjs} +1 -1
- package/dist/{deploy-input-CNrImP7B.mjs → deploy-input-DxuYgPps.mjs} +1 -1
- package/dist/{dev-Z6vYszaT.mjs → dev-SpCmvb4M.mjs} +1 -1
- package/dist/{diagnostics-Ops0RjxG.mjs → diagnostics-nRYcfs30.mjs} +1 -1
- package/dist/dist-BuCJ_55d.mjs +366 -0
- package/dist/{dist-Dgnf_i4w.mjs → dist-Du72beRE.mjs} +3 -3
- package/dist/{dls-uo7NYEqE.mjs → dls-CANrS9Ke.mjs} +1 -1
- package/dist/{dns-B-NwBOpQ.mjs → dns-Vt3Dc_Vu.mjs} +1 -1
- package/dist/{dns-firewall-LTIP13nb.mjs → dns-firewall-CVSEaJZY.mjs} +1 -1
- package/dist/{durable-objects-o7uB3YYg.mjs → durable-objects-B-e7xqhL.mjs} +1 -1
- package/dist/{email-auth-BUdBDCaE.mjs → email-auth-hUz_5D2H.mjs} +1 -1
- package/dist/{email-routing-BPRliM3z.mjs → email-routing-By5Q7zP0.mjs} +1 -1
- package/dist/{email-security-dbLE3I5c.mjs → email-security-C9VhlZkz.mjs} +1 -1
- package/dist/{email-sending-BLlGy5Mn.mjs → email-sending-C7cVl025.mjs} +1 -1
- package/dist/{error-sanitization-CcNUzN1f.mjs → error-sanitization-BXqhvJsR.mjs} +1 -1
- package/dist/error-sanitization-CSlapZbU.mjs +2 -0
- package/dist/{fieldExtractors-M-KfLOGw.mjs → fieldExtractors-DMdnj9KA.mjs} +1 -1
- package/dist/{firewall-DzbLwqo3.mjs → firewall-C93JnCsO.mjs} +1 -1
- package/dist/{flagship-DcXWEywy.mjs → flagship-CVZWzLTv.mjs} +1 -1
- package/dist/{fraud-CGXRWANi.mjs → fraud-DJ3jnp3_.mjs} +1 -1
- package/dist/{google-tag-gateway-B3Z3Puwl.mjs → google-tag-gateway-DbE_3TkF.mjs} +1 -1
- package/dist/{healthchecks-BIiV29q7.mjs → healthchecks-DKWTVerg.mjs} +1 -1
- package/dist/{hostnames-ueWsZFwv.mjs → hostnames-VNPfazJd.mjs} +1 -1
- package/dist/hyperdrive-BKtLQf8J.mjs +37 -0
- package/dist/{iam-kA9gcv79.mjs → iam-BsZ7ORd5.mjs} +1 -1
- package/dist/{images-CK4J5as7.mjs → images-Bd3lRkGK.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{init-COcG8sp5.mjs → init-D9pazuYJ.mjs} +1 -1
- package/dist/{intel-z7DkM9Xc.mjs → intel-ropzhmya.mjs} +1 -1
- package/dist/{ips-BXdBK4Co.mjs → ips-85Mq1qXg.mjs} +1 -1
- package/dist/{keyless-certificates-Dp9xTYtD.mjs → keyless-certificates-CRzCJ82O.mjs} +1 -1
- package/dist/{keys-DrVlj4VI.mjs → keys-CWUCTmsD.mjs} +1 -1
- package/dist/{kv-WX-dlUT1.mjs → kv-BT2uSv-y.mjs} +1 -1
- package/dist/{lazy-command-g04RHlS2.mjs → lazy-command-DjCioGYx.mjs} +1 -1
- package/dist/{leaked-credential-checks-BMQ0VhCd.mjs → leaked-credential-checks-DjDq1Toq.mjs} +1 -1
- package/dist/{load-balancers-BbkSL89c.mjs → load-balancers--4Ouz99G.mjs} +1 -1
- package/dist/{local-Cyk8fPvL.mjs → local-C9i1d0ma.mjs} +1 -1
- package/dist/local-j2uOZ8Uq.mjs +2 -0
- package/dist/{local-runtime-CWWJJB2E.mjs → local-runtime-WQyZe3ed.mjs} +1 -1
- package/dist/{login-DYQ8UgJQ.mjs → login-BDFpobb3.mjs} +1 -1
- package/dist/{login-CyU_ZTNI.mjs → login-CHjklzf2.mjs} +1 -1
- package/dist/{logo-matches-HFmD2hK6.mjs → logo-matches-DVQfRSCD.mjs} +1 -1
- package/dist/{logos-Di2PABE_.mjs → logos-BUEuiGuz.mjs} +1 -1
- package/dist/{logpush-DEqdt0I0.mjs → logpush-cKUA9fBU.mjs} +1 -1
- package/dist/{logs-Ckfw-3Q_.mjs → logs-2OJeMqWG.mjs} +3 -4
- package/dist/{magic-cloud-networking-C0yBJKMb.mjs → magic-cloud-networking-D29ITjYQ.mjs} +1 -1
- package/dist/{magic-network-monitoring-CLvaiI7s.mjs → magic-network-monitoring-Bva_tF2u.mjs} +1 -1
- package/dist/{magic-transit-Bhb1kxYj.mjs → magic-transit-DG_ZmEzW.mjs} +1 -1
- package/dist/{managed-defense-COL3aqXw.mjs → managed-defense-xGCISaB_.mjs} +1 -1
- package/dist/{managed-transforms-cK0strTK.mjs → managed-transforms-DDgqNWVJ.mjs} +1 -1
- package/dist/{matches-Df4WEz0x.mjs → matches-CxWA1zUN.mjs} +1 -1
- package/dist/{mcp-DK_5OUVl.mjs → mcp-DVoYs5z5.mjs} +1 -1
- package/dist/{mesh-CVXpTYED.mjs → mesh-qenm6AM4.mjs} +1 -1
- package/dist/{monetization-BHk0S5BF.mjs → monetization-CUWtxI_y.mjs} +1 -1
- package/dist/{mtls-certificates-8pzdxzOX.mjs → mtls-certificates-xUIkGtmX.mjs} +1 -1
- package/dist/{network-ClNeXTvG.mjs → network-Y8kCdzJC.mjs} +1 -1
- package/dist/{network-interconnects-t3jSoV7o.mjs → network-interconnects-CEvvsGwX.mjs} +1 -1
- package/dist/{oauth-CNSirGUu.mjs → oauth-J2zz9fHk.mjs} +1 -1
- package/dist/{oauth-clients-DBxdvlJC.mjs → oauth-clients-B7qfaBLY.mjs} +1 -1
- package/dist/{oauth-scopes-D39GYkt6.mjs → oauth-scopes-D7_xDwvo.mjs} +1 -1
- package/dist/{oauth-CJamdfrC.mjs → oauth-vj6qkLCC.mjs} +1 -1
- package/dist/{observability-ZV1yPflB.mjs → observability-_aI_XF0M.mjs} +1 -1
- package/dist/{organization-Bk-TkQlB.mjs → organization-C41nlZcO.mjs} +1 -1
- package/dist/{organizations-hXITNpPl.mjs → organizations-D15_q5u6.mjs} +1 -1
- package/dist/{origin-ca-certificates-DsLR_Z2e.mjs → origin-ca-certificates-DGSGDaNw.mjs} +1 -1
- package/dist/{origin-post-quantum-encryption-C_egsVQu.mjs → origin-post-quantum-encryption-C_9NBBkG.mjs} +1 -1
- package/dist/{origin-tls-client-auth-DPG6A6kz.mjs → origin-tls-client-auth-Dh9vTi_F.mjs} +1 -1
- package/dist/{page-rules-B8lrkiiF.mjs → page-rules-CWZJaKuz.mjs} +1 -1
- package/dist/{pages-Cx4doLvQ.mjs → pages-CVlGF6mj.mjs} +1 -1
- package/dist/{pay-per-crawl-BUVHqPPA.mjs → pay-per-crawl-BJ10CSH9.mjs} +1 -1
- package/dist/{pay-per-use-CzYgryid.mjs → pay-per-use-B3eQmzWv.mjs} +1 -1
- package/dist/{pipelines-CGHmwc4a.mjs → pipelines-VhDz1fDL.mjs} +1 -1
- package/dist/{precursor--Jim5u4y.mjs → precursor-CvYpYouB.mjs} +1 -1
- package/dist/{previews-BKO1pZyG.mjs → previews-CJHqRKPF.mjs} +1 -1
- package/dist/{progress-CRjK46r1.mjs → progress-BlxgG8Ss.mjs} +1 -1
- package/dist/{prompt-C_90YsVE.mjs → prompt-ClEoR47s.mjs} +1 -1
- package/dist/{queries-z2pjzXlA.mjs → queries-8m5UOv21.mjs} +1 -1
- package/dist/{queues-D0IXxSa7.mjs → queues-C8P3RI-3.mjs} +1 -1
- package/dist/{r2-DQ7w9dCM.mjs → r2-ChQ_GZA7.mjs} +27 -34
- package/dist/{radar-DyLO7Zg1.mjs → radar-B9PnH7nW.mjs} +1 -1
- package/dist/{raw-fetch-C8SdmQBp.mjs → raw-fetch-CWRDTVMr.mjs} +1 -1
- package/dist/{realtime-mQzLbDxe.mjs → realtime-31GZpgm5.mjs} +1 -1
- package/dist/{registrar-ClbtM5Dy.mjs → registrar-fBw5wh-I.mjs} +1 -1
- package/dist/{registrar-sandbox-BIEHm_Jp.mjs → registrar-sandbox-Bcr5l7Js.mjs} +1 -1
- package/dist/{registry-CSv7HR1J.mjs → registry-rtPfnFht.mjs} +1 -1
- package/dist/{reporting-CjkMzSsZ.mjs → reporting-BfpNLeGh.mjs} +1 -1
- package/dist/{request-headers-jr2VznA9.mjs → request-headers-DmiSqfLo.mjs} +1 -1
- package/dist/{request-tracers-BoSXOTox.mjs → request-tracers-DCpDftuC.mjs} +1 -1
- package/dist/{resource-sharing-CFS39nJq.mjs → resource-sharing-D-OCBlIj.mjs} +1 -1
- package/dist/{resource-tagging-CZ5mvMhE.mjs → resource-tagging-DCn8TwS0.mjs} +1 -1
- package/dist/{rules-CfqumI45.mjs → rules-DHeYlXlI.mjs} +1 -1
- package/dist/{rulesets-o3jsPv4U.mjs → rulesets-BMv5GVEt.mjs} +1 -1
- package/dist/{rum-BZ0rYlun.mjs → rum-CaTeqDsB.mjs} +1 -1
- package/dist/run-BJmOnVJI.mjs +2 -0
- package/dist/run-l2pCxS-W.mjs +2 -0
- package/dist/{schema-flags-nL7pHvaE.mjs → schema-flags-DBujG5kJ.mjs} +1 -1
- package/dist/{scim-0-eR9pvC.mjs → scim-DHwWD1nA.mjs} +1 -1
- package/dist/{sdk-Bmz7t_CD.mjs → sdk-DzVznUuv.mjs} +1 -1
- package/dist/{secrets-store-Duc29Zs-.mjs → secrets-store-DoH9JnqC.mjs} +1 -1
- package/dist/{security-insights-5CuLC-Yo.mjs → security-insights-oqJuf8MY.mjs} +1 -1
- package/dist/{security-txt-qm2PqCPz.mjs → security-txt-BY07I5Bx.mjs} +1 -1
- package/dist/{session-CjQFm10R.mjs → session-CZTuHcbm.mjs} +1 -1
- package/dist/{shared-BDIrEKWt.mjs → shared-D0PR8DbO.mjs} +1 -1
- package/dist/{smart-shield-BXLH9OM0.mjs → smart-shield-g5UHGdCQ.mjs} +1 -1
- package/dist/{snippets-DZG6UWeH.mjs → snippets-Bgn7ZKJo.mjs} +1 -1
- package/dist/{spawn-KZqyx6KK.mjs → spawn-BSnyZB0W.mjs} +1 -1
- package/dist/{spectrum-Be4ImAIY.mjs → spectrum-BmLwQKib.mjs} +1 -1
- package/dist/{speed-CNWujfIC.mjs → speed-CesLeufR.mjs} +1 -1
- package/dist/{src-CW6py11z.mjs → src-wDWeXeJp.mjs} +5 -5
- package/dist/{ssl-BIlS4Qs8.mjs → ssl-DrYK9KX-.mjs} +1 -1
- package/dist/startup-profile-CLmojOrn.mjs +2 -0
- package/dist/{startup-profile-DrV846S5.mjs → startup-profile-CR7GMuLx.mjs} +2 -2
- package/dist/state-50FyMVTz.mjs +2 -0
- package/dist/{state-DhHOAdTo.mjs → state-BDkCKOju.mjs} +1 -1
- package/dist/{stream-C5RvTAKF.mjs → stream-D0sXaEj7.mjs} +1 -1
- package/dist/{submit-Bpru4P79.mjs → submit-CpjZiCN9.mjs} +1 -1
- package/dist/{tags-Rv7X1rU9.mjs → tags-B17h1YBS.mjs} +1 -1
- package/dist/telemetry-BqtdHwmi.mjs +2 -0
- package/dist/{telemetry-0npQCuKc.mjs → telemetry-D84K-X2j.mjs} +1 -1
- package/dist/{tenant-CjYf6OPN.mjs → tenant-S7-Cb54D.mjs} +1 -1
- package/dist/{tenant-custom-nameservers-BbHaaEhv.mjs → tenant-custom-nameservers-CZ8qgnt_.mjs} +1 -1
- package/dist/{tunnels-CLWPaIIF.mjs → tunnels-DzSFv0qt.mjs} +1 -1
- package/dist/{turnstile-C5ezKSoz.mjs → turnstile-C5tc9QGH.mjs} +1 -1
- package/dist/update-check-7q-e6UWW.mjs +2 -0
- package/dist/{update-check-aOpHVlzB.mjs → update-check-CpGj0g5l.mjs} +1 -1
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-info-Gcf8-MyB.mjs → url-info-lY7WbQzK.mjs} +1 -1
- package/dist/{url-normalization-Dvg8mZRk.mjs → url-normalization-BHVZ4ULQ.mjs} +1 -1
- package/dist/{url-scanner-BZCsgh0O.mjs → url-scanner-DRnPOsj9.mjs} +1 -1
- package/dist/{user-BnkvXmjc.mjs → user-DyT-q94n.mjs} +1 -1
- package/dist/{values-yUGls__L.mjs → values-BE3pRW6M.mjs} +1 -1
- package/dist/{vectorize-BiXngTuI.mjs → vectorize-CGl0BOXJ.mjs} +1 -1
- package/dist/version-DOZrLErk.mjs +2 -0
- package/dist/{waiting-rooms-BoLWF74U.mjs → waiting-rooms-DbhiDyp_.mjs} +1 -1
- package/dist/{web-assets-CEJ9Zne1.mjs → web-assets-noQwig7x.mjs} +1 -1
- package/dist/{web3-CIjm7EuJ.mjs → web3-Dts8-Peq.mjs} +1 -1
- package/dist/{workers-DdtWb7Ws.mjs → workers-DtZRm0HJ.mjs} +1 -1
- package/dist/{workers-builds-DT4tA-KT.mjs → workers-builds-ean9unEX.mjs} +1 -1
- package/dist/{workers-for-platforms-CaCr8ApU.mjs → workers-for-platforms-jdC-4D-X.mjs} +1 -1
- package/dist/{workers-vpc-DRtjG39D.mjs → workers-vpc-D2PZCegg.mjs} +1 -1
- package/dist/{workflows-DRme6yrC.mjs → workflows-C9QBOzZz.mjs} +1 -1
- package/dist/{zaraz-DmjDEnUJ.mjs → zaraz-DVLkn3fF.mjs} +1 -1
- package/dist/{zero-trust-BRAHExxa.mjs → zero-trust-DfwISsW4.mjs} +1 -1
- package/dist/{zone-CclLvb-g.mjs → zone-DQV-hfHN.mjs} +1 -1
- package/dist/{zones-C6tc2OOV.mjs → zones-By8IT3CV.mjs} +1 -1
- package/package.json +12 -12
- package/dist/build-Dyt1M_Ib.mjs +0 -2
- package/dist/chunk-M77HNR46-DPbhuhiy.mjs +0 -2
- package/dist/chunk-RV27PEH3-Cws_30ln.mjs +0 -97
- package/dist/dist-DfMipWKR.mjs +0 -366
- package/dist/error-sanitization-CEf4JTNN.mjs +0 -2
- package/dist/hyperdrive-Bxk9LZf5.mjs +0 -37
- package/dist/local-BWhuu9TH.mjs +0 -2
- package/dist/run-D0_7wBp2.mjs +0 -2
- package/dist/run-huwFFwXd.mjs +0 -2
- package/dist/startup-profile-B0UCc9_J.mjs +0 -2
- package/dist/state-Dyo8DcW7.mjs +0 -2
- package/dist/telemetry-B4_YhD82.mjs +0 -2
- package/dist/update-check-CebyUyqG.mjs +0 -2
- package/dist/version-C3q1GMTe.mjs +0 -2
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{t as e}from"./local-C9i1d0ma.mjs";import{a as t,t as n}from"./context-C71TA0Yp.mjs";import{r}from"./auth-CHTMVVW3.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-BlxgG8Ss.mjs";import{t as s}from"./run-l2pCxS-W.mjs";import"./telemetry-BqtdHwmi.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{a as d,i as f,n as p}from"./prompt-ClEoR47s.mjs";function m(e){return e.usage(`$0 hyperdrive create
|
|
3
|
+
|
|
4
|
+
Creates and returns a new Hyperdrive configuration. For a PlanetScale integration, the Cloudflare account must already be linked to PlanetScale in the Hyperdrive dashboard.`).option(`mtls-ca-certificate-id`,{type:`string`,description:`Define CA certificate ID obtained after uploading CA cert.`}).option(`mtls-certificate-id`,{type:`string`,description:`Define mTLS certificate ID obtained after uploading client cert.`}).option(`mtls-sslmode`,{type:`string`,description:"PostgreSQL accepts `require`, `verify-ca`, and `verify-full`. MySQL accepts `REQUIRED`, `VERIFY_CA`, and `VERIFY_IDENTITY`. The verify modes require a CA certificate; the require modes cannot be used with a CA certificate.",choices:[`require`,`verify-ca`,`verify-full`,`REQUIRED`,`VERIFY_CA`,`VERIFY_IDENTITY`]}).option(`name`,{type:`string`,description:`The name of the Hyperdrive configuration. Used to identify the configuration in the Cloudflare dashboard and API.`}).option(`origin-connection-limit`,{type:`number`,description:`The (soft) maximum number of connections the Hyperdrive is allowed to make to the origin database.
|
|
5
|
+
|
|
6
|
+
Maximum allowed: 20 for free tier accounts, 100 for paid tier accounts.
|
|
7
|
+
If not specified, defaults to 20 for free tier and 60 for paid tier.
|
|
8
|
+
Certain Cloudflare-managed origins may be permitted a higher limit.
|
|
9
|
+
Contact Cloudflare if you need a higher limit.
|
|
10
|
+
`}).option(`integration-custom-database-name`,{type:`string`,description:"The database name to use when connecting. Defaults to `postgres` for PostgreSQL and `mysql` for MySQL."}).option(`integration-database-branch-name`,{type:`string`,description:`The name of the PlanetScale database branch.`}).option(`integration-database-name`,{type:`string`,description:`The name of the PlanetScale database.`}).option(`integration-organization-name`,{type:`string`,description:`The name of the PlanetScale organization.`}).option(`integration-provider`,{type:`string`,description:`The database integration provider used by this operation.`,choices:[`planetscale`]}).option(`integration-scheme`,{type:`string`,description:`Specifies the URL scheme used to connect to your origin database.`,choices:[`postgres`,`postgresql`,`mysql`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`A request to create a Hyperdrive configuration using exactly one of caller-supplied origin credentials or a managed integration.`})}const h={command:`create`,describe:`Create Hyperdrive`,builder:m,handler:async f=>s({command:`hyperdrive create`,classification:{safeFlags:[`mtls-sslmode`,`integration-provider`,`integration-scheme`,`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf hyperdrive create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/hyperdrive/configs`,pathParams:{},bodyKind:`json`,body:f.body===void 0?l({mtls:{ca_certificate_id:u(f[`mtls-ca-certificate-id`],`mtls-ca-certificate-id`,`text`),mtls_certificate_id:u(f[`mtls-certificate-id`],`mtls-certificate-id`,`text`),sslmode:u(f[`mtls-sslmode`],`mtls-sslmode`,`text`)},name:u(f.name,`name`,`text`),origin_connection_limit:f[`origin-connection-limit`],integration:{custom_database_name:u(f[`integration-custom-database-name`],`integration-custom-database-name`,`text`),database_branch_name:u(f[`integration-database-branch-name`],`integration-database-branch-name`,`text`),database_name:u(f[`integration-database-name`],`integration-database-name`,`text`),organization_name:u(f[`integration-organization-name`],`integration-organization-name`,`text`),provider:u(f[`integration-provider`],`integration-provider`,`text`),scheme:u(f[`integration-scheme`],`integration-scheme`,`text`)}}):c(f.body)});return}let s=await r(f),p=f.local?e:await n();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Creating`,async()=>s.hyperdrive.create({body:e,account_id:p})),{successLabel:`Created`});return}f.name===void 0&&(f.name=await d(`name`,`The name of the Hyperdrive configuration. Used to identify the configuration in the Cloudflare dashboard and API.`));let m=l({mtls:{ca_certificate_id:u(f[`mtls-ca-certificate-id`],`mtls-ca-certificate-id`,`text`),mtls_certificate_id:u(f[`mtls-certificate-id`],`mtls-certificate-id`,`text`),sslmode:u(f[`mtls-sslmode`],`mtls-sslmode`,`text`)},name:u(f.name,`name`,`text`),origin_connection_limit:f[`origin-connection-limit`],integration:{custom_database_name:u(f[`integration-custom-database-name`],`integration-custom-database-name`,`text`),database_branch_name:u(f[`integration-database-branch-name`],`integration-database-branch-name`,`text`),database_name:u(f[`integration-database-name`],`integration-database-name`,`text`),organization_name:u(f[`integration-organization-name`],`integration-organization-name`,`text`),provider:u(f[`integration-provider`],`integration-provider`,`text`),scheme:u(f[`integration-scheme`],`integration-scheme`,`text`)}});i(await o(`Creating`,async()=>s.hyperdrive.create({body:m,account_id:p})),{successLabel:`Created`})})};function g(e){return e.usage(`$0 hyperdrive delete <hyperdrive-id>
|
|
11
|
+
|
|
12
|
+
Deletes the specified Hyperdrive.`).positional(`hyperdrive-id`,{type:`string`,description:`The unique identifier of the Hyperdrive configuration.`,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 <hyperdrive-id>`,describe:`Delete Hyperdrive`,builder:g,handler:async c=>s({command:`hyperdrive delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf hyperdrive delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/hyperdrive/configs/${c[`hyperdrive-id`]==null?`<hyperdrive-id>`:encodeURIComponent(String(c[`hyperdrive-id`]))}`,pathParams:{"hyperdrive-id":String(c[`hyperdrive-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();if(c.accountId=l,!await p({force:!!c.force,message:`This operation deletes an existing Hyperdrive configuration.`})){process.stderr.write(`Aborted.
|
|
13
|
+
`);return}i(await o(`Deleting`,async()=>s.hyperdrive.delete({account_id:l,hyperdrive_id:c[`hyperdrive-id`]})),{successLabel:`Deleted`})})};function v(e){return e.usage(`$0 hyperdrive get <hyperdrive-id>
|
|
14
|
+
|
|
15
|
+
Returns the specified Hyperdrive configuration.`).positional(`hyperdrive-id`,{type:`string`,description:`The unique identifier of the Hyperdrive configuration.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const y={command:`get <hyperdrive-id>`,describe:`Get Hyperdrive`,builder:v,handler:async c=>s({command:`hyperdrive get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf hyperdrive get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/hyperdrive/configs/${c[`hyperdrive-id`]==null?`<hyperdrive-id>`:encodeURIComponent(String(c[`hyperdrive-id`]))}`,pathParams:{"hyperdrive-id":String(c[`hyperdrive-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.hyperdrive.get({account_id:l,hyperdrive_id:c[`hyperdrive-id`]})),{successLabel:`Loaded`})})};function b(e){return e.usage(`$0 hyperdrive integration planetscale signature
|
|
16
|
+
|
|
17
|
+
Returns a short-lived signed authorization for creating a database that is billed through Cloudflare. The caller passes these values to the integration partner's own CLI, which verifies the signature before creating the database. Requires the account to be entitled to Cloudflare-billed databases for the integration.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`signature`,describe:`Create Database Signature`,builder:b,handler:async c=>s({command:`hyperdrive integration planetscale signature`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf hyperdrive integration planetscale signature`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/hyperdrive/integrationsOperations/planetScale/createDatabaseSignature`,pathParams:{},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Creating`,async()=>s.hyperdrive.createDatabaseSignature({account_id:l})),{successLabel:`Created`})})},S={command:`planetscale`,describe:`Operations for integration.planetscale`,builder:e=>e.command(x).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},C={command:`integration`,describe:`Operations for integration`,builder:e=>e.command(S).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function w(e){return e.usage(`$0 hyperdrive list
|
|
18
|
+
|
|
19
|
+
Returns a list of Hyperdrives.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const T={command:`list`,describe:`List Hyperdrives`,builder:w,handler:async c=>s({command:`hyperdrive list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`]};if(c.dryRun){a({command:`cf hyperdrive list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/hyperdrive/configs`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.hyperdrive.list({account_id:u,...s})),{successLabel:`Loaded`})})};function E(e){return e.usage(`$0 hyperdrive replace <hyperdrive-id>
|
|
20
|
+
|
|
21
|
+
Replaces and returns the specified Hyperdrive configuration. The request must include the name and complete origin connection details. Omitted caching settings are reset to their defaults, while omitted mTLS settings and origin connection limits are preserved. Use the update operation to modify only selected fields.`).positional(`hyperdrive-id`,{type:`string`,description:`The unique identifier of the Hyperdrive configuration.`,demandOption:!0}).option(`caching-disabled`,{type:`boolean`,description:`Set to true to disable caching of SQL responses. Default is false.`}).option(`caching-max-age`,{type:`number`,description:`Specify the maximum duration (in seconds) items should persist in the cache. Defaults to 60 seconds if not specified.`}).option(`caching-stale-while-revalidate`,{type:`number`,description:`Specify the number of seconds the cache may serve a stale response. Defaults to 15 seconds if not specified.`}).option(`mtls-ca-certificate-id`,{type:`string`,description:`Define CA certificate ID obtained after uploading CA cert.`}).option(`mtls-certificate-id`,{type:`string`,description:`Define mTLS certificate ID obtained after uploading client cert.`}).option(`mtls-sslmode`,{type:`string`,description:"PostgreSQL accepts `require`, `verify-ca`, and `verify-full`. MySQL accepts `REQUIRED`, `VERIFY_CA`, and `VERIFY_IDENTITY`. The verify modes require a CA certificate; the require modes cannot be used with a CA certificate.",choices:[`require`,`verify-ca`,`verify-full`,`REQUIRED`,`VERIFY_CA`,`VERIFY_IDENTITY`]}).option(`name`,{type:`string`,description:`The name of the Hyperdrive configuration. Used to identify the configuration in the Cloudflare dashboard and API.`}).option(`origin-database`,{type:`string`,description:`Set the name of your origin database.`}).option(`origin-password`,{type:`string`,description:`Set the password needed to access your origin database. The API never returns this write-only value.`}).option(`origin-scheme`,{type:`string`,description:`Specifies the URL scheme used to connect to your origin database.`,choices:[`postgres`,`postgresql`,`mysql`]}).option(`origin-user`,{type:`string`,description:`Set the user of your origin database.`}).option(`origin-host`,{type:`string`,description:`Defines the publicly reachable hostname or IP of your origin database. Private, loopback, and link-local IP addresses are not allowed.`}).option(`origin-port`,{type:`number`,description:`Defines the port of your origin database. Defaults to 5432 for PostgreSQL or 3306 for MySQL if not specified.`}).option(`origin-access-client-id`,{type:`string`,description:`Defines the Client ID of the Access token to use when connecting to the origin database.`}).option(`origin-access-client-secret`,{type:`string`,description:`Defines the Client Secret of the Access Token to use when connecting to the origin database. The API never returns this write-only value.`}).option(`origin-service-id`,{type:`string`,description:`The identifier of the Workers VPC Service to connect through. Hyperdrive will egress through the specified VPC Service to reach the origin database.`}).option(`origin-connection-limit`,{type:`number`,description:`The (soft) maximum number of connections the Hyperdrive is allowed to make to the origin database.
|
|
22
|
+
|
|
23
|
+
Maximum allowed: 20 for free tier accounts, 100 for paid tier accounts.
|
|
24
|
+
If not specified, defaults to 20 for free tier and 60 for paid tier.
|
|
25
|
+
Certain Cloudflare-managed origins may be permitted a higher limit.
|
|
26
|
+
Contact Cloudflare if you need a higher limit.
|
|
27
|
+
`}).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(`origin-host`,[`origin-service-id`]).conflicts(`origin-port`,[`origin-access-client-id`,`origin-access-client-secret`,`origin-service-id`]).implies(`origin-port`,[`origin-host`]).conflicts(`origin-access-client-id`,[`origin-port`,`origin-service-id`]).implies(`origin-access-client-id`,[`origin-host`,`origin-access-client-secret`]).conflicts(`origin-access-client-secret`,[`origin-port`,`origin-service-id`]).implies(`origin-access-client-secret`,[`origin-host`,`origin-access-client-id`]).conflicts(`origin-service-id`,[`origin-host`,`origin-port`,`origin-access-client-id`,`origin-access-client-secret`])}const D={command:`replace <hyperdrive-id>`,describe:`Replace Hyperdrive`,builder:E,handler:async p=>s({command:`hyperdrive replace`,classification:{safeFlags:[`caching-disabled`,`mtls-sslmode`,`origin-scheme`,`dry-run`]}},p,async()=>{if(p.dryRun){a({command:`cf hyperdrive replace`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/hyperdrive/configs/${p[`hyperdrive-id`]==null?`<hyperdrive-id>`:encodeURIComponent(String(p[`hyperdrive-id`]))}`,pathParams:{"hyperdrive-id":String(p[`hyperdrive-id`]??``)},bodyKind:`json`,body:p.body===void 0?l({caching:{disabled:p[`caching-disabled`],max_age:p[`caching-max-age`],stale_while_revalidate:p[`caching-stale-while-revalidate`]},mtls:{ca_certificate_id:u(p[`mtls-ca-certificate-id`],`mtls-ca-certificate-id`,`text`),mtls_certificate_id:u(p[`mtls-certificate-id`],`mtls-certificate-id`,`text`),sslmode:u(p[`mtls-sslmode`],`mtls-sslmode`,`text`)},name:u(p.name,`name`,`text`),origin:{database:u(p[`origin-database`],`origin-database`,`text`),password:u(p[`origin-password`],`origin-password`,`text`),scheme:u(p[`origin-scheme`],`origin-scheme`,`text`),user:u(p[`origin-user`],`origin-user`,`text`),host:u(p[`origin-host`],`origin-host`,`text`),port:p[`origin-port`],access_client_id:u(p[`origin-access-client-id`],`origin-access-client-id`,`text`),access_client_secret:u(p[`origin-access-client-secret`],`origin-access-client-secret`,`text`),service_id:u(p[`origin-service-id`],`origin-service-id`,`text`)},origin_connection_limit:p[`origin-connection-limit`]}):c(p.body)});return}let s=await r(p),m=p.local?e:await n();if(p.accountId=m,p.body){let e=c(p.body);i(await o(`Updating`,async()=>s.hyperdrive.replace({...e,account_id:m,hyperdrive_id:p[`hyperdrive-id`]})),{successLabel:`Updated`});return}p.name===void 0&&(p.name=await d(`name`,`The name of the Hyperdrive configuration. Used to identify the configuration in the Cloudflare dashboard and API.`)),p[`origin-database`]===void 0&&(p[`origin-database`]=await d(`origin-database`,`Set the name of your origin database.`)),p[`origin-password`]===void 0&&(p[`origin-password`]=await d(`origin-password`,`Set the password needed to access your origin database. The API never returns this write-only value.`,{kind:`secret`})),p[`origin-scheme`]===void 0&&(p[`origin-scheme`]=await f(`origin-scheme`,`Specifies the URL scheme used to connect to your origin database.`,[`postgres`,`postgresql`,`mysql`])),p[`origin-user`]===void 0&&(p[`origin-user`]=await d(`origin-user`,`Set the user of your origin database.`));let h=l({caching:{disabled:p[`caching-disabled`],max_age:p[`caching-max-age`],stale_while_revalidate:p[`caching-stale-while-revalidate`]},mtls:{ca_certificate_id:u(p[`mtls-ca-certificate-id`],`mtls-ca-certificate-id`,`text`),mtls_certificate_id:u(p[`mtls-certificate-id`],`mtls-certificate-id`,`text`),sslmode:u(p[`mtls-sslmode`],`mtls-sslmode`,`text`)},name:u(p.name,`name`,`text`),origin:{database:u(p[`origin-database`],`origin-database`,`text`),password:u(p[`origin-password`],`origin-password`,`text`),scheme:u(p[`origin-scheme`],`origin-scheme`,`text`),user:u(p[`origin-user`],`origin-user`,`text`),host:u(p[`origin-host`],`origin-host`,`text`),port:p[`origin-port`],access_client_id:u(p[`origin-access-client-id`],`origin-access-client-id`,`text`),access_client_secret:u(p[`origin-access-client-secret`],`origin-access-client-secret`,`text`),service_id:u(p[`origin-service-id`],`origin-service-id`,`text`)},origin_connection_limit:p[`origin-connection-limit`]});i(await o(`Updating`,async()=>s.hyperdrive.replace({...h,account_id:m,hyperdrive_id:p[`hyperdrive-id`]})),{successLabel:`Updated`})})};function O(e){return e.usage(`$0 hyperdrive restart <hyperdrive-id>
|
|
28
|
+
|
|
29
|
+
Restarts the connection pool for the specified Hyperdrive configuration without changing its configuration. Existing connections are drained and a new pool is established at the edge.`).positional(`hyperdrive-id`,{type:`string`,description:`The unique identifier of the Hyperdrive configuration.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const k={command:`restart <hyperdrive-id>`,describe:`Restart Hyperdrive`,builder:O,handler:async c=>s({command:`hyperdrive restart`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf hyperdrive restart`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/hyperdrive/configs/${c[`hyperdrive-id`]==null?`<hyperdrive-id>`:encodeURIComponent(String(c[`hyperdrive-id`]))}/restart`,pathParams:{"hyperdrive-id":String(c[`hyperdrive-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Creating`,async()=>s.hyperdrive.restart({account_id:l,hyperdrive_id:c[`hyperdrive-id`]})),{successLabel:`Created`})})};function A(e){return e.usage(`$0 hyperdrive update <hyperdrive-id>
|
|
30
|
+
|
|
31
|
+
Updates and returns the specified fields of the Hyperdrive configuration. Custom caching settings are not kept if caching is disabled.`).positional(`hyperdrive-id`,{type:`string`,description:`The unique identifier of the Hyperdrive configuration.`,demandOption:!0}).option(`caching-disabled`,{type:`boolean`,description:`Set to true to disable caching of SQL responses. Default is false.`}).option(`caching-max-age`,{type:`number`,description:`Specify the maximum duration (in seconds) items should persist in the cache. Defaults to 60 seconds if not specified.`}).option(`caching-stale-while-revalidate`,{type:`number`,description:`Specify the number of seconds the cache may serve a stale response. Defaults to 15 seconds if not specified.`}).option(`mtls-ca-certificate-id`,{type:`string`,description:`Define CA certificate ID obtained after uploading CA cert.`}).option(`mtls-certificate-id`,{type:`string`,description:`Define mTLS certificate ID obtained after uploading client cert.`}).option(`mtls-sslmode`,{type:`string`,description:"PostgreSQL accepts `require`, `verify-ca`, and `verify-full`. MySQL accepts `REQUIRED`, `VERIFY_CA`, and `VERIFY_IDENTITY`. The verify modes require a CA certificate; the require modes cannot be used with a CA certificate.",choices:[`require`,`verify-ca`,`verify-full`,`REQUIRED`,`VERIFY_CA`,`VERIFY_IDENTITY`]}).option(`name`,{type:`string`,description:`The name of the Hyperdrive configuration. Used to identify the configuration in the Cloudflare dashboard and API. An empty value leaves the name unchanged.`}).option(`origin-connection-limit`,{type:`number`,description:`The (soft) maximum number of connections the Hyperdrive is allowed to make to the origin database.
|
|
32
|
+
|
|
33
|
+
Maximum allowed: 20 for free tier accounts, 100 for paid tier accounts.
|
|
34
|
+
If not specified, defaults to 20 for free tier and 60 for paid tier.
|
|
35
|
+
Certain Cloudflare-managed origins may be permitted a higher limit.
|
|
36
|
+
Contact Cloudflare if you need a higher limit.
|
|
37
|
+
`}).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:`update <hyperdrive-id>`,describe:`Update Hyperdrive`,builder:A,handler:async d=>s({command:`hyperdrive update`,classification:{safeFlags:[`caching-disabled`,`mtls-sslmode`,`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf hyperdrive update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/hyperdrive/configs/${d[`hyperdrive-id`]==null?`<hyperdrive-id>`:encodeURIComponent(String(d[`hyperdrive-id`]))}`,pathParams:{"hyperdrive-id":String(d[`hyperdrive-id`]??``)},bodyKind:`json`,body:d.body===void 0?l({caching:{disabled:d[`caching-disabled`],max_age:d[`caching-max-age`],stale_while_revalidate:d[`caching-stale-while-revalidate`]},mtls:{ca_certificate_id:u(d[`mtls-ca-certificate-id`],`mtls-ca-certificate-id`,`text`),mtls_certificate_id:u(d[`mtls-certificate-id`],`mtls-certificate-id`,`text`),sslmode:u(d[`mtls-sslmode`],`mtls-sslmode`,`text`)},name:u(d.name,`name`,`text`),origin_connection_limit:d[`origin-connection-limit`]}):c(d.body)});return}let s=await r(d),f=d.local?e:await n();if(d.accountId=f,d.body){let e=c(d.body);i(await o(`Updating`,async()=>s.hyperdrive.update({...e,account_id:f,hyperdrive_id:d[`hyperdrive-id`]})),{successLabel:`Updated`});return}let p=l({caching:{disabled:d[`caching-disabled`],max_age:d[`caching-max-age`],stale_while_revalidate:d[`caching-stale-while-revalidate`]},mtls:{ca_certificate_id:u(d[`mtls-ca-certificate-id`],`mtls-ca-certificate-id`,`text`),mtls_certificate_id:u(d[`mtls-certificate-id`],`mtls-certificate-id`,`text`),sslmode:u(d[`mtls-sslmode`],`mtls-sslmode`,`text`)},name:u(d.name,`name`,`text`),origin_connection_limit:d[`origin-connection-limit`]});i(await o(`Updating`,async()=>s.hyperdrive.update({...p,account_id:f,hyperdrive_id:d[`hyperdrive-id`]})),{successLabel:`Updated`})})},M={command:`hyperdrive`,describe:`Accelerate access to existing databases by caching queries and pooling connections at the edge`,builder:e=>e.command(h).command(_).command(y).command(T).command(D).command(k).command(j).command(C).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{M as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-C9i1d0ma.mjs";import{a as t,t as n}from"./context-C71TA0Yp.mjs";import{r}from"./auth-CHTMVVW3.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-BlxgG8Ss.mjs";import{t as s}from"./run-l2pCxS-W.mjs";import"./telemetry-BqtdHwmi.mjs";import{n as c,r as l,t as u}from"./body-parser-hh2avzkz.mjs";import{n as d}from"./input-validation-Dk52b0me.mjs";import{a as f,n as p}from"./prompt-ClEoR47s.mjs";import{t as m}from"./cli-types-DoVT5q_M.mjs";function h(e){return e.usage(`$0 iam permission-groups get <permission-group-id>
|
|
3
3
|
|
|
4
4
|
Get information about a specific permission group in an account.`).positional(`permission-group-id`,{type:`string`,description:`Permission Group identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ee={command:`get <permission-group-id>`,describe:`Permission Group Details`,builder:h,handler:async c=>s({command:`iam permission-groups get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf iam permission-groups get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/iam/permission_groups/${c[`permission-group-id`]==null?`<permission-group-id>`:encodeURIComponent(String(c[`permission-group-id`]))}`,pathParams:{"permission-group-id":String(c[`permission-group-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.iam.permissionGroups.get({account_id:l,permission_group_id:c[`permission-group-id`]})),{successLabel:`Loaded`})})};function g(e){return e.usage(`$0 iam permission-groups list
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-C9i1d0ma.mjs";import{a as t,i as n,t as r}from"./context-C71TA0Yp.mjs";import{a as i,r as a}from"./auth-CHTMVVW3.mjs";import{t as o}from"./output-CvQFJkvi.mjs";import{t as s}from"./dry-run-Bq0JAsbX.mjs";import{t as c}from"./progress-BlxgG8Ss.mjs";import{t as l}from"./run-l2pCxS-W.mjs";import"./telemetry-BqtdHwmi.mjs";import{n as u,r as d,t as f}from"./body-parser-hh2avzkz.mjs";import{n as p,t as m}from"./input-validation-Dk52b0me.mjs";import{a as h,i as g,n as _}from"./prompt-ClEoR47s.mjs";import{t as ee}from"./cli-types-DoVT5q_M.mjs";import{n as te,t as v}from"./raw-fetch-CWRDTVMr.mjs";function y(e){return e.usage(`$0 images create
|
|
3
3
|
|
|
4
4
|
Upload an image to CF Images. Images up to 10 Megabytes can be uploaded using a single HTTP POST (multipart/form-data) request by sending an image file or passing a URL accessible to the API.`).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(`creator`,{type:`string`,description:`Can set the creator field with an internal user ID.`}).option(`id`,{type:`string`,description:`An optional custom unique identifier for your image.`}).option(`metadata`,{type:`string`,description:`User modifiable key-value store. Can use used for keeping references to another system of record for managing images.`}).option(`require-signed-urls`,{type:`boolean`,description:`Indicates whether the image requires a signature token for the access.`}).option(`url`,{type:`string`,description:`A URL to fetch an image from origin. Only needed when type is uploading from a URL.`})}const b={command:`create`,describe:`Upload an image`,builder:y,handler:async n=>l({command:`images create`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf images create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/images/v1`,pathParams:{},bodyKind:`multipart`,body:{body:n.body,file:n.file,creator:n.creator,id:n.id,metadata:n.metadata,"require-signed-urls":n[`require-signed-urls`],url:n.url}});return}let l=await a(n),u=n.local?e:await r();if(n.accountId=u,n.file!==void 0||n.body!==void 0||n.creator!==void 0||n.id!==void 0||n.metadata!==void 0||n[`require-signed-urls`]!==void 0||n.url!==void 0){let e=new FormData;if(n.file){let t=m(n.file);e.append(`file`,new Blob([t]),n.file.split(/[\\/]/).filter(Boolean).pop())}else n.body!==void 0&&e.append(`file`,n.body);if(n.creator!==void 0&&e.append(`creator`,String(p(n.creator,`creator`,`text`)??``)),n.id!==void 0&&e.append(`id`,String(p(n.id,`id`,`text`)??``)),n.metadata!==void 0){let t=typeof n.metadata==`string`?p(n.metadata,`metadata`,`text`):n.metadata;e.append(`metadata`,typeof t==`string`?t:JSON.stringify(t))}n[`require-signed-urls`]!==void 0&&e.append(`requireSignedURLs`,String(n[`require-signed-urls`])),n.url!==void 0&&e.append(`url`,String(p(n.url,`url`,`text`)??``)),o(await c(`Creating`,async()=>i(l,`POST`,`/accounts/${u}/images/v1`,{body:e})),{successLabel:`Created`});return}if(n.body){let e=p(n.body,`body`,`binary`);o(await c(`Creating`,async()=>i(l,`POST`,`/accounts/${u}/images/v1`,{body:e,headers:{"Content-Type":`multipart/form-data`}})),{successLabel:`Created`});return}o(await c(`Creating`,async()=>l.images.create({account_id:u})),{successLabel:`Created`})})};function x(e){return e.usage(`$0 images delete <image-id>
|
|
5
5
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{n as e,r as t,t as n}from"./src-
|
|
2
|
+
import{n as e,r as t,t as n}from"./src-wDWeXeJp.mjs";import{t as r}from"./cli-exit-Dqoo6Jgb.mjs";export{r as CliExit,n as buildCli,e as main,t as runMain};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./src-
|
|
2
|
+
import"./src-wDWeXeJp.mjs";import{r as e}from"./theme-BIWQFmZ0.mjs";import{t}from"./cli-exit-Dqoo6Jgb.mjs";import{R as n,n as r}from"./dist-BuCJ_55d.mjs";import{n as i}from"./version-DOZrLErk.mjs";import{n as a}from"./delegate-B6LetRpZ.mjs";import"./ui-BQxRjahW.mjs";import{t as o}from"./project-settings-DO6njFg_.mjs";import{n as s}from"./dist-DW47TUGh.mjs";import{t as c}from"./progress-BlxgG8Ss.mjs";import{n as l}from"./run-l2pCxS-W.mjs";import"./telemetry-BqtdHwmi.mjs";import{n as u,r as d}from"./dialog-BlUXJKbA.mjs";import{i as f,n as p,t as m}from"./autoconfig-DXXV-Xyz.mjs";import{basename as h,dirname as g,isAbsolute as _,join as v,relative as y,resolve as b}from"node:path";import{mkdir as x,readdir as S,stat as C,writeFile as w}from"node:fs/promises";const T={"@cloudflare/vite-plugin":`beta`,typescript:`^7.0.2`,vite:`^8.3.0`};function ee(e){return{".gitignore":M(),"cloudflare.config.ts":D(e),"package.json":A(e),"src/index.ts":k(),"tsconfig.json":j(),"vite.config.ts":O()}}function E(e){return/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/.test(e)?`^${e}`:`latest`}function D(e){return`import { bindings, defineConfig } from "cf/config";
|
|
3
3
|
import * as entrypoint from "./src/index.ts" with { type: "cf-worker" };
|
|
4
4
|
|
|
5
5
|
export default defineConfig({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-C9i1d0ma.mjs";import{a as t,i as n,t as r}from"./context-C71TA0Yp.mjs";import{a as i,r as a}from"./auth-CHTMVVW3.mjs";import{t as o}from"./output-CvQFJkvi.mjs";import{t as s}from"./dry-run-Bq0JAsbX.mjs";import{t as c}from"./progress-BlxgG8Ss.mjs";import{t as l}from"./run-l2pCxS-W.mjs";import"./telemetry-BqtdHwmi.mjs";import{n as u,t as d}from"./body-parser-hh2avzkz.mjs";import{n as f,t as p}from"./input-validation-Dk52b0me.mjs";import{a as m,n as h}from"./prompt-ClEoR47s.mjs";import{t as g}from"./cli-types-DoVT5q_M.mjs";import{n as ee,t as te}from"./raw-fetch-CWRDTVMr.mjs";function _(e){return e.usage(`$0 intel asn get <asn>
|
|
3
3
|
|
|
4
4
|
Gets an overview of the Autonomous System Number (ASN) and a list of subnets for it.`).positional(`asn`,{type:`string`,description:`Asn`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const v={command:`get <asn>`,describe:`Get ASN Overview.`,builder:_,handler:async n=>l({command:`intel asn get`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf intel asn get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/intel/asn/${n.asn==null?`<asn>`:encodeURIComponent(String(n.asn))}`,pathParams:{asn:String(n.asn??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.intel.asn.get({account_id:l,asn:n.asn})),{successLabel:`Loaded`})})};function y(e){return e.usage(`$0 intel asn subnets get <asn>
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{r as e}from"./auth-
|
|
2
|
+
import{r as e}from"./auth-CHTMVVW3.mjs";import{t}from"./output-CvQFJkvi.mjs";import{t as n}from"./dry-run-Bq0JAsbX.mjs";import{t as r}from"./progress-BlxgG8Ss.mjs";import{t as i}from"./run-l2pCxS-W.mjs";import"./telemetry-BqtdHwmi.mjs";function a(e){return e.usage(`$0 ips list
|
|
3
3
|
|
|
4
4
|
Get IPs used on the Cloudflare/JD Cloud network, see https://www.cloudflare.com/ips for Cloudflare IPs or https://developers.cloudflare.com/china-network/reference/infrastructure/ for JD Cloud IPs.`).option(`networks`,{type:`string`,description:"Specified as `jdcloud` to list IPs used by JD Cloud data centers."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const o={command:`list`,describe:`Cloudflare/JD Cloud IP Details`,builder:a,handler:async a=>i({command:`ips list`,classification:{safeFlags:[`dry-run`]}},a,async()=>{let i={networks:a.networks};if(a.dryRun){n({command:`cf ips list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/ips`,pathParams:{},query:i,bodyKind:`none`});return}let o=await e(a);t(await r(`Loading`,async()=>o.ips.list(i)),{successLabel:`Loaded`})})},s={command:`ips`,describe:`ips`,builder:e=>e.command(o).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{s as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{i as e}from"./context-
|
|
2
|
+
import{i as e}from"./context-C71TA0Yp.mjs";import{r as t}from"./auth-CHTMVVW3.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-BlxgG8Ss.mjs";import{t as a}from"./run-l2pCxS-W.mjs";import"./telemetry-BqtdHwmi.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{a as l,n as u}from"./prompt-ClEoR47s.mjs";function d(e){return e.usage(`$0 keyless-certificates create
|
|
3
3
|
|
|
4
4
|
Creates a Keyless SSL configuration that allows SSL/TLS termination without exposing private keys to Cloudflare. Keys remain on your infrastructure.`).option(`bundle-method`,{type:`string`,description:`A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it.`,choices:[`ubiquitous`,`optimal`,`force`],default:`ubiquitous`}).option(`certificate`,{type:`string`,description:`The zone's SSL certificate or SSL certificate and intermediate(s).`}).option(`host`,{type:`string`,description:`The keyless SSL name.`}).option(`name`,{type:`string`,description:`The keyless SSL name.`}).option(`port`,{type:`number`,description:`The keyless SSL port used to communicate between Cloudflare and the client's Keyless SSL server.`,default:24008}).option(`tunnel-private-ip`,{type:`string`,description:`Private IP of the Key Server Host.`}).option(`tunnel-vnet-id`,{type:`string`,description:`Cloudflare Tunnel Virtual Network ID.`}).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([`tunnel-private-ip`,`tunnel-vnet-id`].some(t=>e[t]!==void 0)){let t=[`tunnel-private-ip`,`tunnel-vnet-id`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --tunnel-* flag is set`)}return!0})}const f={command:`create`,describe:`Create Keyless SSL Configuration`,builder:d,handler:async u=>a({command:`keyless-certificates create`,classification:{safeFlags:[`bundle-method`,`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf keyless-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/keyless_certificates`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({bundle_method:c(u[`bundle-method`],`bundle-method`,`text`),certificate:c(u.certificate,`certificate`,`text`),host:c(u.host,`host`,`text`),name:c(u.name,`name`,`text`),port:u.port,tunnel:{private_ip:c(u[`tunnel-private-ip`],`tunnel-private-ip`,`text`),vnet_id:c(u[`tunnel-vnet-id`],`tunnel-vnet-id`,`text`)}}):o(u.body)});return}let a=await t(u),d=await e({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,u.body){let e=o(u.body);n(await i(`Creating`,async()=>a.keylessCertificates.create({...e,zone_id:d})),{successLabel:`Created`});return}if(u.certificate===void 0&&(u.certificate=await l(`certificate`,`The zone's SSL certificate or SSL certificate and intermediate(s).`)),u.host===void 0&&(u.host=await l(`host`,`The keyless SSL name.`)),u.port===void 0)throw Error(`--port is required (or pass --body with this field set).`);let f=s({bundle_method:c(u[`bundle-method`],`bundle-method`,`text`),certificate:c(u.certificate,`certificate`,`text`),host:c(u.host,`host`,`text`),name:c(u.name,`name`,`text`),port:u.port,tunnel:{private_ip:c(u[`tunnel-private-ip`],`tunnel-private-ip`,`text`),vnet_id:c(u[`tunnel-vnet-id`],`tunnel-vnet-id`,`text`)}});n(await i(`Creating`,async()=>a.keylessCertificates.create({...f,zone_id:d})),{successLabel:`Created`})})};function p(e){return e.usage(`$0 keyless-certificates delete <keyless-certificate-id>
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-C9i1d0ma.mjs";import{a as t,t as n}from"./context-C71TA0Yp.mjs";import{r}from"./auth-CHTMVVW3.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-BlxgG8Ss.mjs";import{t as s}from"./run-l2pCxS-W.mjs";import"./telemetry-BqtdHwmi.mjs";function c(e){return e.usage(`$0 keys list
|
|
3
3
|
|
|
4
4
|
Lists all distinct tag keys used across resources in an account.`).option(`cursor`,{type:`string`,description:`Cursor for pagination.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`list`,describe:`List tag keys`,builder:c,handler:async c=>s({command:`keys list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={cursor:c.cursor};if(c.dryRun){a({command:`cf keys list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/tags/keys`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.keys.list({account_id:u,...s})),{successLabel:`Loaded`})})},u={command:`keys`,describe:`keys`,builder:e=>e.command(l).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{u as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-C9i1d0ma.mjs";import{a as t,t as n}from"./context-C71TA0Yp.mjs";import{a as r,r as i}from"./auth-CHTMVVW3.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-BlxgG8Ss.mjs";import{t as c}from"./run-l2pCxS-W.mjs";import"./telemetry-BqtdHwmi.mjs";import{n as l,t as u}from"./body-parser-hh2avzkz.mjs";import{n as d,t as f}from"./input-validation-Dk52b0me.mjs";import{a as p,n as m}from"./prompt-ClEoR47s.mjs";import{t as h}from"./cli-types-DoVT5q_M.mjs";import{n as g,t as _}from"./raw-fetch-CWRDTVMr.mjs";function v(e){return e.usage(`$0 kv bulk delete <namespace-id>
|
|
3
3
|
|
|
4
4
|
Deletes up to 10,000 key-value pairs from the specified Workers KV namespace. Send a JSON array of the key names to delete. The result reports the number of successful deletions and any keys that failed and should be retried.`).positional(`namespace-id`,{type:`string`,description:`ID of the Workers KV namespace.`,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}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const y={command:`delete <namespace-id>`,describe:`Delete multiple key-value pairs`,builder:v,handler:async u=>c({command:`kv bulk delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},u,async()=>{if(u.dryRun){o({command:`cf kv bulk delete`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/storage/kv/namespaces/${u[`namespace-id`]==null?`<namespace-id>`:encodeURIComponent(String(u[`namespace-id`]))}/bulk/delete`,pathParams:{"namespace-id":String(u[`namespace-id`]??``)},bodyKind:`json`,body:u.body===void 0?void 0:l(u.body)});return}let c=await i(u),d=u.local?e:await n();if(u.accountId=d,!await m({force:!!u.force,message:`This operation deletes the specified keys and their values from the Workers KV namespace.`})){process.stderr.write(`Aborted.
|
|
5
5
|
`);return}if(u.body){let e=l(u.body);if(Array.isArray(e)&&e.length>1e4){let t=Math.ceil(e.length/1e4),n=null;for(let i=0;i<e.length;i+=1e4){let a=e.slice(i,i+1e4);n=await s(`Deleting: batch ${Math.floor(i/1e4)+1}/${t}`,async()=>r(c,`POST`,`/accounts/${d}/storage/kv/namespaces/${encodeURIComponent(String(u[`namespace-id`]))}/bulk/delete`,{body:a}))}a(n,{successLabel:`Deleted`});return}a(await s(`Deleting`,async()=>r(c,`POST`,`/accounts/${d}/storage/kv/namespaces/${encodeURIComponent(String(u[`namespace-id`]))}/bulk/delete`,{body:e})),{successLabel:`Deleted`});return}if(u.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function b(e){return e.usage("$0 kv bulk get <namespace-id>\n\nRetrieves the text-based values of up to 100 keys from the specified Workers KV namespace. The result maps each requested key to its value. Set `type` to `json` to parse JSON values instead of returning strings, and set `withMetadata` to `true` to include metadata with each value. Binary values are not supported by this operation.").positional(`namespace-id`,{type:`string`,description:`ID of the Workers KV namespace.`,demandOption:!0}).option(`keys`,{type:`string`,array:!0,description:`Array of keys to retrieve (maximum of 100).`}).option(`type`,{type:`string`,description:"Return values as strings with `text`, or parse stored JSON values with `json`.",choices:[`text`,`json`],default:`text`}).option(`with-metadata`,{type:`boolean`,description:`Whether to include metadata in the response.`,default:!1}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const x={command:`get <namespace-id>`,describe:`Get multiple key-value pairs`,builder:b,handler:async r=>c({command:`kv bulk get`,classification:{safeFlags:[`type`,`with-metadata`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf kv bulk get`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/storage/kv/namespaces/${r[`namespace-id`]==null?`<namespace-id>`:encodeURIComponent(String(r[`namespace-id`]))}/bulk/get`,pathParams:{"namespace-id":String(r[`namespace-id`]??``)},bodyKind:`json`,body:r.body===void 0?u({keys:r.keys,type:d(r.type,`type`,`text`),withMetadata:r[`with-metadata`]}):l(r.body)});return}let c=await i(r),f=r.local?e:await n();if(r.accountId=f,r.body){let e=l(r.body);a(await s(`Creating`,async()=>c.kv.bulk.get({...e,account_id:f,namespace_id:r[`namespace-id`]})),{successLabel:`Created`});return}if(r.keys===void 0)throw Error(`--keys is required (or pass --body with this field set).`);let p=u({keys:r.keys,type:d(r.type,`type`,`text`),withMetadata:r[`with-metadata`]});a(await s(`Creating`,async()=>c.kv.bulk.get({...p,account_id:f,namespace_id:r[`namespace-id`]})),{successLabel:`Created`})})};function S(e){return e.usage("$0 kv bulk put <namespace-id>\n\nWrites up to 10,000 key-value pairs to the specified Workers KV namespace from a JSON array, with optional metadata and expiration settings for each pair. Existing values and expirations are overwritten. If neither `expiration` nor `expiration_ttl` is specified, the key-value pair will not expire. If both are set, `expiration_ttl` takes precedence. The entire request must be 100 megabytes or less. The result reports the number of successful writes and any keys that failed and should be retried.").positional(`namespace-id`,{type:`string`,description:`ID of the Workers KV namespace.`,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)`})}const C={command:`put <namespace-id>`,describe:`Write multiple key-value pairs`,builder:S,handler:async u=>c({command:`kv bulk put`,classification:{safeFlags:[`dry-run`]}},u,async()=>{if(u.dryRun){o({command:`cf kv bulk put`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/storage/kv/namespaces/${u[`namespace-id`]==null?`<namespace-id>`:encodeURIComponent(String(u[`namespace-id`]))}/bulk`,pathParams:{"namespace-id":String(u[`namespace-id`]??``)},bodyKind:`json`,body:u.body===void 0?void 0:l(u.body)});return}let c=await i(u),d=u.local?e:await n();if(u.accountId=d,u.body){let e=l(u.body);if(Array.isArray(e)&&e.length>1e4){let t=Math.ceil(e.length/1e4),n=null;for(let i=0;i<e.length;i+=1e4){let a=e.slice(i,i+1e4);n=await s(`Updating: batch ${Math.floor(i/1e4)+1}/${t}`,async()=>r(c,`PUT`,`/accounts/${d}/storage/kv/namespaces/${encodeURIComponent(String(u[`namespace-id`]))}/bulk`,{body:a}))}a(n,{successLabel:`Updated`});return}a(await s(`Updating`,async()=>r(c,`PUT`,`/accounts/${d}/storage/kv/namespaces/${encodeURIComponent(String(u[`namespace-id`]))}/bulk`,{body:e})),{successLabel:`Updated`});return}if(u.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})},w={command:`bulk`,describe:`Operations for bulk`,builder:e=>e.command(y).command(x).command(C).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function T(e){return e.usage("$0 kv keys delete <key-name>\n\nDeletes the specified key and its value from the Workers KV namespace. Use URL-encoding for special characters (for example, `:`, `!`, `%`) in the key name when constructing the request URL.").positional(`key-name`,{type:`string`,description:`A key's name. The name may be at most 512 bytes. All printable, non-whitespace characters are valid. Use percent-encoding to define key names as part of a URL.`,demandOption:!0}).option(`namespace-id`,{type:`string`,description:`ID of the Workers KV namespace.`,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 E={command:`delete <key-name>`,describe:`Delete a key-value pair`,builder:T,handler:async r=>c({command:`kv keys delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf kv keys delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/storage/kv/namespaces/${r[`namespace-id`]==null?`<namespace-id>`:encodeURIComponent(String(r[`namespace-id`]))}/values/${r[`key-name`]==null?`<key-name>`:encodeURIComponent(String(r[`key-name`]))}`,pathParams:{"key-name":String(r[`key-name`]??``),"namespace-id":String(r[`namespace-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,!await m({force:!!r.force,message:`This operation deletes the selected key-value pair from the Workers KV namespace.`})){process.stderr.write(`Aborted.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
function e(e,t,n,r){return{command:e,describe:t,builder:async e=>{let t=(await n()).default.builder;return typeof t==`function`?t(e):e},handler:async e=>{let t=await n();if(r===null){await t.default.handler(e);return}let{runWithTelemetry:i}=await import(`./run-
|
|
2
|
+
function e(e,t,n,r){return{command:e,describe:t,builder:async e=>{let t=(await n()).default.builder;return typeof t==`function`?t(e):e},handler:async e=>{let t=await n();if(r===null){await t.default.handler(e);return}let{runWithTelemetry:i}=await import(`./run-BJmOnVJI.mjs`);await i(r,e,()=>t.default.handler(e))}}}export{e as t};
|
package/dist/{leaked-credential-checks-BMQ0VhCd.mjs → leaked-credential-checks-DjDq1Toq.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{i as e}from"./context-
|
|
2
|
+
import{i as e}from"./context-C71TA0Yp.mjs";import{r as t}from"./auth-CHTMVVW3.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-BlxgG8Ss.mjs";import{t as a}from"./run-l2pCxS-W.mjs";import"./telemetry-BqtdHwmi.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{n as l}from"./prompt-ClEoR47s.mjs";function u(e){return e.usage(`$0 leaked-credential-checks detections create
|
|
3
3
|
|
|
4
4
|
Create a detection location for credentials that the default scan locations do not cover, using Rules language expressions such as \`lookup_json_string(http.request.body.raw, "user")\`. Only the username expression is required, and Leaked Credential Checks must be enabled on the zone.`).option(`password`,{type:`string`,description:`Defines ehe ruleset expression to use in matching the password in a request.`}).option(`username`,{type:`string`,description:`Defines the ruleset expression to use in matching the username in a request.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Defines a custom set of username/password expressions to match Leaked Credential Checks on.`})}const d={command:`create`,describe:`Create a custom detection location for a zone.`,builder:u,handler:async l=>a({command:`leaked-credential-checks detections create`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){r({command:`cf leaked-credential-checks detections create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${l.zone??l.zoneId??`<zone>`}/leaked-credential-checks/detections`,pathParams:{"zone-id":String(l.zone??l[`zone-id`]??``)},bodyKind:`json`,body:l.body===void 0?s({password:c(l.password,`password`,`text`),username:c(l.username,`username`,`text`)}):o(l.body)});return}let a=await t(l),u=await e({zone:l.zone},a,{quiet:l.quiet});if(l.zoneId=u,l.body){let e=o(l.body);n(await i(`Creating`,async()=>a.leakedCredentialChecks.detections.create({body:e,zone_id:u})),{successLabel:`Created`});return}let d=s({password:c(l.password,`password`,`text`),username:c(l.username,`username`,`text`)});n(await i(`Creating`,async()=>a.leakedCredentialChecks.detections.create({body:d,zone_id:u})),{successLabel:`Created`})})};function f(e){return e.usage(`$0 leaked-credential-checks detections delete <detection-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-C9i1d0ma.mjs";import{a as t,i as n,t as r}from"./context-C71TA0Yp.mjs";import{r as i}from"./auth-CHTMVVW3.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-BlxgG8Ss.mjs";import{t as c}from"./run-l2pCxS-W.mjs";import"./telemetry-BqtdHwmi.mjs";import{n as l,r as u,t as d}from"./body-parser-hh2avzkz.mjs";import{n as f}from"./input-validation-Dk52b0me.mjs";import{a as p,n as m}from"./prompt-ClEoR47s.mjs";import{t as h}from"./cli-types-DoVT5q_M.mjs";function g(e){return e.usage(`$0 load-balancers account create
|
|
3
3
|
|
|
4
4
|
Create a new account or zone-scoped load balancer.`).option(`adaptive-routing-failover-across-pools`,{type:`boolean`,description:"Extends zero-downtime failover of requests to healthy origins from alternate pools, when no healthy alternate exists in the same pool, according to the failover order defined by traffic and origin steering. When set false (the default) zero-downtime failover will only occur between origins within the same pool. See `session_affinity_attributes` for control over when sessions are broken or reassigned."}).option(`default-pools`,{type:`string`,array:!0,description:`A list of pool IDs ordered by their failover priority. Pools defined here are used by default, or when region_pools are not configured for a given region.`}).option(`description`,{type:`string`,description:`Object description.`}).option(`enabled`,{type:`boolean`,description:`Whether to enable (the default) this load balancer.`,default:!0}).option(`fallback-pool`,{type:`string`,description:`The pool ID to use when all other pools are detected as unhealthy.`}).option(`location-strategy-mode`,{type:`string`,description:'Determines the authoritative location when ECS is not preferred, does not exist in the request, or its GeoIP lookup is unsuccessful.\n- `"pop"`: Use the Cloudflare PoP location.\n- `"resolver_ip"`: Use the DNS resolver GeoIP location. If the GeoIP lookup is unsuccessful, use the Cloudflare PoP location.',choices:[`pop`,`resolver_ip`]}).option(`location-strategy-prefer-ecs`,{type:`string`,description:'Whether the EDNS Client Subnet (ECS) GeoIP should be preferred as the authoritative location.\n- `"always"`: Always prefer ECS.\n- `"never"`: Never prefer ECS.\n- `"proximity"`: Prefer ECS only when `steering_policy="proximity"`.\n- `"geo"`: Prefer ECS only when `steering_policy="geo"`.',choices:[`always`,`never`,`proximity`,`geo`]}).option(`name`,{type:`string`,description:`The DNS hostname to associate with your Load Balancer. If this hostname already exists as a DNS record in Cloudflare's DNS, the Load Balancer will take precedence and the DNS record will not be used.`}).option(`networks`,{type:`string`,array:!0,description:`List of networks where Load Balancer or Pool is enabled.`}).option(`proxied`,{type:`boolean`,description:`Whether the hostname should be gray clouded (false) or orange clouded (true).`,default:!1}).option(`random-steering-default-weight`,{type:`number`,description:`The default weight for pools in the load balancer that are not specified in the pool_weights map.`}).option(`rules`,{type:`string`,description:`BETA Field Not General Access: A list of rules for this load balancer to execute. Provide as a JSON array of objects or @path/to/file.json.`}).option(`session-affinity`,{type:`string`,description:'Specifies the type of session affinity the load balancer should use unless specified as `"none"`. The supported types are: - `"cookie"`: On the first request to a proxied load balancer, a cookie is generated, encoding information of which origin the request will be forwarded to. Subsequent requests, by the same client to the same load balancer, will be sent to the origin server the cookie encodes, for the duration of the cookie and as long as the origin server remains healthy. If the cookie has expired or the origin server is unhealthy, then a new origin server is calculated and used. - `"ip_cookie"`: Behaves the same as `"cookie"` except the initial origin selection is stable and based on the client\'s ip address. - `"header"`: On the first request to a proxied load balancer, a session key based on the configured HTTP headers (see `session_affinity_attributes.headers`) is generated, encoding the request headers used for storing in the load balancer session state which origin the request will be forwarded to. Subsequent requests to the load balancer with the same headers will be sent to the same origin server, for the duration of the session and as long as the origin server remains healthy. If the session has been idle for the duration of `session_affinity_ttl` seconds or the origin server is unhealthy, then a new origin server is calculated and used. See `headers` in `session_affinity_attributes` for additional required configuration.',choices:[`none`,`cookie`,`ip_cookie`,`header`],default:`none`}).option(`session-affinity-attributes-drain-duration`,{type:`number`,description:`Configures the drain duration in seconds. This field is only used when session affinity is enabled on the load balancer.`}).option(`session-affinity-attributes-headers`,{type:`string`,array:!0,description:'Configures the names of HTTP headers to base session affinity on when header `session_affinity` is enabled. At least one HTTP header name must be provided. To specify the exact cookies to be used, include an item in the following format: `"cookie:<cookie-name-1>,<cookie-name-2>"` (example) where everything after the colon is a comma-separated list of cookie names. Providing only `"cookie"` will result in all cookies being used. The default max number of HTTP header names that can be provided depends on your plan: 5 for Enterprise, 1 for all other plans.'}).option(`session-affinity-attributes-require-all-headers`,{type:`boolean`,description:'When header `session_affinity` is enabled, this option can be used to specify how HTTP headers on load balancing requests will be used. The supported values are: - `"true"`: Load balancing requests must contain *all* of the HTTP headers specified by the `headers` session affinity attribute, otherwise sessions aren\'t created. - `"false"`: Load balancing requests must contain *at least one* of the HTTP headers specified by the `headers` session affinity attribute, otherwise sessions aren\'t created.'}).option(`session-affinity-attributes-samesite`,{type:`string`,description:`Configures the SameSite attribute on session affinity cookie. Value "Auto" will be translated to "Lax" or "None" depending if Always Use HTTPS is enabled. Note: when using value "None", the secure attribute can not be set to "Never".`,choices:[`Auto`,`Lax`,`None`,`Strict`]}).option(`session-affinity-attributes-secure`,{type:`string`,description:`Configures the Secure attribute on session affinity cookie. Value "Always" indicates the Secure attribute will be set in the Set-Cookie header, "Never" indicates the Secure attribute will not be set, and "Auto" will set the Secure attribute depending if Always Use HTTPS is enabled.`,choices:[`Auto`,`Always`,`Never`]}).option(`session-affinity-attributes-zero-downtime-failover`,{type:`string`,description:'Configures the zero-downtime failover between origins within a pool when session affinity is enabled. This feature is currently incompatible with Argo, Tiered Cache, and Bandwidth Alliance. The supported values are: - `"none"`: No failover takes place for sessions pinned to the origin (default). - `"temporary"`: Traffic will be sent to another other healthy origin until the originally pinned origin is available; note that this can potentially result in heavy origin flapping. - `"sticky"`: The session affinity cookie is updated and subsequent requests are sent to the new origin. Note: Zero-downtime failover with sticky sessions is currently not supported for session affinity by header.',choices:[`none`,`temporary`,`sticky`]}).option(`session-affinity-ttl`,{type:`number`,description:'Time, in seconds, until a client\'s session expires after being created. Once the expiry time has been reached, subsequent requests may get sent to a different origin server. The accepted ranges per `session_affinity` policy are: - `"cookie"` / `"ip_cookie"`: The current default of 23 hours will be used unless explicitly set. The accepted range of values is between [1800, 604800]. - `"header"`: The current default of 1800 seconds will be used unless explicitly set. The accepted range of values is between [30, 3600]. Note: With session affinity by header, sessions only expire after they haven\'t been used for the number of seconds specified.'}).option(`steering-policy`,{type:`string`,description:'Steering Policy for this load balancer.\n- `"off"`: Use `default_pools`.\n- `"geo"`: Use `region_pools`/`country_pools`/`pop_pools`. For non-proxied requests, the country for `country_pools` is determined by `location_strategy`.\n- `"random"`: Select a pool randomly.\n- `"dynamic_latency"`: Use round trip time to select the closest pool in default_pools (requires pool health checks).\n- `"proximity"`: Use the pools\' latitude and longitude to select the closest pool using the Cloudflare PoP location for proxied requests or the location determined by `location_strategy` for non-proxied requests.\n- `"least_outstanding_requests"`: Select a pool by taking into consideration `random_steering` weights, as well as each pool\'s number of outstanding requests. Pools with more pending requests are weighted proportionately less relative to others.\n- `"least_connections"`: Select a pool by taking into consideration `random_steering` weights, as well as each pool\'s number of open connections. Pools with more open connections are weighted proportionately less relative to others. Supported for HTTP/1 and HTTP/2 connections.\n- `""`: Will map to `"geo"` if you use `region_pools`/`country_pools`/`pop_pools` otherwise `"off"`.',choices:[`off`,`geo`,`random`,`dynamic_latency`,`proximity`,`least_outstanding_requests`,`least_connections`],default:``}).option(`ttl`,{type:`number`,description:`Time to live (TTL) of the DNS entry for the IP address returned by this load balancer. This only applies to gray-clouded (unproxied) load balancers.`}).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:`Create account or zone Load Balancer`,builder:g,handler:async m=>c({command:`load-balancers account create`,classification:{safeFlags:[`adaptive-routing-failover-across-pools`,`enabled`,`location-strategy-mode`,`location-strategy-prefer-ecs`,`proxied`,`session-affinity`,`session-affinity-attributes-require-all-headers`,`session-affinity-attributes-samesite`,`session-affinity-attributes-secure`,`session-affinity-attributes-zero-downtime-failover`,`steering-policy`,`dry-run`]}},m,async()=>{if(m.dryRun){let e=m.zone===void 0?await t():void 0,n=m.zone===void 0?`accounts`:`zones`,r=m.zone??e??`<account-id>`;o({command:`cf load-balancers account create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/load_balancers`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`json`,body:m.body===void 0?d({adaptive_routing:{failover_across_pools:m[`adaptive-routing-failover-across-pools`]},default_pools:m[`default-pools`],description:f(m.description,`description`,`text`),enabled:m.enabled,fallback_pool:f(m[`fallback-pool`],`fallback-pool`,`text`),location_strategy:{mode:f(m[`location-strategy-mode`],`location-strategy-mode`,`text`),prefer_ecs:f(m[`location-strategy-prefer-ecs`],`location-strategy-prefer-ecs`,`text`)},name:f(m.name,`name`,`text`),networks:m.networks,proxied:m.proxied,random_steering:{default_weight:m[`random-steering-default-weight`]},rules:u(m.rules,`rules`),session_affinity:f(m[`session-affinity`],`session-affinity`,`text`),session_affinity_attributes:{drain_duration:m[`session-affinity-attributes-drain-duration`],headers:m[`session-affinity-attributes-headers`],require_all_headers:m[`session-affinity-attributes-require-all-headers`],samesite:f(m[`session-affinity-attributes-samesite`],`session-affinity-attributes-samesite`,`text`),secure:f(m[`session-affinity-attributes-secure`],`session-affinity-attributes-secure`,`text`),zero_downtime_failover:f(m[`session-affinity-attributes-zero-downtime-failover`],`session-affinity-attributes-zero-downtime-failover`,`text`)},session_affinity_ttl:m[`session-affinity-ttl`],steering_policy:f(m[`steering-policy`],`steering-policy`,`text`),ttl:m.ttl}):l(m.body)});return}let c=await i(m),h=m.zone===void 0?`accounts`:`zones`,g=h===`zones`?await n({zone:m.zone},c,{quiet:m.quiet}):m.local?e:await r();if(h===`zones`?m.zoneId=g:m.accountId=g,m.body){let e=l(m.body);a(await s(`Creating`,async()=>c.loadBalancers.account.create({...e,account_or_zone:h,account_or_zone_id:g})),{successLabel:`Created`});return}if(m[`default-pools`]===void 0)throw Error(`--default-pools is required (or pass --body with this field set).`);m[`fallback-pool`]===void 0&&(m[`fallback-pool`]=await p(`fallback-pool`,`The pool ID to use when all other pools are detected as unhealthy.`)),m.name===void 0&&(m.name=await p(`name`,`The DNS hostname to associate with your Load Balancer. If this hostname already exists as a DNS record in Cloudflare's DNS, the Load Balancer will take precedence and the DNS record will not be used.`));let _=d({adaptive_routing:{failover_across_pools:m[`adaptive-routing-failover-across-pools`]},default_pools:m[`default-pools`],description:f(m.description,`description`,`text`),enabled:m.enabled,fallback_pool:f(m[`fallback-pool`],`fallback-pool`,`text`),location_strategy:{mode:f(m[`location-strategy-mode`],`location-strategy-mode`,`text`),prefer_ecs:f(m[`location-strategy-prefer-ecs`],`location-strategy-prefer-ecs`,`text`)},name:f(m.name,`name`,`text`),networks:m.networks,proxied:m.proxied,random_steering:{default_weight:m[`random-steering-default-weight`]},rules:u(m.rules,`rules`),session_affinity:f(m[`session-affinity`],`session-affinity`,`text`),session_affinity_attributes:{drain_duration:m[`session-affinity-attributes-drain-duration`],headers:m[`session-affinity-attributes-headers`],require_all_headers:m[`session-affinity-attributes-require-all-headers`],samesite:f(m[`session-affinity-attributes-samesite`],`session-affinity-attributes-samesite`,`text`),secure:f(m[`session-affinity-attributes-secure`],`session-affinity-attributes-secure`,`text`),zero_downtime_failover:f(m[`session-affinity-attributes-zero-downtime-failover`],`session-affinity-attributes-zero-downtime-failover`,`text`)},session_affinity_ttl:m[`session-affinity-ttl`],steering_policy:f(m[`steering-policy`],`steering-policy`,`text`),ttl:m.ttl});a(await s(`Creating`,async()=>c.loadBalancers.account.create({..._,account_or_zone:h,account_or_zone_id:g})),{successLabel:`Created`})})};function ee(e){return e.usage(`$0 load-balancers account delete <load-balancer-id>
|
|
5
5
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const e=`This command has no local equivalent. Re-run without --local to use the Cloudflare API.`;let t;async function n(){let e=t;t=void 0,await e?.()}function r(e={}){return async function(n,r){let{dispatchLocal:i,disposeLocalSession:a}=await import(`./local-runtime-
|
|
2
|
+
const e=`This command has no local equivalent. Re-run without --local to use the Cloudflare API.`;let t;async function n(){let e=t;t=void 0,await e?.()}function r(e={}){return async function(n,r){let{dispatchLocal:i,disposeLocalSession:a}=await import(`./local-runtime-WQyZe3ed.mjs`);return t=a,i(new Request(n,r),e.persistTo,e.apiBaseUrl)}}const i=`local`;export{n as i,e as n,r,i as t};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{n as e}from"./local-
|
|
2
|
+
import{n as e}from"./local-C9i1d0ma.mjs";import{i as t}from"./cf-Dw3HK_Qy.mjs";import{n}from"./registry-rtPfnFht.mjs";import{mkdtempSync as r,rmSync as i,statSync as a}from"node:fs";import{join as o,resolve as s}from"node:path";import{tmpdir as c}from"node:os";import{randomUUID as l}from"node:crypto";import{Miniflare as u}from"miniflare";const d=/^\/accounts\/[^/]+/;function f(e){let n=e!==void 0&&e!==``?o(s(process.cwd(),e),`v3`):o(t(),`state`,`v3`);try{if(!a(n).isDirectory())throw Error(`Local persistence path must be a directory: ${n}`)}catch(e){let t=e.code;if(t===`ENOENT`)return n;throw t===`ENOTDIR`?Error(`Local persistence path must be a directory: ${n}`):e}return n}let p;function m(e){let t=n(),a=r(o(c(),`cf-local-isolated-${process.pid}-`));try{return{mf:new u({unsafeLocalExplorer:!0,cf:!1,resourcePersistencePath:e,unsafeEnableSharedStorage:!0,isolatedResourcePersistencePath:a,unsafeDevRegistryPath:t,workers:[{config:{name:`cf-local-${l()}`,compatibilityDate:`2026-08-15`,manifest:{mainModule:`cf-local.mjs`,modules:{"cf-local.mjs":{type:`esm`,contents:`export default { fetch() { return new Response(null, { status: 404 }); } };`}}}}}]}),isolatedPersistRoot:a}}catch(e){throw i(a,{recursive:!0,force:!0}),e}}async function h(t,n,r){let i=new URL(t.url),a=new URL(r??`https://api.cloudflare.com/client/v4`).pathname.replace(/\/+$/,``),o=`http://localhost/cdn-cgi/local/explorer/api${i.pathname.slice(a.length).replace(d,``)||`/`}${i.search}`,s=new Headers(t.headers);s.delete(`Authorization`),s.set(`Host`,`localhost`);let c;try{c=p??=m(f(n))}catch(e){return g(500,`Could not start the local runtime: ${_(e)}`)}let l;try{let e={method:t.method,headers:[...s],redirect:`manual`,signal:t.signal};t.body!==null&&(e.body=t.body,e.duplex=`half`),l=await c.mf.dispatchFetch(o,e)}catch(e){return g(500,`The local runtime failed to answer: ${_(e)}`)}if(l.status===404&&l.headers.get(`content-type`)?.includes(`json`)!==!0){await l.body?.cancel();let n=new URL(o).pathname.replace(/^.*\/explorer\/api/,``);return g(404,`${e} The local explorer API does not implement ${t.method} ${n}.`)}return l}function g(e,t){return new Response(JSON.stringify({success:!1,errors:[{message:t}],messages:[],result:null}),{status:e,headers:{"content-type":`application/json`}})}function _(e){return e instanceof Error?e.message:String(e)}async function v(){let e=p;if(p=void 0,e!==void 0)try{let{mf:t,isolatedPersistRoot:n}=e;await t.dispose().finally(()=>i(n,{recursive:!0,force:!0}))}catch{}}export{h as dispatchLocal,v as disposeLocalSession};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{r as e}from"./theme-BIWQFmZ0.mjs";import{r as t}from"./banner-ClclgnBn.mjs";import"./ui-BQxRjahW.mjs";import{n}from"./run-
|
|
2
|
+
import{r as e}from"./theme-BIWQFmZ0.mjs";import{r as t}from"./banner-ClclgnBn.mjs";import"./ui-BQxRjahW.mjs";import{n}from"./run-l2pCxS-W.mjs";import"./telemetry-BqtdHwmi.mjs";import{n as r,t as i}from"./login-CHjklzf2.mjs";var a=n({...i,describe:!1,handler:async n=>{n.quiet||console.error(t(`${e.code(`cf login`)} is an alias for ${e.code(`cf auth login`)}. Authentication commands are under ${e.code(`cf auth`)}.`)),await i.handler(n)}},{command:`login`,classification:r});export{a as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{r as e}from"./theme-BIWQFmZ0.mjs";import{m as t,o as n}from"./chunk-
|
|
2
|
+
import{r as e}from"./theme-BIWQFmZ0.mjs";import{m as t,o as n}from"./chunk-FT2NMTJB-1VFYM1Ro.mjs";import{a as r,n as i,r as a}from"./banner-ClclgnBn.mjs";import"./ui-BQxRjahW.mjs";import{c as o,d as s,i as c,l,o as u,p as d,r as f,s as p,u as m}from"./oauth-J2zz9fHk.mjs";import"./auth-CHTMVVW3.mjs";import{t as h}from"./output-CvQFJkvi.mjs";import g from"node:path";function _(e,t,n){if(!e.profile)return;let r=n?` ${n}`:``;throw Error(`The --profile flag cannot be used with \`cf auth ${t}\`.${r}`)}function v(){if(n({allowGlobalAuthKey:!1})!==void 0)throw Error(`Cannot manage auth profiles while CLOUDFLARE_API_TOKEN is set. Unset CLOUDFLARE_API_TOKEN and try again.`)}const y={command:`create <name>`,describe:`Create or re-authenticate a named auth profile`,builder:e=>e.positional(`name`,{type:`string`,description:`Name for the auth profile`,demandOption:!0}).option(`browser`,{type:`boolean`,description:`Open the authorization link in a browser (use --no-browser to print it instead)`,default:!0}).option(`device`,{type:`boolean`,description:`Use OAuth device authorization (use --no-device for the localhost callback flow)`,default:!0}).option(`scopes`,{type:`string`,array:!0,description:`The set of OAuth scopes to request`}),handler:async n=>{_(n,`create`,"Pass the profile name as the command argument: `cf auth create <name>`."),v(),t(n.name);let r=u().configs.exists(n.name);await l({browser:n.browser,device:n.device,scopes:n.scopes,profile:n.name}),console.log(a(r?`Profile "${n.name}" re-authenticated.`:`Profile "${n.name}" created.`)),console.log(i(`Run ${e.code(`cf auth activate ${n.name}`)} to use this profile in a directory.`))}},b={command:`delete <name>`,describe:`Delete a named auth profile`,builder:e=>e.positional(`name`,{type:`string`,description:`Name of the auth profile to delete`,demandOption:!0}),handler:async n=>{_(n,`delete`),v(),t(n.name);let r=u();if(!r.configs.exists(n.name))throw Error(`Profile "${n.name}" does not exist.`);let o=r.bindings.removeAllBindingsForProfile(n.name);if(o.length>0){console.log(a(`Removed directory bindings:`));for(let e of o)console.log(` ${e}`)}await m(n.name),r.configs.delete(n.name),console.log(a(`Profile "${n.name}" deleted.`));let s=r.bindings.getProfileForDirectory(process.cwd());s?console.log(a(`Active profile for this directory: ${s}.`)):r.configs.exists(`default`)?console.log(a(`This directory now uses the default profile.`)):console.log(i(`No active profile for this directory. Run ${e.code(`cf auth login`)} to set up the default profile, or ${e.code(`cf auth create <name>`)} to create a named profile.`))}},x={command:`activate <name> [dir]`,describe:`Bind a named auth profile to a directory`,builder:e=>e.positional(`name`,{type:`string`,description:`Name of the auth profile to activate`,demandOption:!0}).positional(`dir`,{type:`string`,description:`Directory to bind the profile to (defaults to current directory)`}),handler:e=>{_(e,`activate`,"Pass the profile name as the command argument: `cf auth activate <name>`."),v(),t(e.name);let n=u();if(!n.configs.exists(e.name))throw Error(`Profile "${e.name}" does not exist. Run \`cf auth create ${e.name}\` first.`);let r=e.dir??process.cwd();n.bindings.activate(e.name,r),console.log(a(`Profile "${e.name}" activated for "${g.resolve(r)}".`))}},S={command:`deactivate [dir]`,describe:`Remove the auth profile binding from a directory`,builder:e=>e.positional(`dir`,{type:`string`,description:`Directory to unbind (defaults to current directory). Must be the exact directory the profile was bound to.`}),handler:t=>{_(t,`deactivate`),v();let n=u(),r=t.dir??process.cwd(),{removedProfile:o,newResolution:s}=n.bindings.deactivate(r);console.log(a(`Profile "${o}" deactivated from "${g.resolve(r)}".`)),s.profile===void 0?console.log(i(`Run ${e.code(`cf auth login`)} to set up the default profile, or ${e.code(`cf auth create <name>`)} to create a named profile.`)):s.profile===`default`?console.log(a(`This directory now uses the default profile.`)):console.log(a(`Now using: ${s.profile} (${s.source}).`))}},C={command:`list`,describe:`List all auth profiles`,handler:e=>{_(e,`list`);let t=u(),n=t.bindings.read(),r={};for(let[e,t]of Object.entries(n))(r[t]??=[]).push(e);h(t.configs.list().map(e=>({name:e,boundDirectories:r[e]??[]})))}},w={safeFlags:[`force`,`browser`,`device`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}},T={command:`login`,describe:`Authenticate with Cloudflare`,builder:e=>e.option(`force`,{type:`boolean`,alias:`f`,description:`Force re-authentication even if already logged in`,default:!1}).option(`browser`,{type:`boolean`,description:`Open the authorization link in a browser (use --no-browser to print it instead)`,default:!0}).option(`device`,{type:`boolean`,description:`Use OAuth device authorization (use --no-device for the localhost callback flow)`,default:!0}).option(`scopes`,{type:`string`,array:!0,description:`The set of OAuth scopes to request`}),handler:async t=>{_(t,`login`,"Run `cf auth create <name>` to authenticate a named profile.");let n=f();if(n!==`default`&&console.log(r(`This directory has profile "${n}" active. \`cf auth login\` updates the default profile, not "${n}".\nTo re-authenticate "${n}", run \`cf auth create ${n}\`.`)),d(`default`),!t.force&&o()){if(await p()){let t=s();console.log(a(`You are already logged in.`)),console.log(`${e.info(`Config file:`)} ${e.muted(c())}`),t?.expiration_time&&console.log(`${e.info(`Token expires:`)} ${new Date(t.expiration_time).toLocaleString()}`),console.log(i(`Run ${e.code(`cf auth login --force`)} to re-authenticate, or ${e.code(`cf auth logout`)} to log out.`));return}console.log(r(`Existing tokens are invalid or expired. Starting fresh login...
|
|
3
3
|
`))}else t.force&&o()&&console.log(a(`Re-authenticating...
|
|
4
4
|
`));if(console.log(a(`Starting OAuth login flow...
|
|
5
5
|
`)),!await l({browser:t.browser,device:t.device,scopes:t.scopes,profile:`default`})){console.log(r(`CLOUDFLARE_API_TOKEN is set and takes precedence. Unset it to log in via OAuth.`));return}let u=s();console.log(`${e.info(`Config file:`)} ${e.muted(c())}`),u?.scopes&&(u.scopes.length>5?(console.log(`${e.info(`Scopes:`)} ${u.scopes.length} selected`),console.log(i(`Run ${e.code(`cf auth whoami`)} to see the full list.`))):console.log(`${e.info(`Scopes:`)} ${u.scopes.join(`, `)}`)),u?.expiration_time&&console.log(`${e.info(`Token expires:`)} ${new Date(u.expiration_time).toLocaleString()}`)}};export{y as a,C as c,_ as i,w as n,S as o,x as r,b as s,T as t};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-C9i1d0ma.mjs";import{a as t,t as n}from"./context-C71TA0Yp.mjs";import{r}from"./auth-CHTMVVW3.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-BlxgG8Ss.mjs";import{t as s}from"./run-l2pCxS-W.mjs";import"./telemetry-BqtdHwmi.mjs";function c(e){return e.usage(`$0 logo-matches download get
|
|
3
3
|
|
|
4
4
|
Return matches as CSV for logo queries based on ID`).option(`logo-id`,{type:`string`,description:`Logo ID`}).option(`offset`,{type:`string`,description:`Offset`}).option(`limit`,{type:`string`,description:`Limit`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`get`,describe:`Download matches for logo queries by ID`,builder:c,handler:async c=>s({command:`logo-matches download get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={logo_id:c[`logo-id`],offset:c.offset,limit:c.limit};if(c.dryRun){a({command:`cf logo-matches download get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/brand-protection/logo-matches/download`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.logoMatches.download.get({account_id:u,...s})),{successLabel:`Loaded`})})},u={command:`download`,describe:`Operations for download`,builder:e=>e.command(l).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function d(e){return e.usage(`$0 logo-matches get
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-C9i1d0ma.mjs";import{a as t,t as n}from"./context-C71TA0Yp.mjs";import{a as r,r as i}from"./auth-CHTMVVW3.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-BlxgG8Ss.mjs";import{t as c}from"./run-l2pCxS-W.mjs";import"./telemetry-BqtdHwmi.mjs";import{n as l,t as u}from"./input-validation-Dk52b0me.mjs";import{n as d}from"./prompt-ClEoR47s.mjs";function f(e){return e.usage(`$0 logos create
|
|
3
3
|
|
|
4
4
|
Return new saved logo queries created from image files`).option(`tag`,{type:`string`,description:`Tag`}).option(`match-type`,{type:`string`,description:`Match type`}).option(`threshold`,{type:`number`,description:`Threshold`}).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`})}const p={command:`create`,describe:`Create new saved logo queries from image files`,builder:f,handler:async d=>c({command:`logos create`,classification:{safeFlags:[`dry-run`]}},d,async()=>{let c={tag:d.tag,match_type:d[`match-type`],threshold:d.threshold};if(d.dryRun){o({command:`cf logos create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/brand-protection/logos`,pathParams:{},query:c,bodyKind:`octet-stream`,body:d.body});return}let f=await i(d),p=d.local?e:await n();if(d.accountId=p,d.file){let e=u(d.file);a(await s(`Creating`,async()=>r(f,`POST`,`/accounts/${p}/brand-protection/logos`,{body:e,headers:{"Content-Type":`application/x-www-form-urlencoded`}})),{successLabel:`Created`});return}if(d.body){let e=l(d.body,`body`,`binary`),t=new URLSearchParams(Object.entries(c).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();a(await s(`Creating`,async()=>r(f,`POST`,`/accounts/${p}/brand-protection/logos${t?`?`+t:``}`,{body:e,headers:{"Content-Type":`application/x-www-form-urlencoded`}})),{successLabel:`Created`});return}if(d.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function m(e){return e.usage(`$0 logos delete <logo-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-C9i1d0ma.mjs";import{a as t,i as n,t as r}from"./context-C71TA0Yp.mjs";import{r as i}from"./auth-CHTMVVW3.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-BlxgG8Ss.mjs";import{t as c}from"./run-l2pCxS-W.mjs";import"./telemetry-BqtdHwmi.mjs";import{n as l,t as u}from"./body-parser-hh2avzkz.mjs";import{n as d}from"./input-validation-Dk52b0me.mjs";import{a as f,n as p}from"./prompt-ClEoR47s.mjs";function m(e){return e.usage(`$0 logpush account-datasets fields get <dataset-id>
|
|
3
3
|
|
|
4
4
|
Lists all fields available for a dataset. The response result is. an object with key-value pairs, where keys are field names, and values are descriptions.`).positional(`dataset-id`,{type:`string`,description:`Name of the dataset. A list of supported datasets can be found on the [Developer Docs](https://developers.cloudflare.com/logs/reference/log-fields/).`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const h={command:`get <dataset-id>`,describe:`List fields`,builder:m,handler:async l=>c({command:`logpush account-datasets fields get`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){let e=l.zone===void 0?await t():void 0,n=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf logpush account-datasets fields get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/logpush/datasets/${l[`dataset-id`]==null?`<dataset-id>`:encodeURIComponent(String(l[`dataset-id`]))}/fields`,pathParams:{"account-or-zone":String(n),"dataset-id":String(l[`dataset-id`]??``),"account-or-zone-id":String(r)},bodyKind:`none`});return}let c=await i(l),u=l.zone===void 0?`accounts`:`zones`,d=u===`zones`?await n({zone:l.zone},c,{quiet:l.quiet}):l.local?e:await r();u===`zones`?l.zoneId=d:l.accountId=d,a(await s(`Loading`,async()=>c.logpush.accountDatasets.fields.get({account_or_zone:u,account_or_zone_id:d,dataset_id:l[`dataset-id`]})),{successLabel:`Loaded`})})},g={command:`fields`,describe:`Operations for account-datasets.fields`,builder:e=>e.command(h).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ee(e){return e.usage(`$0 logpush account-datasets jobs get <dataset-id>
|
|
5
5
|
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-C9i1d0ma.mjs";import{a as t,i as n,t as r}from"./context-C71TA0Yp.mjs";import{a as i,r as a}from"./auth-CHTMVVW3.mjs";import{t as o}from"./output-CvQFJkvi.mjs";import{t as s}from"./dry-run-Bq0JAsbX.mjs";import{t as c}from"./progress-BlxgG8Ss.mjs";import{t as l}from"./run-l2pCxS-W.mjs";import"./telemetry-BqtdHwmi.mjs";import{n as u,r as d,t as f}from"./body-parser-hh2avzkz.mjs";import{n as p,t as m}from"./input-validation-Dk52b0me.mjs";import{a as h,n as g}from"./prompt-ClEoR47s.mjs";import{t as _}from"./cli-types-DoVT5q_M.mjs";function v(e){return e.usage(`$0 logs datasets available
|
|
3
3
|
|
|
4
4
|
Returns all dataset types that this account or zone can create. Each entry includes the dataset schema and timestamp field. The schema shows all possible fields for a dataset. However, not all fields may be available for your account or zone. When creating or updating a dataset, only fields available to your account or zone can be enabled. If you request a field that is not available, you will receive an error.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const y={command:`available`,describe:`List available account or zone datasets`,builder:v,handler:async i=>l({command:`logs datasets available`,classification:{safeFlags:[`dry-run`]}},i,async()=>{if(i.dryRun){let e=i.zone===void 0?await t():void 0,n=i.zone===void 0?`accounts`:`zones`,r=i.zone??e??`<account-id>`;s({command:`cf logs datasets available`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/logs/explorer/datasets/available`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`none`});return}let l=await a(i),u=i.zone===void 0?`accounts`:`zones`,d=u===`zones`?await n({zone:i.zone},l,{quiet:i.quiet}):i.local?e:await r();u===`zones`?i.zoneId=d:i.accountId=d,o(await c(`Loading`,async()=>l.logs.datasets.available({account_or_zone:u,account_or_zone_id:d})),{successLabel:`Loaded`})})};function b(e){return e.usage(`$0 logs datasets create
|
|
5
5
|
|
|
6
6
|
Create a new Log Explorer dataset for the account or zone. List available account or zone datasets to see the dataset types and fields you can use. The \`fields\` property is optional. If not specified, all available fields will be enabled. For dataset field definitions, see: https://developers.cloudflare.com/logs/logpush/logpush-job/datasets/`).option(`dataset`,{type:`string`,description:"Dataset type name to create (e.g. `http_requests`)."}).option(`fields`,{type:`string`,description:`Controls which fields the API ingests. Defaults to all available
|
|
7
7
|
fields when absent.
|
|
8
8
|
. Provide as a JSON array of objects or @path/to/file.json.`}).option(`filter`,{type:`string`,description:`Optional Logpush filter predicate to restrict which events are ingested.
|
|
9
|
-
If provided, replaces the dataset's default filter entirely.
|
|
10
9
|
See [Logpush filters](https://developers.cloudflare.com/logs/reference/filters/)
|
|
11
10
|
for syntax and examples.
|
|
12
|
-
`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const x={command:`create`,describe:`Create an account or zone dataset`,builder:b,handler:async i=>l({command:`logs datasets create`,classification:{safeFlags:[`dry-run`]}},i,async()=>{if(i.dryRun){let e=i.zone===void 0?await t():void 0,n=i.zone===void 0?`accounts`:`zones`,r=i.zone??e??`<account-id>`;s({command:`cf logs datasets create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/logs/explorer/datasets`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`json`,body:i.body===void 0?f({dataset:p(i.dataset,`dataset`,`text`),fields:d(i.fields,`fields`),filter:p(i.filter,`filter`,`text`)}):u(i.body)});return}let l=await a(i),m=i.zone===void 0?`accounts`:`zones`,g=m===`zones`?await n({zone:i.zone},l,{quiet:i.quiet}):i.local?e:await r();if(m===`zones`?i.zoneId=g:i.accountId=g,i.body){let e=u(i.body);o(await c(`Creating`,async()=>l.logs.datasets.create({...e,account_or_zone:m,account_or_zone_id:g})),{successLabel:`Created`});return}i.dataset===void 0&&(i.dataset=await h(`dataset`,"Dataset type name to create (e.g. `http_requests`)."));let _=f({dataset:p(i.dataset,`dataset`,`text`),fields:d(i.fields,`fields`),filter:p(i.filter,`filter`,`text`)});o(await c(`Creating`,async()=>l.logs.datasets.create({..._,account_or_zone:m,account_or_zone_id:g})),{successLabel:`Created`})})};function S(e){return e.usage(`$0 logs datasets delete <dataset-id>
|
|
11
|
+
`}).option(`filter-attack-traffic`,{type:`boolean`,description:"Whether to filter attack traffic from the Logpush job. Defaults to\n`true` for supported datasets when omitted. Supported datasets are\n`http_requests`, `firewall_events`, and `network_analytics_logs`.\n"}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const x={command:`create`,describe:`Create an account or zone dataset`,builder:b,handler:async i=>l({command:`logs datasets create`,classification:{safeFlags:[`filter-attack-traffic`,`dry-run`]}},i,async()=>{if(i.dryRun){let e=i.zone===void 0?await t():void 0,n=i.zone===void 0?`accounts`:`zones`,r=i.zone??e??`<account-id>`;s({command:`cf logs datasets create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/logs/explorer/datasets`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`json`,body:i.body===void 0?f({dataset:p(i.dataset,`dataset`,`text`),fields:d(i.fields,`fields`),filter:p(i.filter,`filter`,`text`),filter_attack_traffic:i[`filter-attack-traffic`]}):u(i.body)});return}let l=await a(i),m=i.zone===void 0?`accounts`:`zones`,g=m===`zones`?await n({zone:i.zone},l,{quiet:i.quiet}):i.local?e:await r();if(m===`zones`?i.zoneId=g:i.accountId=g,i.body){let e=u(i.body);o(await c(`Creating`,async()=>l.logs.datasets.create({...e,account_or_zone:m,account_or_zone_id:g})),{successLabel:`Created`});return}i.dataset===void 0&&(i.dataset=await h(`dataset`,"Dataset type name to create (e.g. `http_requests`)."));let _=f({dataset:p(i.dataset,`dataset`,`text`),fields:d(i.fields,`fields`),filter:p(i.filter,`filter`,`text`),filter_attack_traffic:i[`filter-attack-traffic`]});o(await c(`Creating`,async()=>l.logs.datasets.create({..._,account_or_zone:m,account_or_zone_id:g})),{successLabel:`Created`})})};function S(e){return e.usage(`$0 logs datasets delete <dataset-id>
|
|
13
12
|
|
|
14
13
|
Deletes a Log Explorer dataset for the account or zone. Dataset deletion must not be protected.`).positional(`dataset-id`,{type:`string`,description:`Log Explorer dataset ID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const C={command:`delete <dataset-id>`,describe:`Delete an account or zone dataset`,builder:S,handler:async i=>l({command:`logs datasets delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},i,async()=>{if(i.dryRun){let e=i.zone===void 0?await t():void 0,n=i.zone===void 0?`accounts`:`zones`,r=i.zone??e??`<account-id>`;s({command:`cf logs datasets delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/logs/explorer/datasets/${i[`dataset-id`]==null?`<dataset-id>`:encodeURIComponent(String(i[`dataset-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"dataset-id":String(i[`dataset-id`]??``)},bodyKind:`none`});return}let l=await a(i),u=i.zone===void 0?`accounts`:`zones`,d=u===`zones`?await n({zone:i.zone},l,{quiet:i.quiet}):i.local?e:await r();if(u===`zones`?i.zoneId=d:i.accountId=d,!await g({force:!!i.force,message:`This operation deletes a Log Explorer dataset for the account.`})){process.stderr.write(`Aborted.
|
|
15
14
|
`);return}o(await c(`Deleting`,async()=>l.logs.datasets.delete({account_or_zone:u,account_or_zone_id:d,dataset_id:i[`dataset-id`]})),{successLabel:`Deleted`})})};function w(e){return e.usage(`$0 logs datasets get <dataset-id>
|
|
@@ -24,7 +23,7 @@ to an empty string (\`""\`) to clear the filter. Otherwise,
|
|
|
24
23
|
replaces the dataset's filter entirely.
|
|
25
24
|
See [Logpush filters](https://developers.cloudflare.com/logs/reference/filters/)
|
|
26
25
|
for syntax and examples.
|
|
27
|
-
`}).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:`update <dataset-id>`,describe:`Update an account or zone dataset`,builder:O,handler:async i=>l({command:`logs datasets update`,classification:{safeFlags:[`deletion-protection`,`enabled`,`dry-run`]}},i,async()=>{if(i.dryRun){let e=i.zone===void 0?await t():void 0,n=i.zone===void 0?`accounts`:`zones`,r=i.zone??e??`<account-id>`;s({command:`cf logs datasets update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/logs/explorer/datasets/${i[`dataset-id`]==null?`<dataset-id>`:encodeURIComponent(String(i[`dataset-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"dataset-id":String(i[`dataset-id`]??``)},bodyKind:`json`,body:i.body===void 0?f({deletion_protection:i[`deletion-protection`],enabled:i.enabled,fields:d(i.fields,`fields`),filter:p(i.filter,`filter`,`text`)}):u(i.body)});return}let l=await a(i),m=i.zone===void 0?`accounts`:`zones`,h=m===`zones`?await n({zone:i.zone},l,{quiet:i.quiet}):i.local?e:await r();if(m===`zones`?i.zoneId=h:i.accountId=h,i.body){let e=u(i.body);o(await c(`Updating`,async()=>l.logs.datasets.update({...e,account_or_zone:m,account_or_zone_id:h,dataset_id:i[`dataset-id`]})),{successLabel:`Updated`});return}if(i.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);let g=f({deletion_protection:i[`deletion-protection`],enabled:i.enabled,fields:d(i.fields,`fields`),filter:p(i.filter,`filter`,`text`)});o(await c(`Updating`,async()=>l.logs.datasets.update({...g,account_or_zone:m,account_or_zone_id:h,dataset_id:i[`dataset-id`]})),{successLabel:`Updated`})})},A={command:`datasets`,describe:`Operations for datasets`,builder:e=>e.command(y).command(x).command(C).command(T).command(D).command(k).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function j(e){return e.usage(`$0 logs list get
|
|
26
|
+
`}).option(`filter-attack-traffic`,{type:`boolean`,description:"Whether to filter attack traffic from the Logpush job. If omitted,\nthe existing setting is left unchanged. Supported datasets are\n`http_requests`, `firewall_events`, and `network_analytics_logs`.\n"}).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:`update <dataset-id>`,describe:`Update an account or zone dataset`,builder:O,handler:async i=>l({command:`logs datasets update`,classification:{safeFlags:[`deletion-protection`,`enabled`,`filter-attack-traffic`,`dry-run`]}},i,async()=>{if(i.dryRun){let e=i.zone===void 0?await t():void 0,n=i.zone===void 0?`accounts`:`zones`,r=i.zone??e??`<account-id>`;s({command:`cf logs datasets update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/logs/explorer/datasets/${i[`dataset-id`]==null?`<dataset-id>`:encodeURIComponent(String(i[`dataset-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"dataset-id":String(i[`dataset-id`]??``)},bodyKind:`json`,body:i.body===void 0?f({deletion_protection:i[`deletion-protection`],enabled:i.enabled,fields:d(i.fields,`fields`),filter:p(i.filter,`filter`,`text`),filter_attack_traffic:i[`filter-attack-traffic`]}):u(i.body)});return}let l=await a(i),m=i.zone===void 0?`accounts`:`zones`,h=m===`zones`?await n({zone:i.zone},l,{quiet:i.quiet}):i.local?e:await r();if(m===`zones`?i.zoneId=h:i.accountId=h,i.body){let e=u(i.body);o(await c(`Updating`,async()=>l.logs.datasets.update({...e,account_or_zone:m,account_or_zone_id:h,dataset_id:i[`dataset-id`]})),{successLabel:`Updated`});return}if(i.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);let g=f({deletion_protection:i[`deletion-protection`],enabled:i.enabled,fields:d(i.fields,`fields`),filter:p(i.filter,`filter`,`text`),filter_attack_traffic:i[`filter-attack-traffic`]});o(await c(`Updating`,async()=>l.logs.datasets.update({...g,account_or_zone:m,account_or_zone_id:h,dataset_id:i[`dataset-id`]})),{successLabel:`Updated`})})},A={command:`datasets`,describe:`Operations for datasets`,builder:e=>e.command(y).command(x).command(C).command(T).command(D).command(k).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function j(e){return e.usage(`$0 logs list get
|
|
28
27
|
|
|
29
28
|
Lists R2 objects containing logs matching the provided query parameters.`).option(`start`,{type:`string`,description:`Start time in RFC3339 format.`,demandOption:!0}).option(`end`,{type:`string`,description:`End time in RFC3339 format.`,demandOption:!0}).option(`bucket`,{type:`string`,description:`R2 bucket name.`,demandOption:!0}).option(`prefix`,{type:`string`,description:`R2 bucket prefix logs are stored under.`}).option(`limit`,{type:`number`,description:`Maximum number of results to return.`}).option(`r2-access-key-id`,{type:`string`,description:`The R2-Access-Key-Id header`,demandOption:!0}).option(`r2-secret-access-key`,{type:`string`,description:`The R2-Secret-Access-Key header`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const M={command:`get`,describe:`List log files`,builder:j,handler:async n=>l({command:`logs list get`,classification:{safeFlags:[`dry-run`]}},n,async()=>{let l={start:n.start,end:n.end,bucket:n.bucket,prefix:n.prefix,limit:n.limit},u={};if(n[`r2-access-key-id`]!==void 0&&(u[`R2-Access-Key-Id`]=String(n[`r2-access-key-id`])),n[`r2-secret-access-key`]!==void 0&&(u[`R2-Secret-Access-Key`]=String(n[`r2-secret-access-key`])),n.dryRun){s({command:`cf logs list get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/logs/list`,pathParams:{},query:l,bodyKind:`none`});return}let d=await a(n),f=n.local?e:await r();n.accountId=f,o(await c(`Loading`,async()=>i(d,`GET`,`/accounts/${f}/logs/list`,{query:l,headers:Object.keys(u).length>0?u:void 0})),{successLabel:`Loaded`})})},N={command:`list`,describe:`Operations for list`,builder:e=>e.command(M).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function P(e){return e.usage(`$0 logs query
|
|
30
29
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-C9i1d0ma.mjs";import{a as t,t as n}from"./context-C71TA0Yp.mjs";import{a as r,r as i}from"./auth-CHTMVVW3.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-BlxgG8Ss.mjs";import{t as c}from"./run-l2pCxS-W.mjs";import"./telemetry-BqtdHwmi.mjs";import{i as l,n as u,t as d}from"./body-parser-hh2avzkz.mjs";import{n as f}from"./input-validation-Dk52b0me.mjs";import{a as p,i as m,n as h}from"./prompt-ClEoR47s.mjs";import{t as g}from"./cli-types-DoVT5q_M.mjs";import{n as _,t as v}from"./raw-fetch-CWRDTVMr.mjs";function ee(e){return e.usage(`$0 magic-cloud-networking catalog-syncs create
|
|
3
3
|
|
|
4
4
|
Create a new Catalog Sync (Closed Beta).`).option(`forwarded`,{type:`string`,description:`The forwarded header`}).option(`description`,{type:`string`,description:`The description field`}).option(`destination-type`,{type:`string`,description:`The destination_type field`,choices:[`NONE`,`ZERO_TRUST_LIST`]}).option(`name`,{type:`string`,description:`The name field`}).option(`policy`,{type:`string`,description:`The policy field`}).option(`update-mode`,{type:`string`,description:`The update_mode field`,choices:[`AUTO`,`MANUAL`]}).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 te={command:`create`,describe:`Create Catalog Sync`,builder:ee,handler:async h=>c({command:`magic-cloud-networking catalog-syncs create`,classification:{safeFlags:[`destination-type`,`update-mode`,`dry-run`]}},h,async()=>{let c={};if(h.forwarded!==void 0&&(c.forwarded=String(h.forwarded)),h.dryRun){o({command:`cf magic-cloud-networking catalog-syncs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/magic/cloud/catalog-syncs`,pathParams:{},bodyKind:`json`,body:h.body===void 0?d({description:f(h.description,`description`,`text`),destination_type:f(h[`destination-type`],`destination-type`,`text`),name:f(h.name,`name`,`text`),policy:f(h.policy,`policy`,`text`),update_mode:f(h[`update-mode`],`update-mode`,`text`)}):u(h.body)});return}let g=await i(h),_=h.local?e:await n();if(h.accountId=_,h.body){let e=u(h.body);a(await s(`Creating`,async()=>r(g,`POST`,`/accounts/${_}/magic/cloud/catalog-syncs`,{body:e,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Created`});return}h[`destination-type`]===void 0&&(h[`destination-type`]=await m(`destination-type`,`The destination_type field`,[`NONE`,`ZERO_TRUST_LIST`])),h.name===void 0&&(h.name=await p(`name`,`The name field`)),h[`update-mode`]===void 0&&(h[`update-mode`]=await m(`update-mode`,`The update_mode field`,[`AUTO`,`MANUAL`]));let v={};h.description!==void 0&&l(v,[`description`],f(h.description,`description`,`text`)),h[`destination-type`]!==void 0&&l(v,[`destination_type`],f(h[`destination-type`],`destination-type`,`text`)),h.name!==void 0&&l(v,[`name`],f(h.name,`name`,`text`)),h.policy!==void 0&&l(v,[`policy`],f(h.policy,`policy`,`text`)),h[`update-mode`]!==void 0&&l(v,[`update_mode`],f(h[`update-mode`],`update-mode`,`text`)),a(await s(`Creating`,async()=>r(g,`POST`,`/accounts/${_}/magic/cloud/catalog-syncs`,{body:Object.keys(v).length>0?v:void 0,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Created`})})};function y(e){return e.usage(`$0 magic-cloud-networking catalog-syncs delete <sync-id>
|
|
5
5
|
|
package/dist/{magic-network-monitoring-CLvaiI7s.mjs → magic-network-monitoring-Bva_tF2u.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-C9i1d0ma.mjs";import{a as t,t as n}from"./context-C71TA0Yp.mjs";import{a as r,r as i}from"./auth-CHTMVVW3.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-BlxgG8Ss.mjs";import{t as c}from"./run-l2pCxS-W.mjs";import"./telemetry-BqtdHwmi.mjs";import{n as l,r as u,t as d}from"./body-parser-hh2avzkz.mjs";import{n as f}from"./input-validation-Dk52b0me.mjs";import{a as p,i as m,n as h}from"./prompt-ClEoR47s.mjs";function g(e){return e.usage(`$0 magic-network-monitoring configs create
|
|
3
3
|
|
|
4
4
|
Create a new network monitoring configuration.`).option(`default-sampling`,{type:`number`,description:`Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router.`,default:1}).option(`name`,{type:`string`,description:`The account name.`}).option(`router-ips`,{type:`string`,array:!0,description:`The router_ips field`}).option(`warp-devices`,{type:`string`,description:`The warp_devices 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 _={command:`create`,describe:`Create account configuration`,builder:g,handler:async r=>c({command:`magic-network-monitoring configs create`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf magic-network-monitoring configs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/mnm/config`,pathParams:{},bodyKind:`json`,body:r.body===void 0?d({default_sampling:r[`default-sampling`],name:f(r.name,`name`,`text`),router_ips:r[`router-ips`],warp_devices:u(r[`warp-devices`],`warp-devices`)}):l(r.body)});return}let c=await i(r),m=r.local?e:await n();if(r.accountId=m,r.body){let e=l(r.body);a(await s(`Creating`,async()=>c.magicNetworkMonitoring.configs.create({...e,account_id:m})),{successLabel:`Created`});return}if(r[`default-sampling`]===void 0)throw Error(`--default-sampling is required (or pass --body with this field set).`);r.name===void 0&&(r.name=await p(`name`,`The account name.`));let h=d({default_sampling:r[`default-sampling`],name:f(r.name,`name`,`text`),router_ips:r[`router-ips`],warp_devices:u(r[`warp-devices`],`warp-devices`)});a(await s(`Creating`,async()=>c.magicNetworkMonitoring.configs.create({...h,account_id:m})),{successLabel:`Created`})})};function v(e){return e.usage(`$0 magic-network-monitoring configs delete
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-C9i1d0ma.mjs";import{a as t,t as n}from"./context-C71TA0Yp.mjs";import{a as r,r as i}from"./auth-CHTMVVW3.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-BlxgG8Ss.mjs";import{t as c}from"./run-l2pCxS-W.mjs";import"./telemetry-BqtdHwmi.mjs";import{i as l,n as u,r as d,t as f}from"./body-parser-hh2avzkz.mjs";import{n as p}from"./input-validation-Dk52b0me.mjs";import{a as m,i as h,n as g}from"./prompt-ClEoR47s.mjs";import{n as _,t as ee}from"./raw-fetch-CWRDTVMr.mjs";function te(e){return e.usage(`$0 magic-transit advanced-dns-protection configs dns protection rules create
|
|
3
3
|
|
|
4
4
|
Create a DNS Protection rule for an account.`).option(`block-any-queries`,{type:`boolean`,description:`Whether to block DNS ANY queries. Optional. Defaults to true.`}).option(`burst-sensitivity`,{type:`string`,description:`The burst sensitivity. Must be one of 'low', 'medium', 'high'.`}).option(`name`,{type:`string`,description:`The name of the DNS Protection rule. Value is relative to the 'scope' setting. For 'global' scope, name should be 'global'. For either the 'region' or 'datacenter' scope, name should be the actual name of the region or datacenter, e.g., 'wnam' or 'lax'.`}).option(`profile-sensitivity`,{type:`string`,description:`The profile sensitivity. Recommended setting is 'low'. Must be one of 'low', 'medium', 'high', or 'very_high'.`}).option(`rate-sensitivity`,{type:`string`,description:`The rate sensitivity. Must be one of 'low', 'medium', 'high'.`}).option(`scope`,{type:`string`,description:`The scope for the DNS Protection rule. Must be one of 'global', 'region', or 'datacenter'.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`The new DNS Protection rule to add.`})}const v={command:`create`,describe:`Create DNS Protection rule.`,builder:te,handler:async r=>c({command:`magic-transit advanced-dns-protection configs dns protection rules create`,classification:{safeFlags:[`block-any-queries`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf magic-transit advanced-dns-protection configs dns protection rules create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/magic/advanced_dns_protection/configs/dns_protection/rules`,pathParams:{},bodyKind:`json`,body:r.body===void 0?f({block_any_queries:r[`block-any-queries`],burst_sensitivity:p(r[`burst-sensitivity`],`burst-sensitivity`,`text`),name:p(r.name,`name`,`text`),profile_sensitivity:p(r[`profile-sensitivity`],`profile-sensitivity`,`text`),rate_sensitivity:p(r[`rate-sensitivity`],`rate-sensitivity`,`text`),scope:p(r.scope,`scope`,`text`)}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,r.body){let e=u(r.body);a(await s(`Creating`,async()=>c.magicTransit.advancedDnsProtection.configs.dns.protection.rules.create({...e,account_id:l})),{successLabel:`Created`});return}r[`burst-sensitivity`]===void 0&&(r[`burst-sensitivity`]=await m(`burst-sensitivity`,`The burst sensitivity. Must be one of 'low', 'medium', 'high'.`)),r.name===void 0&&(r.name=await m(`name`,`The name of the DNS Protection rule. Value is relative to the 'scope' setting. For 'global' scope, name should be 'global'. For either the 'region' or 'datacenter' scope, name should be the actual name of the region or datacenter, e.g., 'wnam' or 'lax'.`)),r[`profile-sensitivity`]===void 0&&(r[`profile-sensitivity`]=await m(`profile-sensitivity`,`The profile sensitivity. Recommended setting is 'low'. Must be one of 'low', 'medium', 'high', or 'very_high'.`)),r[`rate-sensitivity`]===void 0&&(r[`rate-sensitivity`]=await m(`rate-sensitivity`,`The rate sensitivity. Must be one of 'low', 'medium', 'high'.`)),r.scope===void 0&&(r.scope=await m(`scope`,`The scope for the DNS Protection rule. Must be one of 'global', 'region', or 'datacenter'.`));let d=f({block_any_queries:r[`block-any-queries`],burst_sensitivity:p(r[`burst-sensitivity`],`burst-sensitivity`,`text`),name:p(r.name,`name`,`text`),profile_sensitivity:p(r[`profile-sensitivity`],`profile-sensitivity`,`text`),rate_sensitivity:p(r[`rate-sensitivity`],`rate-sensitivity`,`text`),scope:p(r.scope,`scope`,`text`)});a(await s(`Creating`,async()=>c.magicTransit.advancedDnsProtection.configs.dns.protection.rules.create({...d,account_id:l})),{successLabel:`Created`})})};function y(e){return e.usage(`$0 magic-transit advanced-dns-protection configs dns protection rules delete for account
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-C9i1d0ma.mjs";import{a as t,t as n}from"./context-C71TA0Yp.mjs";import{a as r,r as i}from"./auth-CHTMVVW3.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-BlxgG8Ss.mjs";import{t as c}from"./run-l2pCxS-W.mjs";import"./telemetry-BqtdHwmi.mjs";import{i as l,n as u,t as d}from"./body-parser-hh2avzkz.mjs";import{n as f}from"./input-validation-Dk52b0me.mjs";import{a as p}from"./prompt-ClEoR47s.mjs";import{t as m}from"./cli-types-DoVT5q_M.mjs";function h(e){return e.usage(`$0 managed-defense vulnerability-discovery reports get <scan-id>
|
|
3
3
|
|
|
4
4
|
Gets the repository projection of the active operator-reviewed scan report. \`scan_id\` is the customer scan's stable request ID.`).positional(`scan-id`,{type:`string`,description:`Scan ID`,demandOption:!0}).option(`repo-id`,{type:`string`,description:`Repo ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const g={command:`get <scan-id>`,describe:`Get reviewed vulnerability report`,builder:h,handler:async r=>c({command:`managed-defense vulnerability-discovery reports get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf managed-defense vulnerability-discovery reports get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/managed-defense/vulnerability-discovery/repos/${r[`repo-id`]==null?`<repo-id>`:encodeURIComponent(String(r[`repo-id`]))}/scans/${r[`scan-id`]==null?`<scan-id>`:encodeURIComponent(String(r[`scan-id`]))}/report`,pathParams:{"repo-id":String(r[`repo-id`]??``),"scan-id":String(r[`scan-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.managedDefense.vulnerabilityDiscovery.reports.get({account_id:l,repo_id:r[`repo-id`],scan_id:r[`scan-id`]})),{successLabel:`Loaded`})})},_={command:`reports`,describe:`Operations for vulnerability-discovery.reports`,builder:e=>e.command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function v(e){return e.usage(`$0 managed-defense vulnerability-discovery repositories create
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{i as e}from"./context-
|
|
2
|
+
import{i as e}from"./context-C71TA0Yp.mjs";import{r as t}from"./auth-CHTMVVW3.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-BlxgG8Ss.mjs";import{t as a}from"./run-l2pCxS-W.mjs";import"./telemetry-BqtdHwmi.mjs";import{n as o,r as s,t as c}from"./body-parser-hh2avzkz.mjs";import{n as l}from"./prompt-ClEoR47s.mjs";function u(e){return e.usage(`$0 managed-transforms delete
|
|
3
3
|
|
|
4
4
|
Disables all Managed Transforms.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const d={command:`delete`,describe:`Delete Managed Transforms`,builder:u,handler:async o=>a({command:`managed-transforms delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf managed-transforms delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/managed_headers`,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});if(o.zoneId=s,!await l({force:!!o.force})){process.stderr.write(`Aborted.
|
|
5
5
|
`);return}n(await i(`Deleting`,async()=>a.managedTransforms.delete({zone_id:s})),{successLabel:`Deleted`})})};function f(e){return e.usage(`$0 managed-transforms list
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-C9i1d0ma.mjs";import{a as t,t as n}from"./context-C71TA0Yp.mjs";import{r}from"./auth-CHTMVVW3.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-BlxgG8Ss.mjs";import{t as s}from"./run-l2pCxS-W.mjs";import"./telemetry-BqtdHwmi.mjs";function c(e){return e.usage(`$0 matches download get
|
|
3
3
|
|
|
4
4
|
Return matches as CSV for string queries based on ID`).option(`id`,{type:`string`,description:`ID`}).option(`offset`,{type:`number`,description:`Offset`}).option(`limit`,{type:`number`,description:`Limit`}).option(`include-domain-id`,{type:`boolean`,description:`Include domain ID`}).option(`include-dismissed`,{type:`boolean`,description:`Include dismissed`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`get`,describe:`Download matches for string queries by ID`,builder:c,handler:async c=>s({command:`matches download get`,classification:{safeFlags:[`include-domain-id`,`include-dismissed`,`dry-run`]}},c,async()=>{let s={id:c.id,offset:c.offset,limit:c.limit,include_domain_id:c[`include-domain-id`],include_dismissed:c[`include-dismissed`]};if(c.dryRun){a({command:`cf matches download get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/brand-protection/matches/download`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.matches.download.get({account_id:u,...s})),{successLabel:`Loaded`})})},u={command:`download`,describe:`Operations for download`,builder:e=>e.command(l).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function d(e){return e.usage(`$0 matches get
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-C9i1d0ma.mjs";import{a as t,t as n}from"./context-C71TA0Yp.mjs";import{r}from"./auth-CHTMVVW3.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-BlxgG8Ss.mjs";import{t as s}from"./run-l2pCxS-W.mjs";import"./telemetry-BqtdHwmi.mjs";import{n as c,r as l,t as u}from"./body-parser-hh2avzkz.mjs";import{n as d}from"./input-validation-Dk52b0me.mjs";import{a as f,i as p,n as m}from"./prompt-ClEoR47s.mjs";import{t as h}from"./cli-types-DoVT5q_M.mjs";function g(e){return e.usage(`$0 mcp portals account-tool-call-analytics
|
|
3
3
|
|
|
4
4
|
Returns daily or monthly tool-call counts across the account.`).option(`granularity`,{type:`string`,description:`Granularity`,choices:[`daily`,`monthly`]}).option(`aggregate`,{type:`string`,description:`Aggregate`,choices:[`true`,`false`]}).option(`tz`,{type:`string`,description:`Tz`}).option(`days`,{type:`number`,description:`Daily trailing-window size; defaults to 7 and is ignored for monthly`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _={command:`account-tool-call-analytics`,describe:`Account-global MCP tool-call timeseries`,builder:h(g),handler:async c=>s({command:`mcp portals account-tool-call-analytics`,classification:{safeFlags:[`granularity`,`aggregate`,`dry-run`]}},c,async()=>{let s={granularity:c.granularity,aggregate:c.aggregate,tz:c.tz,days:c.days};if(c.dryRun){a({command:`cf mcp portals account-tool-call-analytics`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/access/ai-controls/mcp/analytics/tool-calls/timeseries`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.mcp.portals.accountToolCallAnalytics({account_id:u,...s})),{successLabel:`Loaded`})})};function v(e){return e.usage(`$0 mcp portals create
|
|
5
5
|
|