cf 1.0.0-beta.3 → 1.0.0-beta.4
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 +118 -0
- package/dist/_meta/schemas.json +77 -0
- package/dist/{abuse-reports-CWX7WKhe.mjs → abuse-reports-L4L7sC0F.mjs} +1 -1
- package/dist/{access-2aKv_Dya.mjs → access-DUQisFsH.mjs} +1 -1
- package/dist/{account-CnZO9-bl.mjs → account-J7N4Ukse.mjs} +1 -1
- package/dist/{account-tags-ClLZOfTA.mjs → account-tags-DMmTopgx.mjs} +1 -1
- package/dist/{accounts-Cbj9aFyY.mjs → accounts-DbZdpH5e.mjs} +1 -1
- package/dist/{acm-wGJ9cnzE.mjs → acm-BtXPdUqH.mjs} +1 -1
- package/dist/{addressing-YvHX2dAb.mjs → addressing-Bc_ZSmrK.mjs} +1 -1
- package/dist/{agent-memory-B4N-lmLb.mjs → agent-memory-CEUI1wKI.mjs} +1 -1
- package/dist/{ai-lziiVEGR.mjs → ai-CFHaVQcc.mjs} +1 -1
- package/dist/{ai-audit-CG_DG6N7.mjs → ai-audit-guygqmOl.mjs} +1 -1
- package/dist/{ai-gateway-DUttjxrN.mjs → ai-gateway-BcKOL4WQ.mjs} +1 -1
- package/dist/{ai-search-k63uopiK.mjs → ai-search-DJvNkX2o.mjs} +1 -1
- package/dist/{ai-security-D10lzYTn.mjs → ai-security-CVaHbGzn.mjs} +1 -1
- package/dist/{alerting-c4ICS8KO.mjs → alerting-wy4IuGs7.mjs} +1 -1
- package/dist/{analytics-CEQ0EVTq.mjs → analytics-Do4VMrPX.mjs} +2 -2
- package/dist/{analytics_engine-B9kiAPbY.mjs → analytics_engine-Cv7IF8ex.mjs} +1 -1
- package/dist/{api-security-6LlxeiOi.mjs → api-security-fuzV322d.mjs} +1 -1
- package/dist/{argo-BCcp1ybr.mjs → argo-BBf-Jw0O.mjs} +1 -1
- package/dist/{artifacts-PoO3rAvo.mjs → artifacts-B7_OhBxW.mjs} +1 -1
- package/dist/{audit-logs-Vt3NbAA1.mjs → audit-logs-DyARgcxN.mjs} +1 -1
- package/dist/{auth-3bFlHTVl.mjs → auth-BYFcxn1F.mjs} +2 -2
- package/dist/{auth-BfYtTyXo.mjs → auth-CiOv7s9F.mjs} +1 -1
- package/dist/{autoconfig-DqgOi1kW.mjs → autoconfig-DbL_FL5k.mjs} +77 -77
- package/dist/{billing-DVrpin2a.mjs → billing-07_VIO4X.mjs} +1 -1
- package/dist/{bot-management-Bw-GZWoT.mjs → bot-management-CmkPUu2I.mjs} +1 -1
- package/dist/{botnet-feed-ov970cZf.mjs → botnet-feed-Bn5pE_rx.mjs} +1 -1
- package/dist/{brand-protection-C7WOvdx6.mjs → brand-protection-CWDqPOXe.mjs} +1 -1
- package/dist/{browser-run-DhnKUXVv.mjs → browser-run-CfEIfpnQ.mjs} +1 -1
- package/dist/build-BmLpTw4w.mjs +2 -0
- package/dist/build-DEbkHHVh.mjs +2 -0
- package/dist/{builds-BIqfNXEE.mjs → builds-mgouQLUs.mjs} +1 -1
- package/dist/{cache-Dzl3kth1.mjs → cache-DXLofz5T.mjs} +1 -1
- package/dist/{certificate-authorities-CQinLiq_.mjs → certificate-authorities-BfW-rEpf.mjs} +1 -1
- package/dist/{cli-ZXrxm369.mjs → cli-Dgk9bd8j.mjs} +1 -1
- package/dist/{client-certificates--vw-4vvy.mjs → client-certificates-By2A46a2.mjs} +1 -1
- package/dist/{client-side-security-YCsdeK3e.mjs → client-side-security-Bo6ZwJOS.mjs} +1 -1
- package/dist/{cloud-connector-CwSi4zZI.mjs → cloud-connector-DYb_3u-M.mjs} +1 -1
- package/dist/{cloudforce-one-hEykJeqy.mjs → cloudforce-one-D8l0I5PL.mjs} +1 -1
- package/dist/{command-Axp5Wfpj.mjs → command-BPfW-yE4.mjs} +1 -1
- package/dist/{command-CIZDQPmS.mjs → command-BgBsFEYv.mjs} +1 -1
- package/dist/{command-CeL8kQCM.mjs → command-C3Qhz4kU.mjs} +1 -1
- package/dist/{command-ChDtawgh.mjs → command-C7cOrHdI.mjs} +1 -1
- package/dist/{command-L0y09SE5.mjs → command-CGD1oByJ.mjs} +1 -1
- package/dist/{command-DBCoI1fN.mjs → command-CJR1CUK_.mjs} +1 -1
- package/dist/{command-C1CwuI4O.mjs → command-C_lQtSPg.mjs} +1 -1
- package/dist/{command-D5nZoVE1.mjs → command-DH67hNLj.mjs} +1 -1
- package/dist/{command-DrQKTf1O.mjs → command-DJJN9xaA.mjs} +1 -1
- package/dist/{command-BH-TMJWp.mjs → command-DRlUj6lW.mjs} +1 -1
- package/dist/{command-jJKEah9i.mjs → command-DYeBZ5mA.mjs} +1 -1
- package/dist/command-DaAGN9uP.mjs +2 -0
- package/dist/{command-IuYNIUk9.mjs → command-DjNcY4cf.mjs} +1 -1
- package/dist/{command-egPOyKbx.mjs → command-gSmdvn_d.mjs} +1 -1
- package/dist/{completions-DNisLHie.mjs → completions-DUDx3DwX.mjs} +1 -1
- package/dist/{connector-interrupts-uIHLde10.mjs → connector-interrupts-DIMvaZhN.mjs} +1 -1
- package/dist/{connector-telemetry-events-D2MH0OSs.mjs → connector-telemetry-events-TWQvm-cj.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-CQICQaGf.mjs → connector-telemetry-snapshots-Dyoe-_R3.mjs} +1 -1
- package/dist/{connectors-BXwvP7SF.mjs → connectors-D7ZFg3hB.mjs} +1 -1
- package/dist/{containers-DOyOrVV9.mjs → containers-Bu3tLjU1.mjs} +1 -1
- package/dist/{containers-ClK7HGfx.mjs → containers-CduXjFBJ.mjs} +1 -1
- package/dist/{content-scan-B71JZ7G6.mjs → content-scan-CVBD6mUI.mjs} +1 -1
- package/dist/{context-5JRcefHh.mjs → context-BsGrhAqB.mjs} +1 -1
- package/dist/{cps-CzNfFv-5.mjs → cps-CgiRKmTe.mjs} +1 -1
- package/dist/{csamScanner-BfZcrcjk.mjs → csamScanner-BlXIOFFe.mjs} +1 -1
- package/dist/{ct-alerting-Cm8YLmXE.mjs → ct-alerting-CJZK0uSQ.mjs} +1 -1
- package/dist/{custom-certificates-DFMRe9_D.mjs → custom-certificates-DFaj_czg.mjs} +1 -1
- package/dist/{custom-csrs-B5njuvdd.mjs → custom-csrs-BnFQpjOo.mjs} +1 -1
- package/dist/{custom-hostnames-D06jQfNs.mjs → custom-hostnames-DSnE6xOT.mjs} +1 -1
- package/dist/{custom-nameservers-CKwKLqbF.mjs → custom-nameservers-CdQOt_qU.mjs} +1 -1
- package/dist/{custom-pages-D339_r6I.mjs → custom-pages-TWGlS6Ms.mjs} +1 -1
- package/dist/{d1-CHXmF-Ga.mjs → d1-Cbqx2kAz.mjs} +1 -1
- package/dist/{dcv-delegation-BAnTwW8J.mjs → dcv-delegation-DM3oGGio.mjs} +1 -1
- package/dist/{deploy-CsQbufsL.mjs → deploy-BZUWZ888.mjs} +1 -1
- package/dist/{deploy-input-dwBe8pSi.mjs → deploy-input-ChEbf2Kp.mjs} +1 -1
- package/dist/dev-OsbQIdD8.mjs +4 -0
- package/dist/{diagnostics-BEUAWeLH.mjs → diagnostics-8bbleTmW.mjs} +1 -1
- package/dist/discover-DgHRf-qo.mjs +2 -0
- package/dist/{dist-CpufWpsP.mjs → dist-DTN-pqSs.mjs} +1 -1
- package/dist/{dls-CXS7bPlj.mjs → dls-TzQpry2j.mjs} +1 -1
- package/dist/{dns-Dx7oPdtH.mjs → dns-Bzv4YLeg.mjs} +1 -1
- package/dist/{dns-firewall-wcP1fgB-.mjs → dns-firewall-BjWwOmDR.mjs} +1 -1
- package/dist/{durable-objects-DmieQflu.mjs → durable-objects-CRhSGkpc.mjs} +1 -1
- package/dist/{email-auth-DiO-k5wt.mjs → email-auth-Bth4_FHy.mjs} +1 -1
- package/dist/{email-routing-CycPV4UR.mjs → email-routing-CkTh4F5j.mjs} +1 -1
- package/dist/{email-security-DhtBU1X_.mjs → email-security-C-2jADxE.mjs} +1 -1
- package/dist/{email-sending-BjgiwUht.mjs → email-sending-B_sd4ouE.mjs} +1 -1
- package/dist/{fieldExtractors-BOBRZ8gw.mjs → fieldExtractors-z92V55-Y.mjs} +1 -1
- package/dist/{firewall-Dc0Xm26N.mjs → firewall-0yKpxdjj.mjs} +1 -1
- package/dist/{flagship-BRqR3ioN.mjs → flagship-IRVq23te.mjs} +1 -1
- package/dist/{fraud-Czu1ed5n.mjs → fraud-BpJ_aoIE.mjs} +1 -1
- package/dist/generate-qMU-2MgC.mjs +2 -0
- package/dist/{google-tag-gateway-DsZA0a1r.mjs → google-tag-gateway-DA_7SCC3.mjs} +1 -1
- package/dist/{healthchecks-CFH5bIAG.mjs → healthchecks-C-GthoQz.mjs} +1 -1
- package/dist/{hostnames-CKDSQsXT.mjs → hostnames-CH6utzVv.mjs} +1 -1
- package/dist/{hyperdrive-BLiI7eoy.mjs → hyperdrive-_rIC33bB.mjs} +1 -1
- package/dist/{iam-B5mdfq5e.mjs → iam-sseKl99z.mjs} +1 -1
- package/dist/{images-IVRjrB4_.mjs → images-CvIOwtg0.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{init-C6pA2OKl.mjs → init-DEIhItNF.mjs} +2 -2
- package/dist/{intel-CvesITo3.mjs → intel-Da84oZMO.mjs} +1 -1
- package/dist/{ips-DT9GaimG.mjs → ips-zTTd_3jg.mjs} +1 -1
- package/dist/{keyless-certificates-B0Xe5WqA.mjs → keyless-certificates-BGOUKdJc.mjs} +1 -1
- package/dist/{keys-BfcwaSGe.mjs → keys-CDnrfmiS.mjs} +1 -1
- package/dist/{kv-BAKDr9h1.mjs → kv-C5jR7vjM.mjs} +1 -1
- package/dist/{lazy-command-BR3u8SQ2.mjs → lazy-command-DZtpMsVB.mjs} +1 -1
- package/dist/{leaked-credential-checks-gRpF7J9-.mjs → leaked-credential-checks-B7WSzVG3.mjs} +1 -1
- package/dist/{load-balancers-CLVWIN9d.mjs → load-balancers-DG9wMQUM.mjs} +1 -1
- package/dist/{local-CxYne8s2.mjs → local-B3OyWKkW.mjs} +1 -1
- package/dist/local-qOpZjDed.mjs +2 -0
- package/dist/{local-runtime-C_fR3pz4.mjs → local-runtime-Co5vVDlI.mjs} +1 -1
- package/dist/{login-B2IW-LZC.mjs → login-k3QLVysD.mjs} +1 -1
- package/dist/{login-BKQI53YQ.mjs → login-rJanUgdL.mjs} +1 -1
- package/dist/{logo-matches-CmCWQC_j.mjs → logo-matches-5nijgkg7.mjs} +1 -1
- package/dist/{logos-DoGIvvML.mjs → logos-BRRqg8_2.mjs} +1 -1
- package/dist/{logpush-C2fS4mz8.mjs → logpush-Br7H8sRD.mjs} +1 -1
- package/dist/{logs-DOchrxC9.mjs → logs-CBU44LT8.mjs} +1 -1
- package/dist/{magic-cloud-networking-BTWKttlB.mjs → magic-cloud-networking-Bu7O7wKz.mjs} +1 -1
- package/dist/{magic-network-monitoring-C_6hCn_f.mjs → magic-network-monitoring-Bnc--4Jr.mjs} +1 -1
- package/dist/{magic-transit-B-Rmmg-Z.mjs → magic-transit-Dxr86HKN.mjs} +1 -1
- package/dist/{managed-defense-BPSLbGgV.mjs → managed-defense-Bm_jKFTN.mjs} +1 -1
- package/dist/{managed-transforms-BqiDVQD6.mjs → managed-transforms-D5mvHv_N.mjs} +1 -1
- package/dist/{matches-wLc335So.mjs → matches-Dhc1eSWw.mjs} +1 -1
- package/dist/{mcp-CmQOrkzP.mjs → mcp-B-PBoBl5.mjs} +1 -1
- package/dist/{mesh-DRuFq2pw.mjs → mesh-CW8B4naI.mjs} +1 -1
- package/dist/migrate-B4kBnkpV.mjs +2 -0
- package/dist/{mtls-certificates-BUcQwJGQ.mjs → mtls-certificates-swvfPqA2.mjs} +1 -1
- package/dist/{network-interconnects-BzfPaxkW.mjs → network-interconnects-CjXYZC4g.mjs} +1 -1
- package/dist/{network-BuXy0ysq.mjs → network-iwRBn0i7.mjs} +1 -1
- package/dist/{oauth-BlFK0DPZ.mjs → oauth-CrTr-mRe.mjs} +1 -1
- package/dist/oauth-DJW_HyaL.mjs +9 -0
- package/dist/{oauth-clients-CnABE4xT.mjs → oauth-clients-DGUJzFFu.mjs} +1 -1
- package/dist/{oauth-scopes-BFy1Hw7K.mjs → oauth-scopes-Bl0YUOHt.mjs} +1 -1
- package/dist/{observability-B1IkzeE0.mjs → observability-DRHiMrLy.mjs} +1 -1
- package/dist/{organization-DeIzTyFr.mjs → organization-BoMJzks7.mjs} +1 -1
- package/dist/{organizations-dpNO5XaQ.mjs → organizations-UGtCHzSq.mjs} +1 -1
- package/dist/{origin-ca-certificates-B-1YtC61.mjs → origin-ca-certificates-CdByaOCe.mjs} +1 -1
- package/dist/{origin-post-quantum-encryption-DdvwucsG.mjs → origin-post-quantum-encryption-GjmifGkF.mjs} +1 -1
- package/dist/{origin-tls-client-auth-CzfpVmTE.mjs → origin-tls-client-auth-CCIqSj_C.mjs} +1 -1
- package/dist/{page-rules--wnIp30C.mjs → page-rules-Btn-r3QF.mjs} +1 -1
- package/dist/{pages-DvhJZv5S.mjs → pages-iil93G96.mjs} +1 -1
- package/dist/{pay-per-crawl-lqX3Rwt9.mjs → pay-per-crawl-DcAZuk9T.mjs} +1 -1
- package/dist/{pay-per-use-BRKnBlz2.mjs → pay-per-use-z0Iwy9rN.mjs} +1 -1
- package/dist/{pipelines-CvePummb.mjs → pipelines-YRPwntqo.mjs} +1 -1
- package/dist/{precursor-DgotmHQd.mjs → precursor-Bcww14RH.mjs} +1 -1
- package/dist/previews-BBn-IiQu.mjs +4 -0
- package/dist/{progress-DUeNqM-j.mjs → progress-5nsUpQL6.mjs} +1 -1
- package/dist/{prompt-DV6YTdoa.mjs → prompt-Ba_bys2F.mjs} +1 -1
- package/dist/{queries-CLqy4AM6.mjs → queries-lxdncISw.mjs} +1 -1
- package/dist/{queues-D0Y4LNP1.mjs → queues-Egb0KXYK.mjs} +1 -1
- package/dist/{r2-D_FuuTGm.mjs → r2-BD4NOkR7.mjs} +1 -1
- package/dist/{r2-data-catalog-D5Fvpr3C.mjs → r2-data-catalog-CI-oHtKe.mjs} +1 -1
- package/dist/{radar-B6bYFNVn.mjs → radar-B4dtfeBP.mjs} +1 -1
- package/dist/{raw-fetch-Cp3EaTcj.mjs → raw-fetch-AX_Gz3c3.mjs} +1 -1
- package/dist/{realtime-BTBZoZNW.mjs → realtime-CtLXkW8l.mjs} +1 -1
- package/dist/{registrar-CFh4TCkC.mjs → registrar-I9XClUOe.mjs} +1 -1
- package/dist/{registrar-sandbox-By6ukXxf.mjs → registrar-sandbox-DAqK58QS.mjs} +1 -1
- package/dist/{reporting-Cf3q4cuO.mjs → reporting-BYsEUCIE.mjs} +1 -1
- package/dist/{request-headers-jdUlF-_S.mjs → request-headers-sc4CaZX0.mjs} +1 -1
- package/dist/{request-tracers-CqNmb-dS.mjs → request-tracers-DXr9Dr2z.mjs} +1 -1
- package/dist/{resource-sharing-vDvq5J5a.mjs → resource-sharing-DgbnNgCQ.mjs} +1 -1
- package/dist/{resource-tagging-DRCkpRmf.mjs → resource-tagging-CjPU8PpX.mjs} +1 -1
- package/dist/{rules-D-IfU82u.mjs → rules-BrshTdy1.mjs} +1 -1
- package/dist/{rulesets-ezJUnXm7.mjs → rulesets-BZulblVp.mjs} +1 -1
- package/dist/{rum-G42H7AXu.mjs → rum-B4IRlWgy.mjs} +1 -1
- package/dist/run-BQGVl3vg.mjs +2 -0
- package/dist/{run-BhfDNWCI.mjs → run-UHTbUldP.mjs} +1 -1
- package/dist/{schema-flags-yDMur8UR.mjs → schema-flags-C4KmiKur.mjs} +1 -1
- package/dist/{scim-DgRlqTtE.mjs → scim-BL2TVEZM.mjs} +1 -1
- package/dist/{secrets-store-DcNmMGG2.mjs → secrets-store-BcyhU7Kj.mjs} +1 -1
- package/dist/{security-center-CZwVaL7t.mjs → security-center-D1LSkhL_.mjs} +1 -1
- package/dist/{security-txt-CD0RAEsU.mjs → security-txt-BGIj4nU3.mjs} +1 -1
- package/dist/shared-jqlTaG5K.mjs +2 -0
- package/dist/{smart-shield-C72SYuAe.mjs → smart-shield-C8mGSzyE.mjs} +1 -1
- package/dist/{snippets-Bl4Rfvdf.mjs → snippets-BmHMaKEZ.mjs} +1 -1
- package/dist/{spawn-PBhhCQdl.mjs → spawn-IM_tQldH.mjs} +1 -1
- package/dist/{spectrum-BgOMd04u.mjs → spectrum-CrGKTMx-.mjs} +1 -1
- package/dist/{speed-dahwVmv-.mjs → speed-yyPLwj5X.mjs} +1 -1
- package/dist/{src-npcmT3gh.mjs → src-DFnlH5Tg.mjs} +5 -5
- package/dist/{ssl-BMZZPgJx.mjs → ssl-DZ6G7pP_.mjs} +1 -1
- package/dist/{stream-CsQ8wMMF.mjs → stream-hoBmKs9X.mjs} +1 -1
- package/dist/{submit-DdoTeeRt.mjs → submit-Lfebq3yj.mjs} +1 -1
- package/dist/{tags-BESTUjkv.mjs → tags-CnHv__u_.mjs} +1 -1
- package/dist/telemetry-C3hmM9Q9.mjs +2 -0
- package/dist/{telemetry-CVjp5qaj.mjs → telemetry-DbAo3nvk.mjs} +1 -1
- package/dist/{tenant-COyp8x56.mjs → tenant-7CL844dh.mjs} +1 -1
- package/dist/{tenant-custom-nameservers-BdrnvyTk.mjs → tenant-custom-nameservers-CZL9_D8w.mjs} +1 -1
- package/dist/{tunnels-CjDCYR0_.mjs → tunnels-DuO8F5_h.mjs} +1 -1
- package/dist/{turnstile-crX-kMig.mjs → turnstile-B-6k-bKa.mjs} +1 -1
- package/dist/update-check-BDMPumcv.mjs +2 -0
- package/dist/{update-check-BpLdkJeA.mjs → update-check-g9Jcn6YJ.mjs} +1 -1
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-info-CSU3TaVe.mjs → url-info-C6-jj9nl.mjs} +1 -1
- package/dist/{url-normalization-DKZYH3Tv.mjs → url-normalization-BRSTQe20.mjs} +1 -1
- package/dist/{url-scanner-mtiMlSyE.mjs → url-scanner-DER5YAdW.mjs} +1 -1
- package/dist/{user-DuDnsFvs.mjs → user-foSeF-0m.mjs} +1 -1
- package/dist/{values-B4gL0UvN.mjs → values-DgBNckq9.mjs} +1 -1
- package/dist/{vectorize-CEC7tpRJ.mjs → vectorize-9AZMN3fN.mjs} +1 -1
- package/dist/version-DLvRzH-I.mjs +2 -0
- package/dist/{waiting-rooms-CosskYpi.mjs → waiting-rooms-CUc0Xqp0.mjs} +1 -1
- package/dist/{web-assets-Do2JEl4p.mjs → web-assets-D5LUB5UO.mjs} +1 -1
- package/dist/{web3-C3sb4DR8.mjs → web3-BvOpojFR.mjs} +1 -1
- package/dist/workers-Cko7OnFE.mjs +40 -0
- package/dist/{workers-builds-CDE-wcw-.mjs → workers-builds-BFqiT0GR.mjs} +1 -1
- package/dist/{workers-for-platforms-CvZI2B1d.mjs → workers-for-platforms-EVE01qsM.mjs} +1 -1
- package/dist/{workers-vpc-WbwBVV_L.mjs → workers-vpc-9xBzFjiF.mjs} +1 -1
- package/dist/{workflows-Ch7cNhhq.mjs → workflows-BS0EGixd.mjs} +1 -1
- package/dist/wrangler-migration-BDkh1_IV.mjs +2 -0
- package/dist/{zaraz-BO7WT_U7.mjs → zaraz-DBccJ-ZM.mjs} +1 -1
- package/dist/{zero-trust-CTKtzxxW.mjs → zero-trust-DGagti-V.mjs} +4 -4
- package/dist/{zone-DSHj2Vv2.mjs → zone-B4OniptR.mjs} +1 -1
- package/dist/{zones-CeFb9USG.mjs → zones-DYuGVoTH.mjs} +1 -1
- package/package.json +1 -1
- package/dist/build-CVvo9BvP.mjs +0 -2
- package/dist/build-vfD1txJe.mjs +0 -2
- package/dist/command-ZSxcR8-J.mjs +0 -2
- package/dist/dev-BpvWl6pG.mjs +0 -4
- package/dist/generate-BAHK895m.mjs +0 -2
- package/dist/local-22UA5g9y.mjs +0 -2
- package/dist/migrate-DBwOnU6B.mjs +0 -2
- package/dist/oauth-BYmfy7l7.mjs +0 -9
- package/dist/previews-Brsuhzmk.mjs +0 -4
- package/dist/run-djd1-6kN.mjs +0 -2
- package/dist/shared-Cfuwhk19.mjs +0 -2
- package/dist/telemetry-iBZ-f6og.mjs +0 -2
- package/dist/update-check-CtmTFJ-O.mjs +0 -2
- package/dist/version-CPwqVR_p.mjs +0 -2
- package/dist/workers-ByA4Nddg.mjs +0 -36
- /package/dist/{cloudflared-CH8rOneA.mjs → cloudflared-91JvyShh.mjs} +0 -0
- /package/dist/{command-DBpr6U4L.mjs → command-C72KLHMc.mjs} +0 -0
- /package/dist/{discover-DmIsaE54.mjs → discover-VRFBjse7.mjs} +0 -0
- /package/dist/{generate-DWW1YPjv.mjs → generate-iV6OVNin.mjs} +0 -0
- /package/dist/{registry-kYRASukx.mjs → registry-DBMUTYqf.mjs} +0 -0
- /package/dist/{schema-s22s29sJ.mjs → schema-CueLBLXC.mjs} +0 -0
- /package/dist/{tools-LlzHD_86.mjs → tools-BJbI_f35.mjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-B3OyWKkW.mjs";import{a as t,t as n}from"./context-BsGrhAqB.mjs";import{r}from"./auth-BYFcxn1F.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-5nsUpQL6.mjs";import{t as s}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{n as c,r as l,t as u}from"./body-parser-hh2avzkz.mjs";import{n as d}from"./input-validation-Dk52b0me.mjs";import{n as f}from"./prompt-Ba_bys2F.mjs";function p(e){return e.usage(`$0 billing addresses validate
|
|
3
3
|
|
|
4
4
|
Validates a billing address and returns validated address suggestions. Authentication is not enforced to support pre-signup address validation flows, so credentials are accepted but not required.`).option(`address`,{type:`string`,description:`Address line 1.`}).option(`address2`,{type:`string`,description:`Address line 2.`}).option(`city`,{type:`string`,description:`City.`}).option(`country`,{type:`string`,description:`Country code.`}).option(`state`,{type:`string`,description:`State or province.`}).option(`zipcode`,{type:`string`,description:`Postal or zip code.`}).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:`validate`,describe:`Validate Billing Address`,builder:p,handler:async e=>s({command:`billing addresses validate`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf billing addresses validate`,method:`POST`,url:`https://api.cloudflare.com/client/v4/billing/address-validation`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({address:d(e.address,`address`,`text`),address2:d(e.address2,`address2`,`text`),city:d(e.city,`city`,`text`),country:d(e.country,`country`,`text`),state:d(e.state,`state`,`text`),zipcode:d(e.zipcode,`zipcode`,`text`)}):c(e.body)});return}let t=await r(e);if(e.body){let n=c(e.body);i(await o(`Creating`,async()=>t.billing.addresses.validate({...n})),{successLabel:`Created`});return}let n=u({address:d(e.address,`address`,`text`),address2:d(e.address2,`address2`,`text`),city:d(e.city,`city`,`text`),country:d(e.country,`country`,`text`),state:d(e.state,`state`,`text`),zipcode:d(e.zipcode,`zipcode`,`text`)});i(await o(`Creating`,async()=>t.billing.addresses.validate({...n})),{successLabel:`Created`})})},h={command:`addresses`,describe:`Operations for addresses`,builder:e=>e.command(m).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function g(e){return e.usage(`$0 billing profiles 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-BsGrhAqB.mjs";import{r as t}from"./auth-BYFcxn1F.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-5nsUpQL6.mjs";import{t as a}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.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}from"./prompt-Ba_bys2F.mjs";function d(e){return e.usage("$0 bot-management feedback create\n\nSubmit a feedback report for the specified zone. Use `type` to indicate whether the report is a false positive (good traffic flagged as bot) or a false negative (bot traffic missed). Furthermore, you can also use `expression` as a wirefilter to identify the affected traffic sample. See more accepted API fields and expression types at https://developers.cloudflare.com/bots/concepts/feedback-loop/#api-fields and https://developers.cloudflare.com/bots/concepts/feedback-loop/#expression-fields, respectively.").option(`description`,{type:`string`,description:`The description field`}).option(`expression`,{type:`string`,description:`Wirefilter expression describing the traffic being reported.`}).option(`first-request-seen-at`,{type:`string`,description:`The first_request_seen_at field`}).option(`last-request-seen-at`,{type:`string`,description:`The last_request_seen_at field`}).option(`requests`,{type:`number`,description:`The requests field`}).option(`subtype`,{type:`string`,description:`The subtype field`}).option(`type`,{type:`string`,description:`Type of feedback report.`,choices:[`false_positive`,`false_negative`]}).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 f={command:`create`,describe:`Submit a feedback report`,builder:d,handler:async d=>a({command:`bot-management feedback create`,classification:{safeFlags:[`type`,`dry-run`]}},d,async()=>{if(d.dryRun){r({command:`cf bot-management feedback create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${d.zone??d.zoneId??`<zone>`}/bot_management/feedback`,pathParams:{"zone-id":String(d.zone??d[`zone-id`]??``)},bodyKind:`json`,body:d.body===void 0?s({description:c(d.description,`description`,`text`),expression:c(d.expression,`expression`,`text`),first_request_seen_at:c(d[`first-request-seen-at`],`first-request-seen-at`,`text`),last_request_seen_at:c(d[`last-request-seen-at`],`last-request-seen-at`,`text`),requests:d.requests,subtype:c(d.subtype,`subtype`,`text`),type:c(d.type,`type`,`text`)}):o(d.body)});return}let a=await t(d),f=await e({zone:d.zone},a,{quiet:d.quiet});if(d.zoneId=f,d.body){let e=o(d.body);n(await i(`Creating`,async()=>a.botManagement.feedback.create({body:e,zone_id:f})),{successLabel:`Created`});return}if(d.description===void 0&&(d.description=await l(`description`,`The description field`)),d.expression===void 0&&(d.expression=await l(`expression`,`Wirefilter expression describing the traffic being reported.`)),d[`first-request-seen-at`]===void 0&&(d[`first-request-seen-at`]=await l(`first-request-seen-at`,`The first_request_seen_at field`)),d[`last-request-seen-at`]===void 0&&(d[`last-request-seen-at`]=await l(`last-request-seen-at`,`The last_request_seen_at field`)),d.requests===void 0)throw Error(`--requests is required (or pass --body with this field set).`);d.type===void 0&&(d.type=await u(`type`,`Type of feedback report.`,[`false_positive`,`false_negative`]));let p=s({description:c(d.description,`description`,`text`),expression:c(d.expression,`expression`,`text`),first_request_seen_at:c(d[`first-request-seen-at`],`first-request-seen-at`,`text`),last_request_seen_at:c(d[`last-request-seen-at`],`last-request-seen-at`,`text`),requests:d.requests,subtype:c(d.subtype,`subtype`,`text`),type:c(d.type,`type`,`text`)});n(await i(`Creating`,async()=>a.botManagement.feedback.create({body:p,zone_id:f})),{successLabel:`Created`})})};function p(e){return e.usage(`$0 bot-management feedback list
|
|
3
3
|
|
|
4
4
|
Returns all feedback reports previously submitted for the specified zone. Feedback reports help improve detection by sharing samples of traffic that were misclassified as bots or humans.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const m={command:`list`,describe:`List zone feedback reports`,builder:p,handler:async o=>a({command:`bot-management feedback list`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf bot-management feedback list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/bot_management/feedback`,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.botManagement.feedback.list({zone_id:s})),{successLabel:`Loaded`})})},h={command:`feedback`,describe:`Operations for feedback`,builder:e=>e.command(f).command(m).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function g(e){return e.usage(`$0 bot-management 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-B3OyWKkW.mjs";import{a as t,t as n}from"./context-BsGrhAqB.mjs";import{r}from"./auth-BYFcxn1F.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-5nsUpQL6.mjs";import{t as s}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{n as c}from"./prompt-Ba_bys2F.mjs";function l(e){return e.usage(`$0 botnet-feed asn day-report <asn-id>
|
|
3
3
|
|
|
4
4
|
Gets all the data the botnet tracking database has for a given ASN registered to user account for given date. If no date is given, it will return results for the previous day.`).positional(`asn-id`,{type:`string`,description:`Asn ID`,demandOption:!0}).option(`date`,{type:`string`,description:`Date`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const u={command:`day-report <asn-id>`,describe:`Get daily report`,builder:l,handler:async c=>s({command:`botnet-feed asn day-report`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={date:c.date};if(c.dryRun){a({command:`cf botnet-feed asn day-report`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/botnet_feed/asn/${c[`asn-id`]==null?`<asn-id>`:encodeURIComponent(String(c[`asn-id`]))}/day_report`,pathParams:{"asn-id":String(c[`asn-id`]??``)},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.botnetFeed.asn.dayReport({account_id:u,asn_id:c[`asn-id`],...s})),{successLabel:`Loaded`})})};function d(e){return e.usage(`$0 botnet-feed asn full-report <asn-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-B3OyWKkW.mjs";import{a as t,t as n}from"./context-BsGrhAqB.mjs";import{r}from"./auth-BYFcxn1F.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-5nsUpQL6.mjs";import{t as s}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{n as c,r as l,t as u}from"./body-parser-hh2avzkz.mjs";import{n as d}from"./input-validation-Dk52b0me.mjs";import{a as f,i as p,n as m}from"./prompt-Ba_bys2F.mjs";import{t as h}from"./cli-types-DoVT5q_M.mjs";function g(e){return e.usage(`$0 brand-protection logo-matches get
|
|
3
3
|
|
|
4
4
|
Get paginated list of logo matches for a specific brand protection logo query`).option(`offset`,{type:`string`,description:`Offset`}).option(`limit`,{type:`string`,description:`Limit`}).option(`query-id`,{type:`string`,description:`Query ID`,demandOption:!0}).option(`download`,{type:`string`,description:`Download`}).option(`order-by`,{type:`string`,description:`Column to sort by. Options: 'matchedAt', 'domain', 'similarityScore', or 'registrar'`,choices:[`matchedAt`,`domain`,`similarityScore`,`registrar`]}).option(`order`,{type:`string`,description:`Sort order. Options: 'asc' (ascending) or 'desc' (descending)`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _={command:`get`,describe:`List logo matches`,builder:h(g),handler:async c=>s({command:`brand-protection logo-matches get`,classification:{safeFlags:[`order-by`,`order`,`dry-run`]}},c,async()=>{let s={offset:c.offset,limit:c.limit,query_id:c[`query-id`],download:c.download,orderBy:c[`order-by`],order:c.order};if(c.dryRun){a({command:`cf brand-protection logo-matches get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/brand-protection/logo/matches`,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.brandProtection.logoMatches.get({account_id:u,...s})),{successLabel:`Loaded`})})},v={command:`logo-matches`,describe:`Operations for logo-matches`,builder:e=>e.command(_).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function y(e){return e.usage(`$0 brand-protection logos create
|
|
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-B3OyWKkW.mjs";import{a as t,t as n}from"./context-BsGrhAqB.mjs";import{a as r,r as i}from"./auth-BYFcxn1F.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-5nsUpQL6.mjs";import{t as c}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{i as l,n as u,r as d,t as f}from"./body-parser-hh2avzkz.mjs";import{n as p}from"./input-validation-Dk52b0me.mjs";import{n as m}from"./prompt-Ba_bys2F.mjs";import{t as h}from"./cli-types-DoVT5q_M.mjs";import{n as g,t as _}from"./raw-fetch-AX_Gz3c3.mjs";function v(e){return e.usage("$0 browser-run crawl create\n\nStarts a crawl job for the provided URL and its children. Check available options like `gotoOptions` and `waitFor*` to control page load behaviour.").option(`cache-ttl`,{type:`number`,description:`Cache TTL default is 5s. Set to 0 to disable.`}).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 ee={command:`create`,describe:`Crawl websites.`,builder:v,handler:async l=>c({command:`browser-run crawl create`,classification:{safeFlags:[`dry-run`]}},l,async()=>{let c={cacheTTL:l[`cache-ttl`]};if(l.dryRun){o({command:`cf browser-run crawl create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/browser-rendering/crawl`,pathParams:{},query:c,bodyKind:`json`,body:l.body===void 0?void 0:u(l.body)});return}let d=await i(l),f=l.local?e:await n();if(l.accountId=f,l.body){let e=u(l.body);new URLSearchParams(Object.entries(c).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString(),a(await s(`Creating`,async()=>d.browserRun.crawl.create({body:e,account_id:f,...c})),{successLabel:`Created`});return}a(await s(`Creating`,async()=>r(d,`POST`,`/accounts/${f}/browser-rendering/crawl`,{query:c})),{successLabel:`Created`})})};function te(e){return e.usage(`$0 browser-run crawl delete <job-id>
|
|
3
3
|
|
|
4
4
|
Cancels an ongoing crawl job by setting its status to cancelled and stopping all queued URLs.`).positional(`job-id`,{type:`string`,description:`The ID of the crawl job to cancel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const y={command:`delete <job-id>`,describe:`Cancel a crawl job.`,builder:te,handler:async r=>c({command:`browser-run crawl delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf browser-run crawl delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/browser-rendering/crawl/${r[`job-id`]==null?`<job-id>`:encodeURIComponent(String(r[`job-id`]))}`,pathParams:{"job-id":String(r[`job-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,!await m({force:!!r.force})){process.stderr.write(`Aborted.
|
|
5
5
|
`);return}a(await s(`Deleting`,async()=>c.browserRun.crawl.delete({account_id:l,job_id:r[`job-id`]})),{successLabel:`Deleted`})})};function b(e){return e.usage(`$0 browser-run crawl get <job-id>
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{r as e}from"./theme-BIWQFmZ0.mjs";import{t}from"./cli-exit-Dqoo6Jgb.mjs";import{M as n}from"./dist-DfMipWKR.mjs";import"./ui-BQxRjahW.mjs";import{n as r}from"./dist-DW47TUGh.mjs";import{i,r as a}from"./autoconfig-DbL_FL5k.mjs";import{n as o,t as s}from"./spawn-IM_tQldH.mjs";import c from"node:path";import{readBuildOutput as l}from"@cloudflare/build-output-utils";import{convertToWranglerConfig as u}from"@cloudflare/config";var d=class extends Error{constructor(e){super(e),this.name=`BuildOutputConfigError`}};function f(e,t){if(e!==void 0){if(t===void 0)throw new d(`The Build Output does not record which mode it was created with, but this command requested mode "${e}". Rebuild with "--mode ${e}" before deploying.`);if(t!==e)throw new d(`The Build Output was created with mode "${t}", but this command requested mode "${e}". To use the existing Build Output, rerun with "--mode ${t}". To deploy in ${e} mode, rebuild with "--mode ${e}" before deploying.`)}}const p={type:`string`,description:`Name of the Worker in the Build Output to use (defaults to the default Worker)`,requiresArg:!0,coerce:e=>{if(Array.isArray(e))throw Error(`--worker can only be specified once.`);return e}};function m(e,t){if(t===void 0)return e.default;let n=Object.values(e).filter(e=>e.config.name===t);if(n.length>1)throw new d(`The Build Output contains more than one Worker named "${t}".`);if(n[0]!==void 0)return n[0];let{default:r,...i}=e;throw new d(`The Build Output has no Worker named "${t}". Available Workers: ${[`${r.config.name} (default)`,...Object.values(i).map(e=>e.config.name).sort()].join(`, `)}.`)}function h(e,t){let n=e.config,{buildContext:r,...i}=t,{manifest:a,...o}=n,s=u({...i,worker:o,containers:[]});n.manifest?.mainModule&&e.bundleDir&&(s.main=c.join(e.bundleDir,n.manifest.mainModule));let l=c.resolve(`cloudflare.config.ts`),{validationConfig:d,containerReferences:f}=_(s),p=g(d,e.configPath,l);v(p,f);let{containers:m,...h}=p;return{wranglerConfig:h,builtConfig:n}}function g(e,t,r){let{config:i,diagnostics:a}=n(e,t,r,{});if(a.hasErrors())throw new d(a.renderErrors());return a.hasWarnings()&&console.warn(a.renderWarnings()),i}function _(e){let{containers:t,...n}=e,r=new Map;return n.exports!==void 0&&(n.exports=Object.fromEntries(Object.entries(n.exports).map(([e,t])=>{if(!(`container`in t)||typeof t.container!=`string`)return[e,t];r.set(e,t.container);let{container:n,...i}=t;return[e,i]}))),{validationConfig:n,containerReferences:r}}function v(e,t){e.exports===void 0||t.size===0||(e.exports=Object.fromEntries(Object.entries(e.exports).map(([e,n])=>{let r=t.get(e);return[e,r===void 0?n:{...n,container:r}]})))}function y(e){return e}async function b(n,{worker:c,...u}={},d={}){let f=u.output??`stdout`,p=process.cwd(),{details:g,configuration:_}=await a(p,u),v=_?.buildCommand??g?.buildCommand,y={...g?.env,...d.isPreview?{CLOUDFLARE_PREVIEW_BUILD:`true`}:{}};if(v&&n&&!g?.framework?.supportsMode)throw Error(`The detected command \`${v}\` does not currently support \`--mode\`.`);f!==`silent`&&r.message(e.bold(`Build`),{symbol:e.muted(`├`),spacing:0,output:f===`stderr`?process.stderr:void 0});let b=n?[`--mode`,n]:[],S;if(v)S=await i(v,p,{...u,env:y,args:b});else{let e=o(p);f!==`silent`&&r.message(`Delegating to ${x(e)}`,{spacing:0,output:f===`stderr`?process.stderr:void 0}),S=await s(e,`build`,b,{...u,env:y})}if(S.exitCode!==0||S.signal)throw new t(S.exitCode,{signal:S.signal});let{workers:C,rootConfig:w}=await l(p);h(m(C,c),w),f!==`silent`&&r.success(`Build complete`,{spacing:0,output:f===`stderr`?process.stderr:void 0})}function x(e){switch(e.impl.pkg){case`@cloudflare/vite-plugin`:return`Vite`;case`wrangler`:return`Wrangler`;case`cloudflare-py-dev-server`:return`the Python dev server`;case`cloudflare-rs-dev-server`:return`the Rust dev server`;default:return e.impl.pkg}}const S={command:`build`,describe:`Build a project for Cloudflare`,builder:y,handler:async e=>{await b(e.mode)}};export{m as a,h as i,b as n,f as o,p as r,d as s,S as t};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-B3OyWKkW.mjs";import{a as t,t as n}from"./context-BsGrhAqB.mjs";import{r}from"./auth-BYFcxn1F.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-5nsUpQL6.mjs";import{t as s}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{a as d,i as f,n as p}from"./prompt-Ba_bys2F.mjs";import{t as m}from"./cli-types-DoVT5q_M.mjs";function h(e){return e.usage(`$0 builds cancel <build-uuid>
|
|
3
3
|
|
|
4
4
|
Cancel a queued or running build.`).positional(`build-uuid`,{type:`string`,description:`Build UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ee={command:`cancel <build-uuid>`,describe:`Cancel a Workers build`,builder:h,handler:async c=>s({command:`builds cancel`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf builds cancel`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/builds/builds/${c[`build-uuid`]==null?`<build-uuid>`:encodeURIComponent(String(c[`build-uuid`]))}/cancel`,pathParams:{"build-uuid":String(c[`build-uuid`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Updating`,async()=>s.builds.cancel({account_id:l,build_uuid:c[`build-uuid`]})),{successLabel:`Updated`})})};function te(e){return e.usage(`$0 builds create <trigger-uuid>
|
|
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-BsGrhAqB.mjs";import{a as t,r as n}from"./auth-BYFcxn1F.mjs";import{t as r}from"./output-CvQFJkvi.mjs";import{t as i}from"./dry-run-Bq0JAsbX.mjs";import{t as a}from"./progress-5nsUpQL6.mjs";import{t as o}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{n 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-Ba_bys2F.mjs";function p(e){return e.usage("$0 cache origin-cloud-regions bulk-delete\n\nRemoves up to 100 IP-to-cloud-region mappings in a single request. Each IP is validated independently — successfully deleted items are returned in the `succeeded` array and IPs that could not be found or are invalid are returned in the `failed` array.").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 ee={command:`bulk-delete`,describe:`Batch delete origin cloud region mappings`,builder:p,handler:async c=>o({command:`cache origin-cloud-regions bulk-delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){i({command:`cf cache origin-cloud-regions bulk-delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${c.zone??c.zoneId??`<zone>`}/origin/cloud_regions/batch`,pathParams:{"zone-id":String(c.zone??c[`zone-id`]??``)},bodyKind:`json`,body:c.body===void 0?void 0:s(c.body)});return}let o=await n(c);if(c.zoneId=await e({zone:c.zone},o,{quiet:c.quiet}),!await f({force:!!c.force,message:`Are you sure you want to delete these Origin Cloud Region configurations?`})){process.stderr.write(`Aborted.
|
|
3
3
|
`);return}if(c.body){let e=s(c.body);if(Array.isArray(e)&&e.length>100){let n=Math.ceil(e.length/100),i=null;for(let r=0;r<e.length;r+=100){let s=e.slice(r,r+100);i=await a(`Deleting: batch ${Math.floor(r/100)+1}/${n}`,async()=>t(o,`DELETE`,`/zones/${c.zoneId}/origin/cloud_regions/batch`,{body:s}))}r(i,{successLabel:`Deleted`});return}r(await a(`Deleting`,async()=>t(o,`DELETE`,`/zones/${c.zoneId}/origin/cloud_regions/batch`,{body:e})),{successLabel:`Deleted`});return}if(c.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function m(e){return e.usage("$0 cache origin-cloud-regions bulk-update\n\nUpserts up to 100 IP-to-cloud-region mappings in a single request. Items in the request body are created or replaced; mappings not included in the request body are preserved unchanged (this is a merge operation, not a full collection replacement). Each item is validated independently — valid items are applied and invalid items are returned in the `failed` array. The vendor and region for every item are validated against the list from `GET /zones/{zone_id}/origin/cloud_regions/supported_regions`.").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:`bulk-update`,describe:`Batch create or replace origin cloud region mappings`,builder:m,handler:async c=>o({command:`cache origin-cloud-regions bulk-update`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){i({command:`cf cache origin-cloud-regions bulk-update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${c.zone??c.zoneId??`<zone>`}/origin/cloud_regions/batch`,pathParams:{"zone-id":String(c.zone??c[`zone-id`]??``)},bodyKind:`json`,body:c.body===void 0?void 0:s(c.body)});return}let o=await n(c);if(c.zoneId=await e({zone:c.zone},o,{quiet:c.quiet}),c.body){let e=s(c.body);if(Array.isArray(e)&&e.length>100){let n=Math.ceil(e.length/100),i=null;for(let r=0;r<e.length;r+=100){let s=e.slice(r,r+100);i=await a(`Updating: batch ${Math.floor(r/100)+1}/${n}`,async()=>t(o,`PUT`,`/zones/${c.zoneId}/origin/cloud_regions/batch`,{body:s}))}r(i,{successLabel:`Updated`});return}r(await a(`Updating`,async()=>t(o,`PUT`,`/zones/${c.zoneId}/origin/cloud_regions/batch`,{body:e})),{successLabel:`Updated`});return}if(c.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function g(e){return e.usage(`$0 cache origin-cloud-regions delete <origin-ip>
|
|
4
4
|
|
|
5
5
|
Removes the cloud region mapping for a single origin IP address. The IP path parameter is normalized before lookup. Returns the deleted IP on success. Returns 404 if no mapping exists for the specified IP. When the last mapping for the zone is removed the underlying rule record is also deleted.`).positional(`origin-ip`,{type:`string`,description:`Origin IP address whose mapping should be deleted.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const _={command:`delete <origin-ip>`,describe:`Delete an origin cloud region mapping`,builder:g,handler:async t=>o({command:`cache origin-cloud-regions delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){i({command:`cf cache origin-cloud-regions delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${t.zone??t.zoneId??`<zone>`}/origin/cloud_regions/${t[`origin-ip`]==null?`<origin-ip>`:encodeURIComponent(String(t[`origin-ip`]))}`,pathParams:{"zone-id":String(t.zone??t[`zone-id`]??``),"origin-ip":String(t[`origin-ip`]??``)},bodyKind:`none`});return}let o=await n(t),s=await e({zone:t.zone},o,{quiet:t.quiet});if(t.zoneId=s,!await f({force:!!t.force,message:`Are you sure you want to delete this Origin Cloud Region configuration?`})){process.stderr.write(`Aborted.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{i as e}from"./context-
|
|
2
|
+
import{i as e}from"./context-BsGrhAqB.mjs";import{r as t}from"./auth-BYFcxn1F.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-5nsUpQL6.mjs";import{t as a}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";function l(e){return e.usage(`$0 certificate-authorities hostname-associations get
|
|
3
3
|
|
|
4
4
|
List Hostname Associations.`).option(`mtls-certificate-id`,{type:`string`,description:`The UUID to match against for a certificate that was uploaded to the mTLS Certificate Management endpoint. If no mtls_certificate_id is given, the results will be the hostnames associated to your active Cloudflare Managed CA.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const u={command:`get`,describe:`List Hostname Associations`,builder:l,handler:async o=>a({command:`certificate-authorities hostname-associations get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{let a={mtls_certificate_id:o[`mtls-certificate-id`]};if(o.dryRun){r({command:`cf certificate-authorities hostname-associations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/certificate_authorities/hostname_associations`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},query:a,bodyKind:`none`});return}let s=await t(o),c=await e({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c,n(await i(`Loading`,async()=>s.certificateAuthorities.hostnameAssociations.get({zone_id:c,...a})),{successLabel:`Loaded`})})};function d(e){return e.usage(`$0 certificate-authorities hostname-associations update
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{n as e,t}from"./metadata-C33s4rc-.mjs";import{r as n}from"./theme-BIWQFmZ0.mjs";import{t as r}from"./cli-exit-Dqoo6Jgb.mjs";import"./ui-BQxRjahW.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{a,f as o,m as s,t as c,u as l}from"./run-
|
|
2
|
+
import{n as e,t}from"./metadata-C33s4rc-.mjs";import{r as n}from"./theme-BIWQFmZ0.mjs";import{t as r}from"./cli-exit-Dqoo6Jgb.mjs";import"./ui-BQxRjahW.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{a,f as o,m as s,t as c,u as l}from"./run-UHTbUldP.mjs";import u from"minisearch";function d({enabled:e,source:t}){let r=e?n.success(`Enabled`):n.error(`Disabled`),i=l(t);return`Status: ${r}${i?` (set by ${i})`:``}\n`}const f={command:`disable`,describe:`Disable cf telemetry collection`,handler:()=>{s(!1);let{enabled:e,source:t}=o();console.log(d({enabled:e,source:t})),console.log(e?`cf is collecting usage telemetry because ${l(t)}=true overrides this setting.\n`:`cf is no longer collecting usage telemetry.
|
|
3
3
|
`)}},p={command:`enable`,describe:`Enable cf telemetry collection`,handler:()=>{s(!0);let{enabled:e,source:t}=o();console.log(d({enabled:e,source:t})),console.log(e?`cf is now collecting anonymous usage telemetry. Thank you for helping make cf better.
|
|
4
4
|
`:`cf is not collecting usage telemetry because ${l(t)}${t===`env`||t===`wrangler-env`?`=false`:``} overrides this setting.\n`)}},m={command:`status`,describe:`Check whether cf telemetry collection is enabled`,handler:()=>{console.log(d(o())),console.log(n.muted(`Configure on this machine: \`cf cli telemetry enable\` / \`cf cli telemetry disable\`.
|
|
5
5
|
Override per invocation with ${a}=true/false. DO_NOT_TRACK is also honored.\nLearn more: https://github.com/cloudflare/cf/blob/main/packages/cli/telemetry.md`))}},h={command:`telemetry`,describe:`Configure whether cf collects anonymous usage telemetry`,builder:e=>e.command(m).command(p).command(f).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function g(e,t){let n=e.fullPath.slice(0,-1).map((t,n)=>e.fullPath.slice(0,n+1).join(` `));return{command:e.command,summary:e.summary||e.description.split(`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{i as e}from"./context-
|
|
2
|
+
import{i as e}from"./context-BsGrhAqB.mjs";import{r as t}from"./auth-BYFcxn1F.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-5nsUpQL6.mjs";import{t as a}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{a as l,n as u}from"./prompt-Ba_bys2F.mjs";import{t as d}from"./cli-types-DoVT5q_M.mjs";function f(e){return e.usage(`$0 client-certificates create
|
|
3
3
|
|
|
4
4
|
Create a new API Shield mTLS Client Certificate.`).option(`csr`,{type:`string`,description:`The Certificate Signing Request (CSR). Must be newline-encoded.`}).option(`validity-days`,{type:`number`,description:`The number of days the Client Certificate will be valid after the issued_on date.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const p={command:`create`,describe:`Create Client Certificate`,builder:f,handler:async u=>a({command:`client-certificates create`,classification:{safeFlags:[`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf client-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/client_certificates`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({csr:c(u.csr,`csr`,`text`),validity_days:u[`validity-days`]}):o(u.body)});return}let a=await t(u),d=await e({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,u.body){let e=o(u.body);n(await i(`Creating`,async()=>a.clientCertificates.create({...e,zone_id:d})),{successLabel:`Created`});return}if(u.csr===void 0&&(u.csr=await l(`csr`,`The Certificate Signing Request (CSR). Must be newline-encoded.`)),u[`validity-days`]===void 0)throw Error(`--validity-days is required (or pass --body with this field set).`);let f=s({csr:c(u.csr,`csr`,`text`),validity_days:u[`validity-days`]});n(await i(`Creating`,async()=>a.clientCertificates.create({...f,zone_id:d})),{successLabel:`Created`})})};function m(e){return e.usage(`$0 client-certificates delete <client-certificate-id>
|
|
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-BsGrhAqB.mjs";import{r as t}from"./auth-BYFcxn1F.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-5nsUpQL6.mjs";import{t as a}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.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-Ba_bys2F.mjs";import{t as f}from"./cli-types-DoVT5q_M.mjs";function p(e){return e.usage(`$0 client-side-security connections get <connection-id>
|
|
3
3
|
|
|
4
4
|
Returns a webpage connection detected on the zone by connection ID.`).positional(`connection-id`,{type:`string`,description:`Identifier`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const m={command:`get <connection-id>`,describe:`Get a detected connection`,builder:p,handler:async o=>a({command:`client-side-security connections get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf client-side-security connections get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/page_shield/connections/${o[`connection-id`]==null?`<connection-id>`:encodeURIComponent(String(o[`connection-id`]))}`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``),"connection-id":String(o[`connection-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.clientSideSecurity.connections.get({zone_id:s,connection_id:o[`connection-id`]})),{successLabel:`Loaded`})})};function h(e){return e.usage(`$0 client-side-security connections list
|
|
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-BsGrhAqB.mjs";import{r as t}from"./auth-BYFcxn1F.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-5nsUpQL6.mjs";import{t as a}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{n as o}from"./body-parser-hh2avzkz.mjs";function s(e){return e.usage(`$0 cloud-connector rules list
|
|
3
3
|
|
|
4
4
|
Retrieves the Cloud Connector rules configured for a zone. Rules define how traffic is routed to cloud services.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const c={command:`list`,describe:`Rules`,builder:s,handler:async o=>a({command:`cloud-connector rules list`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf cloud-connector rules list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/cloud_connector/rules`,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.cloudConnector.rules.list({zone_id:s})),{successLabel:`Loaded`})})};function l(e){return e.usage(`$0 cloud-connector rules update
|
|
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-B3OyWKkW.mjs";import{a as t,t as n}from"./context-BsGrhAqB.mjs";import{a as r,r as i}from"./auth-BYFcxn1F.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-5nsUpQL6.mjs";import{t as c}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.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,i as g,n as _}from"./prompt-Ba_bys2F.mjs";import{t as v}from"./cli-types-DoVT5q_M.mjs";import{n as ee,t as te}from"./raw-fetch-AX_Gz3c3.mjs";function y(e){return e.usage(`$0 cloudforce-one binary-storage create
|
|
3
3
|
|
|
4
4
|
Uploads a binary file to Cloudforce One's binary database for malware analysis and threat intelligence correlation.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Binary file to be uploaded to the database.`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`})}const b={command:`create`,describe:`Posts a file to Binary Storage`,builder:y,handler:async l=>c({command:`cloudforce-one binary-storage create`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){o({command:`cf cloudforce-one binary-storage create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/binary`,pathParams:{},bodyKind:`multipart`,body:{body:l.body,file:l.file}});return}let c=await i(l),u=l.local?e:await n();if(l.accountId=u,l.file!==void 0||l.body!==void 0){let e=new FormData;if(l.file){let t=m(l.file);e.append(`file`,new Blob([t]),l.file.split(/[\\/]/).filter(Boolean).pop())}else l.body!==void 0&&e.append(`file`,l.body);a(await s(`Creating`,async()=>r(c,`POST`,`/accounts/${u}/cloudforce-one/binary`,{body:e})),{successLabel:`Created`});return}if(l.body){let e=p(l.body,`body`,`binary`);a(await s(`Creating`,async()=>r(c,`POST`,`/accounts/${u}/cloudforce-one/binary`,{body:e,headers:{"Content-Type":`multipart/form-data`}})),{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 x(e){return e.usage(`$0 cloudforce-one binary-storage get <hash>
|
|
5
5
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-BsGrhAqB.mjs";import{n as r}from"./cloudflared-91JvyShh.mjs";const i={command:`curl <url>`,describe:`Run curl against an Access-protected application with its JWT injected by cloudflared.`,builder:e=>e.parserConfiguration({"populate--":!0,"parse-positional-numbers":!1,"short-option-groups":!1}).option(`allow-request`,{alias:`ar`,type:`boolean`,description:`Continue the request when no Access token is available`}).positional(`url`,{type:`string`,description:`URL of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access curl.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`curl`),i[`allow-request`]&&a.push(`--allow-request`),a.push(i.url,...(i[`--`]??[]).map(String)),new e(await r(a))}};export{i as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{n as t,t as n}from"./cloudflared-
|
|
2
|
+
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{n as t,t as n}from"./cloudflared-91JvyShh.mjs";const r={command:`quick-start <url>`,describe:`Expose a local URL with a temporary trycloudflare.com tunnel. The tunnel remains active until cf exits.`,builder:e=>e.positional(`url`,{type:`string`,description:`Local URL to expose (for example, http://localhost:3000)`,demandOption:!0}).option(`log-level`,{type:`string`,choices:n,default:`info`,description:`cloudflared log level`}),handler:async n=>{throw n.local?Error(`--local is not supported by cf tunnels quick-start.`):new e(await t([`tunnel`,`--url`,n.url,`--loglevel`,n[`log-level`]]))}};export{r as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{n as t}from"./cloudflared-
|
|
2
|
+
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{n as t}from"./cloudflared-91JvyShh.mjs";const n={command:`ready`,describe:`Check the /ready endpoint exposed by a local cloudflared instance.`,builder:e=>e.option(`metrics`,{type:`string`,demandOption:!0,description:`Metrics server address for the cloudflared instance`}),handler:async n=>{throw n.local?Error(`--local is not supported by cf tunnels ready.`):new e(await t([`tunnel`,`--metrics`,n.metrics,`ready`]))}};export{n as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{r as n}from"./resolve-BCTrtcx7.mjs";import{t as r}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{r as n}from"./resolve-BCTrtcx7.mjs";import{t as r}from"./context-BsGrhAqB.mjs";import{r as i}from"./auth-BYFcxn1F.mjs";import{t as a}from"./progress-5nsUpQL6.mjs";import{n as o,t as s}from"./cloudflared-91JvyShh.mjs";const c=1e3;async function l(e,t,r){if(n(r))return r;let i=0,a;for(let n=1;;n++){let o=await e.tunnel.list({account_id:t,name:r,is_deleted:!1,page:n,per_page:c}),s=o.result??[];for(let e of s)e.name===r&&(i++,a=e.id);let l=o.result_info?.per_page||c;if(s.length<l)break}if(i===0)throw Error(`"${r}" is neither the ID nor the name of any tunnel. Run \`cf tunnels list\` to see available tunnels.`);if(i>1)throw Error(`Found multiple tunnels named "${r}". Pass the tunnel UUID instead.`);if(!a)throw Error(`Tunnel "${r}" was found but has no ID. Pass the tunnel UUID instead.`);return a}async function u(e,t,n){let r=await e.tunnels.token.get({account_id:t,tunnel_id:n});if(typeof r!=`string`||r.length===0)throw Error(`The API returned an empty token for tunnel ${n}.`);return r}function d(e){return e.positional(`tunnel`,{type:`string`,description:`Tunnel name or UUID; required unless --token is provided`}).option(`token`,{type:`string`,description:`Tunnel token supplied directly to cloudflared`}).option(`log-level`,{type:`string`,choices:s,default:`info`,description:`cloudflared log level`})}const f={command:`run [tunnel]`,describe:`Run a named Cloudflare Tunnel using the cf-managed cloudflared binary.`,builder:d,handler:async n=>{if(n.local)throw Error(`--local is not supported by cf tunnels run.`);let s=n.token,c=n.tunnel;if(!s){if(!c)throw Error(`Either a tunnel name/UUID or --token must be provided.`);s=await t(n,async()=>{let e=await i(n),t=await r();return a(`Fetching tunnel token`,async()=>u(e,t,await l(e,t,c)))})}let d=[`tunnel`,`--loglevel`,n[`log-level`]];throw d.push(`run`),new e(await o(d,{env:{TUNNEL_TOKEN:s}}))}};export{f as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{t as n}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{t as n}from"./context-BsGrhAqB.mjs";import{r}from"./auth-BYFcxn1F.mjs";import{t as i}from"./progress-5nsUpQL6.mjs";import{n as a}from"./cloudflared-91JvyShh.mjs";const o=[`cloudflared`,`http`,`tcp`,`udp`],s=[`debug`,`info`,`warn`,`error`],c=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function l(e,t){if(!c.test(e))throw Error(`${t} must be a valid UUID.`);return e}const u={command:`tail [tunnel-id]`,describe:`Stream logs from a remote cloudflared instance.`,builder:e=>e.positional(`tunnel-id`,{type:`string`,coerce:e=>l(e,`Tunnel ID`),description:`Tunnel UUID to stream logs from`}).option(`connector-id`,{type:`string`,coerce:e=>l(e,`--connector-id`),description:`Target a specific cloudflared connector`}).option(`event`,{type:`string`,choices:o,array:!0,description:`Filter by event type (may be repeated)`}).option(`level`,{type:`string`,choices:s,description:`Filter by log level`}).option(`sample`,{type:`number`,coerce:e=>{if(!Number.isFinite(e)||e<=0||e>1)throw Error(`--sample must be greater than 0.0 and no greater than 1.0.`);return e},description:`Sample log events by fraction greater than 0.0 and no greater than 1.0`}),handler:async o=>{if(o.local)throw Error(`--local is not supported by cf tunnels tail.`);let s=process.env.TUNNEL_MANAGEMENT_TOKEN;if(s!==void 0&&!s.trim())throw Error(`TUNNEL_MANAGEMENT_TOKEN must not be empty.`);if(s&&o[`tunnel-id`])throw Error(`Specify either a tunnel ID or TUNNEL_MANAGEMENT_TOKEN, not both.`);let c=s;if(!c){let e=o[`tunnel-id`];if(!e)throw Error(`Either a tunnel ID or TUNNEL_MANAGEMENT_TOKEN must be provided.`);c=await t({mode:o.mode,local:o.local},async()=>{let t=await r(o),a=await n();return i(`Fetching tunnel management token`,async()=>t.tunnels.managementToken.create({account_id:a,tunnel_id:e,resources:[`logs`]}))})}let l=[`tail`,`--output`,`json`];if(o[`connector-id`]&&l.push(`--connector-id`,o[`connector-id`]),o.event)for(let e of o.event)l.push(`--event`,e);throw o.level&&l.push(`--level`,o.level),o.sample!==void 0&&l.push(`--sample`,String(o.sample)),o[`tunnel-id`]&&l.push(o[`tunnel-id`]),new e(await a(l,{env:{TUNNEL_MANAGEMENT_TOKEN:c}}))}};export{u as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-BsGrhAqB.mjs";import{n as r}from"./cloudflared-91JvyShh.mjs";const i={command:`ssh-config`,describe:`Print an example SSH configuration for an Access application.`,builder:e=>e.option(`hostname`,{type:`string`,description:`Hostname of the Access application`}).option(`short-lived-cert`,{type:`boolean`,description:`Include short-lived certificate configuration`}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access ssh-config.`);if(await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`)throw Error(`cf access ssh-config does not support FedRAMP because cloudflared does not include --fedramp in its generated SSH configuration.`);let a=[`access`,`ssh-config`];throw i.hostname&&a.push(`--hostname`,i.hostname),i[`short-lived-cert`]&&a.push(`--short-lived-cert`),new e(await r(a))}};export{i as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-BsGrhAqB.mjs";import{n as r}from"./cloudflared-91JvyShh.mjs";const i={command:`login`,describe:`Authorize cloudflared and download an origin certificate for locally managed tunnels.`,handler:async i=>{if(i.local)throw Error(`--local is not supported by cf tunnels login.`);let a=[`tunnel`,`login`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),new e(await r(a))}};export{i as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{n as t}from"./cloudflared-
|
|
2
|
+
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{n as t}from"./cloudflared-91JvyShh.mjs";const n={command:`diag`,describe:`Create a diagnostic report from a local cloudflared instance.`,builder:e=>e.parserConfiguration({"boolean-negation":!1}).option(`metrics`,{type:`string`,description:`Metrics server address for the cloudflared instance`}).option(`diag-container-id`,{type:`string`,description:`Container ID or name to collect logs from`}).option(`diag-pod-id`,{type:`string`,description:`Kubernetes pod to collect logs from`}).option(`no-diag-logs`,{type:`boolean`,description:`Exclude logs`}).option(`no-diag-metrics`,{type:`boolean`,description:`Exclude metrics`}).option(`no-diag-network`,{type:`boolean`,description:`Exclude network diagnostics`}).option(`no-diag-runtime`,{type:`boolean`,description:`Exclude runtime information`}).option(`no-diag-system`,{type:`boolean`,description:`Exclude system information`}),handler:async n=>{if(n.local)throw Error(`--local is not supported by cf tunnels diag.`);let r=[`tunnel`,`diag`];n.metrics&&r.push(`--metrics`,n.metrics),n[`diag-container-id`]&&r.push(`--diag-container-id`,n[`diag-container-id`]),n[`diag-pod-id`]&&r.push(`--diag-pod-id`,n[`diag-pod-id`]);for(let e of[`no-diag-logs`,`no-diag-metrics`,`no-diag-network`,`no-diag-runtime`,`no-diag-system`])n[e]&&r.push(`--${e}`);throw new e(await t(r))}};export{n as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-BsGrhAqB.mjs";import{n as r}from"./cloudflared-91JvyShh.mjs";const i={command:`token <url>`,describe:`Print a JWT for authenticating with an Access application.`,builder:e=>e.positional(`url`,{type:`string`,description:`URL of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access token.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`token`,i.url),new e(await r(a))}};export{i as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-BsGrhAqB.mjs";import{n as r,t as i}from"./cloudflared-91JvyShh.mjs";function a(e){return e.option(`hostname`,{type:`string`,demandOption:!0,description:`Hostname of the Access application`}).option(`destination`,{type:`string`,description:`Destination address of the target server`}).option(`url`,{type:`string`,description:`Local host and port to forward to the Cloudflare edge`}).option(`header`,{type:`string`,array:!0,description:`Additional request header; repeat for multiple headers`}).option(`service-token-id`,{type:`string`,description:`Access service token ID`}).option(`service-token-secret`,{type:`string`,description:`Access service token secret`}).option(`log-level`,{alias:`loglevel`,type:`string`,choices:i,description:`cloudflared log level`})}const o={command:`tcp`,aliases:[`ssh`,`rdp`,`smb`],describe:`Proxy a TCP connection through Access. The command is also available as ssh, rdp, and smb.`,builder:a,handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access tcp.`);let a=[`access`];await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`tcp`),a.push(`--hostname`,i.hostname),i.destination&&a.push(`--destination`,i.destination),i.url&&a.push(`--url`,i.url);for(let e of i.header??[])a.push(`--header`,e);throw i[`service-token-id`]&&a.push(`--service-token-id`,i[`service-token-id`]),i[`log-level`]&&a.push(`--loglevel`,i[`log-level`]),new e(await r(a,{env:i[`service-token-secret`]?{TUNNEL_SERVICE_TOKEN_SECRET:i[`service-token-secret`]}:void 0}))}};export{o as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-BsGrhAqB.mjs";import{n as r}from"./cloudflared-91JvyShh.mjs";const i={command:`login <url>`,describe:`Authenticate with an Access application and store its JWT through cloudflared.`,builder:e=>e.positional(`url`,{type:`string`,description:`URL of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access login.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`login`),i.quiet&&a.push(`--quiet`),a.push(i.url),new e(await r(a))}};export{i as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{x as e}from"./dist-DfMipWKR.mjs";import{t}from"./chunk-M77HNR46-DPbhuhiy.mjs";import{i as n,n as r,t as i}from"./startup-profile-DrV846S5.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./progress-5nsUpQL6.mjs";import{a as s,i as c,n as l,o as u,r as d,s as f}from"./build-DEbkHHVh.mjs";import{t as p}from"./deploy-input-ChEbf2Kp.mjs";import m from"node:path";import{writeFile as h}from"node:fs/promises";import{readBuildOutput as g}from"@cloudflare/build-output-utils";function _(e){return e.option(`outfile`,{type:`string`,description:`Output file for the startup CPU profile`,default:`worker-startup.cpuprofile`,requiresArg:!0}).option(`prebuilt`,{type:`boolean`,description:`Use existing Build Output Specification files without building`,default:!1}).option(`worker`,d)}const v={command:`check`,describe:`Profile a Worker's startup performance`,builder:_,handler:async d=>{if(d.local)throw Error(`--local is not supported by cf workers check.`);d.prebuilt||await l(d.mode,{output:d.quiet?`silent`:`stderr`,worker:d.worker});let{workers:_,rootConfig:v}=await g(process.cwd());u(d.mode,v.buildContext.mode);let y=s(_,d.worker),{wranglerConfig:b,builtConfig:x}=c(y,v),S=p(y,x);if(!S.resolvedEntryPointPath)throw new f(`Startup profiling requires a Worker entrypoint; assets-only projects cannot be profiled.`);if(S.bundleType===`commonjs`)throw new f(`Startup profiling does not support service-worker format Workers. Refer to https://developers.cloudflare.com/workers/reference/migrate-to-module-workers/ for migration guidance.`);let C=t({name:b.name??y.config.name??`worker`,main:{name:x.manifest?.mainModule??m.basename(S.resolvedEntryPointPath),filePath:S.resolvedEntryPointPath,content:S.content,type:S.bundleType},modules:S.modules,sourceMaps:S.sourceMaps,compatibility_date:b.compatibility_date,compatibility_flags:b.compatibility_flags??[],assets:void 0,containers:void 0,migrations:void 0,exports:void 0,keepVars:void 0,keepSecrets:void 0,logpush:void 0,placement:void 0,tail_consumers:void 0,streaming_tail_consumers:void 0,limits:void 0,annotations:void 0,observability:void 0,cache:void 0,package_dependencies:void 0},e(b),{dryRun:!0,unsafe:b.unsafe}),w=await r(C),T=d.quiet?await i(C):await o(`Profiling Worker startup`,()=>i(C)),E=n(T);await h(d.outfile,JSON.stringify(T)),a({bundle:{sizeBytes:w.size,gzipSizeBytes:w.gzipSize},startup:{profileWindowMs:E.profileWindow/1e3,sampledTimeMs:E.sampledTime/1e3,activeTimeMs:E.activeTime/1e3,garbageCollectionTimeMs:E.garbageCollectionTime/1e3,idleTimeMs:E.idleTime/1e3,sampleCount:E.sampleCount},profile:d.outfile,note:`This profile was measured locally. Use it to understand where startup time is spent, not to predict startup time on Cloudflare.`},{quiet:d.quiet})}};export{v as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{n as e,t}from"./project-settings-DO6njFg_.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{n as r}from"./generate-
|
|
2
|
+
import{n as e,t}from"./project-settings-DO6njFg_.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{n as r}from"./generate-iV6OVNin.mjs";import*as i from"node:path";function a(e){return e.option(`include-runtime`,{type:`boolean`,description:`Include Cloudflare Workers runtime types`,default:!0})}const o={command:`types`,describe:`Generate types from cloudflare.config.ts`,builder:a,handler:async a=>{if(a.local)throw Error(`--local is not supported by cf workers types.`);let o=e();if(o===null)throw Error(`${t} is required by cf workers types.`);let s=await r({configPath:o,mode:a.mode,includeRuntime:a.includeRuntime});n({path:i.relative(process.cwd(),s)},{quiet:a.quiet})}};export{o as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-BsGrhAqB.mjs";import{n as r}from"./cloudflared-91JvyShh.mjs";const i={command:`ssh-gen`,describe:`Generate a short-lived certificate for an Access SSH application.`,builder:e=>e.option(`hostname`,{type:`string`,description:`Hostname of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access ssh-gen.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`ssh-gen`,`--hostname`,i.hostname),new e(await r(a))}};export{i as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{n as e,t}from"./metadata-C33s4rc-.mjs";import{t as n}from"./run-
|
|
2
|
+
import{n as e,t}from"./metadata-C33s4rc-.mjs";import{t as n}from"./run-UHTbUldP.mjs";import r from"node:assert";function i(e,t){return`#compdef ${e}
|
|
3
3
|
compdef _${e} ${e}
|
|
4
4
|
|
|
5
5
|
# zsh completion for ${e} -*- shell-script -*-
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-B3OyWKkW.mjs";import{a as t,t as n}from"./context-BsGrhAqB.mjs";import{r}from"./auth-BYFcxn1F.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-5nsUpQL6.mjs";import{t as s}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";function u(e){return e.usage(`$0 connector-interrupts create <connector-id>
|
|
3
3
|
|
|
4
4
|
Creates an interrupt for a Magic WAN Connector.`).positional(`connector-id`,{type:`string`,description:`Connector ID`,demandOption:!0}).option(`reboot-purge`,{type:`boolean`,description:`Purge connector state.`}).option(`restart-purge`,{type:`boolean`,description:`Purge connector state.`}).option(`shutdown-purge`,{type:`boolean`,description:`Purge connector state.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Interrupt action for a connector.`})}const d={command:`create <connector-id>`,describe:`Create Interrupt`,builder:u,handler:async u=>s({command:`connector-interrupts create`,classification:{safeFlags:[`reboot-purge`,`restart-purge`,`shutdown-purge`,`dry-run`]}},u,async()=>{if(u.dryRun){a({command:`cf connector-interrupts create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/magic/connectors/${u[`connector-id`]==null?`<connector-id>`:encodeURIComponent(String(u[`connector-id`]))}/interrupts`,pathParams:{"connector-id":String(u[`connector-id`]??``)},bodyKind:`json`,body:u.body===void 0?l({reboot:{purge:u[`reboot-purge`]},restart:{purge:u[`restart-purge`]},shutdown:{purge:u[`shutdown-purge`]}}):c(u.body)});return}let s=await r(u),d=u.local?e:await n();if(u.accountId=d,u.body){let e=c(u.body);i(await o(`Creating`,async()=>s.connectorInterrupts.create({...e,account_id:d,connector_id:u[`connector-id`]})),{successLabel:`Created`});return}let f=l({reboot:{purge:u[`reboot-purge`]},restart:{purge:u[`restart-purge`]},shutdown:{purge:u[`shutdown-purge`]}});i(await o(`Creating`,async()=>s.connectorInterrupts.create({...f,account_id:d,connector_id:u[`connector-id`]})),{successLabel:`Created`})})};function f(e){return e.usage(`$0 connector-interrupts list
|
|
5
5
|
|
package/dist/{connector-telemetry-events-D2MH0OSs.mjs → connector-telemetry-events-TWQvm-cj.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-B3OyWKkW.mjs";import{a as t,t as n}from"./context-BsGrhAqB.mjs";import{r}from"./auth-BYFcxn1F.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-5nsUpQL6.mjs";import{t as s}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";function c(e){return e.usage(`$0 connector-telemetry-events get <event-n>
|
|
3
3
|
|
|
4
4
|
Gets Magic WAN Connector Telemetry Event`).positional(`event-n`,{type:`string`,description:`Event n`,demandOption:!0}).option(`connector-id`,{type:`string`,description:`Connector ID`,demandOption:!0}).option(`event-t`,{type:`string`,description:`Event t`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`get <event-n>`,describe:`Get Event`,builder:c,handler:async c=>s({command:`connector-telemetry-events get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf connector-telemetry-events get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/magic/connectors/${c[`connector-id`]==null?`<connector-id>`:encodeURIComponent(String(c[`connector-id`]))}/telemetry/events/${c[`event-t`]==null?`<event-t>`:encodeURIComponent(String(c[`event-t`]))}.${c[`event-n`]==null?`<event-n>`:encodeURIComponent(String(c[`event-n`]))}`,pathParams:{"connector-id":String(c[`connector-id`]??``),"event-t":String(c[`event-t`]??``),"event-n":String(c[`event-n`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.connectorTelemetryEvents.get({account_id:l,connector_id:c[`connector-id`],event_t:c[`event-t`],event_n:c[`event-n`]})),{successLabel:`Loaded`})})};function u(e){return e.usage(`$0 connector-telemetry-events list
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-B3OyWKkW.mjs";import{a as t,t as n}from"./context-BsGrhAqB.mjs";import{r}from"./auth-BYFcxn1F.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-5nsUpQL6.mjs";import{t as s}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";function c(e){return e.usage(`$0 connector-telemetry-snapshots get <snapshot-t>
|
|
3
3
|
|
|
4
4
|
Gets Magic WAN Connector Telemetry Snapshot`).positional(`snapshot-t`,{type:`string`,description:`Snapshot t`,demandOption:!0}).option(`connector-id`,{type:`string`,description:`Connector ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`get <snapshot-t>`,describe:`Get Snapshot`,builder:c,handler:async c=>s({command:`connector-telemetry-snapshots get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf connector-telemetry-snapshots get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/magic/connectors/${c[`connector-id`]==null?`<connector-id>`:encodeURIComponent(String(c[`connector-id`]))}/telemetry/snapshots/${c[`snapshot-t`]==null?`<snapshot-t>`:encodeURIComponent(String(c[`snapshot-t`]))}`,pathParams:{"connector-id":String(c[`connector-id`]??``),"snapshot-t":String(c[`snapshot-t`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.connectorTelemetrySnapshots.get({account_id:l,connector_id:c[`connector-id`],snapshot_t:c[`snapshot-t`]})),{successLabel:`Loaded`})})};function u(e){return e.usage(`$0 connector-telemetry-snapshots list
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-B3OyWKkW.mjs";import{a as t,t as n}from"./context-BsGrhAqB.mjs";import{r}from"./auth-BYFcxn1F.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-5nsUpQL6.mjs";import{t as s}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{n as d}from"./prompt-Ba_bys2F.mjs";import{t as f}from"./cli-types-DoVT5q_M.mjs";function p(e){return e.usage(`$0 connectors create
|
|
3
3
|
|
|
4
4
|
Creates a Magic WAN Connector.`).option(`device-id`,{type:`string`,description:`The device.id field`}).option(`device-provision-license`,{type:`boolean`,description:`When true, create and provision a new licence key for the connector.`}).option(`device-serial-number`,{type:`string`,description:`The device.serial_number field`}).option(`activated`,{type:`boolean`,description:`The activated field`}).option(`interrupt-window-days-of-week`,{type:`string`,array:!0,description:`Allowed days of the week for upgrades. Default is all days.`}).option(`interrupt-window-duration-hours`,{type:`number`,description:`The interrupt_window_duration_hours field`}).option(`interrupt-window-embargo-dates`,{type:`string`,array:!0,description:`List of dates (YYYY-MM-DD) when upgrades are blocked.`}).option(`interrupt-window-hour-of-day`,{type:`number`,description:`The interrupt_window_hour_of_day field`}).option(`notes`,{type:`string`,description:`The notes field`}).option(`timezone`,{type:`string`,description:`The timezone field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const m={command:`create`,describe:`Create Connector`,builder:p,handler:async d=>s({command:`connectors create`,classification:{safeFlags:[`device-provision-license`,`activated`,`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf connectors create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/magic/connectors`,pathParams:{},bodyKind:`json`,body:d.body===void 0?l({device:{id:u(d[`device-id`],`device-id`,`text`),provision_license:d[`device-provision-license`],serial_number:u(d[`device-serial-number`],`device-serial-number`,`text`)},activated:d.activated,interrupt_window_days_of_week:d[`interrupt-window-days-of-week`],interrupt_window_duration_hours:d[`interrupt-window-duration-hours`],interrupt_window_embargo_dates:d[`interrupt-window-embargo-dates`],interrupt_window_hour_of_day:d[`interrupt-window-hour-of-day`],notes:u(d.notes,`notes`,`text`),timezone:u(d.timezone,`timezone`,`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.connectors.create({...e,account_id:f})),{successLabel:`Created`});return}let p=l({device:{id:u(d[`device-id`],`device-id`,`text`),provision_license:d[`device-provision-license`],serial_number:u(d[`device-serial-number`],`device-serial-number`,`text`)},activated:d.activated,interrupt_window_days_of_week:d[`interrupt-window-days-of-week`],interrupt_window_duration_hours:d[`interrupt-window-duration-hours`],interrupt_window_embargo_dates:d[`interrupt-window-embargo-dates`],interrupt_window_hour_of_day:d[`interrupt-window-hour-of-day`],notes:u(d.notes,`notes`,`text`),timezone:u(d.timezone,`timezone`,`text`)});i(await o(`Creating`,async()=>s.connectors.create({...p,account_id:f})),{successLabel:`Created`})})};function h(e){return e.usage(`$0 connectors delete <connector-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{G as e}from"./dist-DfMipWKR.mjs";import{a as t}from"./banner-ClclgnBn.mjs";import{t as n}from"./local-
|
|
2
|
+
import{G as e}from"./dist-DfMipWKR.mjs";import{a as t}from"./banner-ClclgnBn.mjs";import{t as n}from"./local-B3OyWKkW.mjs";import{a as r,n as i,t as a}from"./context-BsGrhAqB.mjs";import{n as o}from"./request-headers-sc4CaZX0.mjs";import{i as s,r as c}from"./auth-BYFcxn1F.mjs";import{t as l}from"./output-CvQFJkvi.mjs";import{t as u}from"./dry-run-Bq0JAsbX.mjs";import{t as d}from"./progress-5nsUpQL6.mjs";import{n as f,t as p}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{n as m,r as h,t as g}from"./body-parser-hh2avzkz.mjs";import{n as _}from"./input-validation-Dk52b0me.mjs";import{a as v,i as y,n as b}from"./prompt-Ba_bys2F.mjs";import{t as x}from"./cli-types-DoVT5q_M.mjs";import{D as S,T as C,_ as w,d as T,f as E,g as D,l as ee,m as te,o as O,w as k,x as A,y as j}from"./dist-DTN-pqSs.mjs";function M(e){return e.positional(`path`,{type:`string`,demandOption:!0,description:`Directory containing the Dockerfile to build`}).option(`tag`,{alias:`t`,type:`string`,demandOption:!0,description:`Name and optional tag for the built image`}).option(`push`,{alias:`p`,type:`boolean`,default:!1,description:`Push the built image to Cloudflare's managed registry`}).option(`path-to-docker`,{type:`string`,description:`Path to the Docker binary if it is not on PATH`})}var N=f({command:`build <path>`,describe:`Build a Container image`,builder:M,handler:async t=>{if(t.local)throw Error("--local is not supported with `cf containers build`.");let n={compliance_region:t.push?await i():`public`},r=t.push?await s():``,o=S(r);D({logger:o.logger,fetchResult:o.fetchResult,fetchPagedListResult:o.fetchPagedListResult}),t.push&&T(await a(),r,e(n)),await ee({PATH:t.path,tag:t.tag,push:t.push,pathToDocker:t[`path-to-docker`]},n)}},{command:`containers build`,classification:{safeFlags:[`push`],shortFlagAliases:{p:{canonical:`push`,type:`boolean`},t:{canonical:`tag`,type:`value`}}}});function P(e){return e.option(`tag`,{alias:`t`,type:`string`,demandOption:!0,description:`Tag of the local image to push`}).option(`path-to-docker`,{type:`string`,description:`Path to the Docker binary if it is not on PATH`})}var F=f({command:`push`,describe:`Push a local image to the Cloudflare managed registry`,builder:P,handler:async t=>{if(t.local)throw Error("--local is not supported with `cf containers push`.");let n=await s(),r=await a(),o={compliance_region:await i()},c=S(n);D({logger:c.logger,fetchResult:c.fetchResult,fetchPagedListResult:c.fetchPagedListResult}),T(r,n,e(o)),await A({TAG:t.tag,pathToDocker:t[`path-to-docker`]},r,o)}},{command:`containers push`,classification:{safeFlags:[],shortFlagAliases:{t:{canonical:`tag`,type:`value`}}}});function I(e){return e.positional(`id`,{type:`string`,demandOption:!0,description:`ID of the container instance`}).positional(`ssh-command`,{type:`string`,array:!0,description:`Command and arguments to run in the container`}).options(E).middleware(e=>{k(e)&&(e.quiet=!0)},!0).parserConfiguration({"populate--":!0,"unknown-options-as-args":!0,"parse-positional-numbers":!1})}const L={command:`ssh <id> [ssh-command..]`,describe:`SSH into a container`,builder:I,handler:async t=>{if(t.local)throw Error("--local is not supported with `cf containers ssh`.");let n=await s(),r=await a(),c={compliance_region:await i()},l=S(n);D({logger:l.logger,fetchResult:l.fetchResult}),O.HEADERS=o(),T(r,n,e(c)),await C({...t,id:t.id,command:[...t[`ssh-command`]??[],...Array.isArray(t[`--`])?t[`--`].map(String):[]]})}},R=f(L,{command:`containers ssh`,recordArgs:!1});var z={...R,handler:async e=>{if(k(e)){let{markCommandReported:t}=await import(`./telemetry-DbAo3nvk.mjs`);return t(),L.handler(e)}return R.handler(e)}};function B(e){return e.usage('$0 containers applications create\n\nCreate a Containers application. Use `scheduling_policy: "default"` for a scheduler-backed application. The Containers scheduler maintains the requested instance count and manages deployment configuration, placement, scaling, versions, and rollouts. Use `scheduling_policy: "durable_object"` for a Durable Object-managed application. Each Durable Object creates and manages the lifecycle of its container instance. Supply `name`, `scheduling_policy`, and `durable_objects`, with optional `configuration` and optional top-level `observability` settings. Deployment configuration, scaling, constraints, versions, and rollouts do not apply.').option(`configuration-command`,{type:`string`,array:!0,description:`The command that runs when the container starts, passed to the entrypoint.
|
|
3
3
|
You can override this at run-time. If you override only the command,
|
|
4
4
|
it gets passed to the default entrypoint specified in the image.
|
|
5
5
|
`}).option(`configuration-entrypoint`,{type:`string`,array:!0,description:`The entry point for the container, specifying the executable to run when the container starts.
|