cf 1.0.0-beta.20 → 1.0.0-beta.22
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/README.md +1 -1
- package/dist/_meta/commands.json +5918 -5609
- package/dist/_meta/schemas.json +3525 -3510
- package/dist/{abuse-reports-mKv00yPh.mjs → abuse-reports-GF9V-_qH.mjs} +1 -1
- package/dist/{access-CyRjTbhh.mjs → access-dWdATy_5.mjs} +1 -1
- package/dist/{accounts-BmF_YKvG.mjs → accounts-CNpiDgQ-.mjs} +51 -60
- package/dist/{acm-BcIFiAb8.mjs → acm-BXOuZNqO.mjs} +2 -3
- package/dist/{addressing-D6xVD7MM.mjs → addressing-BE4KpVHp.mjs} +12 -23
- package/dist/agent-context-Dtyy4aKL.mjs +2 -0
- package/dist/{agent-memory-Blldunhv.mjs → agent-memory-WOFBlqfc.mjs} +5 -9
- package/dist/{ai-CU8tdTfC.mjs → ai-2syYes5a.mjs} +2 -3
- package/dist/{ai-audit-Id3hq5pV.mjs → ai-audit-DBZnZtSH.mjs} +1 -1
- package/dist/{ai-gateway-BKeZ28CQ.mjs → ai-gateway-BL8uRjav.mjs} +9 -15
- package/dist/{ai-search-DOiZEmn7.mjs → ai-search-xKyrECHJ.mjs} +6 -11
- package/dist/{ai-security-CioADDZi.mjs → ai-security-D-o76TBI.mjs} +3 -5
- package/dist/{alerting-BzN1N3Se.mjs → alerting-D0Hh3IxQ.mjs} +5 -9
- package/dist/{analytics-Cte-DrzH.mjs → analytics-BS_HDYYE.mjs} +1 -1
- package/dist/{analytics-engine-CugCQfDe.mjs → analytics-engine-B8J0AASh.mjs} +1 -1
- package/dist/api-X3wKppsT.mjs +3 -0
- package/dist/{api-security-CCs0g510.mjs → api-security-Dm-_J64v.mjs} +9 -17
- package/dist/{argo-BHBFZnmO.mjs → argo-DLLQUUEp.mjs} +1 -1
- package/dist/args-BAOHroBC.mjs +2 -0
- package/dist/{artifacts-BzAwvrCD.mjs → artifacts-B-ILiKwb.mjs} +4 -7
- package/dist/{audit-logs-jWivEKCy.mjs → audit-logs-B6f7Yyqb.mjs} +1 -1
- package/dist/{auth-BUQscD5b.mjs → auth-BlWCu-YH.mjs} +1 -1
- package/dist/auth-C0-WtqBw.mjs +2 -0
- package/dist/auth-CENmPoCB.mjs +2 -0
- package/dist/{auth-token-T0aqYgl9.mjs → auth-token-7Gn0n5N_.mjs} +1 -1
- package/dist/{autoconfig-CBdcYYf4.mjs → autoconfig-Bjb97Onj.mjs} +88 -88
- package/dist/{basin-catalog-_8w_4599.mjs → basin-catalog-C61jbxPf.mjs} +3 -5
- package/dist/{billing-Ce0WN0yw.mjs → billing-CpbtioM3.mjs} +2 -3
- package/dist/blocks-DDNRRYxu.mjs +5 -0
- package/dist/{bot-management-DskcSr4B.mjs → bot-management-iYrqBG7K.mjs} +1 -1
- package/dist/{botnet-feed-CmBm13-D.mjs → botnet-feed-CiCwJ6Oe.mjs} +2 -3
- package/dist/{brand-protection-DTuFrsN0.mjs → brand-protection-D25yQ6cQ.mjs} +2 -3
- package/dist/{browser-run-CXdzSOHa.mjs → browser-run-CC3fAKEB.mjs} +3 -5
- package/dist/build-CovoviZW.mjs +2 -0
- package/dist/build-DKFvtSB_.mjs +2 -0
- package/dist/{builds-_1u5Nx6f.mjs → builds-AFdd5qia.mjs} +8 -15
- package/dist/cache-BI3Oyz-Z.mjs +36 -0
- package/dist/cf-fIBhEAxU.mjs +18 -0
- package/dist/chunk-DSGVRFIS-DHC6NOIj.mjs +2 -0
- package/dist/{chunk-2K52M2W5-iYNzknM1.mjs → chunk-XVBBSNW2-DfMyGS-l.mjs} +8 -8
- package/dist/{cli-DyhOdzMo.mjs → cli-Dji5-s1V.mjs} +3 -3
- package/dist/{client-side-security-DnnYaRsd.mjs → client-side-security-rknn53xw.mjs} +2 -3
- package/dist/{cloud-connector-Ct6b6pz8.mjs → cloud-connector-BTc3qgHz.mjs} +1 -1
- package/dist/{cloudflared-CHLpWU35.mjs → cloudflared-DbzoIouQ.mjs} +1 -1
- package/dist/cloudforce-one-BoFYTYsT.mjs +316 -0
- package/dist/{command-CHGc-KZ7.mjs → command-6vX_Ie2o.mjs} +1 -1
- package/dist/{command-BMYi_gS-.mjs → command-BDFf54JB.mjs} +1 -1
- package/dist/{command-DOpykk8X.mjs → command-B_C1I0aq.mjs} +1 -1
- package/dist/{command-CXzje7qc.mjs → command-BpmbvQqK.mjs} +1 -1
- package/dist/{command-BONLLcyz.mjs → command-C6kE7BU0.mjs} +1 -1
- package/dist/{command-DuLxEkGq.mjs → command-CKEmPXtc.mjs} +1 -1
- package/dist/{command-BRpBIju7.mjs → command-CiBygnsK.mjs} +1 -1
- package/dist/{command-BRXOUAGD.mjs → command-CqKRlHGv.mjs} +1 -1
- package/dist/{command-BwgvUpNx.mjs → command-KuJJ2WEe.mjs} +1 -1
- package/dist/{command-CMa807gY.mjs → command-MxFFWqMg.mjs} +1 -1
- package/dist/{command-CVoDyQnL.mjs → command-WlIhTGN6.mjs} +1 -1
- package/dist/{command-CPDQPdss.mjs → command-leDr72L4.mjs} +1 -1
- package/dist/{command-BVO9UOuU.mjs → command-orlUsdgf.mjs} +1 -1
- package/dist/{command-0WS5I_JW.mjs → command-rUCxlpQI.mjs} +1 -1
- package/dist/command-resolution-DAQ4PWUt.mjs +2 -0
- package/dist/{command-BwlIi3Bv.mjs → command-ukMoR-tT.mjs} +1 -1
- package/dist/{completions-DMwrvK_S.mjs → completions-DGe2alry.mjs} +1 -1
- package/dist/{connector-interrupts-DyWilINb.mjs → connector-interrupts-DZyCZta-.mjs} +1 -1
- package/dist/{connector-telemetry-events-BUW9qTOs.mjs → connector-telemetry-events-BP5GTJuQ.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-Djs5QssR.mjs → connector-telemetry-snapshots-Q9y68rU7.mjs} +1 -1
- package/dist/{connectors-e_cpzDEm.mjs → connectors-C6wEHhyM.mjs} +2 -3
- package/dist/{containers-CEH15JUu.mjs → containers-DcR44W-a.mjs} +6 -9
- package/dist/containers-f3DbMCIO.mjs +380 -0
- package/dist/{content-scan-B6Ahw9JA.mjs → content-scan-cQbQH1Ko.mjs} +3 -5
- package/dist/{context-Sgba0fZP.mjs → context-CSjTAJ8s.mjs} +2 -2
- package/dist/{cps-uDD0SSJ-.mjs → cps-aDZte41c.mjs} +1 -1
- package/dist/create-BtmuVqVL.mjs +2 -0
- package/dist/{csam-scanner-BSUl7jGn.mjs → csam-scanner-cRaGDmR_.mjs} +1 -1
- package/dist/{custom-csrs-BDcXggph.mjs → custom-csrs-DoAFlLRn.mjs} +2 -3
- package/dist/{custom-hostnames-UmIlwkwt.mjs → custom-hostnames-5vHNAJo7.mjs} +4 -7
- package/dist/{custom-nameservers-D7kU6d--.mjs → custom-nameservers-B7dTZfCW.mjs} +2 -3
- package/dist/{custom-pages-CkhIQCfM.mjs → custom-pages-DsXlaGqQ.mjs} +2 -3
- package/dist/{d1-myRLEAGs.mjs → d1-DZ2JyfdZ.mjs} +4 -7
- package/dist/delegate-DzeuzE99.mjs +2 -0
- package/dist/delegate.mjs +1 -1
- package/dist/{deploy-BJqCpycz.mjs → deploy-CPFnQQOk.mjs} +1 -1
- package/dist/deploy-context-C_YUdUN-.mjs +56 -0
- package/dist/{deploy-input-v2DryyLP.mjs → deploy-input-CKQOolPd.mjs} +1 -1
- package/dist/{dev-S1PJi83q.mjs → dev-rRWAGDV_.mjs} +2 -2
- package/dist/{diagnostics-q65rcNIk.mjs → diagnostics-BIuJQRjU.mjs} +2 -3
- package/dist/dialog-D5lus4M4.mjs +2 -0
- package/dist/discover-6kAmVMPp.mjs +2 -0
- package/dist/discover-C06Syc2B.mjs +2 -0
- package/dist/dist-BtzWfAjU.mjs +453 -0
- package/dist/dls-BurMhzEE.mjs +16 -0
- package/dist/{dns-DhARjFQs.mjs → dns-Dl1VSmFf.mjs} +68 -68
- package/dist/{dns-firewall-BP6r9QG6.mjs → dns-firewall-BykvgGT1.mjs} +2 -3
- package/dist/{docs-CReGWDrw.mjs → docs-FllOac9a.mjs} +1 -1
- package/dist/{dotenv-Ck-6V1hm.mjs → dotenv-CmPRiXmU.mjs} +1 -1
- package/dist/{dry-run-BBjUQUhR.mjs → dry-run-gy0Hl9xo.mjs} +1 -1
- package/dist/{durable-objects-tOJy-5te.mjs → durable-objects-BNCJA3NE.mjs} +1 -1
- package/dist/{email-auth-Bq9sq_2j.mjs → email-auth-BYvR29qP.mjs} +1 -1
- package/dist/email-domains-C3jG7o39.mjs +12 -0
- package/dist/{email-routing-CYo4dp50.mjs → email-routing-BQ7b2KAy.mjs} +4 -7
- package/dist/{email-security-CNtWET2d.mjs → email-security-CsoNcUfp.mjs} +16 -31
- package/dist/{email-sending-BvagNLRr.mjs → email-sending-d_b9vyge.mjs} +5 -7
- package/dist/{error-sanitization-DWJ5ka7h.mjs → error-sanitization-ahuAGEjT.mjs} +1 -1
- package/dist/error-sanitization-rodO1WCL.mjs +2 -0
- package/dist/errors-DFSWbpd6.mjs +11 -0
- package/dist/{field-extractors-C9R3Qivh.mjs → field-extractors-Be4UTSz-.mjs} +2 -3
- package/dist/{firewall-DsgUY-Qv.mjs → firewall-DYGPUErP.mjs} +4 -7
- package/dist/flagship-HIikhoYo.mjs +24 -0
- package/dist/{fraud-24l8dKyk.mjs → fraud-DNAOkNU5.mjs} +1 -1
- package/dist/get-Be821dio.mjs +2 -0
- package/dist/{google-tag-gateway-CAkudP5W.mjs → google-tag-gateway-DHvhuTYu.mjs} +1 -1
- package/dist/{gt-D6YemCLh.mjs → gt-BQkaDQDq.mjs} +1 -1
- package/dist/{healthchecks-CEGMe3lO.mjs → healthchecks-BKtoWgF2.mjs} +3 -5
- package/dist/{hyperdrive-DLDaOU2O.mjs → hyperdrive-DQrmkuSh.mjs} +2 -3
- package/dist/{iam-ChldOMSL.mjs → iam-BEs1Geob.mjs} +5 -9
- package/dist/{images-Ba9tS5wT.mjs → images-D55kUS0m.mjs} +6 -11
- package/dist/index.mjs +1 -1
- package/dist/init-BTXSeUaj.mjs +43 -0
- package/dist/{intel-DbLRah4Y.mjs → intel-BDbanlya.mjs} +18 -21
- package/dist/interactive-CHcvofEp.mjs +2 -0
- package/dist/{interactive-d_lFnSev.mjs → interactive-D4E8PdaW.mjs} +31 -31
- package/dist/interactive-wQM7Blhm.mjs +2 -0
- package/dist/internal-Cj_Wo6sr.mjs +4 -0
- package/dist/{ips-BGyzyQLL.mjs → ips-CHrG3mwW.mjs} +1 -1
- package/dist/{k2-BVQ3MqEl.mjs → k2-CJzI3dVt.mjs} +2 -3
- package/dist/kv-BjfDMxOg.mjs +12 -0
- package/dist/{lazy-command-D0I6itZs.mjs → lazy-command-DkI_21Dt.mjs} +1 -1
- package/dist/{leaked-credential-checks-Dga83Qy3.mjs → leaked-credential-checks-BHe-erAg.mjs} +3 -5
- package/dist/live-DSwOLngp.mjs +4 -0
- package/dist/{load-balancers-D9cB6of8.mjs → load-balancers-CWNEVfum.mjs} +5 -9
- package/dist/local-CAs8RWYW.mjs +2 -0
- package/dist/{local-B7ZJ78al.mjs → local-CSH3UMpD.mjs} +1 -1
- package/dist/{local-runtime-DB545Gqq.mjs → local-runtime-KOFLRZeZ.mjs} +1 -1
- package/dist/log-BWdaOGOW.mjs +66 -0
- package/dist/log-DZfik9Jk.mjs +2 -0
- package/dist/login-CJYJE6Ae.mjs +5 -0
- package/dist/login-D2Bf_HMY.mjs +2 -0
- package/dist/{logpush-Ccmr0Y_I.mjs → logpush-BQhzhkBY.mjs} +3 -5
- package/dist/{logs-CZBMuuBC.mjs → logs-DndNcbrR.mjs} +2 -3
- package/dist/{magic-cloud-networking-BwOxZVql.mjs → magic-cloud-networking-XmIKU6F1.mjs} +4 -7
- package/dist/{magic-network-monitoring-Cx5kKdbk.mjs → magic-network-monitoring-BgPLcQzT.mjs} +3 -5
- package/dist/{magic-transit-BJwg3sVK.mjs → magic-transit-C2kLj1Hd.mjs} +36 -67
- package/dist/managed-defense-Bq63Exyv.mjs +18 -0
- package/dist/{managed-transforms-C-HMtesC.mjs → managed-transforms-Bz3Q6vSk.mjs} +2 -3
- package/dist/{mcp-bGKgzz6F.mjs → mcp-IiegTI5c.mjs} +3 -5
- package/dist/{mesh-DeQIll19.mjs → mesh-C7sj3FL4.mjs} +3 -5
- package/dist/{migrate-B6HsPeFh.mjs → migrate-D7pH9_Y8.mjs} +1 -1
- package/dist/{monetization-B-TIrpA5.mjs → monetization-DvfqZhGk.mjs} +3 -5
- package/dist/{network-BrjykU-I.mjs → network-CnqNYoOf.mjs} +5 -9
- package/dist/{network-interconnects-I06kbxIl.mjs → network-interconnects-BXftLikd.mjs} +3 -5
- package/dist/{o11y-Ba0Fa98_.mjs → o11y-1Qku543b.mjs} +8 -15
- package/dist/{oauth-BH-uQd3C.mjs → oauth-B-SYl8nR.mjs} +1 -1
- package/dist/oauth-C6uYSFM5.mjs +4 -0
- package/dist/{oauth-clients-Dd5gvDqf.mjs → oauth-clients-DXNO-K_e.mjs} +3 -5
- package/dist/{oauth-scopes-CXpH3Syj.mjs → oauth-scopes-WxoyDblU.mjs} +1 -1
- package/dist/{organization-DKPqwe3j.mjs → organization-HBQnzh8z.mjs} +3 -5
- package/dist/{organizations-Cq4iy-Yr.mjs → organizations-DvS-ENN2.mjs} +1 -1
- package/dist/{origin-post-quantum-encryption-DSB1sbYV.mjs → origin-post-quantum-encryption-BnjX0dCp.mjs} +1 -1
- package/dist/output-BJEgbI0G.mjs +2 -0
- package/dist/package-DAB8HAGn.mjs +2 -0
- package/dist/{page-rules-CDWTYaf7.mjs → page-rules-CypVq1Wb.mjs} +2 -3
- package/dist/{pages-Dgtm51Uj.mjs → pages-BxLbPYIf.mjs} +7 -13
- package/dist/{pay-per-crawl-CHenxdhv.mjs → pay-per-crawl-KidGhWnn.mjs} +3 -5
- package/dist/{pay-per-use-Bd5l0hBi.mjs → pay-per-use-DcsdwXr7.mjs} +2 -3
- package/dist/{pipelines-GsyD6nUM.mjs → pipelines-CX7esgh3.mjs} +5 -9
- package/dist/{precursor-mO-Zua09.mjs → precursor-BzDcAmUT.mjs} +1 -1
- package/dist/previews-B7MZKZK6.mjs +6 -0
- package/dist/progress-BcjUdm_B.mjs +2 -0
- package/dist/prompt-BFRinxR0.mjs +4 -0
- package/dist/{queues-D8cAr2lB.mjs → queues-mSjNdJNl.mjs} +6 -11
- package/dist/{r2-CJiJbG6b.mjs → r2-ClBc0jT0.mjs} +17 -33
- package/dist/{radar-PUZ_PCZ8.mjs → radar-C9GwykGn.mjs} +1 -1
- package/dist/{raw-fetch-DSdFjojI.mjs → raw-fetch-BO0VqOVx.mjs} +1 -1
- package/dist/ready-DhdeN4ga.mjs +4 -0
- package/dist/{realtime-X6uQsldp.mjs → realtime-9V5zWcij.mjs} +73 -80
- package/dist/{registrar-BqZdUTss.mjs → registrar-DsI2A62h.mjs} +1 -1
- package/dist/{registrar-sandbox-CmM3e1QN.mjs → registrar-sandbox-DcjFW26g.mjs} +1 -1
- package/dist/{registry-D0tMkLv6.mjs → registry-Bm-GgDC3.mjs} +1 -1
- package/dist/{reporting-DFVz98Xg.mjs → reporting-pAQ3jvEO.mjs} +1 -1
- package/dist/request-headers-DFPlTFRf.mjs +2 -0
- package/dist/{request-tracers-BC1u2WDU.mjs → request-tracers-CQqdbHj8.mjs} +1 -1
- package/dist/{resource-sharing-CdEn5Iex.mjs → resource-sharing-BJraifhD.mjs} +5 -9
- package/dist/rolldown-runtime-BNtqjh-B.mjs +2 -0
- package/dist/{rules-B663VetJ.mjs → rules-B_Mopjel.mjs} +3 -5
- package/dist/{rulesets-p4EijVr6.mjs → rulesets-DRV0HtYz.mjs} +4 -7
- package/dist/{rum-CHHXe4KK.mjs → rum-D5dYq2Uy.mjs} +3 -5
- package/dist/run--9dxcon4.mjs +2 -0
- package/dist/run-BUebYPOn.mjs +2 -0
- package/dist/sanitization-DkVWMHkc.mjs +2 -0
- package/dist/{schema-B38ojvsS.mjs → schema-DuLIZRhA.mjs} +1 -1
- package/dist/{schema-flags-z7yn0JZ_.mjs → schema-flags-blYVIAUK.mjs} +1 -1
- package/dist/{scim-BMnUa4Oz.mjs → scim-C91WGj_g.mjs} +3 -5
- package/dist/{secrets-store-EYrhEzVG.mjs → secrets-store-D4Zr-fuz.mjs} +5 -7
- package/dist/{security-insights-C-AwDwXb.mjs → security-insights-DJWdVax5.mjs} +1 -1
- package/dist/{security-txt-CQMe8TD3.mjs → security-txt-B0NLFJNk.mjs} +2 -3
- package/dist/session-Bafy81hj.mjs +2 -0
- package/dist/shared-rCcn7D66.mjs +2 -0
- package/dist/signed-url-DBf_p7Wf.mjs +4 -0
- package/dist/{smart-shield-CHSuitaH.mjs → smart-shield-BufLvdU3.mjs} +3 -5
- package/dist/{snippets-DGSBz4lg.mjs → snippets-DA2Gk50m.mjs} +3 -5
- package/dist/spawn-hrdbxnm1.mjs +5 -0
- package/dist/{spectrum-59LhYG1t.mjs → spectrum-DlI8qtVo.mjs} +2 -3
- package/dist/{speed-CMCfoG3s.mjs → speed-DNwm5gYl.mjs} +3 -5
- package/dist/{sql-MxWaTDdj.mjs → sql-aBDdRWdd.mjs} +1 -1
- package/dist/{src-J3Yss3VM.mjs → src-4-uZcDN_.mjs} +5 -5
- package/dist/src-COwxoocl.mjs +2 -0
- package/dist/{ssl-DTTFZR9x.mjs → ssl-DEDucWlo.mjs} +9 -17
- package/dist/startup-profile-CZYtQziF.mjs +2 -0
- package/dist/{startup-profile-bp348qmf.mjs → startup-profile-DlWrt4Fm.mjs} +5 -5
- package/dist/state-B3Uy1jPX.mjs +2 -0
- package/dist/{state-CqAtTENS.mjs → state-DazGSbRx.mjs} +1 -1
- package/dist/{stream-gVG_7si-.mjs → stream-DGv9Bssl.mjs} +14 -27
- package/dist/tags-CNBA4Pf1.mjs +22 -0
- package/dist/telemetry-THz8wtoW.mjs +2 -0
- package/dist/telemetry-klBrZrC7.mjs +2 -0
- package/dist/{tenant-Qv_PC8gW.mjs → tenant-DVtqafWB.mjs} +1 -1
- package/dist/{tenant-custom-nameservers-DBmmUcxn.mjs → tenant-custom-nameservers-CtrqQc_i.mjs} +2 -3
- package/dist/{tools-B1ajcUAF.mjs → tools-C-vmgYSv.mjs} +1 -1
- package/dist/{tunnels-CHNKPYRV.mjs → tunnels-Bc_r--ln.mjs} +4 -6
- package/dist/{turnstile-C60RxPo2.mjs → turnstile-Cr2cTE0C.mjs} +2 -3
- package/dist/ui-DvC7Qa0H.mjs +2 -0
- package/dist/{update-check-BHarE3V9.mjs → update-check-B5V9BBM7.mjs} +1 -1
- package/dist/update-check-C5bJ4-Ef.mjs +2 -0
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-normalization-3t6Xpafi.mjs → url-normalization-D6r0sLRj.mjs} +2 -3
- package/dist/{url-scanner-DNG__DiK.mjs → url-scanner-D4u7jbzf.mjs} +1 -1
- package/dist/{user-B4i7OIFK.mjs → user-DhWPKWo0.mjs} +8 -15
- package/dist/{vectorize-y3PCQDDf.mjs → vectorize-CB9IjpC3.mjs} +3 -5
- package/dist/version-Dp7G_dM6.mjs +2 -0
- package/dist/{waiting-rooms-xkZLvPkT.mjs → waiting-rooms-BYlwhzgD.mjs} +4 -7
- package/dist/{web-assets-BlqHZywy.mjs → web-assets-Nn2HArqh.mjs} +7 -13
- package/dist/{web3-DGAJMcLv.mjs → web3-DpJNkFNQ.mjs} +3 -5
- package/dist/workers-BkNt1wSN.mjs +39 -0
- package/dist/{workers-builds-COKp3NfU.mjs → workers-builds-BL3dK2R3.mjs} +1 -1
- package/dist/{workers-for-platforms-CAtiWI_G.mjs → workers-for-platforms-CAQLG6dE.mjs} +5 -9
- package/dist/{workers-vpc-ChBfXwPy.mjs → workers-vpc-WnRec8oo.mjs} +2 -3
- package/dist/{workflows-BYhgJvyR.mjs → workflows-DpXBMizW.mjs} +5 -9
- package/dist/{wrangler-migration-B12OR2bu.mjs → wrangler-migration-__jrVjrp.mjs} +74 -74
- package/dist/{zaraz-BW0kvRCK.mjs → zaraz-hWisKRaN.mjs} +1 -1
- package/dist/{zero-trust-DSeWXkNV.mjs → zero-trust-DiZhiSa4.mjs} +108 -182
- package/dist/{zone-B-YJG2UA.mjs → zone-D7b949er.mjs} +1 -1
- package/dist/{zones-B8pqPHu8.mjs → zones-giCZ0LO8.mjs} +49 -52
- package/package.json +12 -12
- package/dist/agent-context-DFEgYjEQ.mjs +0 -2
- package/dist/api-eMuS5GI1.mjs +0 -3
- package/dist/auth-CdEGiJ5Y.mjs +0 -2
- package/dist/auth-DF_ml7rE.mjs +0 -2
- package/dist/blocks-CFAm0Ma3.mjs +0 -5
- package/dist/build-BJHRK6qE.mjs +0 -2
- package/dist/build-D7s3a8zW.mjs +0 -2
- package/dist/cache-CDPUUv_O.mjs +0 -45
- package/dist/cf-3vj8dGYz.mjs +0 -18
- package/dist/chunk-DSGVRFIS-RUG6Dtqz.mjs +0 -2
- package/dist/cloudforce-one-Rl6nCCm0.mjs +0 -395
- package/dist/containers-CcZHRM9g.mjs +0 -376
- package/dist/create-OXylMu6m.mjs +0 -2
- package/dist/delegate-Tgfxa-MZ.mjs +0 -2
- package/dist/deploy-context-DIAl408H.mjs +0 -56
- package/dist/dialog-BnIgdgWi.mjs +0 -2
- package/dist/discover-DEjUARkU.mjs +0 -2
- package/dist/discover-P20XeGBF.mjs +0 -2
- package/dist/dist-CX6dDtzj.mjs +0 -449
- package/dist/dist-DAeCUX-u.mjs +0 -60
- package/dist/dls-CMTrCDjZ.mjs +0 -17
- package/dist/error-sanitization-Byb-_IS9.mjs +0 -2
- package/dist/errors-DpbAQQv8.mjs +0 -11
- package/dist/flagship-geGDHp9H.mjs +0 -28
- package/dist/get-iPUHxD1r.mjs +0 -2
- package/dist/init-C08hBFYn.mjs +0 -43
- package/dist/interactive-pjVqirHx.mjs +0 -2
- package/dist/kv-Cd8vbPWK.mjs +0 -15
- package/dist/local-CFZtOOxg.mjs +0 -2
- package/dist/log-CRbgNbDp.mjs +0 -3
- package/dist/login-C3Bahro9.mjs +0 -5
- package/dist/login-DvsRxI3E.mjs +0 -2
- package/dist/logo-matches-jeNkUxAq.mjs +0 -6
- package/dist/logos-pxN5aumY.mjs +0 -7
- package/dist/managed-defense-C_KLy4oB.mjs +0 -18
- package/dist/matches-DnjBnG-Y.mjs +0 -6
- package/dist/oauth-Cf3-g-kk.mjs +0 -4
- package/dist/output-CpiIVa7Q.mjs +0 -2
- package/dist/previews-oHUiD54J.mjs +0 -7
- package/dist/progress-B1dpmxCT.mjs +0 -2
- package/dist/prompt-Y5OBwDVE.mjs +0 -4
- package/dist/queries-CS0sYfte.mjs +0 -9
- package/dist/request-headers-Bg8_Idw3.mjs +0 -2
- package/dist/run-0EozpORq.mjs +0 -2
- package/dist/run-DKg70Sqf.mjs +0 -2
- package/dist/session-3DgztoAI.mjs +0 -2
- package/dist/shared-o8saqcSK.mjs +0 -2
- package/dist/source-AlTrHNem.mjs +0 -6
- package/dist/spawn-BZd__5sj.mjs +0 -10
- package/dist/startup-profile-DJsOtbVN.mjs +0 -2
- package/dist/state-Dvzl3aSj.mjs +0 -2
- package/dist/submit-wJYcQB8d.mjs +0 -4
- package/dist/tags-BwFKjaOr.mjs +0 -23
- package/dist/telemetry-BczXOpQn.mjs +0 -2
- package/dist/telemetry-CE15pfOU.mjs +0 -2
- package/dist/ui-CBhKUPys.mjs +0 -2
- package/dist/update-check-C3RhhXja.mjs +0 -2
- package/dist/url-info-By6VD20A.mjs +0 -4
- package/dist/version-izjB0Yrl.mjs +0 -2
- package/dist/workers-cCNBx0Bc.mjs +0 -43
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{i as e,n as t}from"./auth-
|
|
2
|
+
import{i as e,n as t}from"./auth-BlWCu-YH.mjs";import{t as n}from"./output-BJEgbI0G.mjs";import{t as r}from"./dry-run-gy0Hl9xo.mjs";import{t as i}from"./progress-BcjUdm_B.mjs";import{t as a}from"./run--9dxcon4.mjs";import"./telemetry-THz8wtoW.mjs";import{n as o,s,t as c}from"./body-parser-ChnyBsfm.mjs";import{n as l,t as u}from"./input-validation-D7z60HJH.mjs";var d={method:`GET`,path:()=>`/analytics/sql/introspection`,query:[`account_tag`,`include_columns`,`include_custom_attributes`,`include_attributes`,`include_wae`,`include_lex`,`dataset_name`],errors:{400:`BadRequestError`,403:`ForbiddenError`,422:`UnprocessableEntityError`,500:`InternalServerError`,503:`ServiceUnavailableError`}};function f(e){return e.usage("$0 sql datasets\n\nReturns the analytics dataset catalogue. By default, the response contains dataset names, titles, categories, descriptions, kinds, and hidden flags. Set `include_columns` to include each dataset's column names, descriptions, data types, and hidden flags. The caller must have Account Analytics Read permission on the account identified by `account_tag`. Dataset names, descriptions, and columns are the same for every authorized account. When `include_custom_attributes` or `include_attributes` is set, the response also includes attribute names and types discovered from that account's own data, which legitimately differs per caller. `attributes` is a replacement for `custom_attributes` that will eventually be removed; until then, set either flag independently to receive the corresponding field. `hidden` marks catalogue entries a client should de-emphasise. It has no effect on access: hidden datasets and columns are returned here and remain fully queryable. The catalogue lists the datasets this deployment is able to describe, which is not a fixed list. Some datasets are described by the service that owns them and are listed only where that service is available, so the same account may see a different catalogue in different environments, and datasets may appear or disappear without a change to this API. Clients should query the catalogue rather than hard-coding it, and should not treat a dataset's absence as proof that it does not exist. Workers Analytics Engine datasets are named by the account that writes them, so they are discovered from that account's own data rather than from a fixed list. They appear as `events.analyticsEngine.<dataset_name>` and differ per account. A dataset is listed for as long as any of its data is retained, so it does not disappear from the catalogue merely because writes have stopped. An account with a very large number of datasets may receive a truncated list. Set `include_wae=false` to omit them. Log Explorer datasets are listed only where the account has them, so they differ per account and are not part of the static catalogue. Set `include_lex=false` to omit them.").option(`account-tag`,{type:`string`,description:`Account whose available analytics datasets are returned.`,demandOption:!0}).option(`include-columns`,{type:`boolean`,description:`Include column metadata for each returned dataset.`}).option(`include-custom-attributes`,{type:`boolean`,description:"Include a capped set of custom attribute names and types observed during the preceding seven days, as `custom_attributes`. Requires a nonempty dataset_name. Deprecated in favor of `include_attributes`."}).option(`include-attributes`,{type:`boolean`,description:"Include a capped set of attribute names and types observed during the preceding seven days, as `attributes`. Requires a nonempty dataset_name. Replaces `include_custom_attributes`, which is deprecated."}).option(`include-wae`,{type:`boolean`,description:"Include Workers Analytics Engine datasets, which are discovered from the account's own data. Set to `false` to return only datasets described from the static catalogue, which avoids that lookup."}).option(`include-lex`,{type:`boolean`,description:"Include Log Explorer datasets, which are listed only where the account has them. Set to `false` to return only datasets described from the static catalogue, which avoids that lookup."}).option(`dataset-name`,{type:`string`,description:"Return only the dataset with this exact name. An empty value is treated as if the parameter had been omitted, and does not filter the catalogue. A name that matches no dataset in this deployment's catalogue is rejected with `422`; a dataset that exists but is not describable here is rejected identically, so the two cases cannot be told apart.\n\nA Workers Analytics Engine dataset is named in full, as `events.analyticsEngine.<dataset_name>`; the namespace on its own returns every such dataset the account has. A `dataset_name` the account does not have is rejected with `422` like any other unknown name."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const p={command:`datasets`,describe:`List available analytics datasets`,builder:f,handler:async e=>a({command:`sql datasets`,classification:{safeFlags:[`include-columns`,`include-custom-attributes`,`include-attributes`,`include-wae`,`include-lex`,`dry-run`]}},e,async()=>{let a={account_tag:e[`account-tag`],include_columns:e[`include-columns`],include_custom_attributes:e[`include-custom-attributes`],include_attributes:e[`include-attributes`],include_wae:e[`include-wae`],include_lex:e[`include-lex`],dataset_name:e[`dataset-name`]};if(e.dryRun){r({command:`cf sql datasets`,method:`GET`,url:`https://api.cloudflare.com/client/v4/analytics/sql/introspection`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(d,a));n(s,{successLabel:`Loaded`})})};function m(e){return e.usage("$0 sql query <query>\n\nExecutes a SQL query against the analytics datasets available to the caller. Send either raw SQL or a JSON object containing the query and optional positional or named parameters, time range, and account or zone scope. Raw SQL placeholders can also be bound with query parameters named `param_<name>`. A trailing `FORMAT JSON`, `FORMAT JSONEachRow`, `FORMAT TabSeparated`, or `FORMAT TSV` is supported for all datasets. Without FORMAT, each backend retains its existing default JSON response.").positional(`query`,{type:`string`,description:`SQL query to execute. A trailing FORMAT selects JSON, JSONEachRow, TabSeparated, or TSV output on any dataset. `,demandOption:!0}).option(`scope-account`,{type:`string`,description:`Account tag used to authorize and scope the query. Must be a 32-character lowercase hex string.
|
|
3
3
|
`}).option(`scope-zone`,{type:`string`,description:`Zone tag used to authorize and scope the query. Must be a 32-character lowercase hex string.
|
|
4
4
|
`}).option(`time-until`,{type:`string`,description:`Inclusive upper bound for the dataset's timestamp column.`}).option(`time-since`,{type:`string`,description:`Inclusive lower bound for the dataset's timestamp column.`}).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`}).conflicts(`scope-account`,[`scope-zone`]).conflicts(`scope-zone`,[`scope-account`]).check(e=>{if([`time-until`,`time-since`].some(t=>e[t]!==void 0)){let t=[`time-since`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --time_range-* flag is set`)}return!0})}const h={command:`query <query>`,describe:`Query analytics datasets`,builder:m,handler:async d=>a({command:`sql query`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){r({command:`cf sql query`,method:`POST`,url:`https://api.cloudflare.com/client/v4/analytics/sql`,pathParams:{},bodyKind:d.file===void 0?`json`:`octet-stream`,body:d.file===void 0?d.body===void 0?c({scope:{accountTag:l(d[`scope-account`],`scope-account`,`text`),zoneTag:l(d[`scope-zone`],`scope-zone`,`text`)},time_range:{end:l(d[`time-until`],`time-until`,`text`),start:l(d[`time-since`],`time-since`,`text`)},query:d.query}):o(d.body):{file:d.file}});return}let a=await t(d);if(d.file){let t=u(d.file),r=await i(`Loading`,async()=>e(a,`POST`,`/analytics/sql`,{body:t,headers:{"Content-Type":`text/plain`}}));n(r,{successLabel:`Loaded`});return}if(d.body){let t=o(d.body),r=await i(`Loading`,async()=>e(a,`POST`,`/analytics/sql`,{body:t}));n(r,{successLabel:`Loaded`});return}let f={};d[`scope-account`]!==void 0&&s(f,[`scope`,`accountTag`],l(d[`scope-account`],`scope-account`,`text`)),d[`scope-zone`]!==void 0&&s(f,[`scope`,`zoneTag`],l(d[`scope-zone`],`scope-zone`,`text`)),d[`time-until`]!==void 0&&s(f,[`time_range`,`end`],l(d[`time-until`],`time-until`,`text`)),d[`time-since`]!==void 0&&s(f,[`time_range`,`start`],l(d[`time-since`],`time-since`,`text`)),d.query!==void 0&&(f.query=d.query);let p=await i(`Loading`,async()=>e(a,`POST`,`/analytics/sql`,{body:f}));n(p,{successLabel:`Loaded`})})},g={command:`sql`,describe:`sql`,builder:e=>e.command(p).command(h).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{g as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{
|
|
2
|
+
import{r as e,t}from"./rolldown-runtime-BNtqjh-B.mjs";import{n,t as r}from"./ansi-styles-kSC6bEIq.mjs";import{t as i}from"./lazy-command-DkI_21Dt.mjs";import{n as a}from"./metadata-Df5kCWJv.mjs";import{r as o}from"./theme-BGHWSKCw.mjs";import{t as s}from"./agent-context-Dtyy4aKL.mjs";import{t as c}from"./args-BAOHroBC.mjs";import{t as l}from"./cli-exit-CstFZ1eJ.mjs";import{n as u,t as d}from"./dotenv-CmPRiXmU.mjs";import{n as f}from"./version-Dp7G_dM6.mjs";import{r as p}from"./blocks-DDNRRYxu.mjs";import{n as m,t as h}from"./session-Bafy81hj.mjs";import{n as g}from"./errors-DFSWbpd6.mjs";import{t as ee}from"./hand-written-dry-run-B82fRl2N.mjs";import{i as _}from"./local-CSH3UMpD.mjs";import{a as te}from"./project-settings-nBMEx1f-.mjs";import{a as v,n as ne,t as re}from"./lifecycle-oud60haK.mjs";import"./ui-DvC7Qa0H.mjs";import{createRequire as y}from"node:module";import{setTimeout as b}from"node:timers/promises";import{notStrictEqual as x,strictEqual as S}from"assert";import{basename as ie,dirname as C,extname as ae,join as oe,normalize as se,relative as ce,resolve as le}from"path";import{readFileSync as ue,readdirSync as de,statSync as fe,writeFile as pe}from"fs";import{format as me,inspect as w}from"util";import{fileURLToPath as he}from"url";import{readFileSync as ge,readdirSync as _e}from"node:fs";const ve={right:E,center:Se};var ye=class{constructor(e){this.width=e.width,this.wrap=e.wrap??!0,this.rows=[]}span(...e){let t=this.div(...e);t.span=!0}resetOutput(){this.rows=[]}div(...e){if(e.length===0&&this.div(``),this.wrap&&this.shouldApplyLayoutDSL(...e)&&typeof e[0]==`string`)return this.applyLayoutDSL(e[0]);let t=e.map(e=>typeof e==`string`?this.colFromString(e):e);return this.rows.push(t),t}shouldApplyLayoutDSL(...e){return e.length===1&&typeof e[0]==`string`&&/[\t\n]/.test(e[0])}applyLayoutDSL(e){let t=e.split(`
|
|
3
3
|
`).map(e=>e.split(` `)),n=0;return t.forEach(e=>{e.length>1&&D.stringWidth(e[0])>n&&(n=Math.min(Math.floor(this.width*.5),D.stringWidth(e[0])))}),t.forEach(e=>{this.div(...e.map((t,r)=>({text:t.trim(),padding:this.measurePadding(t),width:r===0&&e.length>1?n:void 0})))}),this.rows[this.rows.length-1]}colFromString(e){return{text:e,padding:this.measurePadding(e)}}measurePadding(e){let t=D.stripAnsi(e);return[0,t.match(/\s*$/)[0].length,0,t.match(/^\s*/)[0].length]}toString(){let e=[];return this.rows.forEach(t=>{this.rowToString(t,e)}),e.filter(e=>!e.hidden).map(e=>e.text).join(`
|
|
4
4
|
`)}rowToString(e,t){return this.rasterize(e).forEach((n,r)=>{let i=``;n.forEach((n,a)=>{let{width:o}=e[a],s=this.negatePadding(e[a]),c=n;if(s>D.stringWidth(n)&&(c+=` `.repeat(s-D.stringWidth(n))),e[a].align&&e[a].align!==`left`&&this.wrap){let t=ve[e[a].align];c=t(c,s),D.stringWidth(c)<s&&(c+=` `.repeat((o||0)-D.stringWidth(c)-1))}let l=e[a].padding||[0,0,0,0];l[3]&&(i+=` `.repeat(l[3])),i+=T(e[a],c,`| `),i+=c,i+=T(e[a],c,` |`),l[1]&&(i+=` `.repeat(l[1])),r===0&&t.length>0&&(i=this.renderInline(i,t[t.length-1]))}),t.push({text:i.replace(/ +$/,``),span:e.span})}),t}renderInline(e,t){let n=e.match(/^ */),r=n?n[0].length:0,i=t.text,a=D.stringWidth(i.trimRight());return t.span?this.wrap?r<a?e:(t.hidden=!0,i.trimRight()+` `.repeat(r-a)+e.trimLeft()):(t.hidden=!0,i+e):e}rasterize(e){let t=[],n=this.columnWidths(e),r;return e.forEach((e,i)=>{e.width=n[i],r=this.wrap?D.wrap(e.text,this.negatePadding(e),{hard:!0}).split(`
|
|
5
5
|
`):e.text.split(`
|
|
@@ -111,7 +111,7 @@ complete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name
|
|
|
111
111
|
`)}`:``;t.fail(i(`Missing required argument: %s`,`Missing required arguments: %s`,Object.keys(r).length,Object.keys(r).join(`, `)+n))}},a.unknownArguments=function(n,r,o,s,c=!0){let l=e.getInternalMethods().getCommandInstance().getCommands(),u=[],d=e.getInternalMethods().getContext();if(Object.keys(n).forEach(t=>{!xn.includes(t)&&!Object.prototype.hasOwnProperty.call(o,t)&&!Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),t)&&!a.isValidAndSomeAliasIsNotNew(t,r)&&u.push(t)}),c&&(d.commands.length>0||l.length>0||s)&&n._.slice(d.commands.length).forEach(e=>{l.includes(``+e)||u.push(``+e)}),c){let t=e.getDemandedCommands()._?.max||0,r=d.commands.length+t;r<n._.length&&n._.slice(r).forEach(e=>{e=String(e),!d.commands.includes(e)&&!u.includes(e)&&u.push(e)})}u.length&&t.fail(i(`Unknown argument: %s`,`Unknown arguments: %s`,u.length,u.map(e=>e.trim()?e:`"${e}"`).join(`, `)))},a.unknownCommands=function(n){let r=e.getInternalMethods().getCommandInstance().getCommands(),a=[],o=e.getInternalMethods().getContext();return(o.commands.length>0||r.length>0)&&n._.slice(o.commands.length).forEach(e=>{r.includes(``+e)||a.push(``+e)}),a.length>0&&(t.fail(i(`Unknown command: %s`,`Unknown commands: %s`,a.length,a.join(`, `))),!0)},a.isValidAndSomeAliasIsNotNew=function(t,n){if(!Object.prototype.hasOwnProperty.call(n,t))return!1;let r=e.parsed.newAliases;return[t,...n[t]].some(e=>!Object.prototype.hasOwnProperty.call(r,e)||!r[t])},a.limitedChoices=function(n){let i=e.getOptions(),a={};if(!Object.keys(i.choices).length)return;Object.keys(n).forEach(e=>{xn.indexOf(e)===-1&&Object.prototype.hasOwnProperty.call(i.choices,e)&&[].concat(n[e]).forEach(t=>{i.choices[e].indexOf(t)===-1&&t!==void 0&&(a[e]=(a[e]||[]).concat(t))})});let o=Object.keys(a);if(!o.length)return;let s=r(`Invalid values:`);o.forEach(e=>{s+=`\n ${r(`Argument: %s, Given: %s, Choices: %s`,e,t.stringifiedValues(a[e]),t.stringifiedValues(i.choices[e]))}`}),t.fail(s)};let o={};a.implies=function(t,r){P(`<string|object> [array|number|string]`,[t,r],arguments.length),typeof t==`object`?Object.keys(t).forEach(e=>{a.implies(e,t[e])}):(e.global(t),o[t]||(o[t]=[]),Array.isArray(r)?r.forEach(e=>a.implies(t,e)):(j(r,void 0,n),o[t].push(r)))},a.getImplied=function(){return o};function s(e,t){let n=Number(t);return t=isNaN(n)?t:n,typeof t==`number`?t=e._.length>=t:t.match(/^--no-.+/)?(t=t.match(/^--no-(.+)/)[1],t=!Object.prototype.hasOwnProperty.call(e,t)):t=Object.prototype.hasOwnProperty.call(e,t),t}a.implications=function(e){let n=[];if(Object.keys(o).forEach(t=>{let r=t;(o[t]||[]).forEach(t=>{let i=r,a=t;i=s(e,i),t=s(e,t),i&&!t&&n.push(` ${r} -> ${a}`)})}),n.length){let e=`${r(`Implications failed:`)}\n`;n.forEach(t=>{e+=t}),t.fail(e)}};let c={};a.conflicts=function(t,n){P(`<string|object> [array|string]`,[t,n],arguments.length),typeof t==`object`?Object.keys(t).forEach(e=>{a.conflicts(e,t[e])}):(e.global(t),c[t]||(c[t]=[]),Array.isArray(n)?n.forEach(e=>a.conflicts(t,e)):c[t].push(n))},a.getConflicting=()=>c,a.conflicting=function(i){Object.keys(i).forEach(e=>{c[e]&&c[e].forEach(n=>{n&&i[e]!==void 0&&i[n]!==void 0&&t.fail(r(`Arguments %s and %s are mutually exclusive`,e,n))})}),e.getInternalMethods().getParserConfiguration()[`strip-dashed`]&&Object.keys(c).forEach(e=>{c[e].forEach(a=>{a&&i[n.Parser.camelCase(e)]!==void 0&&i[n.Parser.camelCase(a)]!==void 0&&t.fail(r(`Arguments %s and %s are mutually exclusive`,e,a))})})},a.recommendCommands=function(e,n){n=n.sort((e,t)=>t.length-e.length);let i=null,a=1/0;for(let t=0,r;(r=n[t])!==void 0;t++){let t=bn(e,r);t<=3&&t<a&&(a=t,i=r)}i&&t.fail(r(`Did you mean %s?`,i))},a.reset=function(e){return o=cn(o,t=>!e[t]),c=cn(c,t=>!e[t]),a};let l=[];return a.freeze=function(){l.push({implied:o,conflicting:c})},a.unfreeze=function(){let e=l.pop();j(e,void 0,n),{implied:o,conflicting:c}=e},a}let Cn=[],wn;function Tn(e,t,n,r){wn=r;let i={};if(Object.prototype.hasOwnProperty.call(e,`extends`)){if(typeof e.extends!=`string`)return i;let a=/\.json|\..*rc$/.test(e.extends),o=null;if(a)o=Dn(t,e.extends);else try{o=import.meta.resolve(e.extends)}catch{return e}En(o),Cn.push(o),i=a?JSON.parse(wn.readFileSync(o,`utf8`)):r.require(e.extends),delete e.extends,i=Tn(i,wn.path.dirname(o),n,wn)}return Cn=[],n?On(i,e):Object.assign({},i,e)}function En(e){if(Cn.indexOf(e)>-1)throw new N(`Circular extended configurations: '${e}'.`)}function Dn(e,t){return wn.path.resolve(e,t)}function On(e,t){let n={};function r(e){return e&&typeof e==`object`&&!Array.isArray(e)}Object.assign(n,e);for(let i of Object.keys(t))i!==`__proto__`&&(n[i]=r(t[i])&&r(n[i])?On(e[i],t[i]):t[i]);return n}var F=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},I=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},L,kn,An,R,z,jn,B,Mn,Nn,V,Pn,H,U,W,G,Fn,In,K,q,Ln,Rn,J,zn,Bn,Vn,Y,Hn,X,Un,Wn,Gn,Z,Kn,Q,$;function qn(e){return(t=[],n=e.process.cwd(),r)=>{let i=new Ar(t,n,r,e);return Object.defineProperty(i,"argv",{get:()=>i.parse(),enumerable:!0}),i.help(),i.version(),i}}const Jn=Symbol(`copyDoubleDash`),Yn=Symbol(`copyDoubleDash`),Xn=Symbol(`deleteFromParserHintObject`),Zn=Symbol(`emitWarning`),Qn=Symbol(`freeze`),$n=Symbol(`getDollarZero`),er=Symbol(`getParserConfiguration`),tr=Symbol(`getUsageConfiguration`),nr=Symbol(`guessLocale`),rr=Symbol(`guessVersion`),ir=Symbol(`parsePositionalNumbers`),ar=Symbol(`pkgUp`),or=Symbol(`populateParserHintArray`),sr=Symbol(`populateParserHintSingleValueDictionary`),cr=Symbol(`populateParserHintArrayDictionary`),lr=Symbol(`populateParserHintDictionary`),ur=Symbol(`sanitizeKey`),dr=Symbol(`setKey`),fr=Symbol(`unfreeze`),pr=Symbol(`validateAsync`),mr=Symbol(`getCommandInstance`),hr=Symbol(`getContext`),gr=Symbol(`getHasOutput`),_r=Symbol(`getLoggerInstance`),vr=Symbol(`getParseContext`),yr=Symbol(`getUsageInstance`),br=Symbol(`getValidationInstance`),xr=Symbol(`hasParseCallback`),Sr=Symbol(`isGlobalContext`),Cr=Symbol(`postProcess`),wr=Symbol(`rebase`),Tr=Symbol(`reset`),Er=Symbol(`runYargsParserAndExecuteCommands`),Dr=Symbol(`runValidation`),Or=Symbol(`setHasOutput`),kr=Symbol(`kTrackManuallySetKeys`);var Ar=class{constructor(e=[],t,n,r){this.customScriptName=!1,this.parsed=!1,L.set(this,void 0),kn.set(this,void 0),An.set(this,{commands:[],fullCommands:[]}),R.set(this,null),z.set(this,null),jn.set(this,`show-hidden`),B.set(this,null),Mn.set(this,!0),Nn.set(this,{}),V.set(this,!0),Pn.set(this,[]),H.set(this,void 0),U.set(this,{}),W.set(this,!1),G.set(this,null),Fn.set(this,!0),In.set(this,void 0),K.set(this,``),q.set(this,void 0),Ln.set(this,void 0),Rn.set(this,{}),J.set(this,null),zn.set(this,null),Bn.set(this,{}),Vn.set(this,{}),Y.set(this,void 0),Hn.set(this,!1),X.set(this,void 0),Un.set(this,!1),Wn.set(this,!1),Gn.set(this,!1),Z.set(this,void 0),Kn.set(this,{}),Q.set(this,null),$.set(this,void 0),F(this,X,r,`f`),F(this,Y,e,`f`),F(this,kn,t,`f`),F(this,Ln,n,`f`),F(this,H,new Jt(this),`f`),this.$0=this[$n](),this[Tr](),F(this,L,I(this,L,`f`),`f`),F(this,Z,I(this,Z,`f`),`f`),F(this,$,I(this,$,`f`),`f`),F(this,q,I(this,q,`f`),`f`),I(this,q,`f`).showHiddenOpt=I(this,jn,`f`),F(this,In,this[Yn](),`f`),I(this,X,`f`).y18n.setLocale(`en_US`)}addHelpOpt(e,t){return P(`[string|boolean] [string]`,[e,t],arguments.length),I(this,G,`f`)&&(this[Xn](I(this,G,`f`)),F(this,G,null,`f`)),e===!1&&t===void 0||(F(this,G,typeof e==`string`?e:`help`,`f`),this.boolean(I(this,G,`f`)),this.describe(I(this,G,`f`),t||I(this,Z,`f`).deferY18nLookup(`Show help`))),this}help(e,t){return this.addHelpOpt(e,t)}addShowHiddenOpt(e,t){if(P(`[string|boolean] [string]`,[e,t],arguments.length),e===!1&&t===void 0)return this;let n=typeof e==`string`?e:I(this,jn,`f`);return this.boolean(n),this.describe(n,t||I(this,Z,`f`).deferY18nLookup(`Show hidden options`)),I(this,q,`f`).showHiddenOpt=n,this}showHidden(e,t){return this.addShowHiddenOpt(e,t)}alias(e,t){return P(`<object|string|array> [string|array]`,[e,t],arguments.length),this[cr](this.alias.bind(this),`alias`,e,t),this}array(e){return P(`<array|string>`,[e],arguments.length),this[or](`array`,e),this[kr](e),this}boolean(e){return P(`<array|string>`,[e],arguments.length),this[or](`boolean`,e),this[kr](e),this}check(e,t){return P(`<function> [boolean]`,[e,t],arguments.length),this.middleware((t,n)=>Zt(()=>e(t,n.getOptions()),n=>(n?(typeof n==`string`||n instanceof Error)&&I(this,Z,`f`).fail(n.toString(),n):I(this,Z,`f`).fail(I(this,X,`f`).y18n.__(`Argument check failed: %s`,e.toString())),t),e=>(I(this,Z,`f`).fail(e.message?e.message:e.toString(),e),t)),!1,t),this}choices(e,t){return P(`<object|string|array> [string|array]`,[e,t],arguments.length),this[cr](this.choices.bind(this),`choices`,e,t),this}coerce(e,t){if(P(`<object|string|array> [function]`,[e,t],arguments.length),Array.isArray(e)){if(!t)throw new N(`coerce callback must be provided`);for(let n of e)this.coerce(n,t);return this}if(typeof e==`object`){for(let t of Object.keys(e))this.coerce(t,e[t]);return this}if(!t)throw new N(`coerce callback must be provided`);let n=e;return I(this,q,`f`).key[n]=!0,I(this,H,`f`).addCoerceMiddleware((e,r)=>{let i=r.getAliases()[n]??[],a=[n,...i].filter(t=>Object.prototype.hasOwnProperty.call(e,t));return a.length===0?e:Zt(()=>t(e[a[0]]),t=>(a.forEach(n=>{e[n]=t}),e),e=>{throw new N(e.message)})},n),this}conflicts(e,t){return P(`<string|object> [string|array]`,[e,t],arguments.length),I(this,$,`f`).conflicts(e,t),this}config(e=`config`,t,n){return P(`[object|string] [string|function] [function]`,[e,t,n],arguments.length),typeof e==`object`&&!Array.isArray(e)?(e=Tn(e,I(this,kn,`f`),this[er]()[`deep-merge-config`]||!1,I(this,X,`f`)),I(this,q,`f`).configObjects=(I(this,q,`f`).configObjects||[]).concat(e),this):(typeof t==`function`&&(n=t,t=void 0),this.describe(e,t||I(this,Z,`f`).deferY18nLookup(`Path to JSON config file`)),(Array.isArray(e)?e:[e]).forEach(e=>{I(this,q,`f`).config[e]=n||!0}),this)}completion(e,t,n){return P(`[string] [string|boolean|function] [function]`,[e,t,n],arguments.length),typeof t==`function`&&(n=t,t=void 0),F(this,z,e||I(this,z,`f`)||`completion`,`f`),!t&&t!==!1&&(t=`generate completion script`),this.command(I(this,z,`f`),t),n&&I(this,R,`f`).registerFunction(n),this}command(e,t,n,r,i,a){return P(`<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]`,[e,t,n,r,i,a],arguments.length),I(this,L,`f`).addHandler(e,t,n,r,i,a),this}commands(e,t,n,r,i,a){return this.command(e,t,n,r,i,a)}commandDir(e,t){P(`<string> [object]`,[e,t],arguments.length);let n=I(this,Ln,`f`)||I(this,X,`f`).require;return I(this,L,`f`).addDirectory(e,n,I(this,X,`f`).getCallerFile(),t),this}count(e){return P(`<array|string>`,[e],arguments.length),this[or](`count`,e),this[kr](e),this}default(e,t,n){return P(`<object|string|array> [*] [string]`,[e,t,n],arguments.length),n&&(Ht(e,I(this,X,`f`)),I(this,q,`f`).defaultDescription[e]=n),typeof t==`function`&&(Ht(e,I(this,X,`f`)),I(this,q,`f`).defaultDescription[e]||(I(this,q,`f`).defaultDescription[e]=I(this,Z,`f`).functionDescription(t)),t=t.call()),this[sr](this.default.bind(this),`default`,e,t),this}defaults(e,t,n){return this.default(e,t,n)}demandCommand(e=1,t,n,r){return P(`[number] [number|string] [string|null|undefined] [string|null|undefined]`,[e,t,n,r],arguments.length),typeof t!=`number`&&(n=t,t=1/0),this.global(`_`,!1),I(this,q,`f`).demandedCommands._={min:e,max:t,minMsg:n,maxMsg:r},this}demand(e,t,n){return Array.isArray(t)?(t.forEach(e=>{j(n,!0,I(this,X,`f`)),this.demandOption(e,n)}),t=1/0):typeof t!=`number`&&(n=t,t=1/0),typeof e==`number`?(j(n,!0,I(this,X,`f`)),this.demandCommand(e,t,n,n)):Array.isArray(e)?e.forEach(e=>{j(n,!0,I(this,X,`f`)),this.demandOption(e,n)}):typeof n==`string`?this.demandOption(e,n):(n===!0||n===void 0)&&this.demandOption(e),this}demandOption(e,t){return P(`<object|string|array> [string]`,[e,t],arguments.length),this[sr](this.demandOption.bind(this),`demandedOptions`,e,t),this}deprecateOption(e,t){return P(`<string> [string|boolean]`,[e,t],arguments.length),I(this,q,`f`).deprecatedOptions[e]=t,this}describe(e,t){return P(`<object|string|array> [string]`,[e,t],arguments.length),this[dr](e,!0),I(this,Z,`f`).describe(e,t),this}detectLocale(e){return P(`<boolean>`,[e],arguments.length),F(this,Mn,e,`f`),this}env(e){return P(`[string|boolean]`,[e],arguments.length),e===!1?delete I(this,q,`f`).envPrefix:I(this,q,`f`).envPrefix=e||``,this}epilogue(e){return P(`<string>`,[e],arguments.length),I(this,Z,`f`).epilog(e),this}epilog(e){return this.epilogue(e)}example(e,t){return P(`<string|array> [string]`,[e,t],arguments.length),Array.isArray(e)?e.forEach(e=>this.example(...e)):I(this,Z,`f`).example(e,t),this}exit(e,t){F(this,W,!0,`f`),F(this,B,t,`f`),I(this,V,`f`)&&I(this,X,`f`).process.exit(e)}exitProcess(e=!0){return P(`[boolean]`,[e],arguments.length),F(this,V,e,`f`),this}fail(e){if(P(`<function|boolean>`,[e],arguments.length),typeof e==`boolean`&&e!==!1)throw new N(`Invalid first argument. Expected function or boolean 'false'`);return I(this,Z,`f`).failFn(e),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(e,t){return P(`<array> [function]`,[e,t],arguments.length),t?I(this,R,`f`).getCompletion(e,t):new Promise((t,n)=>{I(this,R,`f`).getCompletion(e,(e,r)=>{e?n(e):t(r)})})}getDemandedOptions(){return P([],0),I(this,q,`f`).demandedOptions}getDemandedCommands(){return P([],0),I(this,q,`f`).demandedCommands}getDeprecatedOptions(){return P([],0),I(this,q,`f`).deprecatedOptions}getDetectLocale(){return I(this,Mn,`f`)}getExitProcess(){return I(this,V,`f`)}getGroups(){return Object.assign({},I(this,U,`f`),I(this,Vn,`f`))}getHelp(){if(F(this,W,!0,`f`),!I(this,Z,`f`).hasCachedHelpMessage()){if(!this.parsed){let e=this[Er](I(this,Y,`f`),void 0,void 0,0,!0);if(M(e))return e.then(()=>I(this,Z,`f`).help())}let e=I(this,L,`f`).runDefaultBuilderOn(this);if(M(e))return e.then(()=>I(this,Z,`f`).help())}return Promise.resolve(I(this,Z,`f`).help())}getOptions(){return I(this,q,`f`)}getStrict(){return I(this,Un,`f`)}getStrictCommands(){return I(this,Wn,`f`)}getStrictOptions(){return I(this,Gn,`f`)}global(e,t){return P(`<string|array> [boolean]`,[e,t],arguments.length),e=[].concat(e),t===!1?e.forEach(e=>{I(this,q,`f`).local.includes(e)||I(this,q,`f`).local.push(e)}):I(this,q,`f`).local=I(this,q,`f`).local.filter(t=>e.indexOf(t)===-1),this}group(e,t){P(`<string|array> <string>`,[e,t],arguments.length);let n=I(this,Vn,`f`)[t]||I(this,U,`f`)[t];I(this,Vn,`f`)[t]&&delete I(this,Vn,`f`)[t];let r={};return I(this,U,`f`)[t]=(n||[]).concat(e).filter(e=>r[e]?!1:r[e]=!0),this}hide(e){return P(`<string>`,[e],arguments.length),I(this,q,`f`).hiddenOptions.push(e),this}implies(e,t){return P(`<string|object> [number|string|array]`,[e,t],arguments.length),I(this,$,`f`).implies(e,t),this}locale(e){return P(`[string]`,[e],arguments.length),e===void 0?(this[nr](),I(this,X,`f`).y18n.getLocale()):(F(this,Mn,!1,`f`),I(this,X,`f`).y18n.setLocale(e),this)}middleware(e,t,n){return I(this,H,`f`).addMiddleware(e,!!t,n)}nargs(e,t){return P(`<string|object|array> [number]`,[e,t],arguments.length),this[sr](this.nargs.bind(this),`narg`,e,t),this}normalize(e){return P(`<array|string>`,[e],arguments.length),this[or](`normalize`,e),this}number(e){return P(`<array|string>`,[e],arguments.length),this[or](`number`,e),this[kr](e),this}option(e,t){if(P(`<string|object> [object]`,[e,t],arguments.length),typeof e==`object`)Object.keys(e).forEach(t=>{this.options(t,e[t])});else{typeof t!=`object`&&(t={}),this[kr](e),I(this,Q,`f`)&&(e===`version`||t?.alias===`version`)&&this[Zn]([`"version" is a reserved word.`,`Please do one of the following:`,'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)",`- Use a different option key`,`https://yargs.js.org/docs/#api-reference-version`].join(`
|
|
112
112
|
`),void 0,`versionWarning`),I(this,q,`f`).key[e]=!0,t.alias&&this.alias(e,t.alias);let n=t.deprecate||t.deprecated;n&&this.deprecateOption(e,n);let r=t.demand||t.required||t.require;r&&this.demand(e,r),t.demandOption&&this.demandOption(e,typeof t.demandOption==`string`?t.demandOption:void 0),t.conflicts&&this.conflicts(e,t.conflicts),`default`in t&&this.default(e,t.default),t.implies!==void 0&&this.implies(e,t.implies),t.nargs!==void 0&&this.nargs(e,t.nargs),t.config&&this.config(e,t.configParser),t.normalize&&this.normalize(e),t.choices&&this.choices(e,t.choices),t.coerce&&this.coerce(e,t.coerce),t.group&&this.group(e,t.group),(t.boolean||t.type===`boolean`)&&(this.boolean(e),t.alias&&this.boolean(t.alias)),(t.array||t.type===`array`)&&(this.array(e),t.alias&&this.array(t.alias)),(t.number||t.type===`number`)&&(this.number(e),t.alias&&this.number(t.alias)),(t.string||t.type===`string`)&&(this.string(e),t.alias&&this.string(t.alias)),(t.count||t.type===`count`)&&this.count(e),typeof t.global==`boolean`&&this.global(e,t.global),t.defaultDescription&&(I(this,q,`f`).defaultDescription[e]=t.defaultDescription),t.skipValidation&&this.skipValidation(e);let i=t.describe||t.description||t.desc,a=I(this,Z,`f`).getDescriptions();(!Object.prototype.hasOwnProperty.call(a,e)||typeof i==`string`)&&this.describe(e,i),t.hidden&&this.hide(e),t.requiresArg&&this.requiresArg(e)}return this}options(e,t){return this.option(e,t)}parse(e,t,n){P(`[string|array] [function|boolean|object] [function]`,[e,t,n],arguments.length),this[Qn](),e===void 0&&(e=I(this,Y,`f`)),typeof t==`object`&&(F(this,zn,t,`f`),t=n),typeof t==`function`&&(F(this,J,t,`f`),t=!1),t||F(this,Y,e,`f`),I(this,J,`f`)&&F(this,V,!1,`f`);let r=this[Er](e,!!t),i=this.parsed;return I(this,R,`f`).setParsed(this.parsed),M(r)?r.then(e=>(I(this,J,`f`)&&I(this,J,`f`).call(this,I(this,B,`f`),e,I(this,K,`f`)),e)).catch(e=>{throw I(this,J,`f`)&&I(this,J,`f`)(e,this.parsed.argv,I(this,K,`f`)),e}).finally(()=>{this[fr](),this.parsed=i}):(I(this,J,`f`)&&I(this,J,`f`).call(this,I(this,B,`f`),r,I(this,K,`f`)),this[fr](),this.parsed=i,r)}parseAsync(e,t,n){let r=this.parse(e,t,n);return M(r)?r:Promise.resolve(r)}parseSync(e,t,n){let r=this.parse(e,t,n);if(M(r))throw new N(`.parseSync() must not be used with asynchronous builders, handlers, or middleware`);return r}parserConfiguration(e){return P(`<object>`,[e],arguments.length),F(this,Rn,e,`f`),this}pkgConf(e,t){P(`<string> [string]`,[e,t],arguments.length);let n=null,r=this[ar](t||I(this,kn,`f`));return r[e]&&typeof r[e]==`object`&&(n=Tn(r[e],t||I(this,kn,`f`),this[er]()[`deep-merge-config`]||!1,I(this,X,`f`)),I(this,q,`f`).configObjects=(I(this,q,`f`).configObjects||[]).concat(n)),this}positional(e,t){P(`<string> <object>`,[e,t],arguments.length);let n=[`default`,`defaultDescription`,`implies`,`normalize`,`choices`,`conflicts`,`coerce`,`type`,`describe`,`desc`,`description`,`alias`];t=cn(t,(e,t)=>e===`type`&&![`string`,`number`,`boolean`].includes(t)?!1:n.includes(e));let r=I(this,An,`f`).fullCommands[I(this,An,`f`).fullCommands.length-1],i=r?I(this,L,`f`).cmdToParseOptions(r):{array:[],alias:{},default:{},demand:{}};return Ut(i).forEach(n=>{let r=i[n];Array.isArray(r)?r.indexOf(e)!==-1&&(t[n]=!0):r[e]&&!(n in t)&&(t[n]=r[e])}),this.group(e,I(this,Z,`f`).getPositionalGroupName()),this.option(e,t)}recommendCommands(e=!0){return P(`[boolean]`,[e],arguments.length),F(this,Hn,e,`f`),this}required(e,t,n){return this.demand(e,t,n)}require(e,t,n){return this.demand(e,t,n)}requiresArg(e){return P(`<array|string|object> [number]`,[e],arguments.length),typeof e==`string`&&I(this,q,`f`).narg[e]||this[sr](this.requiresArg.bind(this),`narg`,e,NaN),this}showCompletionScript(e,t){return P(`[string] [string]`,[e,t],arguments.length),e||=this.$0,I(this,In,`f`).log(I(this,R,`f`).generateCompletionScript(e,t||I(this,z,`f`)||`completion`)),this}showHelp(e){if(P(`[string|function]`,[e],arguments.length),F(this,W,!0,`f`),!I(this,Z,`f`).hasCachedHelpMessage()){if(!this.parsed){let t=this[Er](I(this,Y,`f`),void 0,void 0,0,!0);if(M(t))return t.then(()=>{I(this,Z,`f`).showHelp(e)}),this}let t=I(this,L,`f`).runDefaultBuilderOn(this);if(M(t))return t.then(()=>{I(this,Z,`f`).showHelp(e)}),this}return I(this,Z,`f`).showHelp(e),this}scriptName(e){return this.customScriptName=!0,this.$0=e,this}showHelpOnFail(e,t){return P(`[boolean|string] [string]`,[e,t],arguments.length),I(this,Z,`f`).showHelpOnFail(e,t),this}showVersion(e){return P(`[string|function]`,[e],arguments.length),I(this,Z,`f`).showVersion(e),this}skipValidation(e){return P(`<array|string>`,[e],arguments.length),this[or](`skipValidation`,e),this}strict(e){return P(`[boolean]`,[e],arguments.length),F(this,Un,e!==!1,`f`),this}strictCommands(e){return P(`[boolean]`,[e],arguments.length),F(this,Wn,e!==!1,`f`),this}strictOptions(e){return P(`[boolean]`,[e],arguments.length),F(this,Gn,e!==!1,`f`),this}string(e){return P(`<array|string>`,[e],arguments.length),this[or](`string`,e),this[kr](e),this}terminalWidth(){return P([],0),I(this,X,`f`).process.stdColumns}updateLocale(e){return this.updateStrings(e)}updateStrings(e){return P(`<object>`,[e],arguments.length),F(this,Mn,!1,`f`),I(this,X,`f`).y18n.updateLocale(e),this}usage(e,t,n,r){if(P(`<string|null|undefined> [string|boolean] [function|object] [function]`,[e,t,n,r],arguments.length),t!==void 0){if(j(e,null,I(this,X,`f`)),(e||``).match(/^\$0( |$)/))return this.command(e,t,n,r);throw new N(`.usage() description must start with $0 if being used as alias for .command()`)}return I(this,Z,`f`).usage(e),this}usageConfiguration(e){return P(`<object>`,[e],arguments.length),F(this,Kn,e,`f`),this}version(e,t,n){let r=`version`;if(P(`[boolean|string] [string] [string]`,[e,t,n],arguments.length),I(this,Q,`f`)&&(this[Xn](I(this,Q,`f`)),I(this,Z,`f`).version(void 0),F(this,Q,null,`f`)),arguments.length===0)n=this[rr](),e=r;else if(arguments.length===1){if(e===!1)return this;n=e,e=r}else arguments.length===2&&(n=t,t=void 0);return F(this,Q,typeof e==`string`?e:r,`f`),t||=I(this,Z,`f`).deferY18nLookup(`Show version number`),I(this,Z,`f`).version(n||void 0),this.boolean(I(this,Q,`f`)),this.describe(I(this,Q,`f`),t),this}wrap(e){return P(`<number|null|undefined>`,[e],arguments.length),I(this,Z,`f`).wrap(e),this}[(L=/* @__PURE__ */ new WeakMap,kn=/* @__PURE__ */ new WeakMap,An=/* @__PURE__ */ new WeakMap,R=/* @__PURE__ */ new WeakMap,z=/* @__PURE__ */ new WeakMap,jn=/* @__PURE__ */ new WeakMap,B=/* @__PURE__ */ new WeakMap,Mn=/* @__PURE__ */ new WeakMap,Nn=/* @__PURE__ */ new WeakMap,V=/* @__PURE__ */ new WeakMap,Pn=/* @__PURE__ */ new WeakMap,H=/* @__PURE__ */ new WeakMap,U=/* @__PURE__ */ new WeakMap,W=/* @__PURE__ */ new WeakMap,G=/* @__PURE__ */ new WeakMap,Fn=/* @__PURE__ */ new WeakMap,In=/* @__PURE__ */ new WeakMap,K=/* @__PURE__ */ new WeakMap,q=/* @__PURE__ */ new WeakMap,Ln=/* @__PURE__ */ new WeakMap,Rn=/* @__PURE__ */ new WeakMap,J=/* @__PURE__ */ new WeakMap,zn=/* @__PURE__ */ new WeakMap,Bn=/* @__PURE__ */ new WeakMap,Vn=/* @__PURE__ */ new WeakMap,Y=/* @__PURE__ */ new WeakMap,Hn=/* @__PURE__ */ new WeakMap,X=/* @__PURE__ */ new WeakMap,Un=/* @__PURE__ */ new WeakMap,Wn=/* @__PURE__ */ new WeakMap,Gn=/* @__PURE__ */ new WeakMap,Z=/* @__PURE__ */ new WeakMap,Kn=/* @__PURE__ */ new WeakMap,Q=/* @__PURE__ */ new WeakMap,$=/* @__PURE__ */ new WeakMap,Jn)](e){if(!e._||!e[`--`])return e;e._.push.apply(e._,e[`--`]);try{delete e[`--`]}catch{}return e}[Yn](){return{log:(...e)=>{this[xr]()||console.log(...e),F(this,W,!0,`f`),I(this,K,`f`).length&&F(this,K,I(this,K,`f`)+`
|
|
113
113
|
`,`f`),F(this,K,I(this,K,`f`)+e.join(` `),`f`)},error:(...e)=>{this[xr]()||console.error(...e),F(this,W,!0,`f`),I(this,K,`f`).length&&F(this,K,I(this,K,`f`)+`
|
|
114
|
-
`,`f`),F(this,K,I(this,K,`f`)+e.join(` `),`f`)}}}[Xn](e){Ut(I(this,q,`f`)).forEach(t=>{if((e=>e===`configObjects`)(t))return;let n=I(this,q,`f`)[t];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n==`object`&&delete n[e]}),delete I(this,Z,`f`).getDescriptions()[e]}[Zn](e,t,n){I(this,Nn,`f`)[n]||(I(this,X,`f`).process.emitWarning(e,t),I(this,Nn,`f`)[n]=!0)}[Qn](){I(this,Pn,`f`).push({options:I(this,q,`f`),configObjects:I(this,q,`f`).configObjects.slice(0),exitProcess:I(this,V,`f`),groups:I(this,U,`f`),strict:I(this,Un,`f`),strictCommands:I(this,Wn,`f`),strictOptions:I(this,Gn,`f`),completionCommand:I(this,z,`f`),output:I(this,K,`f`),exitError:I(this,B,`f`),hasOutput:I(this,W,`f`),parsed:this.parsed,parseFn:I(this,J,`f`),parseContext:I(this,zn,`f`)}),I(this,Z,`f`).freeze(),I(this,$,`f`).freeze(),I(this,L,`f`).freeze(),I(this,H,`f`).freeze()}[$n](){let e=``,t;return t=/\b(node|iojs|electron|bun)(\.exe)?$/.test(I(this,X,`f`).process.argv()[0])?I(this,X,`f`).process.argv().slice(1,2):I(this,X,`f`).process.argv().slice(0,1),e=t.map(e=>{let t=this[wr](I(this,kn,`f`),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e}).join(` `).trim(),I(this,X,`f`).getEnv(`_`)&&I(this,X,`f`).getProcessArgvBin()===I(this,X,`f`).getEnv(`_`)&&(e=I(this,X,`f`).getEnv(`_`).replace(`${I(this,X,`f`).path.dirname(I(this,X,`f`).process.execPath())}/`,``)),e}[er](){return I(this,Rn,`f`)}[tr](){return I(this,Kn,`f`)}[nr](){if(!I(this,Mn,`f`))return;let e=I(this,X,`f`).getEnv(`LC_ALL`)||I(this,X,`f`).getEnv(`LC_MESSAGES`)||I(this,X,`f`).getEnv(`LANG`)||I(this,X,`f`).getEnv(`LANGUAGE`)||`en_US`;this.locale(e.replace(/[.:].*/,``))}[rr](){return this[ar]().version||`unknown`}[ir](e){let t=e[`--`]?e[`--`]:e._;for(let e=0,n;(n=t[e])!==void 0;e++)I(this,X,`f`).Parser.looksLikeNumber(n)&&Number.isSafeInteger(Math.floor(parseFloat(`${n}`)))&&(t[e]=Number(n));return e}[ar](e){let t=e||`*`;if(I(this,Bn,`f`)[t])return I(this,Bn,`f`)[t];let n={};try{let t=e||I(this,X,`f`).mainFilename;I(this,X,`f`).path.extname(t)&&(t=I(this,X,`f`).path.dirname(t));let r=I(this,X,`f`).findUp(t,(e,t)=>{if(t.includes(`package.json`))return`package.json`});j(r,void 0,I(this,X,`f`)),n=JSON.parse(I(this,X,`f`).readFileSync(r,`utf8`))}catch{}return I(this,Bn,`f`)[t]=n||{},I(this,Bn,`f`)[t]}[or](e,t){t=[].concat(t),t.forEach(t=>{t=this[ur](t),I(this,q,`f`)[e].push(t)})}[sr](e,t,n,r){this[lr](e,t,n,r,(e,t,n)=>{I(this,q,`f`)[e][t]=n})}[cr](e,t,n,r){this[lr](e,t,n,r,(e,t,n)=>{I(this,q,`f`)[e][t]=(I(this,q,`f`)[e][t]||[]).concat(n)})}[lr](e,t,n,r,i){if(Array.isArray(n))n.forEach(t=>{e(t,r)});else if((e=>typeof e==`object`)(n))for(let t of Ut(n))e(t,n[t]);else i(t,this[ur](n),r)}[ur](e){return e===`__proto__`?`___proto___`:e}[dr](e,t){return this[sr](this[dr].bind(this),`key`,e,t),this}[fr](){var e,t,n,r,i,a,o,s,c,l,u,d;let f=I(this,Pn,`f`).pop();j(f,void 0,I(this,X,`f`));let p;e=this,t=this,n=this,r=this,i=this,a=this,o=this,s=this,c=this,l=this,u=this,d=this,{options:{set value(t){F(e,q,t,`f`)}}.value,configObjects:p,exitProcess:{set value(e){F(t,V,e,`f`)}}.value,groups:{set value(e){F(n,U,e,`f`)}}.value,output:{set value(e){F(r,K,e,`f`)}}.value,exitError:{set value(e){F(i,B,e,`f`)}}.value,hasOutput:{set value(e){F(a,W,e,`f`)}}.value,parsed:this.parsed,strict:{set value(e){F(o,Un,e,`f`)}}.value,strictCommands:{set value(e){F(s,Wn,e,`f`)}}.value,strictOptions:{set value(e){F(c,Gn,e,`f`)}}.value,completionCommand:{set value(e){F(l,z,e,`f`)}}.value,parseFn:{set value(e){F(u,J,e,`f`)}}.value,parseContext:{set value(e){F(d,zn,e,`f`)}}.value}=f,I(this,q,`f`).configObjects=p,I(this,Z,`f`).unfreeze(),I(this,$,`f`).unfreeze(),I(this,L,`f`).unfreeze(),I(this,H,`f`).unfreeze()}[pr](e,t){return Zt(t,t=>(e(t),t))}getInternalMethods(){return{getCommandInstance:this[mr].bind(this),getContext:this[hr].bind(this),getHasOutput:this[gr].bind(this),getLoggerInstance:this[_r].bind(this),getParseContext:this[vr].bind(this),getParserConfiguration:this[er].bind(this),getUsageConfiguration:this[tr].bind(this),getUsageInstance:this[yr].bind(this),getValidationInstance:this[br].bind(this),hasParseCallback:this[xr].bind(this),isGlobalContext:this[Sr].bind(this),postProcess:this[Cr].bind(this),reset:this[Tr].bind(this),runValidation:this[Dr].bind(this),runYargsParserAndExecuteCommands:this[Er].bind(this),setHasOutput:this[Or].bind(this)}}[mr](){return I(this,L,`f`)}[hr](){return I(this,An,`f`)}[gr](){return I(this,W,`f`)}[_r](){return I(this,In,`f`)}[vr](){return I(this,zn,`f`)||{}}[yr](){return I(this,Z,`f`)}[br](){return I(this,$,`f`)}[xr](){return!!I(this,J,`f`)}[Sr](){return I(this,Fn,`f`)}[Cr](e,t,n,r){return n||M(e)||(t||(e=this[Jn](e)),(this[er]()[`parse-positional-numbers`]||this[er]()[`parse-positional-numbers`]===void 0)&&(e=this[ir](e)),r&&(e=Xt(e,this,I(this,H,`f`).getMiddleware(),!1))),e}[Tr](e={}){F(this,q,I(this,q,`f`)||{},`f`);let t={};t.local=I(this,q,`f`).local||[],t.configObjects=I(this,q,`f`).configObjects||[];let n={};return t.local.forEach(t=>{n[t]=!0,(e[t]||[]).forEach(e=>{n[e]=!0})}),Object.assign(I(this,Vn,`f`),Object.keys(I(this,U,`f`)).reduce((e,t)=>{let r=I(this,U,`f`)[t].filter(e=>!(e in n));return r.length>0&&(e[t]=r),e},{})),F(this,U,{},`f`),[`array`,`boolean`,`string`,`skipValidation`,`count`,`normalize`,`number`,`hiddenOptions`].forEach(e=>{t[e]=(I(this,q,`f`)[e]||[]).filter(e=>!n[e])}),[`narg`,`key`,`alias`,`default`,`defaultDescription`,`config`,`choices`,`demandedOptions`,`demandedCommands`,`deprecatedOptions`].forEach(e=>{t[e]=cn(I(this,q,`f`)[e],e=>!n[e])}),t.envPrefix=I(this,q,`f`).envPrefix,F(this,q,t,`f`),F(this,Z,I(this,Z,`f`)?I(this,Z,`f`).reset(n):dn(this,I(this,X,`f`)),`f`),F(this,$,I(this,$,`f`)?I(this,$,`f`).reset(n):Sn(this,I(this,Z,`f`),I(this,X,`f`)),`f`),F(this,L,I(this,L,`f`)?I(this,L,`f`).reset():tn(I(this,Z,`f`),I(this,$,`f`),I(this,H,`f`),I(this,X,`f`)),`f`),I(this,R,`f`)||F(this,R,_n(this,I(this,Z,`f`),I(this,L,`f`),I(this,X,`f`)),`f`),I(this,H,`f`).reset(),F(this,z,null,`f`),F(this,K,``,`f`),F(this,B,null,`f`),F(this,W,!1,`f`),this.parsed=!1,this}[wr](e,t){return I(this,X,`f`).path.relative(e,t)}[Er](e,t,n,r=0,i=!1){let a=!!n||i;e||=I(this,Y,`f`),I(this,q,`f`).__=I(this,X,`f`).y18n.__,I(this,q,`f`).configuration=this[er]();let o=!!I(this,q,`f`).configuration[`populate--`],s=Object.assign({},I(this,q,`f`).configuration,{"populate--":!0}),c=I(this,X,`f`).Parser.detailed(e,Object.assign({},I(this,q,`f`),{configuration:{"parse-positional-numbers":!1,...s}})),l=Object.assign(c.argv,I(this,zn,`f`)),u,d=c.aliases,f=!1,p=!1;Object.keys(l).forEach(e=>{e===I(this,G,`f`)&&l[e]?f=!0:e===I(this,Q,`f`)&&l[e]&&(p=!0)}),l.$0=this.$0,this.parsed=c,r===0&&I(this,Z,`f`).clearCachedHelpMessage();try{if(this[nr](),t)return this[Cr](l,o,!!n,!1);I(this,G,`f`)&&[I(this,G,`f`)].concat(d[I(this,G,`f`)]||[]).filter(e=>e.length>1).includes(``+l._[l._.length-1])&&(l._.pop(),f=!0),F(this,Fn,!1,`f`);let s=I(this,L,`f`).getCommands(),m=I(this,R,`f`)?.completionKey?[I(this,R,`f`)?.completionKey,...this.getAliases()[I(this,R,`f`)?.completionKey]??[]].some(e=>Object.prototype.hasOwnProperty.call(l,e)):!1,h=f||m||i;if(l._.length){if(s.length){let e;for(let t=r||0,a;l._[t]!==void 0;t++){if(a=String(l._[t]),s.includes(a)&&a!==I(this,z,`f`)){let e=I(this,L,`f`).runCommand(a,this,c,t+1,i,f||p||i);return this[Cr](e,o,!!n,!1)}if(!e&&a!==I(this,z,`f`)){e=a;break}}!I(this,L,`f`).hasDefaultCommand()&&I(this,Hn,`f`)&&e&&!h&&I(this,$,`f`).recommendCommands(e,s)}I(this,z,`f`)&&l._.includes(I(this,z,`f`))&&!m&&(I(this,V,`f`)&&ln(!0),this.showCompletionScript(),this.exit(0))}if(I(this,L,`f`).hasDefaultCommand()&&!h){let e=I(this,L,`f`).runCommand(null,this,c,0,i,f||p||i);return this[Cr](e,o,!!n,!1)}if(m){I(this,V,`f`)&&ln(!0),e=[].concat(e);let t=e.slice(e.indexOf(`--${I(this,R,`f`).completionKey}`)+1);return I(this,R,`f`).getCompletion(t,(e,t)=>{if(e)throw new N(e.message);(t||[]).forEach(e=>{I(this,In,`f`).log(e)}),this.exit(0)}),this[Cr](l,!o,!!n,!1)}if(I(this,W,`f`)||(f?(I(this,V,`f`)&&ln(!0),a=!0,this.showHelp(e=>{I(this,In,`f`).log(e),this.exit(0)})):p&&(I(this,V,`f`)&&ln(!0),a=!0,I(this,Z,`f`).showVersion(`log`),this.exit(0))),!a&&I(this,q,`f`).skipValidation.length>0&&(a=Object.keys(l).some(e=>I(this,q,`f`).skipValidation.indexOf(e)>=0&&l[e]===!0)),!a){if(c.error)throw new N(c.error.message);if(!m){let e=this[Dr](d,{},c.error);n||(u=Xt(l,this,I(this,H,`f`).getMiddleware(),!0)),u=this[pr](e,u??l),M(u)&&!n&&(u=u.then(()=>Xt(l,this,I(this,H,`f`).getMiddleware(),!1)))}}}catch(e){if(e instanceof N)I(this,Z,`f`).fail(e.message,e);else throw e}return this[Cr](u??l,o,!!n,!0)}[Dr](e,t,n,r){let i={...this.getDemandedOptions()};return a=>{if(n)throw new N(n.message);I(this,$,`f`).nonOptionCount(a),I(this,$,`f`).requiredArguments(a,i);let o=!1;I(this,Wn,`f`)&&(o=I(this,$,`f`).unknownCommands(a)),I(this,Un,`f`)&&!o?I(this,$,`f`).unknownArguments(a,e,t,!!r):I(this,Gn,`f`)&&I(this,$,`f`).unknownArguments(a,e,{},!1,!1),I(this,$,`f`).limitedChoices(a),I(this,$,`f`).implications(a),I(this,$,`f`).conflicting(a)}}[Or](){F(this,W,!0,`f`)}[kr](e){if(typeof e==`string`)I(this,q,`f`).key[e]=!0;else for(let t of e)I(this,q,`f`).key[t]=!0}};function jr(e){return!!e&&typeof e.getInternalMethods==`function`}const Mr=qn(Vt),Nr=[{command:i(`abuse-reports`,`Submit and track abuse reports for phishing, malware, and other policy violations on Cloudflare-proxied sites`,()=>import(`./abuse-reports-mKv00yPh.mjs`),null),hideCommand:!1},{command:i(`access`,`Access protected applications and services`,()=>import(`./access-CyRjTbhh.mjs`),null),hideCommand:!1},{command:i(`accounts`,`Account settings, members, roles, subscriptions, and API tokens for your Cloudflare account`,()=>import(`./accounts-BmF_YKvG.mjs`),null),hideCommand:!1},{command:i(`acm`,`acm`,()=>import(`./acm-BcIFiAb8.mjs`),null),hideCommand:!1},{command:i(`addressing`,`addressing`,()=>import(`./addressing-D6xVD7MM.mjs`),null),hideCommand:!1},{command:i(`agent-memory`,`agent-memory`,()=>import(`./agent-memory-Blldunhv.mjs`),null),hideCommand:!1},{command:i(`ai`,`ai`,()=>import(`./ai-CU8tdTfC.mjs`),null),hideCommand:!1},{command:i(`ai-audit`,`ai-audit`,()=>import(`./ai-audit-Id3hq5pV.mjs`),null),hideCommand:!1},{command:i(`ai-gateway`,`Proxy, cache, rate-limit, and observe requests to AI providers — OpenAI, Anthropic, Workers AI, and more`,()=>import(`./ai-gateway-BKeZ28CQ.mjs`),null),hideCommand:!1},{command:i(`ai-search`,`Managed search-as-a-service: crawl, index, and query content with AI-powered relevance and chat completions`,()=>import(`./ai-search-DOiZEmn7.mjs`),null),hideCommand:!1},{command:i(`ai-security`,`Detect prompt injection, PII, and unsafe topics in traffic to your AI applications`,()=>import(`./ai-security-CioADDZi.mjs`),null),hideCommand:!1},{command:i(`alerting`,`alerting`,()=>import(`./alerting-BzN1N3Se.mjs`),null),hideCommand:!0},{command:i(`analytics`,`Zone-level traffic analytics — dashboard summaries, per-colo breakdowns, and Argo latency metrics`,()=>import(`./analytics-Cte-DrzH.mjs`),null),hideCommand:!1},{command:i(`analytics-engine`,`analytics-engine`,()=>import(`./analytics-engine-CugCQfDe.mjs`),null),hideCommand:!0},{command:i(`api-security`,`api-security`,()=>import(`./api-security-CCs0g510.mjs`),null),hideCommand:!1},{command:i(`argo`,`Network optimization features that speed up and improve reliability of traffic to your origins`,()=>import(`./argo-BHBFZnmO.mjs`),null),hideCommand:!1},{command:i(`artifacts`,`artifacts`,()=>import(`./artifacts-BzAwvrCD.mjs`),null),hideCommand:!1},{command:i(`audit-logs`,`audit-logs`,()=>import(`./audit-logs-jWivEKCy.mjs`),null),hideCommand:!0},{command:i(`basin-catalog`,`Iceberg-compatible data catalog for R2 — organize objects into tables and namespaces for SQL query engines`,()=>import(`./basin-catalog-_8w_4599.mjs`),null),hideCommand:!1},{command:i(`billing`,`Account billing profiles and usage data for Cloudflare subscriptions and add-on services`,()=>import(`./billing-Ce0WN0yw.mjs`),null),hideCommand:!1},{command:i(`bot-management`,`bot-management`,()=>import(`./bot-management-DskcSr4B.mjs`),null),hideCommand:!0},{command:i(`botnet-feed`,`Botnet threat intelligence feeds — IP and ASN-level data on known command-and-control infrastructure`,()=>import(`./botnet-feed-CmBm13-D.mjs`),null),hideCommand:!0},{command:i(`brand-protection`,`brand-protection`,()=>import(`./brand-protection-DTuFrsN0.mjs`),null),hideCommand:!1},{command:i(`browser-run`,`browser-run`,()=>import(`./browser-run-CXdzSOHa.mjs`),null),hideCommand:!1},{command:i(`builds`,`Build and deploy Workers from connected repositories, then inspect build status and logs.`,()=>import(`./builds-_1u5Nx6f.mjs`),null),hideCommand:!1},{command:i(`cache`,`Purge cached content and configure Cache Reserve, tiered caching, and variant serving`,()=>import(`./cache-CDPUUv_O.mjs`),null),hideCommand:!1},{command:i(`client-side-security`,`Client-Side Security — monitor JavaScript, connections, and cookies on your pages for supply-chain attacks`,()=>import(`./client-side-security-DnnYaRsd.mjs`),null),hideCommand:!1},{command:i(`cloud-connector`,`Route traffic from Cloudflare directly to cloud provider services (AWS, Azure, GCP) without origin servers`,()=>import(`./cloud-connector-Ct6b6pz8.mjs`),null),hideCommand:!1},{command:i(`cloudforce-one`,`Detection rule management APIs`,()=>import(`./cloudforce-one-Rl6nCCm0.mjs`),null),hideCommand:!1},{command:i(`connector-interrupts`,`connector-interrupts`,()=>import(`./connector-interrupts-DyWilINb.mjs`),null),hideCommand:!1},{command:i(`connector-telemetry-events`,`connector-telemetry-events`,()=>import(`./connector-telemetry-events-BUW9qTOs.mjs`),null),hideCommand:!1},{command:i(`connector-telemetry-snapshots`,`connector-telemetry-snapshots`,()=>import(`./connector-telemetry-snapshots-Djs5QssR.mjs`),null),hideCommand:!1},{command:i(`connectors`,`connectors`,()=>import(`./connectors-e_cpzDEm.mjs`),null),hideCommand:!1},{command:i(`containers`,`Deploy and manage Containers applications on Cloudflare's global network`,()=>import(`./containers-CEH15JUu.mjs`),null),hideCommand:!1},{command:i(`content-scan`,`Malicious uploads detection, scan uploaded content in HTTP requests for malware and malicious payloads`,()=>import(`./content-scan-B6Ahw9JA.mjs`),null),hideCommand:!1},{command:i(`cps`,`cps`,()=>import(`./cps-uDD0SSJ-.mjs`),null),hideCommand:!1},{command:i(`csam-scanner`,`csam-scanner`,()=>import(`./csam-scanner-BSUl7jGn.mjs`),null),hideCommand:!1},{command:i(`custom-csrs`,`custom-csrs`,()=>import(`./custom-csrs-BDcXggph.mjs`),null),hideCommand:!1},{command:i(`custom-hostnames`,`custom-hostnames`,()=>import(`./custom-hostnames-UmIlwkwt.mjs`),null),hideCommand:!1},{command:i(`custom-nameservers`,`custom-nameservers`,()=>import(`./custom-nameservers-D7kU6d--.mjs`),null),hideCommand:!1},{command:i(`custom-pages`,`Manage custom error and challenge pages and their assets for accounts and zones`,()=>import(`./custom-pages-CkhIQCfM.mjs`),null),hideCommand:!1},{command:i(`d1`,`D1 is Cloudflare's managed, serverless database with SQLite's SQL semantics, built-in disaster recovery, and Worker and HTTP API access.`,()=>import(`./d1-myRLEAGs.mjs`),null),hideCommand:!1},{command:i(`diagnostics`,`Network diagnostic tools — traceroutes from Cloudflare's edge and endpoint health checks`,()=>import(`./diagnostics-q65rcNIk.mjs`),null),hideCommand:!1},{command:i(`dls`,`dls`,()=>import(`./dls-CMTrCDjZ.mjs`),null),hideCommand:!0},{command:i(`dns`,`dns`,()=>import(`./dns-DhARjFQs.mjs`),null),hideCommand:!1},{command:i(`dns-firewall`,`dns-firewall`,()=>import(`./dns-firewall-BP6r9QG6.mjs`),null),hideCommand:!0},{command:i(`durable-objects`,`durable-objects`,()=>import(`./durable-objects-tOJy-5te.mjs`),null),hideCommand:!1},{command:i(`email-auth`,`email-auth`,()=>import(`./email-auth-Bq9sq_2j.mjs`),null),hideCommand:!1},{command:i(`email-routing`,`Route incoming email to verified destination addresses or Workers with routing rules, catch-all behavior, and managed DNS records`,()=>import(`./email-routing-CYo4dp50.mjs`),null),hideCommand:!1},{command:i(`email-security`,`Cloud email security — investigate threats, manage allow/block policies, and detect phishing`,()=>import(`./email-security-CNtWET2d.mjs`),null),hideCommand:!1},{command:i(`email-sending`,`Send transactional email and manage sending subdomains and their DNS configuration`,()=>import(`./email-sending-BvagNLRr.mjs`),null),hideCommand:!1},{command:i(`field-extractors`,`field-extractors`,()=>import(`./field-extractors-C9R3Qivh.mjs`),null),hideCommand:!0},{command:i(`firewall`,`Legacy firewall rules, zone lockdowns, access rules, user-agent blocking, and WAF packages`,()=>import(`./firewall-DsgUY-Qv.mjs`),null),hideCommand:!1},{command:i(`flagship`,`flagship`,()=>import(`./flagship-geGDHp9H.mjs`),null),hideCommand:!1},{command:i(`fraud`,`fraud`,()=>import(`./fraud-24l8dKyk.mjs`),null),hideCommand:!0},{command:i(`google-tag-gateway`,`Google Tag Gateway operations`,()=>import(`./google-tag-gateway-CAkudP5W.mjs`),null),hideCommand:!0},{command:i(`healthchecks`,`Standalone health checks that monitor origin server availability from Cloudflare's edge`,()=>import(`./healthchecks-CEGMe3lO.mjs`),null),hideCommand:!0},{command:i(`hyperdrive`,`Accelerate access to existing databases by caching queries and pooling connections at the edge`,()=>import(`./hyperdrive-DLDaOU2O.mjs`),null),hideCommand:!1},{command:i(`iam`,`Identity and access management — permission groups, resource groups, user groups, and SSO connectors`,()=>import(`./iam-ChldOMSL.mjs`),null),hideCommand:!0},{command:i(`images`,`Store, resize, and deliver optimized images globally — variants, signing keys, and direct uploads`,()=>import(`./images-Ba9tS5wT.mjs`),null),hideCommand:!1},{command:i(`intel`,`Threat intelligence lookups — IP reputation, domain info, ASN details, WHOIS, and indicator feeds`,()=>import(`./intel-DbLRah4Y.mjs`),null),hideCommand:!1},{command:i(`ips`,`ips`,()=>import(`./ips-BGyzyQLL.mjs`),null),hideCommand:!0},{command:i(`k2`,`Durable, ordered event streams that you produce records to and consume from with subscriptions`,()=>import(`./k2-BVQ3MqEl.mjs`),null),hideCommand:!1},{command:i(`kv`,`kv`,()=>import(`./kv-Cd8vbPWK.mjs`),null),hideCommand:!1},{command:i(`leaked-credential-checks`,`Detect compromised credentials in login requests by checking against known breach databases`,()=>import(`./leaked-credential-checks-Dga83Qy3.mjs`),null),hideCommand:!1},{command:i(`load-balancers`,`Distribute traffic across origin pools with health monitoring, geo-steering, and failover`,()=>import(`./load-balancers-D9cB6of8.mjs`),null),hideCommand:!1},{command:i(`logo-matches`,`logo-matches`,()=>import(`./logo-matches-jeNkUxAq.mjs`),null),hideCommand:!0},{command:i(`logos`,`logos`,()=>import(`./logos-pxN5aumY.mjs`),null),hideCommand:!0},{command:i(`logpush`,`logpush`,()=>import(`./logpush-Ccmr0Y_I.mjs`),null),hideCommand:!1},{command:i(`logs`,`Log control, retention, and raw log access — CMB config, ray ID lookups, and received fields`,()=>import(`./logs-CZBMuuBC.mjs`),null),hideCommand:!1},{command:i(`magic-cloud-networking`,`magic-cloud-networking`,()=>import(`./magic-cloud-networking-BwOxZVql.mjs`),null),hideCommand:!0},{command:i(`magic-network-monitoring`,`Flow-based network traffic monitoring with configurable alerting rules and VPC flow ingestion`,()=>import(`./magic-network-monitoring-Cx5kKdbk.mjs`),null),hideCommand:!1},{command:i(`magic-transit`,`DDoS-protected network transit — GRE/IPsec tunnels, static routes, Magic WAN sites, connectors, and packet captures`,()=>import(`./magic-transit-BJwg3sVK.mjs`),null),hideCommand:!1},{command:i(`managed-defense`,`managed-defense`,()=>import(`./managed-defense-C_KLy4oB.mjs`),null),hideCommand:!1},{command:i(`managed-transforms`,`managed-transforms`,()=>import(`./managed-transforms-C-HMtesC.mjs`),null),hideCommand:!0},{command:i(`matches`,`matches`,()=>import(`./matches-DnjBnG-Y.mjs`),null),hideCommand:!0},{command:i(`mcp`,`Manage MCP portals and upstream MCP servers for Cloudflare Access AI controls`,()=>import(`./mcp-bGKgzz6F.mjs`),null),hideCommand:!1},{command:i(`mesh`,`mesh`,()=>import(`./mesh-DeQIll19.mjs`),null),hideCommand:!1},{command:i(`monetization`,`monetization`,()=>import(`./monetization-B-TIrpA5.mjs`),null),hideCommand:!1},{command:i(`network`,`network`,()=>import(`./network-BrjykU-I.mjs`),null),hideCommand:!1},{command:i(`network-interconnects`,`Physical and virtual private interconnects between your infrastructure and Cloudflare's network`,()=>import(`./network-interconnects-I06kbxIl.mjs`),null),hideCommand:!0},{command:i(`o11y`,`o11y`,()=>import(`./o11y-Ba0Fa98_.mjs`),null),hideCommand:!1},{command:i(`oauth-clients`,`oauth-clients`,()=>import(`./oauth-clients-Dd5gvDqf.mjs`),null),hideCommand:!0},{command:i(`oauth-scopes`,`oauth-scopes`,()=>import(`./oauth-scopes-CXpH3Syj.mjs`),null),hideCommand:!0},{command:i(`organization`,`organization`,()=>import(`./organization-DKPqwe3j.mjs`),null),hideCommand:!1},{command:i(`organizations`,`Multi-user organizations that group accounts, members, and shared settings under a single entity`,()=>import(`./organizations-Cq4iy-Yr.mjs`),null),hideCommand:!1},{command:i(`origin-post-quantum-encryption`,`Enable post-quantum key exchange for connections between Cloudflare and your origin server`,()=>import(`./origin-post-quantum-encryption-DSB1sbYV.mjs`),null),hideCommand:!0},{command:i(`page-rules`,`page-rules`,()=>import(`./page-rules-CDWTYaf7.mjs`),null),hideCommand:!0},{command:i(`pages`,`Full-stack application hosting with Git-integrated builds, preview deployments, and custom domains`,()=>import(`./pages-Dgtm51Uj.mjs`),null),hideCommand:!1},{command:i(`pay-per-crawl`,`pay-per-crawl`,()=>import(`./pay-per-crawl-CHenxdhv.mjs`),null),hideCommand:!1},{command:i(`pay-per-use`,`pay-per-use`,()=>import(`./pay-per-use-Bd5l0hBi.mjs`),null),hideCommand:!1},{command:i(`pipelines`,`Ingest, transform, and route event streams into R2, analytics, or other destinations in real time`,()=>import(`./pipelines-GsyD6nUM.mjs`),null),hideCommand:!1},{command:i(`precursor`,`Precursor settings for a zone`,()=>import(`./precursor-mO-Zua09.mjs`),null),hideCommand:!0},{command:i(`previews`,`Manage Worker Previews`,()=>import(`./previews-oHUiD54J.mjs`),null),hideCommand:!1},{command:i(`queries`,`queries`,()=>import(`./queries-CS0sYfte.mjs`),null),hideCommand:!0},{command:i(`queues`,`Reliable message queuing between Workers — produce, consume, and batch-process messages at scale`,()=>import(`./queues-D8cAr2lB.mjs`),null),hideCommand:!1},{command:i(`r2`,`S3-compatible object storage with zero egress fees — buckets, lifecycle rules, event notifications, and data migration`,()=>import(`./r2-CJiJbG6b.mjs`),null),hideCommand:!1},{command:i(`radar`,`Internet-wide traffic intelligence — BGP, DNS, HTTP trends, attack data, and network quality insights`,()=>import(`./radar-PUZ_PCZ8.mjs`),null),hideCommand:!1},{command:i(`realtime`,`Real-time audio, video, and data services on Cloudflare's global network`,()=>import(`./realtime-X6uQsldp.mjs`),null),hideCommand:!1},{command:i(`registrar`,`registrar`,()=>import(`./registrar-BqZdUTss.mjs`),null),hideCommand:!1},{command:i(`registrar-sandbox`,`registrar-sandbox`,()=>import(`./registrar-sandbox-CmM3e1QN.mjs`),null),hideCommand:!1},{command:i(`reporting`,`reporting`,()=>import(`./reporting-DFVz98Xg.mjs`),null),hideCommand:!1},{command:i(`request-tracers`,`Trace how a request would be processed through Cloudflare's rules and configuration pipeline`,()=>import(`./request-tracers-BC1u2WDU.mjs`),null),hideCommand:!1},{command:i(`resource-sharing`,`Share Cloudflare resources (zones, accounts) across organizations with granular access controls`,()=>import(`./resource-sharing-CdEn5Iex.mjs`),null),hideCommand:!1},{command:i(`rules`,`Resources used by Cloudflare rules and rulesets`,()=>import(`./rules-B663VetJ.mjs`),null),hideCommand:!1},{command:i(`rulesets`,`rulesets`,()=>import(`./rulesets-p4EijVr6.mjs`),null),hideCommand:!1},{command:i(`rum`,`Real User Measurement (Web Analytics) — track page loads, Core Web Vitals, and visitor metrics`,()=>import(`./rum-CHHXe4KK.mjs`),null),hideCommand:!0},{command:i(`scim`,`SCIM 2.0 provisioning — manage users, groups, and identity provider sync for your account`,()=>import(`./scim-BMnUa4Oz.mjs`),null),hideCommand:!0},{command:i(`secrets-store`,`Centralized secret management — store API keys, tokens, and credentials for use across Workers and other products`,()=>import(`./secrets-store-EYrhEzVG.mjs`),null),hideCommand:!1},{command:i(`security-insights`,`security-insights`,()=>import(`./security-insights-C-AwDwXb.mjs`),null),hideCommand:!1},{command:i(`security-txt`,`Manage the /.well-known/security.txt file that tells security researchers how to report vulnerabilities`,()=>import(`./security-txt-CQMe8TD3.mjs`),null),hideCommand:!1},{command:i(`smart-shield`,`Smart Shield settings, health checks, and cache reserve management`,()=>import(`./smart-shield-CHSuitaH.mjs`),null),hideCommand:!0},{command:i(`snippets`,`snippets`,()=>import(`./snippets-DGSBz4lg.mjs`),null),hideCommand:!1},{command:i(`spectrum`,`Proxy and protect arbitrary TCP/UDP applications through Cloudflare's network with DDoS mitigation`,()=>import(`./spectrum-59LhYG1t.mjs`),null),hideCommand:!1},{command:i(`speed`,`Observatory speed tests — run Lighthouse audits, track performance trends, and schedule recurring tests`,()=>import(`./speed-CMCfoG3s.mjs`),null),hideCommand:!1},{command:i(`sql`,`sql`,()=>import(`./sql-MxWaTDdj.mjs`),null),hideCommand:!1},{command:i(`ssl`,`SSL/TLS certificate management — certificate packs, Universal SSL, verification, and TLS mode recommendations`,()=>import(`./ssl-DTTFZR9x.mjs`),null),hideCommand:!1},{command:i(`stream`,`Video encoding, storage, and delivery — upload, live-stream, clip, caption, and embed video at scale`,()=>import(`./stream-gVG_7si-.mjs`),null),hideCommand:!1},{command:i(`submit`,`submit`,()=>import(`./submit-wJYcQB8d.mjs`),null),hideCommand:!0},{command:i(`tags`,`tags`,()=>import(`./tags-BwFKjaOr.mjs`),null),hideCommand:!1},{command:i(`tenant`,`tenant`,()=>import(`./tenant-Qv_PC8gW.mjs`),null),hideCommand:!1},{command:i(`tenant-custom-nameservers`,`tenant-custom-nameservers`,()=>import(`./tenant-custom-nameservers-DBmmUcxn.mjs`),null),hideCommand:!0},{command:i(`tunnels`,`tunnels`,()=>import(`./tunnels-CHNKPYRV.mjs`),null),hideCommand:!1},{command:i(`turnstile`,`CAPTCHA-free bot verification widgets that protect forms and APIs without degrading user experience`,()=>import(`./turnstile-C60RxPo2.mjs`),null),hideCommand:!1},{command:i(`url-info`,`url-info`,()=>import(`./url-info-By6VD20A.mjs`),null),hideCommand:!0},{command:i(`url-normalization`,`url-normalization`,()=>import(`./url-normalization-3t6Xpafi.mjs`),null),hideCommand:!0},{command:i(`url-scanner`,`Scan URLs for phishing, malware, and other threats — submit scans and retrieve detailed results`,()=>import(`./url-scanner-DNG__DiK.mjs`),null),hideCommand:!0},{command:i(`user`,`Your Cloudflare user profile, invitations, organizations, billing, and personal API tokens`,()=>import(`./user-B4i7OIFK.mjs`),null),hideCommand:!1},{command:i(`vectorize`,`Globally distributed vector database for building semantic search, recommendations, and RAG applications on Workers`,()=>import(`./vectorize-y3PCQDDf.mjs`),null),hideCommand:!1},{command:i(`waiting-rooms`,`Virtual queues that throttle traffic to your site during peak demand with customizable waiting pages`,()=>import(`./waiting-rooms-xkZLvPkT.mjs`),null),hideCommand:!1},{command:i(`web-assets`,`web-assets`,()=>import(`./web-assets-BlqHZywy.mjs`),null),hideCommand:!1},{command:i(`web3`,`web3`,()=>import(`./web3-DGAJMcLv.mjs`),null),hideCommand:!0},{command:i(`workers`,`workers`,()=>import(`./workers-cCNBx0Bc.mjs`),null),hideCommand:!1},{command:i(`workers-builds`,`workers-builds`,()=>import(`./workers-builds-COKp3NfU.mjs`),null),hideCommand:!0},{command:i(`workers-for-platforms`,`workers-for-platforms`,()=>import(`./workers-for-platforms-CAtiWI_G.mjs`),null),hideCommand:!1},{command:i(`workers-vpc`,`workers-vpc`,()=>import(`./workers-vpc-ChBfXwPy.mjs`),null),hideCommand:!1},{command:i(`workflows`,`Durable, multi-step workflows that run on Workers with automatic retries and state persistence`,()=>import(`./workflows-BYhgJvyR.mjs`),null),hideCommand:!1},{command:i(`zaraz`,`Server-side tag manager — load third-party tools (analytics, pixels, etc.) from Cloudflare's edge without client-side JS`,()=>import(`./zaraz-BW0kvRCK.mjs`),null),hideCommand:!1},{command:i(`zero-trust`,`Cloudflare's SASE platform — secure access, device posture, DLP, tunnels, gateway policies, and network segmentation`,()=>import(`./zero-trust-DSeWXkNV.mjs`),null),hideCommand:!1},{command:i(`zone`,`zone`,()=>import(`./zone-B-YJG2UA.mjs`),null),hideCommand:!1},{command:i(`zones`,`Zones are domains on Cloudflare — list, create, and configure domain settings`,()=>import(`./zones-B8pqPHu8.mjs`),null),hideCommand:!1}];function Pr(e){return typeof e==`object`&&!!e&&`schemas`in e&&typeof e.schemas==`object`&&e.schemas!==null&&!Array.isArray(e.schemas)}function Fr(e,t){if(!t)return e;let n=a(import.meta.url,`schemas.json`,Pr);return!n||!Object.hasOwn(n.schemas,t)?e:`${e}\n\n${o.italic(`To inspect the exact API request, run ${o.code(`cf schema ${t}`)}`)}`}const Ir=[{kind:`root`,dryRun:`preview`,command:`auth`,describe:`Manage authentication and profiles`,dir:`auth`},{kind:`root`,dryRun:`preview`,command:`login`,describe:!1,dir:`login`},{kind:`root`,dryRun:`preview`,command:`build`,describe:`Build a project for Cloudflare`,dir:`build`},{kind:`root`,dryRun:`preview`,command:`complete [shell]`,describe:`Generate and handle shell completions`,dir:`completions`},{kind:`root`,dryRun:`native`,command:`deploy`,describe:`Deploy a project to Cloudflare`,dir:`deploy`},{kind:`root`,dryRun:`preview`,command:`dev [implArgs..]`,describe:`Run the project's Cloudflare dev server`,dir:`dev`},{kind:`root`,dryRun:`preview`,command:`docs`,describe:`Search live Cloudflare documentation`,dir:`docs`},{kind:`root`,dryRun:`preview`,command:`init [directory]`,describe:`Create a new Cloudflare project or set up an existing one`,dir:`init`},{kind:`root`,dryRun:`native`,command:`migrate [path]`,describe:`Migrate a Wrangler project to cf`,dir:`migrate`},{kind:`root`,dryRun:`preview`,command:`cli`,describe:`Discover commands and configure the cf CLI`,dir:`cli`},{kind:`leaf`,dryRun:`preview`,parent:`previews`,name:`deploy`,dir:`previews/deploy`},{kind:`parentOverride`,parent:`previews`,describe:`Manage Worker Previews`,expose:!0,createIfMissing:!0},{kind:`root`,dryRun:`preview`,command:`schema [command..]`,describe:`Show API schema details for a command`,dir:`schema`},{kind:`root`,dryRun:`preview`,command:`tools`,describe:!1,dir:`tools`},{kind:`leafOverride`,dryRun:`native`,emitKey:`ai/run`,dir:`ai/run`},{kind:`leafOverride`,dryRun:`native`,emitKey:`registrar/registrations/create`,dir:`registrar/registrations/create`},{kind:`leaf`,dryRun:`native`,parent:`workers/versions`,name:`create`,dir:`workers/versions/create`},{kind:`leaf`,dryRun:`preview`,parent:`containers`,name:`build`,dir:`containers/build`},{kind:`leaf`,dryRun:`preview`,parent:`containers`,name:`push`,dir:`containers/push`},{kind:`leaf`,dryRun:`preview`,parent:`containers/images`,name:`list`,dir:`containers/images/list`},{kind:`leaf`,dryRun:`preview`,parent:`containers/images`,name:`delete`,dir:`containers/images/delete`},{kind:`leaf`,dryRun:`preview`,parent:`containers`,name:`ssh`,dir:`containers/ssh`},{kind:`leaf`,dryRun:`preview`,parent:`pages`,name:`deploy`,dir:`pages/deploy`},{kind:`leaf`,dryRun:`preview`,parent:`workers`,name:`check`,dir:`workers/check`},{kind:`leaf`,dryRun:`preview`,parent:`workers`,name:`types`,dir:`workers/types`},{kind:`parentOverride`,parent:`access`,describe:`Access protected applications and services`,expose:!0},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`login`,dir:`access/login`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`token`,dir:`access/token`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`ssh-config`,dir:`access/ssh-config`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`ssh-gen`,dir:`access/ssh-gen`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`tcp`,dir:`access/tcp`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`curl`,dir:`access/curl`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`diag`,dir:`tunnels/diag`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`login`,dir:`tunnels/login`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`quick-start`,dir:`tunnels/quick-start`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`ready`,dir:`tunnels/ready`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`run`,dir:`tunnels/run`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`tail`,dir:`tunnels/tail`},{kind:`subgroup`,dryRun:`preview`,parent:`d1`,name:`migrations`,dir:`d1/migrations`,describe:`Create, list, and apply D1 database migrations`},{kind:`subgroup`,dryRun:`native`,parent:`workers`,name:`triggers`,dir:`workers/triggers`,describe:`Manage triggers (Routes, Workflows, Cron triggers etc.)`}];function Lr(){return Ir.filter(e=>e.kind===`root`)}function Rr(e){return e.command.split(/\s+/)[0]??e.command}const zr={auth:{load:()=>import(`./auth-CdEGiJ5Y.mjs`),telemetry:{command:`auth`,recordArgs:!1}},login:{load:()=>import(`./login-DvsRxI3E.mjs`),telemetry:null},build:{load:()=>import(`./build-D7s3a8zW.mjs`),telemetry:{command:`build`,classification:{safeFlags:[]}}},completions:{load:()=>import(`./completions-DMwrvK_S.mjs`),telemetry:null},deploy:{load:()=>import(`./deploy-BJqCpycz.mjs`),telemetry:{command:`deploy`,classification:{safeFlags:[`dry-run`,`prebuilt`,`containers-rollout`,`provision`]}}},dev:{load:()=>import(`./dev-S1PJi83q.mjs`),telemetry:{command:`dev`,recordArgs:!1}},init:{load:()=>import(`./init-C08hBFYn.mjs`),telemetry:{command:`init`,classification:{safeFlags:[`install`,`package-manager`]}}},migrate:{load:()=>import(`./migrate-B6HsPeFh.mjs`),telemetry:{command:`migrate`,recordArgs:!1}},docs:{load:()=>import(`./docs-CReGWDrw.mjs`),telemetry:{command:`docs`,recordArgs:!1}},cli:{load:()=>import(`./cli-DyhOdzMo.mjs`),telemetry:{command:`cli`,recordArgs:!1}},schema:{load:()=>import(`./schema-B38ojvsS.mjs`),telemetry:{command:`schema`,classification:{safeFlags:[`list`]}}},tools:{load:()=>import(`./tools-B1ajcUAF.mjs`),telemetry:{command:`tools`,classification:{safeFlags:[`text`]}}}};function Br(){return Lr().map(e=>({...e,...zr[e.dir]}))}const Vr={quiet:{type:`boolean`,alias:`q`,description:`Suppress non-essential output`,global:!0,default:!1},zone:{type:`string`,alias:`z`,description:`Zone ID or domain name (overrides CLOUDFLARE_ZONE_ID)`,global:!0},profile:{type:`string`,description:`Use a specific auth profile`,requiresArg:!0,global:!0},mode:{type:`string`,alias:`m`,description:`Mode used to evaluate project configuration`,requiresArg:!0,global:!0,coerce:e=>{if(Array.isArray(e))throw Error(`--mode can only be specified once.`);if(e===``)throw Error(`--mode requires a non-empty value.`);return e}},"temporary-account":{type:`boolean`,description:`Create or reuse a temporary account when no Cloudflare credentials are available`,global:!0,default:!1,hidden:!0},"event-code":{type:`string`,description:`Specify the event code to use when creating a temporary account for an event`,requiresArg:!0,global:!0,hidden:!0,coerce:e=>{if(Array.isArray(e))throw Error(`--event-code expects a single value.`);let t=e.trim();if(!t)throw Error(`--event-code cannot be empty.`);return t}},local:{type:`boolean`,description:`Use local resource simulations`,global:!0,default:!1},"persist-to":{type:`string`,description:`Directory holding local persisted state (default: ~/.config/cloudflare/state)`,requiresArg:!0,global:!0}};function Hr(e,t){return Object.entries(Vr).some(([n,r])=>{if(r.type===`boolean`&&t!==`true`&&t!==`false`)return!1;let i=r.alias;return[n,...Array.isArray(i)?i:i===void 0?[]:[i]].some(t=>e===(t.length===1?`-${t}`:`--${t}`))})}const Ur=Br().map(e=>ee(i(e.command,e.describe,e.load,e.telemetry),e.dryRun)),Wr=new Set(Lr().map(Rr)),Gr=[`=== STOP: AGENT COMMAND DISCOVERY ===`,`AGENTS: Do not explore commands by chaining nested --help calls.`,`Your first port of call and the best way to discover commands is:`,`AGENTS: Keep cf cli search and cf docs search queries anonymous; describe the action and resource type only.`,`Never include names, email addresses, domains, account or resource IDs, tokens, or other identifying values.`,` cf cli search "<describe the task you want to accomplish>"`,`It returns five compact JSON matches with short descriptions. Pick the best match instead of repeating similar searches.`,"Run `<discovered command> --help` for detailed command help.","For API request details, replace the result's leading `cf` with `cf schema`.",`For Cloudflare documentation, guides, and examples, use cf docs search "<question>".`,`It returns ranked JSON results. Fetch a result's URL with Accept: text/markdown to read the full page.`,`=== END AGENT COMMAND DISCOVERY ===`].join(`
|
|
115
|
-
`);function Kr(e){return s().isAgentic?`${Gr}\n${e}`:e}function qr(e,t){return Kr(Fr(e,t))}async function Jr(e=!1){if(!process.stderr.isTTY||e||
|
|
116
|
-
`)),!0}function
|
|
117
|
-
The Cloudflare CLI - manage your Cloudflare resources`).updateStrings({"Commands:":
|
|
114
|
+
`,`f`),F(this,K,I(this,K,`f`)+e.join(` `),`f`)}}}[Xn](e){Ut(I(this,q,`f`)).forEach(t=>{if((e=>e===`configObjects`)(t))return;let n=I(this,q,`f`)[t];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n==`object`&&delete n[e]}),delete I(this,Z,`f`).getDescriptions()[e]}[Zn](e,t,n){I(this,Nn,`f`)[n]||(I(this,X,`f`).process.emitWarning(e,t),I(this,Nn,`f`)[n]=!0)}[Qn](){I(this,Pn,`f`).push({options:I(this,q,`f`),configObjects:I(this,q,`f`).configObjects.slice(0),exitProcess:I(this,V,`f`),groups:I(this,U,`f`),strict:I(this,Un,`f`),strictCommands:I(this,Wn,`f`),strictOptions:I(this,Gn,`f`),completionCommand:I(this,z,`f`),output:I(this,K,`f`),exitError:I(this,B,`f`),hasOutput:I(this,W,`f`),parsed:this.parsed,parseFn:I(this,J,`f`),parseContext:I(this,zn,`f`)}),I(this,Z,`f`).freeze(),I(this,$,`f`).freeze(),I(this,L,`f`).freeze(),I(this,H,`f`).freeze()}[$n](){let e=``,t;return t=/\b(node|iojs|electron|bun)(\.exe)?$/.test(I(this,X,`f`).process.argv()[0])?I(this,X,`f`).process.argv().slice(1,2):I(this,X,`f`).process.argv().slice(0,1),e=t.map(e=>{let t=this[wr](I(this,kn,`f`),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e}).join(` `).trim(),I(this,X,`f`).getEnv(`_`)&&I(this,X,`f`).getProcessArgvBin()===I(this,X,`f`).getEnv(`_`)&&(e=I(this,X,`f`).getEnv(`_`).replace(`${I(this,X,`f`).path.dirname(I(this,X,`f`).process.execPath())}/`,``)),e}[er](){return I(this,Rn,`f`)}[tr](){return I(this,Kn,`f`)}[nr](){if(!I(this,Mn,`f`))return;let e=I(this,X,`f`).getEnv(`LC_ALL`)||I(this,X,`f`).getEnv(`LC_MESSAGES`)||I(this,X,`f`).getEnv(`LANG`)||I(this,X,`f`).getEnv(`LANGUAGE`)||`en_US`;this.locale(e.replace(/[.:].*/,``))}[rr](){return this[ar]().version||`unknown`}[ir](e){let t=e[`--`]?e[`--`]:e._;for(let e=0,n;(n=t[e])!==void 0;e++)I(this,X,`f`).Parser.looksLikeNumber(n)&&Number.isSafeInteger(Math.floor(parseFloat(`${n}`)))&&(t[e]=Number(n));return e}[ar](e){let t=e||`*`;if(I(this,Bn,`f`)[t])return I(this,Bn,`f`)[t];let n={};try{let t=e||I(this,X,`f`).mainFilename;I(this,X,`f`).path.extname(t)&&(t=I(this,X,`f`).path.dirname(t));let r=I(this,X,`f`).findUp(t,(e,t)=>{if(t.includes(`package.json`))return`package.json`});j(r,void 0,I(this,X,`f`)),n=JSON.parse(I(this,X,`f`).readFileSync(r,`utf8`))}catch{}return I(this,Bn,`f`)[t]=n||{},I(this,Bn,`f`)[t]}[or](e,t){t=[].concat(t),t.forEach(t=>{t=this[ur](t),I(this,q,`f`)[e].push(t)})}[sr](e,t,n,r){this[lr](e,t,n,r,(e,t,n)=>{I(this,q,`f`)[e][t]=n})}[cr](e,t,n,r){this[lr](e,t,n,r,(e,t,n)=>{I(this,q,`f`)[e][t]=(I(this,q,`f`)[e][t]||[]).concat(n)})}[lr](e,t,n,r,i){if(Array.isArray(n))n.forEach(t=>{e(t,r)});else if((e=>typeof e==`object`)(n))for(let t of Ut(n))e(t,n[t]);else i(t,this[ur](n),r)}[ur](e){return e===`__proto__`?`___proto___`:e}[dr](e,t){return this[sr](this[dr].bind(this),`key`,e,t),this}[fr](){var e,t,n,r,i,a,o,s,c,l,u,d;let f=I(this,Pn,`f`).pop();j(f,void 0,I(this,X,`f`));let p;e=this,t=this,n=this,r=this,i=this,a=this,o=this,s=this,c=this,l=this,u=this,d=this,{options:{set value(t){F(e,q,t,`f`)}}.value,configObjects:p,exitProcess:{set value(e){F(t,V,e,`f`)}}.value,groups:{set value(e){F(n,U,e,`f`)}}.value,output:{set value(e){F(r,K,e,`f`)}}.value,exitError:{set value(e){F(i,B,e,`f`)}}.value,hasOutput:{set value(e){F(a,W,e,`f`)}}.value,parsed:this.parsed,strict:{set value(e){F(o,Un,e,`f`)}}.value,strictCommands:{set value(e){F(s,Wn,e,`f`)}}.value,strictOptions:{set value(e){F(c,Gn,e,`f`)}}.value,completionCommand:{set value(e){F(l,z,e,`f`)}}.value,parseFn:{set value(e){F(u,J,e,`f`)}}.value,parseContext:{set value(e){F(d,zn,e,`f`)}}.value}=f,I(this,q,`f`).configObjects=p,I(this,Z,`f`).unfreeze(),I(this,$,`f`).unfreeze(),I(this,L,`f`).unfreeze(),I(this,H,`f`).unfreeze()}[pr](e,t){return Zt(t,t=>(e(t),t))}getInternalMethods(){return{getCommandInstance:this[mr].bind(this),getContext:this[hr].bind(this),getHasOutput:this[gr].bind(this),getLoggerInstance:this[_r].bind(this),getParseContext:this[vr].bind(this),getParserConfiguration:this[er].bind(this),getUsageConfiguration:this[tr].bind(this),getUsageInstance:this[yr].bind(this),getValidationInstance:this[br].bind(this),hasParseCallback:this[xr].bind(this),isGlobalContext:this[Sr].bind(this),postProcess:this[Cr].bind(this),reset:this[Tr].bind(this),runValidation:this[Dr].bind(this),runYargsParserAndExecuteCommands:this[Er].bind(this),setHasOutput:this[Or].bind(this)}}[mr](){return I(this,L,`f`)}[hr](){return I(this,An,`f`)}[gr](){return I(this,W,`f`)}[_r](){return I(this,In,`f`)}[vr](){return I(this,zn,`f`)||{}}[yr](){return I(this,Z,`f`)}[br](){return I(this,$,`f`)}[xr](){return!!I(this,J,`f`)}[Sr](){return I(this,Fn,`f`)}[Cr](e,t,n,r){return n||M(e)||(t||(e=this[Jn](e)),(this[er]()[`parse-positional-numbers`]||this[er]()[`parse-positional-numbers`]===void 0)&&(e=this[ir](e)),r&&(e=Xt(e,this,I(this,H,`f`).getMiddleware(),!1))),e}[Tr](e={}){F(this,q,I(this,q,`f`)||{},`f`);let t={};t.local=I(this,q,`f`).local||[],t.configObjects=I(this,q,`f`).configObjects||[];let n={};return t.local.forEach(t=>{n[t]=!0,(e[t]||[]).forEach(e=>{n[e]=!0})}),Object.assign(I(this,Vn,`f`),Object.keys(I(this,U,`f`)).reduce((e,t)=>{let r=I(this,U,`f`)[t].filter(e=>!(e in n));return r.length>0&&(e[t]=r),e},{})),F(this,U,{},`f`),[`array`,`boolean`,`string`,`skipValidation`,`count`,`normalize`,`number`,`hiddenOptions`].forEach(e=>{t[e]=(I(this,q,`f`)[e]||[]).filter(e=>!n[e])}),[`narg`,`key`,`alias`,`default`,`defaultDescription`,`config`,`choices`,`demandedOptions`,`demandedCommands`,`deprecatedOptions`].forEach(e=>{t[e]=cn(I(this,q,`f`)[e],e=>!n[e])}),t.envPrefix=I(this,q,`f`).envPrefix,F(this,q,t,`f`),F(this,Z,I(this,Z,`f`)?I(this,Z,`f`).reset(n):dn(this,I(this,X,`f`)),`f`),F(this,$,I(this,$,`f`)?I(this,$,`f`).reset(n):Sn(this,I(this,Z,`f`),I(this,X,`f`)),`f`),F(this,L,I(this,L,`f`)?I(this,L,`f`).reset():tn(I(this,Z,`f`),I(this,$,`f`),I(this,H,`f`),I(this,X,`f`)),`f`),I(this,R,`f`)||F(this,R,_n(this,I(this,Z,`f`),I(this,L,`f`),I(this,X,`f`)),`f`),I(this,H,`f`).reset(),F(this,z,null,`f`),F(this,K,``,`f`),F(this,B,null,`f`),F(this,W,!1,`f`),this.parsed=!1,this}[wr](e,t){return I(this,X,`f`).path.relative(e,t)}[Er](e,t,n,r=0,i=!1){let a=!!n||i;e||=I(this,Y,`f`),I(this,q,`f`).__=I(this,X,`f`).y18n.__,I(this,q,`f`).configuration=this[er]();let o=!!I(this,q,`f`).configuration[`populate--`],s=Object.assign({},I(this,q,`f`).configuration,{"populate--":!0}),c=I(this,X,`f`).Parser.detailed(e,Object.assign({},I(this,q,`f`),{configuration:{"parse-positional-numbers":!1,...s}})),l=Object.assign(c.argv,I(this,zn,`f`)),u,d=c.aliases,f=!1,p=!1;Object.keys(l).forEach(e=>{e===I(this,G,`f`)&&l[e]?f=!0:e===I(this,Q,`f`)&&l[e]&&(p=!0)}),l.$0=this.$0,this.parsed=c,r===0&&I(this,Z,`f`).clearCachedHelpMessage();try{if(this[nr](),t)return this[Cr](l,o,!!n,!1);I(this,G,`f`)&&[I(this,G,`f`)].concat(d[I(this,G,`f`)]||[]).filter(e=>e.length>1).includes(``+l._[l._.length-1])&&(l._.pop(),f=!0),F(this,Fn,!1,`f`);let s=I(this,L,`f`).getCommands(),m=I(this,R,`f`)?.completionKey?[I(this,R,`f`)?.completionKey,...this.getAliases()[I(this,R,`f`)?.completionKey]??[]].some(e=>Object.prototype.hasOwnProperty.call(l,e)):!1,h=f||m||i;if(l._.length){if(s.length){let e;for(let t=r||0,a;l._[t]!==void 0;t++){if(a=String(l._[t]),s.includes(a)&&a!==I(this,z,`f`)){let e=I(this,L,`f`).runCommand(a,this,c,t+1,i,f||p||i);return this[Cr](e,o,!!n,!1)}if(!e&&a!==I(this,z,`f`)){e=a;break}}!I(this,L,`f`).hasDefaultCommand()&&I(this,Hn,`f`)&&e&&!h&&I(this,$,`f`).recommendCommands(e,s)}I(this,z,`f`)&&l._.includes(I(this,z,`f`))&&!m&&(I(this,V,`f`)&&ln(!0),this.showCompletionScript(),this.exit(0))}if(I(this,L,`f`).hasDefaultCommand()&&!h){let e=I(this,L,`f`).runCommand(null,this,c,0,i,f||p||i);return this[Cr](e,o,!!n,!1)}if(m){I(this,V,`f`)&&ln(!0),e=[].concat(e);let t=e.slice(e.indexOf(`--${I(this,R,`f`).completionKey}`)+1);return I(this,R,`f`).getCompletion(t,(e,t)=>{if(e)throw new N(e.message);(t||[]).forEach(e=>{I(this,In,`f`).log(e)}),this.exit(0)}),this[Cr](l,!o,!!n,!1)}if(I(this,W,`f`)||(f?(I(this,V,`f`)&&ln(!0),a=!0,this.showHelp(e=>{I(this,In,`f`).log(e),this.exit(0)})):p&&(I(this,V,`f`)&&ln(!0),a=!0,I(this,Z,`f`).showVersion(`log`),this.exit(0))),!a&&I(this,q,`f`).skipValidation.length>0&&(a=Object.keys(l).some(e=>I(this,q,`f`).skipValidation.indexOf(e)>=0&&l[e]===!0)),!a){if(c.error)throw new N(c.error.message);if(!m){let e=this[Dr](d,{},c.error);n||(u=Xt(l,this,I(this,H,`f`).getMiddleware(),!0)),u=this[pr](e,u??l),M(u)&&!n&&(u=u.then(()=>Xt(l,this,I(this,H,`f`).getMiddleware(),!1)))}}}catch(e){if(e instanceof N)I(this,Z,`f`).fail(e.message,e);else throw e}return this[Cr](u??l,o,!!n,!0)}[Dr](e,t,n,r){let i={...this.getDemandedOptions()};return a=>{if(n)throw new N(n.message);I(this,$,`f`).nonOptionCount(a),I(this,$,`f`).requiredArguments(a,i);let o=!1;I(this,Wn,`f`)&&(o=I(this,$,`f`).unknownCommands(a)),I(this,Un,`f`)&&!o?I(this,$,`f`).unknownArguments(a,e,t,!!r):I(this,Gn,`f`)&&I(this,$,`f`).unknownArguments(a,e,{},!1,!1),I(this,$,`f`).limitedChoices(a),I(this,$,`f`).implications(a),I(this,$,`f`).conflicting(a)}}[Or](){F(this,W,!0,`f`)}[kr](e){if(typeof e==`string`)I(this,q,`f`).key[e]=!0;else for(let t of e)I(this,q,`f`).key[t]=!0}};function jr(e){return!!e&&typeof e.getInternalMethods==`function`}const Mr=qn(Vt),Nr=[{command:i(`abuse-reports`,`Submit and track abuse reports for phishing, malware, and other policy violations on Cloudflare-proxied sites`,()=>import(`./abuse-reports-GF9V-_qH.mjs`),null),hideCommand:!1},{command:i(`access`,`Access protected applications and services`,()=>import(`./access-dWdATy_5.mjs`),null),hideCommand:!1},{command:i(`accounts`,`Account settings, members, roles, subscriptions, and API tokens for your Cloudflare account`,()=>import(`./accounts-CNpiDgQ-.mjs`),null),hideCommand:!1},{command:i(`acm`,`acm`,()=>import(`./acm-BXOuZNqO.mjs`),null),hideCommand:!1},{command:i(`addressing`,`addressing`,()=>import(`./addressing-BE4KpVHp.mjs`),null),hideCommand:!1},{command:i(`agent-memory`,`agent-memory`,()=>import(`./agent-memory-WOFBlqfc.mjs`),null),hideCommand:!1},{command:i(`ai`,`ai`,()=>import(`./ai-2syYes5a.mjs`),null),hideCommand:!1},{command:i(`ai-audit`,`ai-audit`,()=>import(`./ai-audit-DBZnZtSH.mjs`),null),hideCommand:!1},{command:i(`ai-gateway`,`Proxy, cache, rate-limit, and observe requests to AI providers — OpenAI, Anthropic, Workers AI, and more`,()=>import(`./ai-gateway-BL8uRjav.mjs`),null),hideCommand:!1},{command:i(`ai-search`,`Managed search-as-a-service: crawl, index, and query content with AI-powered relevance and chat completions`,()=>import(`./ai-search-xKyrECHJ.mjs`),null),hideCommand:!1},{command:i(`ai-security`,`Detect prompt injection, PII, and unsafe topics in traffic to your AI applications`,()=>import(`./ai-security-D-o76TBI.mjs`),null),hideCommand:!1},{command:i(`alerting`,`alerting`,()=>import(`./alerting-D0Hh3IxQ.mjs`),null),hideCommand:!0},{command:i(`analytics`,`Zone-level traffic analytics — dashboard summaries, per-colo breakdowns, and Argo latency metrics`,()=>import(`./analytics-BS_HDYYE.mjs`),null),hideCommand:!1},{command:i(`analytics-engine`,`analytics-engine`,()=>import(`./analytics-engine-B8J0AASh.mjs`),null),hideCommand:!0},{command:i(`api-security`,`api-security`,()=>import(`./api-security-Dm-_J64v.mjs`),null),hideCommand:!1},{command:i(`argo`,`Network optimization features that speed up and improve reliability of traffic to your origins`,()=>import(`./argo-DLLQUUEp.mjs`),null),hideCommand:!1},{command:i(`artifacts`,`artifacts`,()=>import(`./artifacts-B-ILiKwb.mjs`),null),hideCommand:!1},{command:i(`audit-logs`,`audit-logs`,()=>import(`./audit-logs-B6f7Yyqb.mjs`),null),hideCommand:!0},{command:i(`basin-catalog`,`Iceberg-compatible data catalog for R2 — organize objects into tables and namespaces for SQL query engines`,()=>import(`./basin-catalog-C61jbxPf.mjs`),null),hideCommand:!1},{command:i(`billing`,`Account billing profiles and usage data for Cloudflare subscriptions and add-on services`,()=>import(`./billing-CpbtioM3.mjs`),null),hideCommand:!1},{command:i(`bot-management`,`bot-management`,()=>import(`./bot-management-iYrqBG7K.mjs`),null),hideCommand:!0},{command:i(`botnet-feed`,`Botnet threat intelligence feeds — IP and ASN-level data on known command-and-control infrastructure`,()=>import(`./botnet-feed-CiCwJ6Oe.mjs`),null),hideCommand:!1},{command:i(`brand-protection`,`brand-protection`,()=>import(`./brand-protection-D25yQ6cQ.mjs`),null),hideCommand:!1},{command:i(`browser-run`,`browser-run`,()=>import(`./browser-run-CC3fAKEB.mjs`),null),hideCommand:!1},{command:i(`builds`,`Build and deploy Workers from connected repositories, then inspect build status and logs.`,()=>import(`./builds-AFdd5qia.mjs`),null),hideCommand:!1},{command:i(`cache`,`Purge cached content and configure Cache Reserve, tiered caching, and variant serving`,()=>import(`./cache-BI3Oyz-Z.mjs`),null),hideCommand:!1},{command:i(`client-side-security`,`Client-Side Security — monitor JavaScript, connections, and cookies on your pages for supply-chain attacks`,()=>import(`./client-side-security-rknn53xw.mjs`),null),hideCommand:!1},{command:i(`cloud-connector`,`Route traffic from Cloudflare directly to cloud provider services (AWS, Azure, GCP) without origin servers`,()=>import(`./cloud-connector-BTc3qgHz.mjs`),null),hideCommand:!1},{command:i(`cloudforce-one`,`Detection rule management APIs`,()=>import(`./cloudforce-one-BoFYTYsT.mjs`),null),hideCommand:!1},{command:i(`connector-interrupts`,`connector-interrupts`,()=>import(`./connector-interrupts-DZyCZta-.mjs`),null),hideCommand:!1},{command:i(`connector-telemetry-events`,`connector-telemetry-events`,()=>import(`./connector-telemetry-events-BP5GTJuQ.mjs`),null),hideCommand:!1},{command:i(`connector-telemetry-snapshots`,`connector-telemetry-snapshots`,()=>import(`./connector-telemetry-snapshots-Q9y68rU7.mjs`),null),hideCommand:!1},{command:i(`connectors`,`connectors`,()=>import(`./connectors-C6wEHhyM.mjs`),null),hideCommand:!1},{command:i(`containers`,`Deploy and manage Containers applications on Cloudflare's global network`,()=>import(`./containers-DcR44W-a.mjs`),null),hideCommand:!1},{command:i(`content-scan`,`Malicious uploads detection, scan uploaded content in HTTP requests for malware and malicious payloads`,()=>import(`./content-scan-cQbQH1Ko.mjs`),null),hideCommand:!1},{command:i(`cps`,`cps`,()=>import(`./cps-aDZte41c.mjs`),null),hideCommand:!1},{command:i(`csam-scanner`,`csam-scanner`,()=>import(`./csam-scanner-cRaGDmR_.mjs`),null),hideCommand:!1},{command:i(`custom-csrs`,`custom-csrs`,()=>import(`./custom-csrs-DoAFlLRn.mjs`),null),hideCommand:!1},{command:i(`custom-hostnames`,`custom-hostnames`,()=>import(`./custom-hostnames-5vHNAJo7.mjs`),null),hideCommand:!1},{command:i(`custom-nameservers`,`custom-nameservers`,()=>import(`./custom-nameservers-B7dTZfCW.mjs`),null),hideCommand:!1},{command:i(`custom-pages`,`Manage custom error and challenge pages and their assets for accounts and zones`,()=>import(`./custom-pages-DsXlaGqQ.mjs`),null),hideCommand:!1},{command:i(`d1`,`D1 is Cloudflare's managed, serverless database with SQLite's SQL semantics, built-in disaster recovery, and Worker and HTTP API access.`,()=>import(`./d1-DZ2JyfdZ.mjs`),null),hideCommand:!1},{command:i(`diagnostics`,`Network diagnostic tools — traceroutes from Cloudflare's edge and endpoint health checks`,()=>import(`./diagnostics-BIuJQRjU.mjs`),null),hideCommand:!1},{command:i(`dls`,`dls`,()=>import(`./dls-BurMhzEE.mjs`),null),hideCommand:!1},{command:i(`dns`,`dns`,()=>import(`./dns-Dl1VSmFf.mjs`),null),hideCommand:!1},{command:i(`dns-firewall`,`dns-firewall`,()=>import(`./dns-firewall-BykvgGT1.mjs`),null),hideCommand:!1},{command:i(`durable-objects`,`durable-objects`,()=>import(`./durable-objects-BNCJA3NE.mjs`),null),hideCommand:!1},{command:i(`email-auth`,`email-auth`,()=>import(`./email-auth-BYvR29qP.mjs`),null),hideCommand:!1},{command:i(`email-domains`,`email-domains`,()=>import(`./email-domains-C3jG7o39.mjs`),null),hideCommand:!1},{command:i(`email-routing`,`Route incoming email to verified destination addresses or Workers with routing rules, catch-all behavior, and managed DNS records`,()=>import(`./email-routing-BQ7b2KAy.mjs`),null),hideCommand:!1},{command:i(`email-security`,`Cloud email security — investigate threats, manage allow/block policies, and detect phishing`,()=>import(`./email-security-CsoNcUfp.mjs`),null),hideCommand:!1},{command:i(`email-sending`,`Send transactional email and manage sending subdomains and their DNS configuration`,()=>import(`./email-sending-d_b9vyge.mjs`),null),hideCommand:!1},{command:i(`field-extractors`,`field-extractors`,()=>import(`./field-extractors-Be4UTSz-.mjs`),null),hideCommand:!0},{command:i(`firewall`,`Legacy firewall rules, zone lockdowns, access rules, user-agent blocking, and WAF packages`,()=>import(`./firewall-DYGPUErP.mjs`),null),hideCommand:!1},{command:i(`flagship`,`flagship`,()=>import(`./flagship-HIikhoYo.mjs`),null),hideCommand:!1},{command:i(`fraud`,`fraud`,()=>import(`./fraud-DNAOkNU5.mjs`),null),hideCommand:!0},{command:i(`google-tag-gateway`,`Google Tag Gateway operations`,()=>import(`./google-tag-gateway-DHvhuTYu.mjs`),null),hideCommand:!1},{command:i(`healthchecks`,`Standalone health checks that monitor origin server availability from Cloudflare's edge`,()=>import(`./healthchecks-BKtoWgF2.mjs`),null),hideCommand:!1},{command:i(`hyperdrive`,`Accelerate access to existing databases by caching queries and pooling connections at the edge`,()=>import(`./hyperdrive-DQrmkuSh.mjs`),null),hideCommand:!1},{command:i(`iam`,`Identity and access management — permission groups, resource groups, user groups, and SSO connectors`,()=>import(`./iam-BEs1Geob.mjs`),null),hideCommand:!0},{command:i(`images`,`Store, resize, and deliver optimized images globally — variants, signing keys, and direct uploads`,()=>import(`./images-D55kUS0m.mjs`),null),hideCommand:!1},{command:i(`intel`,`Threat intelligence lookups — IP reputation, domain info, ASN details, WHOIS, and indicator feeds`,()=>import(`./intel-BDbanlya.mjs`),null),hideCommand:!1},{command:i(`internal`,`internal`,()=>import(`./internal-Cj_Wo6sr.mjs`),null),hideCommand:!0},{command:i(`ips`,`ips`,()=>import(`./ips-CHrG3mwW.mjs`),null),hideCommand:!0},{command:i(`k2`,`Durable, ordered event streams that you produce records to and consume from with subscriptions`,()=>import(`./k2-CJzI3dVt.mjs`),null),hideCommand:!1},{command:i(`kv`,`kv`,()=>import(`./kv-BjfDMxOg.mjs`),null),hideCommand:!1},{command:i(`leaked-credential-checks`,`Detect compromised credentials in login requests by checking against known breach databases`,()=>import(`./leaked-credential-checks-BHe-erAg.mjs`),null),hideCommand:!1},{command:i(`live`,`live`,()=>import(`./live-DSwOLngp.mjs`),null),hideCommand:!0},{command:i(`load-balancers`,`Distribute traffic across origin pools with health monitoring, geo-steering, and failover`,()=>import(`./load-balancers-CWNEVfum.mjs`),null),hideCommand:!1},{command:i(`logpush`,`logpush`,()=>import(`./logpush-BQhzhkBY.mjs`),null),hideCommand:!1},{command:i(`logs`,`Log control, retention, and raw log access — CMB config, ray ID lookups, and received fields`,()=>import(`./logs-DndNcbrR.mjs`),null),hideCommand:!1},{command:i(`magic-cloud-networking`,`magic-cloud-networking`,()=>import(`./magic-cloud-networking-XmIKU6F1.mjs`),null),hideCommand:!0},{command:i(`magic-network-monitoring`,`Flow-based network traffic monitoring with configurable alerting rules and VPC flow ingestion`,()=>import(`./magic-network-monitoring-BgPLcQzT.mjs`),null),hideCommand:!0},{command:i(`magic-transit`,`DDoS-protected network transit — GRE/IPsec tunnels, static routes, Magic WAN sites, connectors, and packet captures`,()=>import(`./magic-transit-C2kLj1Hd.mjs`),null),hideCommand:!1},{command:i(`managed-defense`,`managed-defense`,()=>import(`./managed-defense-Bq63Exyv.mjs`),null),hideCommand:!1},{command:i(`managed-transforms`,`managed-transforms`,()=>import(`./managed-transforms-Bz3Q6vSk.mjs`),null),hideCommand:!0},{command:i(`mcp`,`Manage MCP portals and upstream MCP servers for Cloudflare Access AI controls`,()=>import(`./mcp-IiegTI5c.mjs`),null),hideCommand:!1},{command:i(`mesh`,`mesh`,()=>import(`./mesh-C7sj3FL4.mjs`),null),hideCommand:!1},{command:i(`monetization`,`monetization`,()=>import(`./monetization-DvfqZhGk.mjs`),null),hideCommand:!1},{command:i(`network`,`network`,()=>import(`./network-CnqNYoOf.mjs`),null),hideCommand:!1},{command:i(`network-interconnects`,`Physical and virtual private interconnects between your infrastructure and Cloudflare's network`,()=>import(`./network-interconnects-BXftLikd.mjs`),null),hideCommand:!1},{command:i(`o11y`,`o11y`,()=>import(`./o11y-1Qku543b.mjs`),null),hideCommand:!1},{command:i(`oauth-clients`,`oauth-clients`,()=>import(`./oauth-clients-DXNO-K_e.mjs`),null),hideCommand:!0},{command:i(`oauth-scopes`,`oauth-scopes`,()=>import(`./oauth-scopes-WxoyDblU.mjs`),null),hideCommand:!0},{command:i(`organization`,`organization`,()=>import(`./organization-HBQnzh8z.mjs`),null),hideCommand:!1},{command:i(`organizations`,`Multi-user organizations that group accounts, members, and shared settings under a single entity`,()=>import(`./organizations-DvS-ENN2.mjs`),null),hideCommand:!1},{command:i(`origin-post-quantum-encryption`,`Enable post-quantum key exchange for connections between Cloudflare and your origin server`,()=>import(`./origin-post-quantum-encryption-BnjX0dCp.mjs`),null),hideCommand:!1},{command:i(`page-rules`,`page-rules`,()=>import(`./page-rules-CypVq1Wb.mjs`),null),hideCommand:!0},{command:i(`pages`,`Full-stack application hosting with Git-integrated builds, preview deployments, and custom domains`,()=>import(`./pages-BxLbPYIf.mjs`),null),hideCommand:!1},{command:i(`pay-per-crawl`,`pay-per-crawl`,()=>import(`./pay-per-crawl-KidGhWnn.mjs`),null),hideCommand:!1},{command:i(`pay-per-use`,`pay-per-use`,()=>import(`./pay-per-use-DcsdwXr7.mjs`),null),hideCommand:!1},{command:i(`pipelines`,`Ingest, transform, and route event streams into R2, analytics, or other destinations in real time`,()=>import(`./pipelines-CX7esgh3.mjs`),null),hideCommand:!1},{command:i(`precursor`,`Precursor settings for a zone`,()=>import(`./precursor-BzDcAmUT.mjs`),null),hideCommand:!0},{command:i(`previews`,`Manage Worker Previews`,()=>import(`./previews-B7MZKZK6.mjs`),null),hideCommand:!1},{command:i(`queues`,`Reliable message queuing between Workers — produce, consume, and batch-process messages at scale`,()=>import(`./queues-mSjNdJNl.mjs`),null),hideCommand:!1},{command:i(`r2`,`S3-compatible object storage with zero egress fees — buckets, lifecycle rules, event notifications, and data migration`,()=>import(`./r2-ClBc0jT0.mjs`),null),hideCommand:!1},{command:i(`radar`,`Internet-wide traffic intelligence — BGP, DNS, HTTP trends, attack data, and network quality insights`,()=>import(`./radar-C9GwykGn.mjs`),null),hideCommand:!1},{command:i(`ready`,`ready`,()=>import(`./ready-DhdeN4ga.mjs`),null),hideCommand:!0},{command:i(`realtime`,`Real-time audio, video, and data services on Cloudflare's global network`,()=>import(`./realtime-9V5zWcij.mjs`),null),hideCommand:!1},{command:i(`registrar`,`registrar`,()=>import(`./registrar-DsI2A62h.mjs`),null),hideCommand:!1},{command:i(`registrar-sandbox`,`registrar-sandbox`,()=>import(`./registrar-sandbox-DcjFW26g.mjs`),null),hideCommand:!1},{command:i(`reporting`,`reporting`,()=>import(`./reporting-pAQ3jvEO.mjs`),null),hideCommand:!1},{command:i(`request-tracers`,`Trace how a request would be processed through Cloudflare's rules and configuration pipeline`,()=>import(`./request-tracers-CQqdbHj8.mjs`),null),hideCommand:!1},{command:i(`resource-sharing`,`Share Cloudflare resources (zones, accounts) across organizations with granular access controls`,()=>import(`./resource-sharing-BJraifhD.mjs`),null),hideCommand:!1},{command:i(`rules`,`Resources used by Cloudflare rules and rulesets`,()=>import(`./rules-B_Mopjel.mjs`),null),hideCommand:!1},{command:i(`rulesets`,`rulesets`,()=>import(`./rulesets-DRV0HtYz.mjs`),null),hideCommand:!1},{command:i(`rum`,`Real User Measurement (Web Analytics) — track page loads, Core Web Vitals, and visitor metrics`,()=>import(`./rum-D5dYq2Uy.mjs`),null),hideCommand:!0},{command:i(`scim`,`SCIM 2.0 provisioning — manage users, groups, and identity provider sync for your account`,()=>import(`./scim-C91WGj_g.mjs`),null),hideCommand:!0},{command:i(`secrets-store`,`Centralized secret management — store API keys, tokens, and credentials for use across Workers and other products`,()=>import(`./secrets-store-D4Zr-fuz.mjs`),null),hideCommand:!1},{command:i(`security-insights`,`security-insights`,()=>import(`./security-insights-DJWdVax5.mjs`),null),hideCommand:!1},{command:i(`security-txt`,`Manage the /.well-known/security.txt file that tells security researchers how to report vulnerabilities`,()=>import(`./security-txt-B0NLFJNk.mjs`),null),hideCommand:!1},{command:i(`signed-url`,`signed-url`,()=>import(`./signed-url-DBf_p7Wf.mjs`),null),hideCommand:!0},{command:i(`smart-shield`,`Smart Shield settings, health checks, and cache reserve management`,()=>import(`./smart-shield-BufLvdU3.mjs`),null),hideCommand:!1},{command:i(`snippets`,`snippets`,()=>import(`./snippets-DA2Gk50m.mjs`),null),hideCommand:!1},{command:i(`spectrum`,`Proxy and protect arbitrary TCP/UDP applications through Cloudflare's network with DDoS mitigation`,()=>import(`./spectrum-DlI8qtVo.mjs`),null),hideCommand:!1},{command:i(`speed`,`Observatory speed tests — run Lighthouse audits, track performance trends, and schedule recurring tests`,()=>import(`./speed-DNwm5gYl.mjs`),null),hideCommand:!1},{command:i(`sql`,`sql`,()=>import(`./sql-aBDdRWdd.mjs`),null),hideCommand:!1},{command:i(`ssl`,`SSL/TLS certificate management — certificate packs, Universal SSL, verification, and TLS mode recommendations`,()=>import(`./ssl-DEDucWlo.mjs`),null),hideCommand:!1},{command:i(`stream`,`Video encoding, storage, and delivery — upload, live-stream, clip, caption, and embed video at scale`,()=>import(`./stream-DGv9Bssl.mjs`),null),hideCommand:!1},{command:i(`tags`,`tags`,()=>import(`./tags-CNBA4Pf1.mjs`),null),hideCommand:!1},{command:i(`tenant`,`tenant`,()=>import(`./tenant-DVtqafWB.mjs`),null),hideCommand:!1},{command:i(`tenant-custom-nameservers`,`tenant-custom-nameservers`,()=>import(`./tenant-custom-nameservers-CtrqQc_i.mjs`),null),hideCommand:!0},{command:i(`tunnels`,`tunnels`,()=>import(`./tunnels-Bc_r--ln.mjs`),null),hideCommand:!1},{command:i(`turnstile`,`CAPTCHA-free bot verification widgets that protect forms and APIs without degrading user experience`,()=>import(`./turnstile-Cr2cTE0C.mjs`),null),hideCommand:!1},{command:i(`url-normalization`,`url-normalization`,()=>import(`./url-normalization-D6r0sLRj.mjs`),null),hideCommand:!0},{command:i(`url-scanner`,`Scan URLs for phishing, malware, and other threats — submit scans and retrieve detailed results`,()=>import(`./url-scanner-D4u7jbzf.mjs`),null),hideCommand:!0},{command:i(`user`,`Your Cloudflare user profile, invitations, organizations, billing, and personal API tokens`,()=>import(`./user-DhWPKWo0.mjs`),null),hideCommand:!1},{command:i(`vectorize`,`Globally distributed vector database for building semantic search, recommendations, and RAG applications on Workers`,()=>import(`./vectorize-CB9IjpC3.mjs`),null),hideCommand:!1},{command:i(`waiting-rooms`,`Virtual queues that throttle traffic to your site during peak demand with customizable waiting pages`,()=>import(`./waiting-rooms-BYlwhzgD.mjs`),null),hideCommand:!1},{command:i(`web-assets`,`web-assets`,()=>import(`./web-assets-Nn2HArqh.mjs`),null),hideCommand:!1},{command:i(`web3`,`web3`,()=>import(`./web3-DpJNkFNQ.mjs`),null),hideCommand:!0},{command:i(`workers`,`workers`,()=>import(`./workers-BkNt1wSN.mjs`),null),hideCommand:!1},{command:i(`workers-builds`,`workers-builds`,()=>import(`./workers-builds-BL3dK2R3.mjs`),null),hideCommand:!0},{command:i(`workers-for-platforms`,`workers-for-platforms`,()=>import(`./workers-for-platforms-CAQLG6dE.mjs`),null),hideCommand:!1},{command:i(`workers-vpc`,`workers-vpc`,()=>import(`./workers-vpc-WnRec8oo.mjs`),null),hideCommand:!1},{command:i(`workflows`,`Durable, multi-step workflows that run on Workers with automatic retries and state persistence`,()=>import(`./workflows-DpXBMizW.mjs`),null),hideCommand:!1},{command:i(`zaraz`,`Server-side tag manager — load third-party tools (analytics, pixels, etc.) from Cloudflare's edge without client-side JS`,()=>import(`./zaraz-hWisKRaN.mjs`),null),hideCommand:!1},{command:i(`zero-trust`,`Cloudflare's SASE platform — secure access, device posture, DLP, tunnels, gateway policies, and network segmentation`,()=>import(`./zero-trust-DiZhiSa4.mjs`),null),hideCommand:!1},{command:i(`zone`,`zone`,()=>import(`./zone-D7b949er.mjs`),null),hideCommand:!1},{command:i(`zones`,`Zones are domains on Cloudflare — list, create, and configure domain settings`,()=>import(`./zones-giCZ0LO8.mjs`),null),hideCommand:!1}];function Pr(e){return typeof e==`object`&&!!e&&`schemas`in e&&typeof e.schemas==`object`&&e.schemas!==null&&!Array.isArray(e.schemas)}function Fr(e,t){if(!t)return e;let n=a(import.meta.url,`schemas.json`,Pr);return!n||!Object.hasOwn(n.schemas,t)?e:`${e}\n\n${o.italic(`To inspect the exact API request, run ${o.code(`cf schema ${t}`)}`)}`}const Ir=[{kind:`root`,dryRun:`preview`,command:`auth`,describe:`Manage authentication and profiles`,dir:`auth`},{kind:`root`,dryRun:`preview`,command:`login`,describe:!1,dir:`login`},{kind:`root`,dryRun:`preview`,command:`build`,describe:`Build a project for Cloudflare`,dir:`build`},{kind:`root`,dryRun:`preview`,command:`complete [shell]`,describe:`Generate and handle shell completions`,dir:`completions`},{kind:`root`,dryRun:`native`,command:`deploy`,describe:`Deploy a project to Cloudflare`,dir:`deploy`},{kind:`root`,dryRun:`preview`,command:`dev [implArgs..]`,describe:`Run the project's Cloudflare dev server`,dir:`dev`},{kind:`root`,dryRun:`preview`,command:`docs`,describe:`Search live Cloudflare documentation`,dir:`docs`},{kind:`root`,dryRun:`preview`,command:`init [directory]`,describe:`Create a new Cloudflare project or set up an existing one`,dir:`init`},{kind:`root`,dryRun:`native`,command:`migrate [path]`,describe:`Migrate a Wrangler project to cf`,dir:`migrate`},{kind:`root`,dryRun:`preview`,command:`cli`,describe:`Discover commands and configure the cf CLI`,dir:`cli`},{kind:`leaf`,dryRun:`preview`,parent:`previews`,name:`deploy`,dir:`previews/deploy`},{kind:`parentOverride`,parent:`previews`,describe:`Manage Worker Previews`,expose:!0,createIfMissing:!0},{kind:`root`,dryRun:`preview`,command:`schema [command..]`,describe:`Show API schema details for a command`,dir:`schema`},{kind:`root`,dryRun:`preview`,command:`tools`,describe:!1,dir:`tools`},{kind:`leafOverride`,dryRun:`native`,emitKey:`ai/run`,dir:`ai/run`},{kind:`leafOverride`,dryRun:`native`,emitKey:`registrar/registrations/create`,dir:`registrar/registrations/create`},{kind:`leaf`,dryRun:`native`,parent:`workers/versions`,name:`create`,dir:`workers/versions/create`},{kind:`leaf`,dryRun:`preview`,parent:`containers`,name:`build`,dir:`containers/build`},{kind:`leaf`,dryRun:`preview`,parent:`containers`,name:`push`,dir:`containers/push`},{kind:`leaf`,dryRun:`preview`,parent:`containers/images`,name:`list`,dir:`containers/images/list`},{kind:`leaf`,dryRun:`preview`,parent:`containers/images`,name:`delete`,dir:`containers/images/delete`},{kind:`leaf`,dryRun:`preview`,parent:`containers`,name:`ssh`,dir:`containers/ssh`},{kind:`leaf`,dryRun:`preview`,parent:`pages`,name:`deploy`,dir:`pages/deploy`},{kind:`leaf`,dryRun:`preview`,parent:`workers`,name:`check`,dir:`workers/check`},{kind:`leaf`,dryRun:`preview`,parent:`workers`,name:`types`,dir:`workers/types`},{kind:`parentOverride`,parent:`access`,describe:`Access protected applications and services`,expose:!0},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`login`,dir:`access/login`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`token`,dir:`access/token`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`ssh-config`,dir:`access/ssh-config`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`ssh-gen`,dir:`access/ssh-gen`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`tcp`,dir:`access/tcp`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`curl`,dir:`access/curl`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`diag`,dir:`tunnels/diag`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`login`,dir:`tunnels/login`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`quick-start`,dir:`tunnels/quick-start`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`ready`,dir:`tunnels/ready`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`run`,dir:`tunnels/run`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`tail`,dir:`tunnels/tail`},{kind:`subgroup`,dryRun:`preview`,parent:`d1`,name:`migrations`,dir:`d1/migrations`,describe:`Create, list, and apply D1 database migrations`},{kind:`subgroup`,dryRun:`native`,parent:`workers`,name:`triggers`,dir:`workers/triggers`,describe:`Manage triggers (Routes, Workflows, Cron triggers etc.)`}];function Lr(){return Ir.filter(e=>e.kind===`root`)}function Rr(e){return e.command.split(/\s+/)[0]??e.command}const zr={auth:{load:()=>import(`./auth-CENmPoCB.mjs`),telemetry:{command:`auth`,recordArgs:!1}},login:{load:()=>import(`./login-D2Bf_HMY.mjs`),telemetry:null},build:{load:()=>import(`./build-CovoviZW.mjs`),telemetry:{command:`build`,classification:{safeFlags:[]}}},completions:{load:()=>import(`./completions-DGe2alry.mjs`),telemetry:null},deploy:{load:()=>import(`./deploy-CPFnQQOk.mjs`),telemetry:{command:`deploy`,classification:{safeFlags:[`dry-run`,`prebuilt`,`containers-rollout`,`provision`]}}},dev:{load:()=>import(`./dev-rRWAGDV_.mjs`),telemetry:{command:`dev`,recordArgs:!1}},init:{load:()=>import(`./init-BTXSeUaj.mjs`),telemetry:{command:`init`,classification:{safeFlags:[`install`,`package-manager`]}}},migrate:{load:()=>import(`./migrate-D7pH9_Y8.mjs`),telemetry:{command:`migrate`,recordArgs:!1}},docs:{load:()=>import(`./docs-FllOac9a.mjs`),telemetry:{command:`docs`,recordArgs:!1}},cli:{load:()=>import(`./cli-Dji5-s1V.mjs`),telemetry:{command:`cli`,recordArgs:!1}},schema:{load:()=>import(`./schema-DuLIZRhA.mjs`),telemetry:{command:`schema`,classification:{safeFlags:[`list`]}}},tools:{load:()=>import(`./tools-C-vmgYSv.mjs`),telemetry:{command:`tools`,classification:{safeFlags:[`text`]}}}};function Br(){return Lr().map(e=>({...e,...zr[e.dir]}))}const Vr={quiet:{type:`boolean`,alias:`q`,description:`Suppress non-essential output`,global:!0,default:!1},zone:{type:`string`,alias:`z`,description:`Zone ID or domain name (overrides CLOUDFLARE_ZONE_ID)`,global:!0},profile:{type:`string`,description:`Use a specific auth profile`,requiresArg:!0,global:!0},mode:{type:`string`,alias:`m`,description:`Mode used to evaluate project configuration`,requiresArg:!0,global:!0,coerce:e=>{if(Array.isArray(e))throw Error(`--mode can only be specified once.`);if(e===``)throw Error(`--mode requires a non-empty value.`);return e}},"temporary-account":{type:`boolean`,description:`Create or reuse a temporary account when no Cloudflare credentials are available`,global:!0,default:!1,hidden:!0},"event-code":{type:`string`,description:`Specify the event code to use when creating a temporary account for an event`,requiresArg:!0,global:!0,hidden:!0,coerce:e=>{if(Array.isArray(e))throw Error(`--event-code expects a single value.`);let t=e.trim();if(!t)throw Error(`--event-code cannot be empty.`);return t}},local:{type:`boolean`,description:`Use local resource simulations`,global:!0,default:!1},"persist-to":{type:`string`,description:`Directory holding local persisted state (default: ~/.config/cloudflare/state)`,requiresArg:!0,global:!0}};function Hr(e,t){return Object.entries(Vr).some(([n,r])=>{if(r.type===`boolean`&&t!==`true`&&t!==`false`)return!1;let i=r.alias;return[n,...Array.isArray(i)?i:i===void 0?[]:[i]].some(t=>e===(t.length===1?`-${t}`:`--${t}`))})}const Ur=Br().map(e=>ee(i(e.command,e.describe,e.load,e.telemetry),e.dryRun)),Wr=new Set(Lr().map(Rr)),Gr=[`=== STOP: AGENT COMMAND DISCOVERY ===`,`AGENTS: Do not explore commands by chaining nested --help calls.`,`Your first port of call and the best way to discover commands is:`,`AGENTS: Keep cf cli search and cf docs search queries anonymous; describe the action and resource type only.`,`Never include names, email addresses, domains, account or resource IDs, tokens, or other identifying values.`,` cf cli search "<describe the task you want to accomplish>"`,`It returns five compact JSON matches with short descriptions. Pick the best match instead of repeating similar searches.`,"Run `<discovered command> --help` for detailed command help.","For API request details, replace the result's leading `cf` with `cf schema`.",`For Cloudflare documentation, guides, and examples, use cf docs search "<question>".`,`It returns ranked JSON results. Fetch a result's URL with Accept: text/markdown to read the full page.`,`=== END AGENT COMMAND DISCOVERY ===`].join(`
|
|
115
|
+
`);function Kr(e){return s().isAgentic?`${Gr}\n${e}`:e}function qr(e,t){return Kr(Fr(e,t))}async function Jr(e=!1){if(!process.stderr.isTTY||e||c(process.argv.slice(2))||Zr()===`complete`)return;let{isCI:t}=await import(`./interactive-CHcvofEp.mjs`);if(t)return;let{readState:n,updateState:r}=await import(`./state-B3Uy1jPX.mjs`);if(n().completions?.prompted)return;r({completions:{prompted:!0}});let{log:i}=await import(`./log-DZfik9Jk.mjs`);i.info(`Tip: run ${o.code(`cf complete <bash|zsh|fish|powershell>`)} to install shell completions.`)}let Yr;function Xr(){return Yr??=import(`./telemetry-klBrZrC7.mjs`),Yr}function Zr(e=process.argv.slice(2)){return Qr(e,1)[0]}function Qr(e=process.argv.slice(2),t=2){let n=[];for(let r=0;r<e.length&&n.length<t;r++){let t=e[r];if(t===void 0||t===`--`)break;Hr(t,e[r+1])?r++:t.startsWith(`-`)||n.push(t)}return n}async function $r(e=!1){if(!process.stderr.isTTY)return;let t=process.argv.slice(2);if(e||c(t)||t.includes(`--help`)||t.includes(`-h`)||oi(Qr(t).join(` `)))return;let{getBannerLastShown:n,getTelemetryDispatcher:r,setBannerLastShown:i}=await Xr();if(!r().enabled||n()===f)return;let{log:a}=await import(`./log-DZfik9Jk.mjs`);a.info(`Cloudflare collects anonymous cf usage telemetry. Run ${o.code(`cf cli telemetry disable`)} to opt out.`),i(f)}async function ei(){try{await Promise.race([re(),b(1e3,void 0,{ref:!1})])}catch{}}const ti=/^Unknown commands?: /,ni=/^Did you mean (.+)\?$/;function ri(e){return e instanceof Error&&e.message.startsWith(`Unknown command:`)}function ii(e,t){let n=ni.exec(t)?.[1],r;if(n!==void 0)r=`suggested-command`;else if(ti.test(t))r=`unknown-subcommand`;else if(t===`You need to specify a command`)r=`missing-command`;else return;try{let t=e,i=t.getInternalMethods(),a=i.getContext().commands,o=i.getCommandInstance().getCommands(),s=t.parsed?t.parsed.argv?._:void 0;if(!Array.isArray(a)||!a.every(e=>typeof e==`string`)||!Array.isArray(o))return;let c=a.length>0&&o.length===0;return{kind:r===`unknown-subcommand`&&c?`surplus-positional`:r,knownCommand:a,knownCommandIsLeaf:c,unknownTokens:Array.isArray(s)?s.slice(a.length).map(String):[],...n===void 0?{}:{suggestedCommand:n}}}catch{return}}function ai(e){try{let t=e.getInternalMethods().getContext().commands;return!Array.isArray(t)||t.length===0||!t.every(e=>typeof e==`string`)?void 0:t.join(` `)}catch{return}}function oi(e){let[t,n]=e.split(` `);return t===`complete`||t===`cli`&&n===`telemetry`}function si(e){let[t,...n]=e.unknownTokens,r=e.suggestedCommand??t;return[...e.knownCommand,...r===void 0?[]:[r],...n].join(` `).toLowerCase()}async function ci(e,t,n){if(v()||e instanceof l)return;let r=ri(e)||n?.knownCommand.length===0,i=r?void 0:t;if(!(i===void 0&&!r||oi(i??Qr().join(` `))||n!==void 0&&oi(si(n))))try{let{getTelemetryDispatcher:t,UNKNOWN_COMMAND_EVENT:r}=await Xr(),{sanitizeError:a}=await import(`./error-sanitization-rodO1WCL.mjs`),o=t();if(!o.enabled)return;let s=n?await li(n):{argsUsed:[],argsCombination:``},c={command:i??r,sanitizedArgs:{},...s};o.sendCommandEvent(`cf command started`,c),o.sendCommandEvent(`cf command finished`,{...c,outcome:`error`,durationMs:0,...a(e)})}catch{}}async function li(e){let{loadCommandVocabulary:t,sanitizeCommandResolution:n}=await import(`./command-resolution-DAQ4PWUt.mjs`);return n(e,gt(process.argv),t(Object.keys(Vr)))}async function ui(e){if(e&&!oi(e))try{let{getTelemetryDispatcher:t}=await Xr();t().sendAdhocEvent(`cf help shown`,{command:e})}catch{}}function di(e){let t=process.argv.slice(2),n=t.indexOf(`--`),r=n===-1?t:t.slice(0,n);return!r.includes(`--version`)&&!r.includes(`-v`)?!1:(h(f,{quiet:c(r),update:e}),console.log(f),!0)}function fi(e){if(process.argv.slice(2).length>0)return!1;let t=[p(f,e),``,`The Cloudflare CLI — manage your account, zones, and developer platform.`,``,`${o.bold(`Get started:`)}`,` ${o.code(`cf auth login`)} ${o.muted(`Authenticate with Cloudflare`)}`,` ${o.code(`cf --help`)} ${o.muted(`Browse all commands`)}`,` ${o.code(`cf <command> --help`)} ${o.muted(`Per-command help`)}`,` ${o.code(`cf migrate`)} ${o.muted(`Migrate a Wrangler project to cf`)}`,` ${o.code(`cf complete bash`)} ${o.muted(`Install shell completions`)}`,``,`${o.bold(`Docs:`)} ${o.brand(`https://developers.cloudflare.com/`)}`,``];return console.log(t.join(`
|
|
116
|
+
`)),!0}function pi(e=!1,t){let n=process.argv.slice(2),r=n.indexOf(`--`),i=r===-1?n:n.slice(0,r);i.length!==0&&(i.includes(`--version`)||i.includes(`-v`)||Zr(i)!==`complete`&&h(f,{quiet:e||c(i),update:t}))}async function mi(){let e=process.argv.slice(2);if(c(e)||Zr(e)===`complete`||(e.length===0?process.stdout.isTTY!==!0:process.stderr.isTTY!==!0))return;let{isCI:t}=await import(`./interactive-CHcvofEp.mjs`);if(t)return;let{getUpdateNotice:n,maybeStartBackgroundUpdateCheck:r}=await import(`./update-check-B5V9BBM7.mjs`),i=!1;return{notice:n(f),start(){i||(i=!0,r())}}}function hi(e,t={}){let{onCommandResolved:n,onCommandResolutionFailed:r,onHelpShown:i,updateCheck:a}=t,s,c=e=>o.brand(e),l=e.indexOf(`--`),p=(l===-1?e:e.slice(0,l)).some(e=>e===`--local`||e===`--no-local`||e.startsWith(`--local=`)),h=Mr(e).scriptName(`cf`).parserConfiguration({"sort-commands":!0}).wrap(process.stdout.columns||80).usage(`$0 <command> [options]`).usage(`
|
|
117
|
+
The Cloudflare CLI - manage your Cloudflare resources`).updateStrings({"Commands:":c(`Commands`),"Options:":c(`Options`),"Positionals:":c(`Positionals`),"Examples:":c(`Examples`)}).help(`help`,`Show help`).alias(`h`,`help`).options(Vr).group([...Object.keys(Vr),`help`,`version`],c(`Global flags`));for(let e of Ur)h.command(e);for(let e of Nr)e.hideCommand?h.command({...e.command,describe:!1}):h.command(e.command);h.middleware(async e=>{pi(e.quiet,a?.notice),a?.start();let t=ai(h);t!==void 0&&n?.(t);try{await $r(e.quiet)}catch{}try{await Jr(e.quiet)}catch{}te(e.mode);let r=String(e._[0]??``),i=e.persistTo??e[`persist-to`];if(!e.help&&(r===`dev`&&p||e.local&&Wr.has(r)))throw Error(`--local is not supported by cf ${r}.`);if(!e.help&&r===`dev`&&i!==void 0)throw Error(`--persist-to is not supported by cf dev.`);if(i===``)throw Error(`--persist-to requires a non-empty directory.`);if(i!==void 0&&!e.local)throw Error(`--persist-to can only be used with --local.`);if(e[`temporary-account`]&&e.local)throw Error(`--temporary-account cannot be used with --local.`);let o=e[`event-code`];if(o!==void 0&&!e[`temporary-account`])throw Error(`--event-code requires --temporary-account.`);if(t!==void 0&&u(t,e.local)&&(s=await d(e)),!e.local){let{resolveProfile:t,setTemporaryAccountRequested:n}=await import(`./oauth-B-SYl8nR.mjs`);n(e[`temporary-account`],o===void 0?void 0:{eventCode:o});let r=t(e.profile);m(r)}}).demandCommand(1,`You need to specify a command`).strictCommands().strictOptions().recommendCommands().version(f).alias(`v`,`version`).epilogue(`For more information, visit https://developers.cloudflare.com/`).exitProcess(!1).fail((e,t,o)=>{pi(!1,a?.notice),a?.start();let s=ai(h);if(s!==void 0&&n?.(s),t)throw t;let c=ni.exec(e)?.[1];if(c&&!o.getCommands().some(([e])=>e.split(` `)[0]===c))return;if(e===`Please specify a subcommand`){s!==void 0&&i?.(s),o.showHelp(`log`);return}let l=Error(e),u=ii(h,e);throw u&&r?.(u,l),o.showHelp(`error`),l});let g=h.showHelp.bind(h);h.showHelp=e=>g(t=>{let r=ai(h);r!==void 0&&n?.(r),i?.(r??`cf`);let a=qr(t,r);typeof e==`function`?e(a):e===`log`?console.log(a):console.error(a)});let ee=h.getHelp.bind(h);return h.getHelp=async()=>qr(await ee(),ai(h)),{cli:h,dispose:()=>{s?.(),s=void 0}}}async function gi(e){let t=process.argv;process.argv=[`node`,`cf`,...e];try{await _i()}finally{process.argv=t}}async function _i(){te(void 0),ne();let e=await mi();if(di(e?.notice)||fi(e?.notice))throw e?.start(),new l(0);let t,n,r,{cli:i,dispose:a}=hi(gt(process.argv),{onCommandResolved:e=>{t=e},onCommandResolutionFailed:(e,t)=>{n={failure:e,error:t}},onHelpShown:e=>{r=e},updateCheck:e}),o=gt(process.argv),s=o.indexOf(`--`),c=s===-1?o:o.slice(0,s);if(c.includes(`--help`)||c.includes(`-h`)){pi(!1,e?.notice),e?.start();try{await Jr()}catch{}}try{await i.parse(gt(process.argv)),await ui(r)}catch(e){if(e instanceof l)throw e;if(t===void 0){try{await $r()}catch{}try{await Jr()}catch{}}let r=n!==void 0&&n.error===e?n.failure:void 0;throw await ci(e,t??ai(i),r),g(e)}finally{a(),await _(),await ei()}}export{_i as n,gi as r,hi as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{t as e}from"./rolldown-runtime-BNtqjh-B.mjs";var t=/* @__PURE__ */ e(((e,t)=>{let n={to(e,t){return t?`[${t+1};${e+1}H`:`[${e+1}G`},move(e,t){let n=``;return e<0?n+=`[${-e}D`:e>0&&(n+=`[${e}C`),t<0?n+=`[${-t}A`:t>0&&(n+=`[${t}B`),n},up:(e=1)=>`[${e}A`,down:(e=1)=>`[${e}B`,forward:(e=1)=>`[${e}C`,backward:(e=1)=>`[${e}D`,nextLine:(e=1)=>`\x1B[E`.repeat(e),prevLine:(e=1)=>`\x1B[F`.repeat(e),left:`\x1B[G`,hide:`\x1B[?25l`,show:`\x1B[?25h`,save:`\x1B7`,restore:`\x1B8`};t.exports={cursor:n,scroll:{up:(e=1)=>`\x1B[S`.repeat(e),down:(e=1)=>`\x1B[T`.repeat(e)},erase:{screen:`\x1B[2J`,up:(e=1)=>`\x1B[1J`.repeat(e),down:(e=1)=>`\x1B[J`.repeat(e),line:`\x1B[2K`,lineEnd:`\x1B[K`,lineStart:`\x1B[1K`,lines(e){let t=``;for(let r=0;r<e;r++)t+=this.line+(r<e-1?n.up():``);return e&&(t+=n.left),t}},beep:`\x07`}}));export{t};
|