cf 1.0.0-beta.4 → 1.0.0-beta.6
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 +5047 -5068
- package/dist/_meta/hand-written-commands.json +1 -1
- package/dist/_meta/schemas.json +3026 -3123
- package/dist/abuse-reports-BtI6fvRl.mjs +24 -0
- package/dist/{access-DUQisFsH.mjs → access-CqOyTHw4.mjs} +1 -1
- package/dist/{account-tags-DMmTopgx.mjs → account-tags-7I77Dwsd.mjs} +1 -1
- package/dist/{accounts-DbZdpH5e.mjs → accounts-Cq-eOPzL.mjs} +32 -26
- package/dist/{acm-BtXPdUqH.mjs → acm-CSXnlN6o.mjs} +1 -1
- package/dist/{addressing-Bc_ZSmrK.mjs → addressing-C5XvjNhk.mjs} +1 -1
- package/dist/{agent-memory-CEUI1wKI.mjs → agent-memory-CSzr9gty.mjs} +1 -1
- package/dist/{ai-CFHaVQcc.mjs → ai-C0xWIvsG.mjs} +7 -9
- package/dist/{ai-audit-guygqmOl.mjs → ai-audit-B43vm1KJ.mjs} +1 -1
- package/dist/{ai-gateway-BcKOL4WQ.mjs → ai-gateway-BK3MbIzT.mjs} +1 -1
- package/dist/{ai-search-DJvNkX2o.mjs → ai-search-TrFTxBbn.mjs} +1 -1
- package/dist/{ai-security-CVaHbGzn.mjs → ai-security-JrYa27qd.mjs} +1 -1
- package/dist/{alerting-wy4IuGs7.mjs → alerting-B1-ZwfVT.mjs} +1 -1
- package/dist/{analytics-Do4VMrPX.mjs → analytics-B-wlVtDV.mjs} +1 -1
- package/dist/{analytics_engine-Cv7IF8ex.mjs → analytics_engine-DWzzQzOs.mjs} +1 -1
- package/dist/{api-security-fuzV322d.mjs → api-security-BWFWWmXl.mjs} +1 -1
- package/dist/{argo-BBf-Jw0O.mjs → argo-DHPGTvCT.mjs} +1 -1
- package/dist/{artifacts-B7_OhBxW.mjs → artifacts-mmBDk3wO.mjs} +1 -1
- package/dist/{audit-logs-DyARgcxN.mjs → audit-logs-CCF5e500.mjs} +1 -1
- package/dist/{auth-CiOv7s9F.mjs → auth-Dnp10uLy.mjs} +1 -1
- package/dist/{auth-BYFcxn1F.mjs → auth-gOCL6Pm0.mjs} +2 -2
- package/dist/{autoconfig-DbL_FL5k.mjs → autoconfig-DqEPKpj0.mjs} +2 -2
- package/dist/basin-catalog-hRY01t_Z.mjs +44 -0
- package/dist/{billing-07_VIO4X.mjs → billing-C_ev-9nh.mjs} +1 -1
- package/dist/{bot-management-CmkPUu2I.mjs → bot-management-CyYsXkZt.mjs} +1 -1
- package/dist/{botnet-feed-Bn5pE_rx.mjs → botnet-feed-Dj5R5v2o.mjs} +1 -1
- package/dist/{brand-protection-CWDqPOXe.mjs → brand-protection-CmQ6Iu0I.mjs} +1 -1
- package/dist/{browser-run-CfEIfpnQ.mjs → browser-run-sWHTsCSB.mjs} +1 -1
- package/dist/build-Dyt1M_Ib.mjs +2 -0
- package/dist/{build-DEbkHHVh.mjs → build-_qqitpn0.mjs} +1 -1
- package/dist/{builds-mgouQLUs.mjs → builds-c21rTfcg.mjs} +1 -1
- package/dist/{cache-DXLofz5T.mjs → cache-CuNjJl6m.mjs} +27 -27
- package/dist/{certificate-authorities-BfW-rEpf.mjs → certificate-authorities-DRUUzvI3.mjs} +1 -1
- package/dist/{cli-Dgk9bd8j.mjs → cli-Caa776EB.mjs} +1 -1
- package/dist/{client-certificates-By2A46a2.mjs → client-certificates-BSi1CEGk.mjs} +1 -1
- package/dist/{client-side-security-Bo6ZwJOS.mjs → client-side-security-BdxUX3Y8.mjs} +1 -1
- package/dist/{cloud-connector-DYb_3u-M.mjs → cloud-connector-B46ajuAj.mjs} +1 -1
- package/dist/{cloudforce-one-D8l0I5PL.mjs → cloudforce-one-adbVR2Ah.mjs} +47 -56
- package/dist/{command-DaAGN9uP.mjs → command-B47VlNBp.mjs} +1 -1
- package/dist/{command-BPfW-yE4.mjs → command-B5Itp2BM.mjs} +1 -1
- package/dist/{command-DjNcY4cf.mjs → command-BDCTd8Ra.mjs} +1 -1
- package/dist/{command-CJR1CUK_.mjs → command-BmXnByw9.mjs} +1 -1
- package/dist/{command-C3Qhz4kU.mjs → command-Bw-M_qxb.mjs} +1 -1
- package/dist/{command-BgBsFEYv.mjs → command-C2bU5Etc.mjs} +1 -1
- package/dist/{command-DJJN9xaA.mjs → command-CHcCSvVz.mjs} +1 -1
- package/dist/{command-C7cOrHdI.mjs → command-CRgQ0dM3.mjs} +1 -1
- package/dist/{command-DH67hNLj.mjs → command-CVg0qT13.mjs} +1 -1
- package/dist/{command-DRlUj6lW.mjs → command-CkJvjkfK.mjs} +1 -1
- package/dist/{command-C_lQtSPg.mjs → command-DV196MKR.mjs} +1 -1
- package/dist/{command-gSmdvn_d.mjs → command-Du3MiYA7.mjs} +1 -1
- package/dist/{command-CGD1oByJ.mjs → command-eBmGBTA7.mjs} +1 -1
- package/dist/{command-DYeBZ5mA.mjs → command-eqgT8zz4.mjs} +1 -1
- package/dist/{completions-DUDx3DwX.mjs → completions-DbT6O2ol.mjs} +1 -1
- package/dist/{connector-interrupts-DIMvaZhN.mjs → connector-interrupts-BhfMiPcq.mjs} +1 -1
- package/dist/{connector-telemetry-events-TWQvm-cj.mjs → connector-telemetry-events-CxKECRgO.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-Dyoe-_R3.mjs → connector-telemetry-snapshots-BHi-jHE5.mjs} +1 -1
- package/dist/{connectors-D7ZFg3hB.mjs → connectors-gkP2aNSN.mjs} +1 -1
- package/dist/{containers-CduXjFBJ.mjs → containers-BY8pinEV.mjs} +1 -1
- package/dist/{containers-Bu3tLjU1.mjs → containers-DUvBpnRo.mjs} +1 -1
- package/dist/{content-scan-CVBD6mUI.mjs → content-scan-BCPhAjMZ.mjs} +1 -1
- package/dist/{context-BsGrhAqB.mjs → context-CE7QFX-z.mjs} +1 -1
- package/dist/{cps-CgiRKmTe.mjs → cps-B35EPUAk.mjs} +1 -1
- package/dist/{csamScanner-BlXIOFFe.mjs → csamScanner-DcTA9oLR.mjs} +1 -1
- package/dist/{ct-alerting-CJZK0uSQ.mjs → ct-alerting-B3CS-CPk.mjs} +1 -1
- package/dist/{custom-certificates-DFaj_czg.mjs → custom-certificates-IjJJhl7_.mjs} +1 -1
- package/dist/{custom-csrs-BnFQpjOo.mjs → custom-csrs-ChYOaEQg.mjs} +1 -1
- package/dist/{custom-hostnames-DSnE6xOT.mjs → custom-hostnames-Bai3cqAD.mjs} +1 -1
- package/dist/{custom-nameservers-CdQOt_qU.mjs → custom-nameservers-DsukmLNZ.mjs} +1 -1
- package/dist/{custom-pages-TWGlS6Ms.mjs → custom-pages-CiboX-9D.mjs} +1 -1
- package/dist/d1-s293SFAJ.mjs +41 -0
- package/dist/{dcv-delegation-DM3oGGio.mjs → dcv-delegation-BfgvmpQT.mjs} +1 -1
- package/dist/{deploy-BZUWZ888.mjs → deploy-CvxNMDbS.mjs} +1 -1
- package/dist/{deploy-input-ChEbf2Kp.mjs → deploy-input-CNrImP7B.mjs} +1 -1
- package/dist/{dev-OsbQIdD8.mjs → dev-Z6vYszaT.mjs} +1 -1
- package/dist/{diagnostics-8bbleTmW.mjs → diagnostics-Ops0RjxG.mjs} +1 -1
- package/dist/discover-CcGReXr0.mjs +2 -0
- package/dist/{dist-DTN-pqSs.mjs → dist-Dgnf_i4w.mjs} +1 -1
- package/dist/{dls-TzQpry2j.mjs → dls-uo7NYEqE.mjs} +1 -1
- package/dist/{dns-Bzv4YLeg.mjs → dns-B-NwBOpQ.mjs} +52 -43
- package/dist/{dns-firewall-BjWwOmDR.mjs → dns-firewall-LTIP13nb.mjs} +1 -1
- package/dist/durable-objects-o7uB3YYg.mjs +6 -0
- package/dist/{email-auth-Bth4_FHy.mjs → email-auth-BUdBDCaE.mjs} +1 -1
- package/dist/{email-routing-CkTh4F5j.mjs → email-routing-BPRliM3z.mjs} +1 -1
- package/dist/{email-security-C-2jADxE.mjs → email-security-dbLE3I5c.mjs} +50 -50
- package/dist/{email-sending-B_sd4ouE.mjs → email-sending-BLlGy5Mn.mjs} +1 -1
- package/dist/error-sanitization-CEf4JTNN.mjs +2 -0
- package/dist/{error-sanitization-Dc4bLj8k.mjs → error-sanitization-CcNUzN1f.mjs} +1 -1
- package/dist/{fieldExtractors-z92V55-Y.mjs → fieldExtractors-M-KfLOGw.mjs} +1 -1
- package/dist/{firewall-0yKpxdjj.mjs → firewall-DzbLwqo3.mjs} +1 -1
- package/dist/flagship-DcXWEywy.mjs +28 -0
- package/dist/{fraud-BpJ_aoIE.mjs → fraud-CGXRWANi.mjs} +1 -1
- package/dist/generate-t4dFfFRV.mjs +2 -0
- package/dist/{google-tag-gateway-DA_7SCC3.mjs → google-tag-gateway-B3Z3Puwl.mjs} +1 -1
- package/dist/{healthchecks-C-GthoQz.mjs → healthchecks-BIiV29q7.mjs} +1 -1
- package/dist/{hostnames-CH6utzVv.mjs → hostnames-ueWsZFwv.mjs} +1 -1
- package/dist/{hyperdrive-_rIC33bB.mjs → hyperdrive-Bxk9LZf5.mjs} +1 -1
- package/dist/{iam-sseKl99z.mjs → iam-kA9gcv79.mjs} +1 -1
- package/dist/{images-CvIOwtg0.mjs → images-CK4J5as7.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{init-DEIhItNF.mjs → init-COcG8sp5.mjs} +2 -2
- package/dist/{intel-Da84oZMO.mjs → intel-z7DkM9Xc.mjs} +1 -1
- package/dist/{ips-zTTd_3jg.mjs → ips-BXdBK4Co.mjs} +1 -1
- package/dist/{keyless-certificates-BGOUKdJc.mjs → keyless-certificates-Dp9xTYtD.mjs} +1 -1
- package/dist/{keys-CDnrfmiS.mjs → keys-DrVlj4VI.mjs} +1 -1
- package/dist/{kv-C5jR7vjM.mjs → kv-WX-dlUT1.mjs} +1 -1
- package/dist/{lazy-command-DZtpMsVB.mjs → lazy-command-g04RHlS2.mjs} +1 -1
- package/dist/{leaked-credential-checks-B7WSzVG3.mjs → leaked-credential-checks-BMQ0VhCd.mjs} +1 -1
- package/dist/{load-balancers-DG9wMQUM.mjs → load-balancers-BbkSL89c.mjs} +1 -1
- package/dist/local-BWhuu9TH.mjs +2 -0
- package/dist/{local-B3OyWKkW.mjs → local-Cyk8fPvL.mjs} +1 -1
- package/dist/{local-runtime-Co5vVDlI.mjs → local-runtime-CWWJJB2E.mjs} +1 -1
- package/dist/{login-k3QLVysD.mjs → login-CyU_ZTNI.mjs} +1 -1
- package/dist/{login-rJanUgdL.mjs → login-DYQ8UgJQ.mjs} +1 -1
- package/dist/{logo-matches-5nijgkg7.mjs → logo-matches-HFmD2hK6.mjs} +1 -1
- package/dist/{logos-BRRqg8_2.mjs → logos-Di2PABE_.mjs} +1 -1
- package/dist/{logpush-Br7H8sRD.mjs → logpush-DEqdt0I0.mjs} +1 -1
- package/dist/logs-Ckfw-3Q_.mjs +37 -0
- package/dist/{magic-cloud-networking-Bu7O7wKz.mjs → magic-cloud-networking-C0yBJKMb.mjs} +1 -1
- package/dist/{magic-network-monitoring-Bnc--4Jr.mjs → magic-network-monitoring-CLvaiI7s.mjs} +1 -1
- package/dist/{magic-transit-Dxr86HKN.mjs → magic-transit-Bhb1kxYj.mjs} +108 -112
- package/dist/{managed-defense-Bm_jKFTN.mjs → managed-defense-COL3aqXw.mjs} +1 -1
- package/dist/{managed-transforms-D5mvHv_N.mjs → managed-transforms-cK0strTK.mjs} +1 -1
- package/dist/{matches-Dhc1eSWw.mjs → matches-Df4WEz0x.mjs} +1 -1
- package/dist/{mcp-B-PBoBl5.mjs → mcp-DK_5OUVl.mjs} +1 -1
- package/dist/{mesh-CW8B4naI.mjs → mesh-CVXpTYED.mjs} +1 -1
- package/dist/{migrate-B4kBnkpV.mjs → migrate-CipwWhJE.mjs} +1 -1
- package/dist/monetization-BHk0S5BF.mjs +20 -0
- package/dist/{mtls-certificates-swvfPqA2.mjs → mtls-certificates-8pzdxzOX.mjs} +1 -1
- package/dist/{network-iwRBn0i7.mjs → network-ClNeXTvG.mjs} +1 -1
- package/dist/{network-interconnects-CjXYZC4g.mjs → network-interconnects-t3jSoV7o.mjs} +1 -1
- package/dist/{oauth-CrTr-mRe.mjs → oauth-CJamdfrC.mjs} +1 -1
- package/dist/{oauth-DJW_HyaL.mjs → oauth-CNSirGUu.mjs} +1 -1
- package/dist/{oauth-clients-DGUJzFFu.mjs → oauth-clients-DBxdvlJC.mjs} +1 -1
- package/dist/{oauth-scopes-Bl0YUOHt.mjs → oauth-scopes-D39GYkt6.mjs} +1 -1
- package/dist/{observability-DRHiMrLy.mjs → observability-ZV1yPflB.mjs} +1 -1
- package/dist/{organization-BoMJzks7.mjs → organization-Bk-TkQlB.mjs} +7 -7
- package/dist/{organizations-UGtCHzSq.mjs → organizations-hXITNpPl.mjs} +1 -1
- package/dist/{origin-ca-certificates-CdByaOCe.mjs → origin-ca-certificates-DsLR_Z2e.mjs} +1 -1
- package/dist/{origin-post-quantum-encryption-GjmifGkF.mjs → origin-post-quantum-encryption-C_egsVQu.mjs} +1 -1
- package/dist/{origin-tls-client-auth-CCIqSj_C.mjs → origin-tls-client-auth-DPG6A6kz.mjs} +1 -1
- package/dist/{page-rules-Btn-r3QF.mjs → page-rules-B8lrkiiF.mjs} +1 -1
- package/dist/pages-Cx4doLvQ.mjs +54 -0
- package/dist/{pay-per-crawl-DcAZuk9T.mjs → pay-per-crawl-BUVHqPPA.mjs} +1 -1
- package/dist/{pay-per-use-z0Iwy9rN.mjs → pay-per-use-CzYgryid.mjs} +1 -1
- package/dist/{pipelines-YRPwntqo.mjs → pipelines-CGHmwc4a.mjs} +1 -1
- package/dist/{precursor-Bcww14RH.mjs → precursor--Jim5u4y.mjs} +1 -1
- package/dist/{previews-BBn-IiQu.mjs → previews-BKO1pZyG.mjs} +1 -1
- package/dist/{progress-5nsUpQL6.mjs → progress-CRjK46r1.mjs} +1 -1
- package/dist/{prompt-Ba_bys2F.mjs → prompt-C_90YsVE.mjs} +1 -1
- package/dist/{queries-lxdncISw.mjs → queries-z2pjzXlA.mjs} +1 -1
- package/dist/{queues-Egb0KXYK.mjs → queues-D0IXxSa7.mjs} +1 -1
- package/dist/{r2-BD4NOkR7.mjs → r2-DQ7w9dCM.mjs} +1 -1
- package/dist/r2-data-catalog-DpktRU5y.mjs +2 -0
- package/dist/{radar-B4dtfeBP.mjs → radar-DyLO7Zg1.mjs} +1 -1
- package/dist/{raw-fetch-AX_Gz3c3.mjs → raw-fetch-C8SdmQBp.mjs} +1 -1
- package/dist/{realtime-CtLXkW8l.mjs → realtime-mQzLbDxe.mjs} +1 -1
- package/dist/{registrar-I9XClUOe.mjs → registrar-ClbtM5Dy.mjs} +2 -2
- package/dist/{registrar-sandbox-DAqK58QS.mjs → registrar-sandbox-BIEHm_Jp.mjs} +2 -2
- package/dist/{reporting-BYsEUCIE.mjs → reporting-CjkMzSsZ.mjs} +1 -1
- package/dist/{request-headers-sc4CaZX0.mjs → request-headers-jr2VznA9.mjs} +1 -1
- package/dist/{request-tracers-DXr9Dr2z.mjs → request-tracers-BoSXOTox.mjs} +1 -1
- package/dist/{resource-sharing-DgbnNgCQ.mjs → resource-sharing-CFS39nJq.mjs} +1 -1
- package/dist/{resource-tagging-CjPU8PpX.mjs → resource-tagging-CZ5mvMhE.mjs} +1 -1
- package/dist/{rules-BrshTdy1.mjs → rules-CfqumI45.mjs} +4 -4
- package/dist/{rulesets-BZulblVp.mjs → rulesets-o3jsPv4U.mjs} +20 -20
- package/dist/{rum-B4IRlWgy.mjs → rum-BZ0rYlun.mjs} +1 -1
- package/dist/run-D0_7wBp2.mjs +2 -0
- package/dist/{run-UHTbUldP.mjs → run-huwFFwXd.mjs} +1 -1
- package/dist/{schema-flags-C4KmiKur.mjs → schema-flags-nL7pHvaE.mjs} +1 -1
- package/dist/{scim-BL2TVEZM.mjs → scim-0-eR9pvC.mjs} +1 -1
- package/dist/{sdk-Bx29ZKK3.mjs → sdk-Bmz7t_CD.mjs} +1 -1
- package/dist/{secrets-store-BcyhU7Kj.mjs → secrets-store-Duc29Zs-.mjs} +1 -1
- package/dist/security-insights-5CuLC-Yo.mjs +40 -0
- package/dist/{security-txt-BGIj4nU3.mjs → security-txt-qm2PqCPz.mjs} +1 -1
- package/dist/{shared-jqlTaG5K.mjs → shared-BDIrEKWt.mjs} +1 -1
- package/dist/{smart-shield-C8mGSzyE.mjs → smart-shield-BXLH9OM0.mjs} +1 -1
- package/dist/{snippets-BmHMaKEZ.mjs → snippets-DZG6UWeH.mjs} +1 -1
- package/dist/{spawn-IM_tQldH.mjs → spawn-KZqyx6KK.mjs} +1 -1
- package/dist/{spectrum-CrGKTMx-.mjs → spectrum-Be4ImAIY.mjs} +1 -1
- package/dist/{speed-yyPLwj5X.mjs → speed-CNWujfIC.mjs} +1 -1
- package/dist/{src-DFnlH5Tg.mjs → src-CW6py11z.mjs} +5 -5
- package/dist/{ssl-DZ6G7pP_.mjs → ssl-BIlS4Qs8.mjs} +1 -1
- package/dist/{stream-hoBmKs9X.mjs → stream-C5RvTAKF.mjs} +1 -1
- package/dist/{submit-Lfebq3yj.mjs → submit-Bpru4P79.mjs} +1 -1
- package/dist/{tags-CnHv__u_.mjs → tags-Rv7X1rU9.mjs} +1 -1
- package/dist/{telemetry-DbAo3nvk.mjs → telemetry-0npQCuKc.mjs} +1 -1
- package/dist/telemetry-B4_YhD82.mjs +2 -0
- package/dist/tenant-CjYf6OPN.mjs +10 -0
- package/dist/{tenant-custom-nameservers-CZL9_D8w.mjs → tenant-custom-nameservers-BbHaaEhv.mjs} +1 -1
- package/dist/{tunnels-DuO8F5_h.mjs → tunnels-CLWPaIIF.mjs} +1 -1
- package/dist/{turnstile-B-6k-bKa.mjs → turnstile-C5ezKSoz.mjs} +1 -1
- package/dist/update-check-CebyUyqG.mjs +2 -0
- package/dist/{update-check-g9Jcn6YJ.mjs → update-check-aOpHVlzB.mjs} +1 -1
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-info-C6-jj9nl.mjs → url-info-Gcf8-MyB.mjs} +1 -1
- package/dist/{url-normalization-BRSTQe20.mjs → url-normalization-Dvg8mZRk.mjs} +1 -1
- package/dist/{url-scanner-DER5YAdW.mjs → url-scanner-BZCsgh0O.mjs} +1 -1
- package/dist/{user-foSeF-0m.mjs → user-BnkvXmjc.mjs} +1 -1
- package/dist/{values-DgBNckq9.mjs → values-yUGls__L.mjs} +1 -1
- package/dist/{vectorize-9AZMN3fN.mjs → vectorize-BiXngTuI.mjs} +3 -3
- package/dist/version-C3q1GMTe.mjs +2 -0
- package/dist/{waiting-rooms-CUc0Xqp0.mjs → waiting-rooms-BoLWF74U.mjs} +1 -1
- package/dist/{web-assets-D5LUB5UO.mjs → web-assets-CEJ9Zne1.mjs} +1 -1
- package/dist/{web3-BvOpojFR.mjs → web3-CIjm7EuJ.mjs} +1 -1
- package/dist/workers-DdtWb7Ws.mjs +38 -0
- package/dist/{workers-builds-BFqiT0GR.mjs → workers-builds-DT4tA-KT.mjs} +1 -1
- package/dist/workers-for-platforms-CaCr8ApU.mjs +42 -0
- package/dist/{workers-vpc-9xBzFjiF.mjs → workers-vpc-DRtjG39D.mjs} +1 -1
- package/dist/{workflows-BS0EGixd.mjs → workflows-DRme6yrC.mjs} +2 -2
- package/dist/{wrangler-migration-BDkh1_IV.mjs → wrangler-migration-BDnS1puc.mjs} +1 -1
- package/dist/{zaraz-DBccJ-ZM.mjs → zaraz-DmjDEnUJ.mjs} +1 -1
- package/dist/{zero-trust-DGagti-V.mjs → zero-trust-BRAHExxa.mjs} +427 -441
- package/dist/{zone-B4OniptR.mjs → zone-CclLvb-g.mjs} +1 -1
- package/dist/{zones-DYuGVoTH.mjs → zones-C6tc2OOV.mjs} +1 -1
- package/package.json +5 -4
- package/dist/abuse-reports-L4L7sC0F.mjs +0 -26
- package/dist/account-J7N4Ukse.mjs +0 -12
- package/dist/build-BmLpTw4w.mjs +0 -2
- package/dist/d1-Cbqx2kAz.mjs +0 -45
- package/dist/discover-DgHRf-qo.mjs +0 -2
- package/dist/durable-objects-CRhSGkpc.mjs +0 -8
- package/dist/error-sanitization-Cu-8OKRA.mjs +0 -2
- package/dist/flagship-IRVq23te.mjs +0 -28
- package/dist/generate-qMU-2MgC.mjs +0 -2
- package/dist/local-qOpZjDed.mjs +0 -2
- package/dist/logs-CBU44LT8.mjs +0 -48
- package/dist/pages-iil93G96.mjs +0 -60
- package/dist/r2-data-catalog-CI-oHtKe.mjs +0 -44
- package/dist/run-BQGVl3vg.mjs +0 -2
- package/dist/security-center-D1LSkhL_.mjs +0 -30
- package/dist/telemetry-C3hmM9Q9.mjs +0 -2
- package/dist/tenant-7CL844dh.mjs +0 -12
- package/dist/update-check-BDMPumcv.mjs +0 -2
- package/dist/version-DLvRzH-I.mjs +0 -2
- package/dist/workers-Cko7OnFE.mjs +0 -40
- package/dist/workers-for-platforms-EVE01qsM.mjs +0 -25
- /package/dist/{alerts-DqZgVSCT.mjs → alerts-DY_7Nknx.mjs} +0 -0
- /package/dist/{autorag-Cq9k9Ye6.mjs → autorag-K396-M2S.mjs} +0 -0
- /package/dist/{cloudflared-91JvyShh.mjs → cloudflared-Ciq4L97v.mjs} +0 -0
- /package/dist/{command-C72KLHMc.mjs → command-D1Z5uf_S.mjs} +0 -0
- /package/dist/{discover-VRFBjse7.mjs → discover-B_3A4a_t.mjs} +0 -0
- /package/dist/{generate-iV6OVNin.mjs → generate-QUDsysBJ.mjs} +0 -0
- /package/dist/{rate-limit-analytics-Bw9qmxMx.mjs → rate-limit-analytics-YsGha5pH.mjs} +0 -0
- /package/dist/{rate-limits-CDm_xzKt.mjs → rate-limits-kH13NRdf.mjs} +0 -0
- /package/dist/{ready-BXGqY1Wi.mjs → ready-DYun4Fpn.mjs} +0 -0
- /package/dist/{recent-submissions-AhGZD3a3.mjs → recent-submissions-18NaOGOo.mjs} +0 -0
- /package/dist/{refute-D_w5Gw20.mjs → refute-BhMiJcE1.mjs} +0 -0
- /package/dist/{registry-DBMUTYqf.mjs → registry-CSv7HR1J.mjs} +0 -0
- /package/dist/{scan-logo-BZzFam-Q.mjs → scan-logo-7y0pqFMk.mjs} +0 -0
- /package/dist/{scan-page-BPA8nSPM.mjs → scan-page-B6jnK3QI.mjs} +0 -0
- /package/dist/{schema-CueLBLXC.mjs → schema-JVvksQ1J.mjs} +0 -0
- /package/dist/{search-De0UlXYN.mjs → search-Rn3Eefv8.mjs} +0 -0
- /package/dist/{signed-url-ziDz9frX.mjs → signed-url-Dzwy9Xiw.mjs} +0 -0
- /package/dist/{submission-info-83D2DCCG.mjs → submission-info-SNhkDRRZ.mjs} +0 -0
- /package/dist/{tools-BJbI_f35.mjs → tools-CFEubTr4.mjs} +0 -0
- /package/dist/{total-queries-Dhol31Kn.mjs → total-queries-B20xslrH.mjs} +0 -0
- /package/dist/{tracked-domains-DoOPs6Vd.mjs → tracked-domains-BCvIOZOK.mjs} +0 -0
- /package/dist/{verify-CxpGEnJb.mjs → verify-DOeBG4PL.mjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{i as e}from"./context-
|
|
2
|
+
import{i as e}from"./context-CE7QFX-z.mjs";import{r as t}from"./auth-gOCL6Pm0.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-CRjK46r1.mjs";import{t as a}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{i as l,n as u}from"./prompt-C_90YsVE.mjs";import{t as d}from"./cli-types-DoVT5q_M.mjs";function f(e){return e.usage(`$0 ssl analyze create
|
|
3
3
|
|
|
4
4
|
Returns the set of hostnames, the signature algorithm, and the expiration date of the certificate.`).option(`bundle-method`,{type:`string`,description:`A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it.`,choices:[`ubiquitous`,`optimal`,`force`],default:`ubiquitous`}).option(`certificate`,{type:`string`,description:`The zone's SSL certificate or certificate and the intermediate(s).`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const p={command:`create`,describe:`Analyze Certificate`,builder:f,handler:async l=>a({command:`ssl analyze create`,classification:{safeFlags:[`bundle-method`,`dry-run`]}},l,async()=>{if(l.dryRun){r({command:`cf ssl analyze create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${l.zone??l.zoneId??`<zone>`}/ssl/analyze`,pathParams:{"zone-id":String(l.zone??l[`zone-id`]??``)},bodyKind:`json`,body:l.body===void 0?s({bundle_method:c(l[`bundle-method`],`bundle-method`,`text`),certificate:c(l.certificate,`certificate`,`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.ssl.analyze.create({...e,zone_id:u})),{successLabel:`Created`});return}let d=s({bundle_method:c(l[`bundle-method`],`bundle-method`,`text`),certificate:c(l.certificate,`certificate`,`text`)});n(await i(`Creating`,async()=>a.ssl.analyze.create({...d,zone_id:u})),{successLabel:`Created`})})},m={command:`analyze`,describe:`Operations for analyze`,builder:e=>e.command(p).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function h(e){return e.usage('$0 ssl auto-origin-tls-kex edit\n\nEnable or disable Auto-Origin TLS KEX selection for the zone by sending `{"enabled": true}` or `{"enabled": false}`. When enabled, Cloudflare runs a periodic scan of the zone\'s origins to determine the preferred key-exchange algorithm and writes that preference to the edge so it is sent first in the TLS ClientHello to the origin.').option(`enabled`,{type:`boolean`,description:`Controls enablement of Auto-Origin TLS KEX selection for the zone.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Update enablement of Auto-Origin TLS KEX selection.`})}const g={command:`edit`,describe:`Patch Auto-Origin TLS KEX enrollment status for the given zone`,builder:h,handler:async c=>a({command:`ssl auto-origin-tls-kex edit`,classification:{safeFlags:[`enabled`,`dry-run`]}},c,async()=>{if(c.dryRun){r({command:`cf ssl auto-origin-tls-kex edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${c.zone??c.zoneId??`<zone>`}/settings/auto_origin_tls_kex`,pathParams:{"zone-id":String(c.zone??c[`zone-id`]??``)},bodyKind:`json`,body:c.body===void 0?s({enabled:c.enabled}):o(c.body)});return}let a=await t(c),l=await e({zone:c.zone},a,{quiet:c.quiet});if(c.zoneId=l,c.body){let e=o(c.body);n(await i(`Updating`,async()=>a.ssl.autoOriginTlsKex.edit({...e,zone_id:l})),{successLabel:`Updated`});return}if(c.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);let u=s({enabled:c.enabled});n(await i(`Updating`,async()=>a.ssl.autoOriginTlsKex.edit({...u,zone_id:l})),{successLabel:`Updated`})})};function _(e){return e.usage(`$0 ssl auto-origin-tls-kex 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-Cyk8fPvL.mjs";import{a as t,t as n}from"./context-CE7QFX-z.mjs";import{a as r,r as i}from"./auth-gOCL6Pm0.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-CRjK46r1.mjs";import{t as c}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{i as l,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-C_90YsVE.mjs";import{t as ee}from"./cli-types-DoVT5q_M.mjs";import{n as te,t as _}from"./raw-fetch-C8SdmQBp.mjs";function v(e){return e.usage(`$0 stream keys create
|
|
3
3
|
|
|
4
4
|
Creates an RSA private key in PEM and JWK formats. Key files are only displayed once after creation. Keys are created, used, and deleted independently of videos, and every key can sign any video.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const y={command:`create`,describe:`Create signing keys`,builder:v,handler:async r=>c({command:`stream keys create`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf stream keys create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/keys`,pathParams:{},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Creating`,async()=>c.stream.keys.create({account_id:l})),{successLabel:`Created`})})};function b(e){return e.usage(`$0 stream keys delete <identifier>
|
|
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-Cyk8fPvL.mjs";import{a as t,t as n}from"./context-CE7QFX-z.mjs";import{r}from"./auth-gOCL6Pm0.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-CRjK46r1.mjs";import{t as s}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";function c(e){return e.usage(`$0 submit create
|
|
3
3
|
|
|
4
4
|
Return new URL submissions`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`create`,describe:`Create new URL submissions`,builder:c,handler:async c=>s({command:`submit create`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf submit create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/brand-protection/submit`,pathParams:{},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Creating`,async()=>s.submit.create({account_id:l})),{successLabel:`Created`})})},u={command:`submit`,describe:`submit`,builder:e=>e.command(l).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{u as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-Cyk8fPvL.mjs";import{a as t,t as n}from"./context-CE7QFX-z.mjs";import{r}from"./auth-gOCL6Pm0.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-CRjK46r1.mjs";import{t as s}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{t as c}from"./cli-types-DoVT5q_M.mjs";function l(e){return e.usage(`$0 tags resources list
|
|
3
3
|
|
|
4
4
|
Lists all tagged resources for an account.`).option(`type`,{type:`string`,description:`Filter by resource type. Can be repeated to filter by multiple types (OR logic). Example: ?type=zone&type=worker`}).option(`name`,{type:`string`,description:`Filter by resource name. Performs a case-insensitive substring match. Example: ?name=my-zone`}).option(`id`,{type:`string`,description:`Filter by resource ID. Can be repeated up to 50 times to filter by multiple IDs. Example: ?id=abc&id=def`}).option(`case-insensitive`,{type:`boolean`,description:"Match `tag` keys and values case-insensitively. Stored casing is unchanged. Example: ?tag=environment=production&case_insensitive=true"}).option(`tag`,{type:`string`,description:"Filter resources by tag criteria. This parameter can be repeated multiple times, with AND logic between parameters.\n\nSupported syntax:\n- **Key-only**: `tag=<key>` - Resource must have the tag key (e.g., `tag=production`)\n- **Key-value**: `tag=<key>=<value>` - Resource must have the tag with specific value (e.g., `tag=env=prod`)\n- **Multiple values (OR)**: `tag=<key>=<v1>,<v2>` - Resource must have tag with any of the values (e.g., `tag=env=prod,staging`)\n- **Negate key-only**: `tag=!<key>` - Resource must not have the tag key (e.g., `tag=!archived`)\n- **Negate key-value**: `tag=<key>!=<value>` - Resource must not have the tag with specific value (e.g., `tag=region!=us-west-1`)\n\nMultiple tag parameters are combined with AND logic."}).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 u={command:`list`,describe:`List tagged resources`,builder:c(l),handler:async c=>s({command:`tags resources list`,classification:{safeFlags:[`case-insensitive`,`dry-run`]}},c,async()=>{let s={type:c.type,name:c.name,id:c.id,case_insensitive:c[`case-insensitive`],tag:c.tag,cursor:c.cursor};if(c.dryRun){a({command:`cf tags resources list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/tags/resources`,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.tags.resources.list({account_id:u,...s})),{successLabel:`Loaded`})})},d={command:`resources`,describe:`Operations for resources`,builder:e=>e.command(u).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},f={command:`tags`,describe:`tags`,builder:e=>e.command(d).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{f as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{a as e,n as t,r as n,t as r}from"./lifecycle-C7tAC1Mn.mjs";import{a as i,c as a,d as o,f as s,i as c,l,m as u,n as d,o as f,p,r as m,s as h,t as g}from"./run-
|
|
2
|
+
import{a as e,n as t,r as n,t as r}from"./lifecycle-C7tAC1Mn.mjs";import{a as i,c as a,d as o,f as s,i as c,l,m as u,n as d,o as f,p,r as m,s as h,t as g}from"./run-huwFFwXd.mjs";import{t as _}from"./telemetry-B4_YhD82.mjs";export{i as TELEMETRY_ENV_VAR,f as TELEMETRY_POLICY_DATE,_ as UNKNOWN_COMMAND_EVENT,r as allTelemetryDispatchesSettled,t as beginTelemetryRun,h as getBannerLastShown,a as getDeviceId,c as getTelemetryDispatcher,l as getTelemetryFromEnv,o as isFirstUsage,n as markCommandReported,s as resolveTelemetry,g as runWithTelemetry,m as sanitizeArgs,p as setBannerLastShown,u as setTelemetryPermission,e as wasCommandReported,d as withTelemetry};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{r as e}from"./auth-gOCL6Pm0.mjs";import{t}from"./output-CvQFJkvi.mjs";import{t as n}from"./dry-run-Bq0JAsbX.mjs";import{t as r}from"./progress-CRjK46r1.mjs";import{t as i}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";function a(e){return e.usage(`$0 tenant account-type list
|
|
3
|
+
|
|
4
|
+
Lists the account types this tenant is allowed to provision.`).option(`tenant-id`,{type:`string`,description:`The ID of the tenant whose available account types to list.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const o={command:`list`,describe:`List tenant account types`,builder:a,handler:async a=>i({command:`tenant account-type list`,classification:{safeFlags:[`dry-run`]}},a,async()=>{if(a.dryRun){n({command:`cf tenant account-type list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/tenants/${a[`tenant-id`]==null?`<tenant-id>`:encodeURIComponent(String(a[`tenant-id`]))}/account_types`,pathParams:{"tenant-id":String(a[`tenant-id`]??``)},bodyKind:`none`});return}let i=await e(a);t(await r(`Loading`,async()=>i.tenant.accountType.list({tenant_id:a[`tenant-id`]})),{successLabel:`Loaded`})})},s={command:`account-type`,describe:`Operations for account-type`,builder:e=>e.command(o).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function c(e){return e.usage(`$0 tenant account list
|
|
5
|
+
|
|
6
|
+
Lists the Cloudflare accounts associated with this tenant.`).option(`tenant-id`,{type:`string`,description:`The ID of the tenant whose accounts to list.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`list`,describe:`List tenant accounts`,builder:c,handler:async a=>i({command:`tenant account list`,classification:{safeFlags:[`dry-run`]}},a,async()=>{if(a.dryRun){n({command:`cf tenant account list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/tenants/${a[`tenant-id`]==null?`<tenant-id>`:encodeURIComponent(String(a[`tenant-id`]))}/accounts`,pathParams:{"tenant-id":String(a[`tenant-id`]??``)},bodyKind:`none`});return}let i=await e(a);t(await r(`Loading`,async()=>i.tenant.account.list({tenant_id:a[`tenant-id`]})),{successLabel:`Loaded`})})},u={command:`account`,describe:`Operations for account`,builder:e=>e.command(l).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function d(e){return e.usage(`$0 tenant entitlement list
|
|
7
|
+
|
|
8
|
+
Retrieves the innate and custom entitlement allocations available to this tenant.`).option(`tenant-id`,{type:`string`,description:`The ID of the tenant whose entitlement allocations to retrieve.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const f={command:`list`,describe:`List tenant entitlements`,builder:d,handler:async a=>i({command:`tenant entitlement list`,classification:{safeFlags:[`dry-run`]}},a,async()=>{if(a.dryRun){n({command:`cf tenant entitlement list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/tenants/${a[`tenant-id`]==null?`<tenant-id>`:encodeURIComponent(String(a[`tenant-id`]))}/entitlements`,pathParams:{"tenant-id":String(a[`tenant-id`]??``)},bodyKind:`none`});return}let i=await e(a);t(await r(`Loading`,async()=>i.tenant.entitlement.list({tenant_id:a[`tenant-id`]})),{successLabel:`Loaded`})})},p={command:`entitlement`,describe:`Operations for entitlement`,builder:e=>e.command(f).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function m(e){return e.usage(`$0 tenant get <tenant-id>
|
|
9
|
+
|
|
10
|
+
Retrieves a tenant's identity, status, metadata, contacts, and organizational units.`).positional(`tenant-id`,{type:`string`,description:`The ID of the tenant to retrieve.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const h={command:`get <tenant-id>`,describe:`Get tenant details`,builder:m,handler:async a=>i({command:`tenant get`,classification:{safeFlags:[`dry-run`]}},a,async()=>{if(a.dryRun){n({command:`cf tenant get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/tenants/${a[`tenant-id`]==null?`<tenant-id>`:encodeURIComponent(String(a[`tenant-id`]))}`,pathParams:{"tenant-id":String(a[`tenant-id`]??``)},bodyKind:`none`});return}let i=await e(a);t(await r(`Loading`,async()=>i.tenant.get({tenant_id:a[`tenant-id`]})),{successLabel:`Loaded`})})},g={command:`tenant`,describe:`tenant`,builder:e=>e.command(h).command(u).command(s).command(p).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{g as default};
|
package/dist/{tenant-custom-nameservers-CZL9_D8w.mjs → tenant-custom-nameservers-BbHaaEhv.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{r as e}from"./auth-
|
|
2
|
+
import{r as e}from"./auth-gOCL6Pm0.mjs";import{t}from"./output-CvQFJkvi.mjs";import{t as n}from"./dry-run-Bq0JAsbX.mjs";import{t as r}from"./progress-CRjK46r1.mjs";import{t as i}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as a,t as o}from"./body-parser-hh2avzkz.mjs";import{n as s}from"./input-validation-Dk52b0me.mjs";import{a as c,n as l}from"./prompt-C_90YsVE.mjs";function u(e){return e.usage(`$0 tenant-custom-nameservers create <tenant-tag>
|
|
3
3
|
|
|
4
4
|
Adds a custom nameserver for a tenant.`).positional(`tenant-tag`,{type:`string`,description:`Tenant identifier tag.`,demandOption:!0}).option(`ns-name`,{type:`string`,description:`The FQDN of the name server.`}).option(`ns-set`,{type:`number`,description:`The number of the set that this name server belongs to.`,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 d={command:`create <tenant-tag>`,describe:`Add Tenant Custom Nameserver`,builder:u,handler:async l=>i({command:`tenant-custom-nameservers create`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){n({command:`cf tenant-custom-nameservers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/tenants/${l[`tenant-tag`]==null?`<tenant-tag>`:encodeURIComponent(String(l[`tenant-tag`]))}/custom_ns`,pathParams:{"tenant-tag":String(l[`tenant-tag`]??``)},bodyKind:`json`,body:l.body===void 0?o({ns_name:s(l[`ns-name`],`ns-name`,`text`),ns_set:l[`ns-set`]}):a(l.body)});return}let i=await e(l);if(l.body){let e=a(l.body);t(await r(`Creating`,async()=>i.tenantCustomNameservers.create({body:e,tenant_tag:l[`tenant-tag`]})),{successLabel:`Created`});return}l[`ns-name`]===void 0&&(l[`ns-name`]=await c(`ns-name`,`The FQDN of the name server.`));let u=o({ns_name:s(l[`ns-name`],`ns-name`,`text`),ns_set:l[`ns-set`]});t(await r(`Creating`,async()=>i.tenantCustomNameservers.create({body:u,tenant_tag:l[`tenant-tag`]})),{successLabel:`Created`})})};function f(e){return e.usage(`$0 tenant-custom-nameservers delete <custom-ns-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./lazy-command-
|
|
2
|
+
import{t as e}from"./lazy-command-g04RHlS2.mjs";import{t}from"./local-Cyk8fPvL.mjs";import{a as n,t as r}from"./context-CE7QFX-z.mjs";import{r as i}from"./auth-gOCL6Pm0.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-CRjK46r1.mjs";import{t as c}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.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-C_90YsVE.mjs";import{t as m}from"./cli-types-DoVT5q_M.mjs";var h=e(`diag`,`Create a diagnostic report from a local cloudflared instance.`,()=>import(`./command-CVg0qT13.mjs`),{command:`tunnels diag`,recordArgs:!1}),g=e(`login`,`Authorize cloudflared and download an origin certificate for locally managed tunnels.`,()=>import(`./command-DV196MKR.mjs`),{command:`tunnels login`,recordArgs:!1}),_=e(`quick-start <url>`,`Expose a local URL with a temporary trycloudflare.com tunnel. The tunnel remains active until cf exits.`,()=>import(`./command-C2bU5Etc.mjs`),{command:`tunnels quick-start`,recordArgs:!1}),v=e(`ready`,`Check the /ready endpoint exposed by a local cloudflared instance.`,()=>import(`./command-Bw-M_qxb.mjs`),{command:`tunnels ready`,recordArgs:!1}),y=e(`run [tunnel]`,`Run a named Cloudflare Tunnel using the cf-managed cloudflared binary.`,()=>import(`./command-CRgQ0dM3.mjs`),{command:`tunnels run`,recordArgs:!1}),b=e(`tail [tunnel-id]`,`Stream logs from a remote cloudflared instance.`,()=>import(`./command-eBmGBTA7.mjs`),{command:`tunnels tail`,recordArgs:!1});function x(e){return e.usage(`$0 tunnels config get <tunnel-id>
|
|
3
3
|
|
|
4
4
|
Retrieves the configuration for a remotely managed Cloudflare Tunnel.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`get <tunnel-id>`,describe:`Get Tunnel configuration`,builder:x,handler:async e=>c({command:`tunnels config get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf tunnels config get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/cfd_tunnel/${e[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(e[`tunnel-id`]))}/configurations`,pathParams:{"tunnel-id":String(e[`tunnel-id`]??``)},bodyKind:`none`});return}let c=await i(e),l=e.local?t:await r();e.accountId=l,a(await s(`Loading`,async()=>c.tunnels.config.get({account_id:l,tunnel_id:e[`tunnel-id`]})),{successLabel:`Loaded`})})};function C(e){return e.usage(`$0 tunnels config update <tunnel-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-Cyk8fPvL.mjs";import{a as t,t as n}from"./context-CE7QFX-z.mjs";import{r}from"./auth-gOCL6Pm0.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-CRjK46r1.mjs";import{t as s}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.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,n as f}from"./prompt-C_90YsVE.mjs";import{t as p}from"./cli-types-DoVT5q_M.mjs";function m(e){return e.usage(`$0 turnstile widgets create
|
|
3
3
|
|
|
4
4
|
Creates a Turnstile widget for an account.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of items per page.`}).option(`order`,{type:`string`,description:`Field to order widgets by.`,choices:[`id`,`sitekey`,`name`,`created_on`,`modified_on`]}).option(`direction`,{type:`string`,description:`Direction to order widgets.`,choices:[`asc`,`desc`]}).option(`filter`,{type:`string`,description:"Filter widgets by field. The `name` field uses case-insensitive\nsubstring matching; `sitekey` uses exact matching.\nFormat: `field:value`\n\nSupported fields:\n- `name` - Filter by widget name (e.g., `filter=name:login-form`)\n- `sitekey` - Filter by sitekey (e.g., `filter=sitekey:0x4AAA`)\n\nReturns 400 Bad Request if the field is unsupported or format is invalid.\nAn empty filter value returns all results."}).option(`bot-fight-mode`,{type:`boolean`,description:`If bot_fight_mode is set to \`true\`, Cloudflare issues computationally
|
|
5
5
|
expensive challenges in response to malicious bots (ENT only).
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{i as e,n as t}from"./source-38bULAR8.mjs";import{n}from"./version-
|
|
2
|
+
import{i as e,n as t}from"./source-38bULAR8.mjs";import{n}from"./version-C3q1GMTe.mjs";import{i as r}from"./cf-O3gEaXYZ.mjs";import{r as i,t as a}from"./gt-DmcMNPX6.mjs";import{closeSync as o,mkdirSync as s,openSync as c,readFileSync as l,renameSync as u,statSync as d,unlinkSync as f,writeFileSync as p}from"node:fs";import{dirname as m,join as h}from"node:path";import{fileURLToPath as g}from"node:url";import{spawn as _}from"node:child_process";var v=t(((e,t)=>{let n=i();t.exports=(e,t)=>new n(e,t).major})),y=t(((e,t)=>{let n=i();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),b=t(((e,t)=>{let n=y();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),x=t(((e,t)=>{let n=y();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),S=e(a(),1),C=e(v(),1),w=e(b(),1),T=e(x(),1);const E=1440*60*1e3;function D(e){return(0,w.default)(e)?.includes(`beta`)?`beta`:`latest`}function O(e=n){return h(r(),`cache`,`update-check-${D(e)}.json`)}function k(e=O()){try{let t=JSON.parse(l(e,`utf8`));if(typeof t!=`object`||!t||Array.isArray(t))return{};let n=t;return{lastAttemptedAt:typeof n.lastAttemptedAt==`number`&&Number.isFinite(n.lastAttemptedAt)?n.lastAttemptedAt:void 0,lastSuccessfulAt:typeof n.lastSuccessfulAt==`number`&&Number.isFinite(n.lastSuccessfulAt)?n.lastSuccessfulAt:void 0,latestVersion:typeof n.latestVersion==`string`&&(0,T.default)(n.latestVersion)?n.latestVersion:void 0}}catch{return{}}}function A(e,t=O()){let n=`${t}.${process.pid}.tmp`;try{return s(m(t),{recursive:!0}),p(n,`${JSON.stringify(e)}\n`,{encoding:`utf8`,mode:384}),u(n,t),!0}catch{try{f(n)}catch{}return!1}}function j(e,t,n){let r=`${e}.lock`,i;try{s(m(e),{recursive:!0});try{i=c(r,`wx`,384)}catch{try{if(t-d(r).mtimeMs<=5e3)return;f(r),i=c(r,`wx`,384)}catch{return}}return n()}catch{return}finally{if(i!==void 0)try{o(i),f(r)}catch{}}}function M(e,t){if(!(0,T.default)(e)||!t.latestVersion||!(0,S.default)(t.latestVersion,e))return;let n=(0,C.default)(t.latestVersion)>(0,C.default)(e);return{latestVersion:t.latestVersion,isMajor:n}}function N(e,t=O(e)){return M(e,k(t))}function P(){let e=import.meta.url.endsWith(`.ts`),t=new URL(e?`../update-check-worker.ts`:`./update-check-worker.mjs`,import.meta.url),n=e?[...process.execArgv,g(t)]:[g(t)];_(process.execPath,n,{detached:!0,stdio:`ignore`,windowsHide:!0}).unref()}function F(e={}){let t=e.cachePath??O(e.currentVersion??n),r=e.now??Date.now();if(j(t,r,()=>{let e=k(t);return e.lastAttemptedAt!==void 0&&r-e.lastAttemptedAt<864e5?!1:A({...e,lastAttemptedAt:r},t)}))try{(e.spawnWorker??P)()}catch{}}async function I(e,t,r,i){if(!(0,T.default)(t))return{status:`failed`};let a=await i(`https://registry.npmjs.org/${encodeURIComponent(e)}/${r}`,{headers:{accept:`application/json`,"user-agent":`cf-cli/${n}`},signal:AbortSignal.timeout(3e3)});if(!a.ok)return{status:`failed`};let o=await a.json();if(typeof o!=`object`||!o||Array.isArray(o))return{status:`failed`};let s=o;return s.name!==e||typeof s.version!=`string`||!(0,T.default)(s.version)?{status:`failed`}:(0,S.default)(s.version,t)?{status:`update-available`,latest:s.version}:{status:`up-to-date`}}async function L(e={}){let t=e.currentVersion??n,r=e.cachePath??O(t),i=e.now??Date.now();try{let n=await(e.check??((t,n,r)=>I(t,n,r,e.fetch??globalThis.fetch)))(`cf`,t,`latest`);if(n.status===`failed`)return;let a=n.status===`update-available`?n.latest:t;if(!(0,T.default)(a))return;A({...k(r),latestVersion:a,lastSuccessfulAt:i},r)}catch{}}export{L as i,N as n,F as r,E as t};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{i as e}from"./update-check-
|
|
2
|
+
import{i as e}from"./update-check-aOpHVlzB.mjs";await e();export{};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-Cyk8fPvL.mjs";import{a as t,t as n}from"./context-CE7QFX-z.mjs";import{r}from"./auth-gOCL6Pm0.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-CRjK46r1.mjs";import{t as s}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";function c(e){return e.usage(`$0 url-info get
|
|
3
3
|
|
|
4
4
|
Return submitted URLs based on ID`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`get`,describe:`Read submitted URLs by ID`,builder:c,handler:async c=>s({command:`url-info get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf url-info get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/brand-protection/url-info`,pathParams:{},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.urlInfo.get({account_id:l})),{successLabel:`Loaded`})})},u={command:`url-info`,describe:`url-info`,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{i as e}from"./context-
|
|
2
|
+
import{i as e}from"./context-CE7QFX-z.mjs";import{r as t}from"./auth-gOCL6Pm0.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-CRjK46r1.mjs";import{t as a}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{i as l,n as u}from"./prompt-C_90YsVE.mjs";function d(e){return e.usage(`$0 url-normalization delete
|
|
3
3
|
|
|
4
4
|
Deletes the URL Normalization settings.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const f={command:`delete`,describe:`Delete URL Normalization settings`,builder:d,handler:async o=>a({command:`url-normalization delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf url-normalization delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/url_normalization`,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 u({force:!!o.force})){process.stderr.write(`Aborted.
|
|
5
5
|
`);return}n(await i(`Deleting`,async()=>a.urlNormalization.delete({zone_id:s})),{successLabel:`Deleted`})})};function p(e){return e.usage(`$0 url-normalization get
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-Cyk8fPvL.mjs";import{a as t,t as n}from"./context-CE7QFX-z.mjs";import{r}from"./auth-gOCL6Pm0.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-CRjK46r1.mjs";import{t as s}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.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}from"./prompt-C_90YsVE.mjs";import{n as f,t as p}from"./raw-fetch-C8SdmQBp.mjs";function m(e){return e.usage("$0 url-scanner responses get <response-id>\n\nReturns the raw response of the network request. Find the `response_id` in the `data.requests.response.hash`.").positional(`response-id`,{type:`string`,description:`Response hash.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const h={command:`get <response-id>`,describe:`Get raw response`,builder:m,handler:async i=>s({command:`url-scanner responses get`,classification:{safeFlags:[`dry-run`]}},i,async()=>{if(i.dryRun){a({command:`cf url-scanner responses get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/urlscanner/v2/responses/${i[`response-id`]==null?`<response-id>`:encodeURIComponent(String(i[`response-id`]))}`,pathParams:{"response-id":String(i[`response-id`]??``)},bodyKind:`none`});return}await r(i);let s=i.local?e:await n();i.accountId=s,f((await o(`Loading`,async()=>p(`/accounts/${s}/urlscanner/v2/responses/${encodeURIComponent(String(i[`response-id`]))}`,{method:`GET`,local:i.local===!0,persistTo:i.persistTo}))).toString(`utf-8`))})},g={command:`responses`,describe:`Raw HTTP response data captured during URL scans`,builder:e=>e.command(h).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function _(e){return e.usage(`$0 url-scanner scans bulk-create
|
|
3
3
|
|
|
4
4
|
Submit URLs to scan. Check limits at https://developers.cloudflare.com/security-center/investigate/scan-limits/ and take into account scans submitted in bulk have lower priority and may take longer to finish.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`List of urls to scan (up to a 100).`})}const v={command:`bulk-create`,describe:`Bulk create URL Scans`,builder:_,handler:async l=>s({command:`url-scanner scans bulk-create`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf url-scanner scans bulk-create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/urlscanner/v2/bulk`,pathParams:{},bodyKind:`json`,body:l.body===void 0?void 0:c(l.body)});return}let s=await r(l),u=l.local?e:await n();if(l.accountId=u,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.urlScanner.scans.bulkCreate({body:e,account_id:u})),{successLabel:`Created`});return}if(l.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function y(e){return e.usage(`$0 url-scanner scans create
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{a as e,r as t}from"./auth-
|
|
2
|
+
import{a as e,r as t}from"./auth-gOCL6Pm0.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-CRjK46r1.mjs";import{t as a}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{i as o,n as s,r as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{a as d,n as f}from"./prompt-C_90YsVE.mjs";import{t as p}from"./cli-types-DoVT5q_M.mjs";function ee(e){return e.usage(`$0 user audit-logs list
|
|
3
3
|
|
|
4
4
|
Gets a list of audit logs for a user account. Can be filtered by who made the change, on which zone, and the timeframe of the change.`).option(`id`,{type:`string`,description:`Finds a specific log by its ID.`}).option(`export`,{type:`boolean`,description:`Indicates that this request is an export of logs in CSV format.`}).option(`action-type`,{type:`string`,description:`Filters by the action type.`}).option(`actor-ip`,{type:`string`,description:`Filters by the IP address of the request that made the change by specific IP address or valid CIDR Range.`}).option(`actor-email`,{type:`string`,description:`Filters by the email address of the actor that made the change.`}).option(`since`,{type:`string`,description:"Limits the returned results to logs newer than the specified date. A `full-date` that conforms to RFC3339."}).option(`before`,{type:`string`,description:"Limits the returned results to logs older than the specified date. A `full-date` that conforms to RFC3339."}).option(`zone-name`,{type:`string`,description:`Filters by the name of the zone associated to the change.`}).option(`direction`,{type:`string`,description:`Changes the direction of the chronological sorting.`,choices:[`desc`,`asc`]}).option(`per-page`,{type:`number`,description:`Sets the number of results to return per page.`}).option(`page`,{type:`number`,description:`Defines which page of results to return.`}).option(`hide-user-logs`,{type:`boolean`,description:`Indicates whether or not to hide user level audit logs.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const te={command:`list`,describe:`Get user audit logs`,builder:p(ee),handler:async e=>a({command:`user audit-logs list`,classification:{safeFlags:[`export`,`direction`,`hide-user-logs`,`dry-run`]}},e,async()=>{let a={id:e.id,export:e.export,"action.type":e[`action-type`],"actor.ip":e[`actor-ip`],"actor.email":e[`actor-email`],since:e.since,before:e.before,"zone.name":e[`zone-name`],direction:e.direction,per_page:e[`per-page`],page:e.page,hide_user_logs:e[`hide-user-logs`]};if(e.dryRun){r({command:`cf user audit-logs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/audit_logs`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e);n(await i(`Loading`,async()=>o.user.auditLogs.list(a)),{successLabel:`Loaded`})})},m={command:`audit-logs`,describe:`Operations for audit-logs`,builder:e=>e.command(te).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function h(e){return e.usage(`$0 user billing history list
|
|
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-Cyk8fPvL.mjs";import{a as t,t as n}from"./context-CE7QFX-z.mjs";import{r}from"./auth-gOCL6Pm0.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-CRjK46r1.mjs";import{t as s}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{t as c}from"./cli-types-DoVT5q_M.mjs";function l(e){return e.usage(`$0 values list
|
|
3
3
|
|
|
4
4
|
Lists all distinct values for a given tag key, optionally filtered by resource type.`).option(`tag-key`,{type:`string`,description:`The tag key to retrieve values for.`,demandOption:!0}).option(`type`,{type:`string`,description:`Filter by resource type.`,choices:`access_application.access_application_policy.access_group.account.account_ruleset.ai_gateway.alerting_policy.alerting_webhook.api_gateway_operation.cloudflared_tunnel.custom_certificate.custom_hostname.cws_deployment.cws_policy.cws_policy_set.cws_workload.d1_database.dns_record.durable_object_namespace.gateway_list.gateway_rule.healthcheck.image.infrastructure_target.kv_namespace.load_balancer.load_balancer_monitor.load_balancer_pool.managed_client_certificate.pages_project.queue.r2_bucket.resource_share.stream_live_input.stream_video.vectorize_index.worker.worker_route.worker_version.zone.zone_ruleset`.split(`.`)}).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 u={command:`list`,describe:`List tag values`,builder:c(l),handler:async c=>s({command:`values list`,classification:{safeFlags:[`type`,`dry-run`]}},c,async()=>{let s={type:c.type,cursor:c.cursor};if(c.dryRun){a({command:`cf values list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/tags/values/${c[`tag-key`]==null?`<tag-key>`:encodeURIComponent(String(c[`tag-key`]))}`,pathParams:{"tag-key":String(c[`tag-key`]??``)},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.values.list({account_id:u,tag_key:c[`tag-key`],...s})),{successLabel:`Loaded`})})},d={command:`values`,describe:`values`,builder:e=>e.command(u).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{d 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-Cyk8fPvL.mjs";import{a as t,t as n}from"./context-CE7QFX-z.mjs";import{a as r,r as i}from"./auth-gOCL6Pm0.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-CRjK46r1.mjs";import{t as c}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.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,i as m,n as h}from"./prompt-C_90YsVE.mjs";function g(e){return e.usage(`$0 vectorize create
|
|
3
3
|
|
|
4
4
|
Creates and returns a new Vectorize Index.`).option(`config-dimensions`,{type:`number`,description:`Specifies the number of dimensions for the index`}).option(`config-metric`,{type:`string`,description:`Specifies the type of metric to use calculating distance.`,choices:[`cosine`,`euclidean`,`dot-product`]}).option(`config-preset`,{type:`string`,description:`Specifies the preset to use for the index.`,choices:[`@cf/baai/bge-small-en-v1.5`,`@cf/baai/bge-base-en-v1.5`,`@cf/baai/bge-large-en-v1.5`,`openai/text-embedding-ada-002`,`cohere/embed-multilingual-v2.0`]}).option(`description`,{type:`string`,description:`Specifies the description of the index.`}).option(`name`,{type:`string`,description:`The name field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).conflicts(`config-dimensions`,[`config-preset`]).implies(`config-dimensions`,[`config-metric`]).conflicts(`config-metric`,[`config-preset`]).implies(`config-metric`,[`config-dimensions`]).conflicts(`config-preset`,[`config-dimensions`,`config-metric`])}const _={command:`create`,describe:`Create Vectorize Index`,builder:g,handler:async r=>c({command:`vectorize create`,classification:{safeFlags:[`config-metric`,`config-preset`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf vectorize create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/vectorize/v2/indexes`,pathParams:{},bodyKind:`json`,body:r.body===void 0?u({config:{dimensions:r[`config-dimensions`],metric:d(r[`config-metric`],`config-metric`,`text`),preset:d(r[`config-preset`],`config-preset`,`text`)},description:d(r.description,`description`,`text`),name:d(r.name,`name`,`text`)}):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.vectorize.create({body:e,account_id:f})),{successLabel:`Created`});return}r.name===void 0&&(r.name=await p(`name`,`The name field`));let m=u({config:{dimensions:r[`config-dimensions`],metric:d(r[`config-metric`],`config-metric`,`text`),preset:d(r[`config-preset`],`config-preset`,`text`)},description:d(r.description,`description`,`text`),name:d(r.name,`name`,`text`)});a(await s(`Creating`,async()=>c.vectorize.create({body:m,account_id:f})),{successLabel:`Created`})})};function v(e){return e.usage(`$0 vectorize delete-by-ids <index-name>
|
|
5
5
|
|
|
@@ -25,8 +25,8 @@ Enable metadata filtering based on metadata property. Limited to 10 properties.`
|
|
|
25
25
|
Allow Vectorize to delete the specified metadata index.`).positional(`index-name`,{type:`string`,description:`Index name`,demandOption:!0}).option(`property-name`,{type:`string`,description:`Specifies the metadata property for which the index must be deleted.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const L={command:`delete <index-name>`,describe:`Delete Metadata Index`,builder:I,handler:async r=>c({command:`vectorize metadata-index delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf vectorize metadata-index delete`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/vectorize/v2/indexes/${r[`index-name`]==null?`<index-name>`:encodeURIComponent(String(r[`index-name`]))}/metadata_index/delete`,pathParams:{"index-name":String(r[`index-name`]??``)},bodyKind:`json`,body:r.body===void 0?u({propertyName:d(r[`property-name`],`property-name`,`text`)}):l(r.body)});return}let c=await i(r),f=r.local?e:await n();if(r.accountId=f,!await h({force:!!r.force,message:`This operation deletes a metadata index destructively.`})){process.stderr.write(`Aborted.
|
|
26
26
|
`);return}if(r.body){let e=l(r.body);a(await s(`Deleting`,async()=>c.vectorize.metadataIndex.delete({...e,account_id:f,index_name:r[`index-name`]})),{successLabel:`Deleted`});return}r[`property-name`]===void 0&&(r[`property-name`]=await p(`property-name`,`Specifies the metadata property for which the index must be deleted.`));let m=u({propertyName:d(r[`property-name`],`property-name`,`text`)});a(await s(`Deleting`,async()=>c.vectorize.metadataIndex.delete({...m,account_id:f,index_name:r[`index-name`]})),{successLabel:`Deleted`})})};function R(e){return e.usage(`$0 vectorize metadata-index list
|
|
27
27
|
|
|
28
|
-
List Metadata Indexes for the specified Vectorize Index.`).option(`index-name`,{type:`string`,description:`Index name`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const z={command:`list`,describe:`List Metadata Indexes`,builder:R,handler:async r=>c({command:`vectorize metadata-index list`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf vectorize metadata-index list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/vectorize/v2/indexes/${r[`index-name`]==null?`<index-name>`:encodeURIComponent(String(r[`index-name`]))}/metadata_index/list`,pathParams:{"index-name":String(r[`index-name`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.vectorize.metadataIndex.list({account_id:l,index_name:r[`index-name`]})),{successLabel:`Loaded`})})},B={command:`metadata-index`,describe:`
|
|
28
|
+
List Metadata Indexes for the specified Vectorize Index.`).option(`index-name`,{type:`string`,description:`Index name`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const z={command:`list`,describe:`List Metadata Indexes`,builder:R,handler:async r=>c({command:`vectorize metadata-index list`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf vectorize metadata-index list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/vectorize/v2/indexes/${r[`index-name`]==null?`<index-name>`:encodeURIComponent(String(r[`index-name`]))}/metadata_index/list`,pathParams:{"index-name":String(r[`index-name`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.vectorize.metadataIndex.list({account_id:l,index_name:r[`index-name`]})),{successLabel:`Loaded`})})},B={command:`metadata-index`,describe:`Metadata indexes for filtered vector search`,builder:e=>e.command(F).command(L).command(z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function V(e){return e.usage(`$0 vectorize query <index-name>
|
|
29
29
|
|
|
30
30
|
Finds vectors closest to a given vector in an index.`).positional(`index-name`,{type:`string`,description:`Index name`,demandOption:!0}).option(`return-metadata`,{type:`string`,description:`Whether to return no metadata, indexed metadata or all metadata associated with the closest vectors.`,choices:[`none`,`indexed`,`all`],default:`none`}).option(`return-values`,{type:`boolean`,description:`Whether to return the values associated with the closest vectors.`,default:!1}).option(`top-k`,{type:`number`,description:`The number of nearest neighbors to find.`,default:5}).option(`vector`,{type:`string`,array:!0,description:`The search vector that will be used to find the nearest neighbors.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const H={command:`query <index-name>`,describe:`Query Vectors`,builder:V,handler:async r=>c({command:`vectorize query`,classification:{safeFlags:[`return-metadata`,`return-values`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf vectorize query`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/vectorize/v2/indexes/${r[`index-name`]==null?`<index-name>`:encodeURIComponent(String(r[`index-name`]))}/query`,pathParams:{"index-name":String(r[`index-name`]??``)},bodyKind:`json`,body:r.body===void 0?u({returnMetadata:d(r[`return-metadata`],`return-metadata`,`text`),returnValues:r[`return-values`],topK:r[`top-k`],vector:r.vector}):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(`Loading`,async()=>c.vectorize.query({...e,account_id:f,index_name:r[`index-name`]})),{successLabel:`Loaded`});return}if(r.vector===void 0)throw Error(`--vector is required (or pass --body with this field set).`);let p=u({returnMetadata:d(r[`return-metadata`],`return-metadata`,`text`),returnValues:r[`return-values`],topK:r[`top-k`],vector:r.vector});a(await s(`Loading`,async()=>c.vectorize.query({...p,account_id:f,index_name:r[`index-name`]})),{successLabel:`Loaded`})})};function U(e){return e.usage(`$0 vectorize upsert <index-name>
|
|
31
31
|
|
|
32
|
-
Upserts vectors into the specified index, creating them if they do not exist and returns a mutation id corresponding to the vectors enqueued for upsertion.`).positional(`index-name`,{type:`string`,description:`Index name`,demandOption:!0}).option(`unparsable-behavior`,{type:`string`,description:`Behavior for ndjson parse failures.`,choices:[`error`,`discard`]}).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 W={command:`upsert <index-name>`,describe:`Upsert Vectors`,builder:U,handler:async l=>c({command:`vectorize upsert`,classification:{safeFlags:[`unparsable-behavior`,`dry-run`]}},l,async()=>{let c={"unparsable-behavior":l[`unparsable-behavior`]};if(l.dryRun){o({command:`cf vectorize upsert`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/vectorize/v2/indexes/${l[`index-name`]==null?`<index-name>`:encodeURIComponent(String(l[`index-name`]))}/upsert`,pathParams:{"index-name":String(l[`index-name`]??``)},query:c,bodyKind:`octet-stream`,body:l.body});return}let u=await i(l),p=l.local?e:await n();if(l.accountId=p,l.file){let e=f(l.file);a(await s(`Creating`,async()=>r(u,`POST`,`/accounts/${p}/vectorize/v2/indexes/${encodeURIComponent(String(l[`index-name`]))}/upsert`,{body:e,headers:{"Content-Type":`application/x-ndjson`}})),{successLabel:`Created`});return}if(l.body){let e=d(l.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(u,`POST`,`/accounts/${p}/vectorize/v2/indexes/${encodeURIComponent(String(l[`index-name`]))}/upsert${t?`?`+t:``}`,{body:e,headers:{"Content-Type":`application/x-ndjson`}})),{successLabel:`Created`});return}if(l.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})},G={command:`vectorize`,describe:`
|
|
32
|
+
Upserts vectors into the specified index, creating them if they do not exist and returns a mutation id corresponding to the vectors enqueued for upsertion.`).positional(`index-name`,{type:`string`,description:`Index name`,demandOption:!0}).option(`unparsable-behavior`,{type:`string`,description:`Behavior for ndjson parse failures.`,choices:[`error`,`discard`]}).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 W={command:`upsert <index-name>`,describe:`Upsert Vectors`,builder:U,handler:async l=>c({command:`vectorize upsert`,classification:{safeFlags:[`unparsable-behavior`,`dry-run`]}},l,async()=>{let c={"unparsable-behavior":l[`unparsable-behavior`]};if(l.dryRun){o({command:`cf vectorize upsert`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/vectorize/v2/indexes/${l[`index-name`]==null?`<index-name>`:encodeURIComponent(String(l[`index-name`]))}/upsert`,pathParams:{"index-name":String(l[`index-name`]??``)},query:c,bodyKind:`octet-stream`,body:l.body});return}let u=await i(l),p=l.local?e:await n();if(l.accountId=p,l.file){let e=f(l.file);a(await s(`Creating`,async()=>r(u,`POST`,`/accounts/${p}/vectorize/v2/indexes/${encodeURIComponent(String(l[`index-name`]))}/upsert`,{body:e,headers:{"Content-Type":`application/x-ndjson`}})),{successLabel:`Created`});return}if(l.body){let e=d(l.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(u,`POST`,`/accounts/${p}/vectorize/v2/indexes/${encodeURIComponent(String(l[`index-name`]))}/upsert${t?`?`+t:``}`,{body:e,headers:{"Content-Type":`application/x-ndjson`}})),{successLabel:`Created`});return}if(l.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})},G={command:`vectorize`,describe:`Globally distributed vector database for building semantic search, recommendations, and RAG applications on Workers`,builder:e=>e.command(_).command(x).command(y).command(T).command(C).command(D).command(k).command(N).command(j).command(H).command(W).command(B).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{G 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-Cyk8fPvL.mjs";import{a as t,i as n,t as r}from"./context-CE7QFX-z.mjs";import{r as i}from"./auth-gOCL6Pm0.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-CRjK46r1.mjs";import{t as c}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.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-C_90YsVE.mjs";function ee(e){return e.usage(`$0 waiting-rooms account-waiting-rooms list
|
|
3
3
|
|
|
4
4
|
Lists waiting rooms for account or zone.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page. Must be a multiple of 5.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const g={command:`list`,describe:`List waiting rooms for account or zone`,builder:ee,handler:async l=>c({command:`waiting-rooms account-waiting-rooms list`,classification:{safeFlags:[`dry-run`]}},l,async()=>{let c={page:l.page,per_page:l[`per-page`]};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 waiting-rooms account-waiting-rooms list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/waiting_rooms`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await n({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await r();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.waitingRooms.accountWaitingRooms.list({account_or_zone:d,account_or_zone_id:f,...c})),{successLabel:`Loaded`})})},_={command:`account-waiting-rooms`,describe:`Account-scoped waiting room listing`,builder:e=>e.command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function v(e){return e.usage(`$0 waiting-rooms 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-CE7QFX-z.mjs";import{r as t}from"./auth-gOCL6Pm0.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-CRjK46r1.mjs";import{t as a}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.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,i as u,n as d}from"./prompt-C_90YsVE.mjs";import{t as f}from"./cli-types-DoVT5q_M.mjs";function p(e){return e.usage(`$0 web-assets discovery get
|
|
3
3
|
|
|
4
4
|
Returns the latest API operations discovered from zone traffic, rendered as OpenAPI schemas.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ee={command:`get`,describe:`Export discovered API operations as OpenAPI schemas`,builder:p,handler:async o=>a({command:`web-assets discovery get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf web-assets discovery get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/api_gateway/discovery`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.webAssets.discovery.get({zone_id:s})),{successLabel:`Loaded`})})};function m(e){return e.usage(`$0 web-assets discovery operations bulk-edit
|
|
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-CE7QFX-z.mjs";import{r as t}from"./auth-gOCL6Pm0.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-CRjK46r1.mjs";import{t as a}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as o,r as s,t as c}from"./body-parser-hh2avzkz.mjs";import{n as l}from"./input-validation-Dk52b0me.mjs";import{a as u,i as d,n as f}from"./prompt-C_90YsVE.mjs";function p(e){return e.usage(`$0 web3 hostnames create
|
|
3
3
|
|
|
4
4
|
Create Web3 Hostname`).option(`description`,{type:`string`,description:`Specify an optional description of the hostname.`}).option(`dnslink`,{type:`string`,description:`Specify the DNSLink value used if the target is ipfs.`}).option(`name`,{type:`string`,description:`Specify the hostname that points to the target gateway via CNAME.`}).option(`target`,{type:`string`,description:`Specify the target gateway of the hostname.`,choices:[`ethereum`,`ipfs`,`ipfs_universal_path`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const m={command:`create`,describe:`Create Web3 Hostname`,builder:p,handler:async s=>a({command:`web3 hostnames create`,classification:{safeFlags:[`target`,`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf web3 hostnames create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/web3/hostnames`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({description:l(s.description,`description`,`text`),dnslink:l(s.dnslink,`dnslink`,`text`),name:l(s.name,`name`,`text`),target:l(s.target,`target`,`text`)}):o(s.body)});return}let a=await t(s),f=await e({zone:s.zone},a,{quiet:s.quiet});if(s.zoneId=f,s.body){let e=o(s.body);n(await i(`Creating`,async()=>a.web3.hostnames.create({...e,zone_id:f})),{successLabel:`Created`});return}s.name===void 0&&(s.name=await u(`name`,`Specify the hostname that points to the target gateway via CNAME.`)),s.target===void 0&&(s.target=await d(`target`,`Specify the target gateway of the hostname.`,[`ethereum`,`ipfs`,`ipfs_universal_path`]));let p=c({description:l(s.description,`description`,`text`),dnslink:l(s.dnslink,`dnslink`,`text`),name:l(s.name,`name`,`text`),target:l(s.target,`target`,`text`)});n(await i(`Creating`,async()=>a.web3.hostnames.create({...p,zone_id:f})),{successLabel:`Created`})})};function h(e){return e.usage(`$0 web3 hostnames delete <identifier>
|
|
5
5
|
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{t as e}from"./lazy-command-g04RHlS2.mjs";import{r as t}from"./theme-BIWQFmZ0.mjs";import{r as n}from"./dotenv-CcQjGlV0.mjs";import{q as r}from"./dist-DfMipWKR.mjs";import"./ui-BQxRjahW.mjs";import{t as i}from"./local-Cyk8fPvL.mjs";import{a,r as o,t as s}from"./context-CE7QFX-z.mjs";import{n as c}from"./dist-DW47TUGh.mjs";import{a as l,i as ee,r as u}from"./auth-gOCL6Pm0.mjs";import{t as d}from"./output-CvQFJkvi.mjs";import{t as f}from"./dry-run-Bq0JAsbX.mjs";import{t as p}from"./progress-CRjK46r1.mjs";import{n as m,t as h}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as g,r as _,t as v}from"./body-parser-hh2avzkz.mjs";import{n as y,t as b}from"./input-validation-Dk52b0me.mjs";import{a as x,i as S,n as C}from"./prompt-C_90YsVE.mjs";import{t as w}from"./cli-types-DoVT5q_M.mjs";import{D as T}from"./dist-Dgnf_i4w.mjs";import{l as E,s as D}from"./containers-BY8pinEV.mjs";import{a as O,i as k,n as A,o as j,r as M}from"./build-_qqitpn0.mjs";import{r as N}from"./deploy-input-CNrImP7B.mjs";import{n as P,t as F}from"./shared-BDIrEKWt.mjs";import{readBuildOutput as I}from"@cloudflare/build-output-utils";var L=e(`check`,`Profile a Worker's startup performance`,()=>import(`./command-B47VlNBp.mjs`),{command:`workers check`,classification:{safeFlags:[`prebuilt`]}});function R(e){return e.hide(`local`).hide(`persist-to`).epilogue(`Local simulation (--local) is not supported by this command.`).option(`prebuilt`,{type:`boolean`,description:`Use existing Build Output Specification files without building`,default:!1}).option(`dry-run`,{type:`boolean`,description:`Run checks without applying triggers`,default:!1}).option(`worker`,M)}const z={command:`deploy`,describe:`Apply triggers (Routes, Workflows, Cron triggers etc.)`,builder:R,handler:async e=>{if(e.local)throw Error(`--local is not supported by cf workers triggers deploy.`);e.prebuilt||(await A(e.mode,{worker:e.worker}),c.message(``,{spacing:0})),await n(e,()=>B(e))}};async function B(e){let{workers:n,rootConfig:i}=await I(process.cwd());if(i.buildContext.isPreview){let e=[`cf previews deploy`,`--prebuilt`,...i.buildContext.mode===void 0?[]:[`--mode`,i.buildContext.mode]].join(` `);throw Error(`The Build Output was created for a Preview, but this command deploys production triggers. To use the existing Build Output and deploy the Preview, run "${e}". To deploy production triggers, rebuild without Preview settings before deploying.`)}j(e.mode,i.buildContext.mode);let a=O(n,e.worker),{wranglerConfig:o}=k(a,i),l=e[`dry-run`]?``:await ee(),u=e[`dry-run`]?void 0:i.accountId??await s({skipProjectSettings:!0,complianceRegion:r(o)});E(T(l)),c.message(t.bold(`Deploy triggers`),{symbol:t.muted(`├`),spacing:0}),await D(N(a,o,u,e)),c.success(e[`dry-run`]?`Dry run complete`:`Trigger deploy complete`)}const V={command:`triggers`,describe:`Manage triggers (Routes, Workflows, Cron triggers etc.)`,builder:e=>e.command(m(z,{command:`workers triggers deploy`,classification:{safeFlags:[`dry-run`,`prebuilt`]}})).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var H=e(`types`,`Generate types from cloudflare.config.ts`,()=>import(`./command-BDCTd8Ra.mjs`),{command:`workers types`,classification:{safeFlags:[`include-runtime`]}});function U(e){return e.usage(`$0 workers delete <worker-id>
|
|
3
|
+
|
|
4
|
+
Delete a Worker and all its associated resources (versions, deployments, etc.).`).positional(`worker-id`,{type:`string`,description:`Identifier for the Worker, which can be ID or name.`,demandOption:!0}).option(`delete-with-references`,{type:`boolean`,description:`If true, delete the Worker even when other Workers still reference it. Service bindings in those Workers may be left broken. Durable Object namespaces implemented by the deleted Worker are deleted even if other Workers reference them.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const W={command:`delete <worker-id>`,describe:`Delete Worker`,builder:U,handler:async e=>h({command:`workers delete`,classification:{safeFlags:[`delete-with-references`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{let t={force:e[`delete-with-references`]};if(e.dryRun){f({command:`cf workers delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await a()??`<account-id>`}/workers/workers/${e[`worker-id`]==null?`<worker-id>`:encodeURIComponent(String(e[`worker-id`]))}`,pathParams:{"worker-id":String(e[`worker-id`]??``)},query:t,bodyKind:`none`});return}let n=await u(e),r=e.local?i:await s();if(e.accountId=r,!await C({force:!!e.force,message:`This will permanently delete the Worker and its associated versions and deployments.`})){process.stderr.write(`Aborted.
|
|
5
|
+
`);return}d(await p(`Deleting`,async()=>n.workers.delete({account_id:r,worker_id:e[`worker-id`],...t})),{successLabel:`Deleted`})})};function G(e){return e.usage(`$0 workers deployments create
|
|
6
|
+
|
|
7
|
+
Deployments configure how [Worker Versions](https://developers.cloudflare.com/api/operations/worker-versions-list-versions) are deployed to traffic. A deployment can consist of multiple versions of a Worker.`).option(`worker`,{type:`string`,alias:`script-name`,description:`Name of the script.`}).option(`bypass-deployment-checks`,{type:`boolean`,description:`If set to true, the deployment will be created even if normally blocked by something such rolling back to an older version when a secret has changed.`}).option(`strategy`,{type:`string`,description:`The strategy field`,choices:[`percentage`]}).option(`versions`,{type:`string`,description:'Worker versions included in this deployment. Each object must contain a `version_id` UUID and a `percentage`; percentages across all objects must total 100. In the `cf` CLI, pass the entire array as one JSON value to `--versions`, either inline, for example `--versions \'[{"version_id":"023e105f-2a42-4f8b-a1c1-73f6a2a30c0f","percentage":100}]\'`, or from a JSON file with `--versions @versions.json`. 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 K={command:`create`,describe:`Create Worker Deployment`,builder:G,handler:async e=>h({command:`workers deployments create`,classification:{safeFlags:[`bypass-deployment-checks`,`strategy`,`dry-run`]}},e,async()=>{let t={force:e[`bypass-deployment-checks`]};if(e.dryRun){f({command:`cf workers deployments create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await a()??`<account-id>`}/workers/scripts/${e.worker??`<worker>`}/deployments`,pathParams:{"script-name":String(e[`script-name`]??``)},query:t,bodyKind:`json`,body:e.body===void 0?v({strategy:y(e.strategy,`strategy`,`text`),versions:_(e.versions,`versions`)}):g(e.body)});return}let n=await u(e),r=e.local?i:await s();e.accountId=r;let c=o({scriptName:e.worker});if(e.worker=c,e.body){let i=g(e.body);new URLSearchParams(Object.entries(t).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString(),d(await p(`Creating`,async()=>n.workers.deployments.create({body:i,account_id:r,script_name:c,...t})),{successLabel:`Created`});return}if(e.strategy===void 0&&(e.strategy=await S(`strategy`,`The strategy field`,[`percentage`])),e.versions===void 0)throw Error(`--versions is required (or pass --body with this field set).`);let l=v({strategy:y(e.strategy,`strategy`,`text`),versions:_(e.versions,`versions`)});new URLSearchParams(Object.entries(t).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString(),d(await p(`Creating`,async()=>n.workers.deployments.create({body:l,account_id:r,script_name:c,...t})),{successLabel:`Created`})})};function q(e){return e.usage(`$0 workers deployments delete <deployment-id>
|
|
8
|
+
|
|
9
|
+
Delete a Worker Deployment. The latest deployment, which is actively serving traffic, cannot be deleted. All other deployments can be deleted.`).positional(`deployment-id`,{type:`string`,description:`Deployment ID`,demandOption:!0}).option(`worker`,{type:`string`,alias:`script-name`,description:`Name of the script.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const J={command:`delete <deployment-id>`,describe:`Delete Worker Deployment`,builder:q,handler:async e=>h({command:`workers deployments delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){f({command:`cf workers deployments delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await a()??`<account-id>`}/workers/scripts/${e.worker??`<worker>`}/deployments/${e[`deployment-id`]==null?`<deployment-id>`:encodeURIComponent(String(e[`deployment-id`]))}`,pathParams:{"script-name":String(e[`script-name`]??``),"deployment-id":String(e[`deployment-id`]??``)},bodyKind:`none`});return}let t=await u(e),n=e.local?i:await s();e.accountId=n;let r=o({scriptName:e.worker});if(e.worker=r,!await C({force:!!e.force,message:`This will permanently delete the Worker deployment.`})){process.stderr.write(`Aborted.
|
|
10
|
+
`);return}d(await p(`Deleting`,async()=>t.workers.deployments.delete({account_id:n,script_name:r,deployment_id:e[`deployment-id`]})),{successLabel:`Deleted`})})};function Y(e){return e.usage(`$0 workers deployments get <deployment-id>
|
|
11
|
+
|
|
12
|
+
Get information about a Worker Deployment.`).positional(`deployment-id`,{type:`string`,description:`Deployment ID`,demandOption:!0}).option(`worker`,{type:`string`,alias:`script-name`,description:`Name of the script.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const X={command:`get <deployment-id>`,describe:`Get Worker Deployment`,builder:Y,handler:async e=>h({command:`workers deployments get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){f({command:`cf workers deployments get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await a()??`<account-id>`}/workers/scripts/${e.worker??`<worker>`}/deployments/${e[`deployment-id`]==null?`<deployment-id>`:encodeURIComponent(String(e[`deployment-id`]))}`,pathParams:{"script-name":String(e[`script-name`]??``),"deployment-id":String(e[`deployment-id`]??``)},bodyKind:`none`});return}let t=await u(e),n=e.local?i:await s();e.accountId=n;let r=o({scriptName:e.worker});e.worker=r,d(await p(`Loading`,async()=>t.workers.deployments.get({account_id:n,script_name:r,deployment_id:e[`deployment-id`]})),{successLabel:`Loaded`})})};function te(e){return e.usage(`$0 workers deployments list
|
|
13
|
+
|
|
14
|
+
List Worker deployments. The first deployment in the list is the latest deployment actively serving traffic.`).option(`worker`,{type:`string`,alias:`script-name`,description:`Name of the script.`}).option(`since`,{type:`string`,description:`Start of the deployment creation time range, inclusive.`}).option(`until`,{type:`string`,description:`End of the deployment creation time range, inclusive.`}).option(`page`,{type:`number`,description:`Current page.`}).option(`per-page`,{type:`number`,description:`Items per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Z={command:`list`,describe:`List Worker Deployments`,builder:te,handler:async e=>h({command:`workers deployments list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={since:e.since,until:e.until,page:e.page,per_page:e[`per-page`]};if(e.dryRun){f({command:`cf workers deployments list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await a()??`<account-id>`}/workers/scripts/${e.worker??`<worker>`}/deployments`,pathParams:{"script-name":String(e[`script-name`]??``)},query:t,bodyKind:`none`});return}let n=await u(e),r=e.local?i:await s();e.accountId=r;let c=o({scriptName:e.worker});e.worker=c,d(await p(`Loading`,async()=>n.workers.deployments.list({account_id:r,script_name:c,...t})),{successLabel:`Loaded`})})},Q={command:`deployments`,describe:`Operations for deployments`,builder:e=>e.command(K).command(J).command(X).command(Z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ne(e){return e.usage(`$0 workers get <worker-id>
|
|
15
|
+
|
|
16
|
+
Get details about a specific Worker.`).positional(`worker-id`,{type:`string`,description:`Identifier for the Worker, which can be ID or name.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const re={command:`get <worker-id>`,describe:`Get Worker`,builder:ne,handler:async e=>h({command:`workers get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){f({command:`cf workers get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await a()??`<account-id>`}/workers/workers/${e[`worker-id`]==null?`<worker-id>`:encodeURIComponent(String(e[`worker-id`]))}`,pathParams:{"worker-id":String(e[`worker-id`]??``)},bodyKind:`none`});return}let t=await u(e),n=e.local?i:await s();e.accountId=n,d(await p(`Loading`,async()=>t.workers.get({account_id:n,worker_id:e[`worker-id`]})),{successLabel:`Loaded`})})};function ie(e){return e.usage(`$0 workers list
|
|
17
|
+
|
|
18
|
+
List all Workers for an account.`).option(`page`,{type:`number`,description:`Current page.`}).option(`per-page`,{type:`number`,description:`Items per-page.`}).option(`order-by`,{type:`string`,description:`Property to sort results by.`,choices:[`deployed_on`,`updated_on`,`created_on`,`name`]}).option(`order`,{type:`string`,description:`Sort direction.`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ae={command:`list`,describe:`List Workers`,builder:w(ie),handler:async e=>h({command:`workers list`,classification:{safeFlags:[`order-by`,`order`,`dry-run`]}},e,async()=>{let t={page:e.page,per_page:e[`per-page`],order_by:e[`order-by`],order:e.order};if(e.dryRun){f({command:`cf workers list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await a()??`<account-id>`}/workers/workers`,pathParams:{},query:t,bodyKind:`none`});return}let n=await u(e),r=e.local?i:await s();e.accountId=r,d(await p(`Loading`,async()=>n.workers.list({account_id:r,...t})),{successLabel:`Loaded`})})};function oe(e){return e.usage(`$0 workers scripts search
|
|
19
|
+
|
|
20
|
+
Search for Worker scripts in an account.`).option(`name`,{type:`string`,description:`Worker name to search for. Both exact and partial matches are returned.`}).option(`id`,{type:`string`,description:`Worker ID (also called tag) to search for. Only exact matches are returned.`}).option(`order-by`,{type:`string`,description:`Property to sort results by. Results are sorted in ascending order.`,choices:[`created_on`,`modified_on`,`name`]}).option(`page`,{type:`number`,description:`Current page.`}).option(`per-page`,{type:`number`,description:`Items per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const se={command:`search`,describe:`Search Worker Scripts`,builder:w(oe),handler:async e=>h({command:`workers scripts search`,classification:{safeFlags:[`order-by`,`dry-run`]}},e,async()=>{let t={name:e.name,id:e.id,order_by:e[`order-by`],page:e.page,per_page:e[`per-page`]};if(e.dryRun){f({command:`cf workers scripts search`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await a()??`<account-id>`}/workers/scripts-search`,pathParams:{},query:t,bodyKind:`none`});return}let n=await u(e),r=e.local?i:await s();e.accountId=r,d(await p(`Loading`,async()=>n.workers.scripts.search({account_id:r,...t})),{successLabel:`Loaded`})})},ce={command:`scripts`,describe:`Operations for scripts`,builder:e=>e.command(se).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function le(e){return e.usage(`$0 workers secrets bulk
|
|
21
|
+
|
|
22
|
+
Create, update, or delete multiple secrets on a Worker script in a single operation using JSON Merge Patch (RFC 7396). This operation creates a single version with all changes included. Prefer this API instead of changing many secrets individually. Usage: - To create or update a secret, set its value to a secret object. - To delete a secret, set its value to \`null\`. - Secrets not included in the request are left unchanged.`).option(`worker`,{type:`string`,alias:`script-name`,description:`Name of the script.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`JSON Merge Patch (RFC 7396) request body for bulk secret changes. `}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`})}const ue={command:`bulk`,describe:`Patch multiple Worker script secrets`,builder:le,handler:async e=>h({command:`workers secrets bulk`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){f({command:`cf workers secrets bulk`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await a()??`<account-id>`}/workers/scripts/${e.worker??`<worker>`}/secrets-bulk`,pathParams:{"script-name":String(e[`script-name`]??``)},bodyKind:e.file===void 0?`json`:`octet-stream`,body:e.file===void 0?e.body===void 0?void 0:g(e.body):{file:e.file}});return}let t=await u(e),n=e.local?i:await s();e.accountId=n;let r=o({scriptName:e.worker});if(e.worker=r,e.file){let i=b(e.file);d(await p(`Updating`,async()=>l(t,`PATCH`,`/accounts/${n}/workers/scripts/${r}/secrets-bulk`,{body:i,headers:{"Content-Type":`application/merge-patch+json`}})),{successLabel:`Updated`});return}if(e.body){let i=g(e.body);d(await p(`Updating`,async()=>l(t,`PATCH`,`/accounts/${n}/workers/scripts/${r}/secrets-bulk`,{body:i})),{successLabel:`Updated`});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function de(e){return e.usage(`$0 workers secrets delete <secret-name>
|
|
23
|
+
|
|
24
|
+
Remove a secret from a Worker script by creating a new version without that secret. When changing more than one secret at a time, prefer the "Patch multiple script secrets" API instead of changing many secrets individually.`).positional(`secret-name`,{type:`string`,description:`A JavaScript variable name for the secret binding.`,demandOption:!0}).option(`worker`,{type:`string`,alias:`script-name`,description:`Name of the script.`}).option(`url-encoded`,{type:`boolean`,description:`Flag that indicates whether the secret name is URL encoded.`}).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 fe={command:`delete <secret-name>`,describe:`Delete Worker script secret`,builder:de,handler:async e=>h({command:`workers secrets delete`,classification:{safeFlags:[`url-encoded`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{let t={url_encoded:e[`url-encoded`]};if(e.dryRun){f({command:`cf workers secrets delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await a()??`<account-id>`}/workers/scripts/${e.worker??`<worker>`}/secrets/${e[`secret-name`]==null?`<secret-name>`:encodeURIComponent(String(e[`secret-name`]))}`,pathParams:{"script-name":String(e[`script-name`]??``),"secret-name":String(e[`secret-name`]??``)},query:t,bodyKind:`none`});return}let n=await u(e),r=e.local?i:await s();e.accountId=r;let c=o({scriptName:e.worker});if(e.worker=c,!await C({force:!!e.force,message:`This will permanently delete the Worker script secret.`})){process.stderr.write(`Aborted.
|
|
25
|
+
`);return}d(await p(`Deleting`,async()=>n.workers.secrets.delete({account_id:r,script_name:c,secret_name:e[`secret-name`],...t})),{successLabel:`Deleted`})})};function pe(e){return e.usage(`$0 workers secrets get <secret-name>
|
|
26
|
+
|
|
27
|
+
Get a given secret binding (value omitted) on a Worker script.`).positional(`secret-name`,{type:`string`,description:`A JavaScript variable name for the secret binding.`,demandOption:!0}).option(`worker`,{type:`string`,alias:`script-name`,description:`Name of the script.`}).option(`url-encoded`,{type:`boolean`,description:`Flag that indicates whether the secret name is URL encoded.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const me={command:`get <secret-name>`,describe:`Get a secret binding`,builder:pe,handler:async e=>h({command:`workers secrets get`,classification:{safeFlags:[`url-encoded`,`dry-run`]}},e,async()=>{let t={url_encoded:e[`url-encoded`]};if(e.dryRun){f({command:`cf workers secrets get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await a()??`<account-id>`}/workers/scripts/${e.worker??`<worker>`}/secrets/${e[`secret-name`]==null?`<secret-name>`:encodeURIComponent(String(e[`secret-name`]))}`,pathParams:{"script-name":String(e[`script-name`]??``),"secret-name":String(e[`secret-name`]??``)},query:t,bodyKind:`none`});return}let n=await u(e),r=e.local?i:await s();e.accountId=r;let c=o({scriptName:e.worker});e.worker=c,d(await p(`Loading`,async()=>n.workers.secrets.get({account_id:r,script_name:c,secret_name:e[`secret-name`],...t})),{successLabel:`Loaded`})})};function he(e){return e.usage(`$0 workers secrets list
|
|
28
|
+
|
|
29
|
+
List the names of secrets bound to a Worker script.`).option(`worker`,{type:`string`,alias:`script-name`,description:`Name of the script.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ge={command:`list`,describe:`List secrets bound to a Worker script`,builder:he,handler:async e=>h({command:`workers secrets list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){f({command:`cf workers secrets list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await a()??`<account-id>`}/workers/scripts/${e.worker??`<worker>`}/secrets`,pathParams:{"script-name":String(e[`script-name`]??``)},bodyKind:`none`});return}let t=await u(e),n=e.local?i:await s();e.accountId=n;let r=o({scriptName:e.worker});e.worker=r,d(await p(`Loading`,async()=>t.workers.secrets.list({account_id:n,script_name:r})),{successLabel:`Loaded`})})};function _e(e){return e.usage(`$0 workers secrets update <name>
|
|
30
|
+
|
|
31
|
+
Add a secret to a Worker script by creating a new version with that secret. When changing more than one secret at a time, prefer the "Patch multiple script secrets" API instead of changing many secrets individually.`).positional(`name`,{type:`string`,description:`A JavaScript variable name for the binding.`,demandOption:!0}).option(`worker`,{type:`string`,alias:`script-name`,description:`Name of the script.`}).option(`text`,{type:`string`,description:`The secret value to use.`}).option(`type`,{type:`string`,description:`The kind of resource that the binding provides.`,choices:[`secret_text`,`secret_key`]}).option(`format`,{type:`string`,description:`Data format of the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format).`,choices:[`raw`,`pkcs8`,`spki`,`jwk`]}).option(`key-base64`,{type:`string`,description:'Base64-encoded key data. Required if `format` is "raw", "pkcs8", or "spki".'}).option(`usages`,{type:`string`,array:!0,description:`Allowed operations with the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages).`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`A secret value accessible through a binding.`}).conflicts(`text`,[`format`,`key-base64`,`usages`]).conflicts(`format`,[`text`]).implies(`format`,[`usages`]).conflicts(`key-base64`,[`text`]).conflicts(`usages`,[`text`]).implies(`usages`,[`format`])}const ve={command:`update <name>`,describe:`Add a secret to a Worker script`,builder:_e,handler:async e=>h({command:`workers secrets update`,classification:{safeFlags:[`type`,`format`,`dry-run`]}},e,async()=>{if(e.dryRun){f({command:`cf workers secrets update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await a()??`<account-id>`}/workers/scripts/${e.worker??`<worker>`}/secrets`,pathParams:{"script-name":String(e[`script-name`]??``)},bodyKind:`json`,body:e.body===void 0?v({text:y(e.text,`text`,`text`),type:y(e.type,`type`,`text`),format:y(e.format,`format`,`text`),key_base64:y(e[`key-base64`],`key-base64`,`text`),usages:e.usages,name:e.name}):g(e.body)});return}let t=await u(e),n=e.local?i:await s();e.accountId=n;let r=o({scriptName:e.worker});if(e.worker=r,e.body){let i=g(e.body);d(await p(`Updating`,async()=>t.workers.secrets.update({body:i,account_id:n,script_name:r})),{successLabel:`Updated`});return}if(e.type===void 0&&(e.type=await S(`type`,`The kind of resource that the binding provides.`,[`secret_text`,`secret_key`])),e.type===`secret_text`&&e.text===void 0&&(e.text=await x(`text`,`The secret value to use.`,{kind:`secret`,question:`Enter value for --text`})),e.type===`secret_key`)throw Error(`The secret_key variant requires algorithm, which cannot be supplied as flags. Pass --body with a complete request body.`);let c=v({text:y(e.text,`text`,`text`),type:y(e.type,`type`,`text`),format:y(e.format,`format`,`text`),key_base64:y(e[`key-base64`],`key-base64`,`text`),usages:e.usages,name:e.name});d(await p(`Updating`,async()=>t.workers.secrets.update({body:c,account_id:n,script_name:r})),{successLabel:`Updated`})})},ye={command:`secrets`,describe:`Operations for secrets`,builder:e=>e.command(ue).command(fe).command(me).command(ge).command(ve).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function be(e){return P(e).hide(`local`).hide(`persist-to`).epilogue(`Local simulation (--local) is not supported by this command.`).option(`preview-alias`,{type:`string`,description:`Preview alias for this Worker Version`,requiresArg:!0})}var $=m({command:`create`,describe:`Upload a new Worker Version without deploying it`,builder:be,handler:async e=>{if(e.local)throw Error(`--local is not supported by cf workers versions create.`);await F(e,{command:`Version upload`})}},{command:`workers versions create`,classification:{safeFlags:[`dry-run`,`prebuilt`]}});function xe(e){return e.usage(`$0 workers versions delete <version-id>
|
|
32
|
+
|
|
33
|
+
Delete a Worker version.`).positional(`version-id`,{type:`string`,description:`Identifier for the version, which can be a UUID, a UUID prefix (minimum length 8), or the literal "latest" to operate on the most recently created version.`,demandOption:!0}).option(`worker-id`,{type:`string`,description:`Identifier for the Worker, which can be ID or name.`,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 Se={command:`delete <version-id>`,describe:`Delete Worker Version`,builder:xe,handler:async e=>h({command:`workers versions delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){f({command:`cf workers versions delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await a()??`<account-id>`}/workers/workers/${e[`worker-id`]==null?`<worker-id>`:encodeURIComponent(String(e[`worker-id`]))}/versions/${e[`version-id`]==null?`<version-id>`:encodeURIComponent(String(e[`version-id`]))}`,pathParams:{"worker-id":String(e[`worker-id`]??``),"version-id":String(e[`version-id`]??``)},bodyKind:`none`});return}let t=await u(e),n=e.local?i:await s();if(e.accountId=n,!await C({force:!!e.force,message:`This will permanently delete the Worker version.`})){process.stderr.write(`Aborted.
|
|
34
|
+
`);return}d(await p(`Deleting`,async()=>t.workers.versions.delete({account_id:n,worker_id:e[`worker-id`],version_id:e[`version-id`]})),{successLabel:`Deleted`})})};function Ce(e){return e.usage(`$0 workers versions get <version-id>
|
|
35
|
+
|
|
36
|
+
Get details about a specific Worker version.`).positional(`version-id`,{type:`string`,description:`Identifier for the version, which can be a UUID, a UUID prefix (minimum length 8), or the literal "latest" to operate on the most recently created version.`,demandOption:!0}).option(`worker-id`,{type:`string`,description:`Identifier for the Worker, which can be ID or name.`,demandOption:!0}).option(`include`,{type:`string`,description:"Whether to include the `modules` property of the version in the response, which contains code and sourcemap content and may add several megabytes to the response size.",choices:[`modules`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const we={command:`get <version-id>`,describe:`Get Worker Version`,builder:w(Ce),handler:async e=>h({command:`workers versions get`,classification:{safeFlags:[`include`,`dry-run`]}},e,async()=>{let t={include:e.include};if(e.dryRun){f({command:`cf workers versions get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await a()??`<account-id>`}/workers/workers/${e[`worker-id`]==null?`<worker-id>`:encodeURIComponent(String(e[`worker-id`]))}/versions/${e[`version-id`]==null?`<version-id>`:encodeURIComponent(String(e[`version-id`]))}`,pathParams:{"worker-id":String(e[`worker-id`]??``),"version-id":String(e[`version-id`]??``)},query:t,bodyKind:`none`});return}let n=await u(e),r=e.local?i:await s();e.accountId=r,d(await p(`Loading`,async()=>n.workers.versions.get({account_id:r,worker_id:e[`worker-id`],version_id:e[`version-id`],...t})),{successLabel:`Loaded`})})};function Te(e){return e.usage(`$0 workers versions list
|
|
37
|
+
|
|
38
|
+
List all versions for a Worker.`).option(`worker-id`,{type:`string`,description:`Identifier for the Worker, which can be ID or name.`,demandOption:!0}).option(`page`,{type:`number`,description:`Current page.`}).option(`per-page`,{type:`number`,description:`Items per-page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ee={command:`list`,describe:`List Worker Versions`,builder:Te,handler:async e=>h({command:`workers versions list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={page:e.page,per_page:e[`per-page`]};if(e.dryRun){f({command:`cf workers versions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await a()??`<account-id>`}/workers/workers/${e[`worker-id`]==null?`<worker-id>`:encodeURIComponent(String(e[`worker-id`]))}/versions`,pathParams:{"worker-id":String(e[`worker-id`]??``)},query:t,bodyKind:`none`});return}let n=await u(e),r=e.local?i:await s();e.accountId=r,d(await p(`Loading`,async()=>n.workers.versions.list({account_id:r,worker_id:e[`worker-id`],...t})),{successLabel:`Loaded`})})},De={command:`versions`,describe:`Operations for versions`,builder:e=>e.command($).command(Se).command(we).command(Ee).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Oe={command:`workers`,describe:`workers`,builder:e=>e.command(L).command(W).command(re).command(ae).command(H).command(Q).command(ce).command(ye).command(V).command(De).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Oe 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-Cyk8fPvL.mjs";import{a as t,t as n}from"./context-CE7QFX-z.mjs";import{r}from"./auth-gOCL6Pm0.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-CRjK46r1.mjs";import{t as s}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";function d(e){return e.usage(`$0 workers-builds workers migrate-to-previews <script-tag>
|
|
3
3
|
|
|
4
4
|
Migrate a Worker's legacy non-production trigger to Previews. The legacy build settings become the Previews base config and the legacy trigger is removed.`).positional(`script-tag`,{type:`string`,description:`The Worker script tag (external script ID)`,demandOption:!0}).option(`deploy-command`,{type:`string`,description:`Deploy command for the migrated Preview settings. Omit it to have the existing 'wrangler versions upload' command rewritten to 'wrangler preview' automatically, which fails with 400 when the existing command cannot be rewritten.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for migrating a Worker's legacy non-production trigger to Previews.`})}const f={command:`migrate-to-previews <script-tag>`,describe:`Migrate worker to previews`,builder:d,handler:async d=>s({command:`workers-builds workers migrate-to-previews`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf workers-builds workers migrate-to-previews`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/builds/workers/${d[`script-tag`]==null?`<script-tag>`:encodeURIComponent(String(d[`script-tag`]))}/migrate_to_previews`,pathParams:{"script-tag":String(d[`script-tag`]??``)},bodyKind:`json`,body:d.body===void 0?l({deploy_command:u(d[`deploy-command`],`deploy-command`,`text`)}):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(`Creating`,async()=>s.workersBuilds.workers.migrateToPreviews({...e,account_id:f,script_tag:d[`script-tag`]})),{successLabel:`Created`});return}let p=l({deploy_command:u(d[`deploy-command`],`deploy-command`,`text`)});i(await o(`Creating`,async()=>s.workersBuilds.workers.migrateToPreviews({...p,account_id:f,script_tag:d[`script-tag`]})),{successLabel:`Created`})})};function p(e){return e.usage(`$0 workers-builds workers previews create-build <preview-id>
|
|
5
5
|
|