cf 1.0.0-beta.15 → 1.0.0-beta.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_meta/commands.json +3797 -3220
- package/dist/_meta/hand-written-commands.json +2 -2
- package/dist/_meta/schemas.json +4768 -4250
- package/dist/{abuse-reports-CnQBtN1G.mjs → abuse-reports-17K-TRhO.mjs} +1 -1
- package/dist/{access-BzmXSwzj.mjs → access-BwB7sg1D.mjs} +1 -1
- package/dist/{account-tags-2qPWbW17.mjs → account-tags-povXTDAu.mjs} +1 -1
- package/dist/{accounts-B0Byg-AV.mjs → accounts-BnIGu_ac.mjs} +39 -39
- package/dist/{acm-DgAu0cnk.mjs → acm-CQRcu_zw.mjs} +3 -3
- package/dist/{addressing-J1oa0ML2.mjs → addressing-Qcm9jd3C.mjs} +14 -14
- package/dist/{agent-memory-4KGou-tm.mjs → agent-memory-B3xN9I6-.mjs} +1 -1
- package/dist/{ai-WY7wVQfA.mjs → ai-BRKOCckA.mjs} +1 -1
- package/dist/{ai-audit-D38HaEoZ.mjs → ai-audit-Cd9Rc2Fc.mjs} +1 -1
- package/dist/{ai-gateway-C0gIipT8.mjs → ai-gateway-BWU5064V.mjs} +6 -6
- package/dist/{ai-search-ClwnPU-9.mjs → ai-search-CJ3b8eot.mjs} +23 -23
- package/dist/{ai-security-BIsvFPYV.mjs → ai-security-Dn0Ee6QS.mjs} +1 -1
- package/dist/{alerting-MHhv28oO.mjs → alerting-BXTiMfXo.mjs} +1 -1
- package/dist/{analytics-BfBz7bqB.mjs → analytics-Jyd04TRW.mjs} +1 -1
- package/dist/{analytics_engine-CXVdBF1n.mjs → analytics-engine-CzrNfUeh.mjs} +2 -2
- package/dist/{api-security-DUCfcdC1.mjs → api-security-DRBHZaf_.mjs} +2 -2
- package/dist/{argo-CUlzI4v3.mjs → argo-DiQt0pSb.mjs} +1 -1
- package/dist/{artifacts-BLfWGzBg.mjs → artifacts-eBZ4YN53.mjs} +1 -1
- package/dist/audit-logs-Bb4HTZay.mjs +4 -0
- package/dist/{auth-CGRemu5W.mjs → auth-C6My1gI6.mjs} +1 -1
- package/dist/auth-OFqV2M4q.mjs +2 -0
- package/dist/{auth-C6u9qIGO.mjs → auth-eVI_UEt8.mjs} +1 -1
- package/dist/{auth-token-DkkYg4DP.mjs → auth-token-Cfj2yehs.mjs} +1 -1
- package/dist/{basin-catalog-CrKRYJ0b.mjs → basin-catalog-Cwk1RSMX.mjs} +1 -1
- package/dist/{billing-NxehgXrR.mjs → billing-CfV8oi6A.mjs} +7 -7
- package/dist/{bot-management-C993iQKL.mjs → bot-management-CH4_Kewx.mjs} +1 -1
- package/dist/{botnet-feed-CZ4vYk5y.mjs → botnet-feed-Cg_Wp8ei.mjs} +1 -1
- package/dist/{brand-protection-ADVgIi0l.mjs → brand-protection-Cp2ckWou.mjs} +1 -1
- package/dist/browser-run-CfQ30dB6.mjs +42 -0
- package/dist/{builds-DqtiTH7p.mjs → builds-B2RBgVL9.mjs} +1 -1
- package/dist/{cache-hX5QxmI0.mjs → cache-yvrYPvRI.mjs} +1 -1
- package/dist/{certificate-authorities-BOcybjc1.mjs → certificate-authorities-BdMRaOnD.mjs} +1 -1
- package/dist/{cli-R8h3OKZI.mjs → cli-CsnoQloF.mjs} +1 -1
- package/dist/{client-certificates-Bez_ArKE.mjs → client-certificates-CuWGvZSr.mjs} +1 -1
- package/dist/{client-side-security-CSmA50Bv.mjs → client-side-security-D50iZjd_.mjs} +1 -1
- package/dist/{cloud-connector-0Wivqi7S.mjs → cloud-connector-wvSGdxWT.mjs} +1 -1
- package/dist/{cloudforce-one-J-rU6k1U.mjs → cloudforce-one-j6vlmaMB.mjs} +21 -21
- package/dist/{command-0BOb1pgV.mjs → command-74P4_CTx.mjs} +1 -1
- package/dist/{command-BIsI-mMX.mjs → command-BDpm-U8z.mjs} +1 -1
- package/dist/{command-BG-kLOnS.mjs → command-BSbhJRmu.mjs} +1 -1
- package/dist/{command-DIs-Nqtl.mjs → command-BbO3sBQ2.mjs} +1 -1
- package/dist/{command-BCJN-ZM2.mjs → command-CM_f48gs.mjs} +1 -1
- package/dist/{command-BWQIKu6I.mjs → command-CmUtmu5j.mjs} +1 -1
- package/dist/{command-BKDbbA-L.mjs → command-DFRsim8q.mjs} +1 -1
- package/dist/{command-DPn5ANHs.mjs → command-DQojhTEQ.mjs} +1 -1
- package/dist/{command-CKW6UhTh.mjs → command-DiqRELHF.mjs} +1 -1
- package/dist/{command-Bdy69UFU.mjs → command-Dr4PEvB2.mjs} +1 -1
- package/dist/{completions-CpNGTlUX.mjs → completions-oD1EcuHk.mjs} +1 -1
- package/dist/{connector-interrupts-CH-DaLuo.mjs → connector-interrupts-DP4rbOe8.mjs} +1 -1
- package/dist/{connector-telemetry-events-X3Fod9nl.mjs → connector-telemetry-events-BQGBQwzR.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-D-WR4npQ.mjs → connector-telemetry-snapshots-DBO0Mdcj.mjs} +1 -1
- package/dist/{connectors-CORKD31m.mjs → connectors-BSVr3Kz1.mjs} +1 -1
- package/dist/{containers-Di3_Vopq.mjs → containers-BOpKpipz.mjs} +1 -1
- package/dist/{containers-BboUbx3k.mjs → containers-BTqAeVV2.mjs} +5 -5
- package/dist/{content-scan-DXGREAXa.mjs → content-scan-B9Keyxe-.mjs} +1 -1
- package/dist/{context-A6T-NKPI.mjs → context-B-vEsyrK.mjs} +1 -1
- package/dist/{cps-1BoOLtTq.mjs → cps-VRP794c5.mjs} +1 -1
- package/dist/csam-scanner-C1jOgXVu.mjs +10 -0
- package/dist/{ct-alerting-DlH4ILQo.mjs → ct-alerting-Y9vfa6Fo.mjs} +1 -1
- package/dist/{custom-certificates-zJqJZ2Th.mjs → custom-certificates-CojTEC0E.mjs} +4 -4
- package/dist/{custom-csrs-DoLIGqYL.mjs → custom-csrs-DM5X-K6H.mjs} +3 -3
- package/dist/{custom-hostnames-YfV-aoAK.mjs → custom-hostnames-BBjqaiFF.mjs} +6 -6
- package/dist/{custom-nameservers-BV43gmgt.mjs → custom-nameservers-C0NDMLPJ.mjs} +1 -1
- package/dist/{custom-pages-CoOU1Cdx.mjs → custom-pages-M4RUxcn6.mjs} +6 -6
- package/dist/{d1-DujBmzLa.mjs → d1-hin5PmxW.mjs} +1 -1
- package/dist/{dcv-delegation-CPLsVYOl.mjs → dcv-delegation-KOO8syyQ.mjs} +1 -1
- package/dist/{deploy-wNujfGUJ.mjs → deploy-Bo7FtE44.mjs} +1 -1
- package/dist/{deploy-context-tEhwEXnA.mjs → deploy-context-ClvBD87y.mjs} +1 -1
- package/dist/{diagnostics-B3TYPVRi.mjs → diagnostics-LZuMrGjK.mjs} +1 -1
- package/dist/{dls-CWm1HRF0.mjs → dls-Bq8k3iy-.mjs} +7 -7
- package/dist/{dns-firewall-BooBP9ap.mjs → dns-firewall-zavP5Qxj.mjs} +1 -1
- package/dist/{dns-CjAFU7Z9.mjs → dns-ry5E2Bsa.mjs} +5 -5
- package/dist/{docs-C5XB7HdG.mjs → docs-B08YtL0U.mjs} +1 -1
- package/dist/{durable-objects-CSrMQDCE.mjs → durable-objects-B9fo41B1.mjs} +1 -1
- package/dist/{email-auth-Bp1Mui-n.mjs → email-auth-D9LGjFlh.mjs} +1 -1
- package/dist/{email-routing-CVF6SwQt.mjs → email-routing-6iDnNPhY.mjs} +4 -4
- package/dist/{email-security-mYZtazae.mjs → email-security-ty4ufRnJ.mjs} +1 -1
- package/dist/{email-sending-BqaKU_Xu.mjs → email-sending-d7LO_Cz_.mjs} +14 -14
- package/dist/field-extractors-DkgQ7PSw.mjs +9 -0
- package/dist/{firewall-DgTDsYOt.mjs → firewall-Q88YyEwD.mjs} +11 -11
- package/dist/{flagship-Db3PxxyZ.mjs → flagship-CzI8zhd6.mjs} +1 -1
- package/dist/{fraud-BEOQczy8.mjs → fraud-CvFXTR0w.mjs} +1 -1
- package/dist/{google-tag-gateway-DjLQ9wo0.mjs → google-tag-gateway-Y2zbyey8.mjs} +1 -1
- package/dist/{healthchecks-C3ScnKss.mjs → healthchecks-4Hz-6xYi.mjs} +7 -7
- package/dist/{hostnames-DU0k-xO9.mjs → hostnames-B3k7fIUL.mjs} +1 -1
- package/dist/{hyperdrive-IpCCLCRd.mjs → hyperdrive-BWGYz95H.mjs} +3 -3
- package/dist/{iam-96CYM8Vw.mjs → iam-AXco_qmt.mjs} +1 -1
- package/dist/{images-AB9EgZgT.mjs → images-BzYh8y0u.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{init-D2nPoW4f.mjs → init-DlenHBtS.mjs} +1 -1
- package/dist/{intel-BKb4RLvS.mjs → intel-BBi3i_GU.mjs} +1 -1
- package/dist/{ips-z9APCV_b.mjs → ips-CWG2b7AM.mjs} +1 -1
- package/dist/{k2-Bv-HiJ29.mjs → k2-DXdMe3Cb.mjs} +1 -1
- package/dist/{keyless-certificates-ChgSGHq4.mjs → keyless-certificates-B4ta_OGS.mjs} +4 -4
- package/dist/{keys-BhngDsDa.mjs → keys-B9zvFzrf.mjs} +1 -1
- package/dist/{kv-CB5MQVGP.mjs → kv-FUd7UdDu.mjs} +3 -3
- package/dist/{lazy-command-CaZ1kdlW.mjs → lazy-command-BC8rIlHu.mjs} +1 -1
- package/dist/{leaked-credential-checks-Bsi2WpSU.mjs → leaked-credential-checks-BufVA9vL.mjs} +3 -3
- package/dist/{load-balancers-0gXZNCeI.mjs → load-balancers-CWd9mSWM.mjs} +40 -40
- package/dist/{login-CiQGR8ha.mjs → login-BJr2PBaJ.mjs} +1 -1
- package/dist/{login-Ik98G4K6.mjs → login-DVbXZ_Tv.mjs} +1 -1
- package/dist/{logo-matches-DmoF5Otu.mjs → logo-matches-BluaPvMa.mjs} +1 -1
- package/dist/{logos-BL6ohIMH.mjs → logos-CXtmYWEJ.mjs} +1 -1
- package/dist/{logpush-UVopW68t.mjs → logpush-DCYgrqz0.mjs} +6 -6
- package/dist/{logs-BVfxiEiM.mjs → logs-as60IP29.mjs} +1 -1
- package/dist/{magic-cloud-networking-B5S3aM6f.mjs → magic-cloud-networking-0RsHugUF.mjs} +1 -1
- package/dist/{magic-network-monitoring-CDSJPP47.mjs → magic-network-monitoring-CPqvZdcb.mjs} +1 -1
- package/dist/{magic-transit-TcDTKM43.mjs → magic-transit-ClPyGzOE.mjs} +1 -1
- package/dist/{managed-defense-C88HL0pg.mjs → managed-defense-P4_QWSbK.mjs} +5 -5
- package/dist/{managed-transforms-Ja41Tahl.mjs → managed-transforms-CUwQXMij.mjs} +1 -1
- package/dist/{matches-BL_Y-9Yq.mjs → matches-BjckDBW1.mjs} +1 -1
- package/dist/{mcp-BWp5Q09R.mjs → mcp-C2EG2c7L.mjs} +1 -1
- package/dist/{mesh-lFPLRWhV.mjs → mesh-CpMZA7Xt.mjs} +1 -1
- package/dist/{monetization-BIc4Bwo2.mjs → monetization-DypuCZmU.mjs} +1 -1
- package/dist/{mtls-certificates-CVBw-Jli.mjs → mtls-certificates-B5AWTU6u.mjs} +1 -1
- package/dist/{network-Wig0qbaC.mjs → network-DQ5Ridgy.mjs} +1 -1
- package/dist/{network-interconnects-C16z1HuQ.mjs → network-interconnects-ifU4JhGE.mjs} +1 -1
- package/dist/{o11y-Bhy4qDRm.mjs → o11y-CzssfRHt.mjs} +2 -2
- package/dist/{oauth-oWaW7ICv.mjs → oauth-BDdhqasa.mjs} +1 -1
- package/dist/{oauth-CfEedDZi.mjs → oauth-BNTiErBG.mjs} +1 -1
- package/dist/{oauth-clients-eXjmK5yf.mjs → oauth-clients-gknNcBdV.mjs} +1 -1
- package/dist/{oauth-scopes-DZWn50EA.mjs → oauth-scopes-BJeSanuF.mjs} +1 -1
- package/dist/{organization-QdAQTrKa.mjs → organization-CXAM41sd.mjs} +3 -3
- package/dist/{organizations-CgAQYdK5.mjs → organizations-kfFFW4uO.mjs} +1 -1
- package/dist/{origin-ca-certificates-BklXqp8X.mjs → origin-ca-certificates-DwhYV3m_.mjs} +1 -1
- package/dist/{origin-post-quantum-encryption-Dg16ueT4.mjs → origin-post-quantum-encryption-DfrnptJ1.mjs} +1 -1
- package/dist/{origin-tls-client-auth-d8bDU5zU.mjs → origin-tls-client-auth-COSxTc2q.mjs} +6 -6
- package/dist/{page-rules-CgMkC6YR.mjs → page-rules-ByrDMDBZ.mjs} +5 -5
- package/dist/{pages-CkBtOOf8.mjs → pages-DuGcBC6k.mjs} +9 -9
- package/dist/{pay-per-crawl-CnGXOWyz.mjs → pay-per-crawl-B3_Gn9Cj.mjs} +1 -1
- package/dist/{pay-per-use-HbfxpATr.mjs → pay-per-use-49EXt75f.mjs} +1 -1
- package/dist/{pipelines-CnO9CCs0.mjs → pipelines-Bvgh1BQZ.mjs} +1 -1
- package/dist/{precursor-Bc55XJdQ.mjs → precursor-VobQf--m.mjs} +1 -1
- package/dist/{previews-C7vZrajd.mjs → previews-DkwFHNRx.mjs} +1 -1
- package/dist/{progress-D5po7ScB.mjs → progress-R-1tIuep.mjs} +1 -1
- package/dist/{prompt-BAJpE3jV.mjs → prompt-dgLm0iFJ.mjs} +1 -1
- package/dist/{queries-BJAH4B74.mjs → queries-EbIadtC5.mjs} +1 -1
- package/dist/{queues-D4G8vvwi.mjs → queues-C4GZ-O3f.mjs} +4 -4
- package/dist/{r2-CJ8rD6Jb.mjs → r2-DEuFfWBR.mjs} +4 -4
- package/dist/{radar-DgaxOdcd.mjs → radar-CDOERVcR.mjs} +1 -1
- package/dist/{raw-fetch-yY-wX5Xx.mjs → raw-fetch-BapeoreV.mjs} +1 -1
- package/dist/{realtime-DU09m7L7.mjs → realtime-D_A9Qgly.mjs} +6 -6
- package/dist/{registrar-Cj7OfvGs.mjs → registrar-X1YLlnmg.mjs} +1 -1
- package/dist/{registrar-sandbox-CA0Mua-j.mjs → registrar-sandbox-BF3cYO3n.mjs} +1 -1
- package/dist/reporting-BWm9jIF8.mjs +14 -0
- package/dist/{request-headers-D_eQn93b.mjs → request-headers-BRxv6NkA.mjs} +1 -1
- package/dist/{request-tracers-VBD4R3s3.mjs → request-tracers-CHWpiejG.mjs} +1 -1
- package/dist/{resource-sharing-BtUF3psS.mjs → resource-sharing-C186jZv0.mjs} +1 -1
- package/dist/{resource-tagging--90INP8_.mjs → resource-tagging-BTagOZli.mjs} +1 -1
- package/dist/{rules-CcwPngVo.mjs → rules-DYnGIU_0.mjs} +10 -10
- package/dist/{rulesets-CfdruY82.mjs → rulesets-BcNrbVcq.mjs} +15 -15
- package/dist/{rum-RLkdfSL7.mjs → rum-BDyRecfp.mjs} +1 -1
- package/dist/{run-DASYqJsY.mjs → run-BvDCuZ8q.mjs} +1 -1
- package/dist/run-roYb_Odh.mjs +2 -0
- package/dist/{schema-flags-CShtn7ya.mjs → schema-flags-DcKjAxI1.mjs} +1 -1
- package/dist/{scim-BZYsTPIL.mjs → scim-zn-CNCsc.mjs} +1 -1
- package/dist/{secrets-store-C_-FkSH_.mjs → secrets-store-CFhyQUV6.mjs} +1 -1
- package/dist/{security-insights-BVBEaZmD.mjs → security-insights-D8XgtCed.mjs} +1 -1
- package/dist/{security-txt--IoHrHee.mjs → security-txt-CCM-Vro0.mjs} +1 -1
- package/dist/{shared-zNQNv1im.mjs → shared-ouAF7o4S.mjs} +1 -1
- package/dist/{smart-shield-CByC4_60.mjs → smart-shield-DwW7N92r.mjs} +5 -5
- package/dist/{snippets-DB-jiZAV.mjs → snippets-B2jBY0m_.mjs} +1 -1
- package/dist/{spectrum-Bs2g1BmK.mjs → spectrum-Cf_4cGE8.mjs} +9 -9
- package/dist/{speed-Bq4evEnJ.mjs → speed-DoXdyIYK.mjs} +1 -1
- package/dist/{sql-XGci7hZC.mjs → sql-Bze4h80q.mjs} +1 -1
- package/dist/{src-GiuwAT55.mjs → src-BguQDHjS.mjs} +7 -7
- package/dist/{ssl-KJTLW1NR.mjs → ssl-u_0gUhPA.mjs} +5 -5
- package/dist/{stream-BotgYspF.mjs → stream-BcReYIHJ.mjs} +8 -8
- package/dist/{submit-C5VytaHP.mjs → submit-ldFVNfNC.mjs} +1 -1
- package/dist/{tags-3Hq-B9qp.mjs → tags-D_Hc_A-r.mjs} +1 -1
- package/dist/{telemetry-3FJOXl_C.mjs → telemetry-Cojgz4Sv.mjs} +1 -1
- package/dist/telemetry-Ct_2AaO4.mjs +2 -0
- package/dist/{tenant-BgX5onPc.mjs → tenant-AZ0EAsmT.mjs} +1 -1
- package/dist/{tenant-custom-nameservers-BVG8v1Xo.mjs → tenant-custom-nameservers-aozjaasc.mjs} +2 -2
- package/dist/{tunnels-CThOI3qH.mjs → tunnels-CXez5LPB.mjs} +3 -3
- package/dist/{turnstile-BgZaUx-g.mjs → turnstile-B2NQ8Nsk.mjs} +1 -1
- package/dist/{update-check-jb89ih_g.mjs → update-check-BlyKN8m0.mjs} +1 -1
- package/dist/update-check-BnGDxswi.mjs +2 -0
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-info-DQERN0Xq.mjs → url-info-D_UqGiWD.mjs} +1 -1
- package/dist/{url-normalization-Cb1hofqv.mjs → url-normalization-CF1YHpIN.mjs} +1 -1
- package/dist/{url-scanner-gHgx1bW7.mjs → url-scanner-ChF3GO2U.mjs} +1 -1
- package/dist/{user-CdKzIuSi.mjs → user-BfWRsdJh.mjs} +58 -58
- package/dist/{values-EwA8Sx0w.mjs → values-CLfxkAUJ.mjs} +1 -1
- package/dist/{vectorize-DejgIJIv.mjs → vectorize-CRYbWKg5.mjs} +1 -1
- package/dist/version-CVlh2Zaq.mjs +2 -0
- package/dist/{waiting-rooms-BNR1HvAP.mjs → waiting-rooms-Crp7MVd9.mjs} +18 -18
- package/dist/{web-assets-iglnzkTV.mjs → web-assets-CgyrPnT-.mjs} +1 -1
- package/dist/{web3-JBUU6IVt.mjs → web3-Cd0Yd0eQ.mjs} +11 -11
- package/dist/{workers-CDp4kLTJ.mjs → workers-CTwJpTfJ.mjs} +2 -2
- package/dist/{workers-builds-CSb9Dglt.mjs → workers-builds-f2nVw7EZ.mjs} +1 -1
- package/dist/{workers-for-platforms-D4srNZvt.mjs → workers-for-platforms-DjeKp2uy.mjs} +1 -1
- package/dist/{workers-vpc-LPC8TadH.mjs → workers-vpc-B_L3TEg2.mjs} +1 -1
- package/dist/{workflows-DN_VqWJC.mjs → workflows-CBPGf65x.mjs} +1 -1
- package/dist/{zaraz-DDErl5yc.mjs → zaraz-3VDxl0gF.mjs} +1 -1
- package/dist/{zero-trust-M88XX3uD.mjs → zero-trust-B9xY8zcn.mjs} +27 -27
- package/dist/{zone-BsGvedmN.mjs → zone-CmwVqTI2.mjs} +1 -1
- package/dist/{zones-l_sRKrVl.mjs → zones-Bf0VVpMf.mjs} +3 -3
- package/package.json +3 -2
- package/dist/alerts-BSON-vFh.mjs +0 -2
- package/dist/audit-logs-CsfIm2QS.mjs +0 -4
- package/dist/auth-8Sm4uLGM.mjs +0 -2
- package/dist/autorag-kNrLiqDX.mjs +0 -2
- package/dist/brands-bBJgbbOH.mjs +0 -2
- package/dist/browser-extension-C1_fcw7h.mjs +0 -2
- package/dist/browser-run-CEptKZYl.mjs +0 -42
- package/dist/clear-BW9vLgI3.mjs +0 -2
- package/dist/connector-telemetry-events-latest-BQdOvbWh.mjs +0 -2
- package/dist/connector-telemetry-snapshots-latest-CtdN_dGu.mjs +0 -2
- package/dist/csamScanner-CHfbfeup.mjs +0 -10
- package/dist/domain-info-BkcBcyfF.mjs +0 -2
- package/dist/fieldExtractors-CAGZVmYg.mjs +0 -9
- package/dist/health-CTaCeVyC.mjs +0 -2
- package/dist/internal-BYS7hO8c.mjs +0 -2
- package/dist/live-BJE_YWE1.mjs +0 -2
- package/dist/r2-data-catalog-BRo-Rx2I.mjs +0 -2
- package/dist/rate-limit-analytics-BiRyU0Xd.mjs +0 -2
- package/dist/rate-limits-Cr2zpncO.mjs +0 -2
- package/dist/ready-B3pLxnjc.mjs +0 -2
- package/dist/recent-submissions-JLOvuZq-.mjs +0 -2
- package/dist/refute-Dp3VodMn.mjs +0 -2
- package/dist/reporting-3kDVF5c8.mjs +0 -14
- package/dist/run-CUNhH5CQ.mjs +0 -2
- package/dist/scan-logo-3Zr6CDJB.mjs +0 -2
- package/dist/scan-page-CxeudOzj.mjs +0 -2
- package/dist/search-B_P5ZTQj.mjs +0 -2
- package/dist/signed-url-D5RwvrQq.mjs +0 -2
- package/dist/submission-info-_t78q2OE.mjs +0 -2
- package/dist/telemetry-BhKfwxyh.mjs +0 -2
- package/dist/total-queries-CPrKEciQ.mjs +0 -2
- package/dist/tracked-domains-CTRItgFT.mjs +0 -2
- package/dist/update-check-Yy7Ivq2V.mjs +0 -2
- package/dist/verify-5KcvRk-q.mjs +0 -2
- package/dist/version-B6MnUIqV.mjs +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{i as e,n as t}from"./source-mXUcrTVw.mjs";import{n,t as r}from"./ansi-styles-kSC6bEIq.mjs";import{t as i}from"./lazy-command-
|
|
2
|
+
import{i as e,n as t}from"./source-mXUcrTVw.mjs";import{n,t as r}from"./ansi-styles-kSC6bEIq.mjs";import{t as i}from"./lazy-command-BC8rIlHu.mjs";import{n as a}from"./metadata-Df5kCWJv.mjs";import{r as o}from"./theme-BGHWSKCw.mjs";import{t as s}from"./agent-context-DFEgYjEQ.mjs";import{n as c,r as l,t as u}from"./session-Cq3YNLoI.mjs";import{t as d}from"./cli-exit-CstFZ1eJ.mjs";import{n as f,t as p}from"./dotenv-usOKkeW7.mjs";import{t as m}from"./chunk-2HLTAS5V-D7COzUOd.mjs";import{n as h}from"./version-CVlh2Zaq.mjs";import{i as g,r as ee,t as _}from"./blocks-Bat9A8V_.mjs";import{n as te}from"./api-eMuS5GI1.mjs";import{t as v}from"./hand-written-dry-run-B82fRl2N.mjs";import{i as ne}from"./local-Dil4fTWX.mjs";import{a as re}from"./project-settings-nBMEx1f-.mjs";import{a as ie,n as y,t as b}from"./lifecycle-oud60haK.mjs";import"./ui-BtIBQeaG.mjs";import{createRequire as x}from"node:module";import{setTimeout as ae}from"node:timers/promises";import{notStrictEqual as S,strictEqual as oe}from"assert";import{basename as se,dirname as ce,extname as le,join as ue,normalize as de,relative as fe,resolve as C}from"path";import{readFileSync as pe,readdirSync as me,statSync as w,writeFile as he}from"fs";import{format as ge,inspect as _e}from"util";import{fileURLToPath as ve}from"url";import{readFileSync as ye,readdirSync as be}from"node:fs";const xe={right:Te,center:Ee};var Se=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&&E.stringWidth(e[0])>n&&(n=Math.min(Math.floor(this.width*.5),E.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=E.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>E.stringWidth(n)&&(c+=` `.repeat(s-E.stringWidth(n))),e[a].align&&e[a].align!==`left`&&this.wrap){let t=xe[e[a].align];c=t(c,s),E.stringWidth(c)<s&&(c+=` `.repeat((o||0)-E.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=E.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?E.wrap(e.text,this.negatePadding(e),{hard:!0}).split(`
|
|
5
5
|
`):e.text.split(`
|
|
@@ -111,15 +111,15 @@ 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=>{!Tn.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=>{Tn.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){N(`<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)):(A(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){N(`<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=wn(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=fn(o,t=>!e[t]),c=fn(c,t=>!e[t]),a};let l=[];return a.freeze=function(){l.push({implied:o,conflicting:c})},a.unfreeze=function(){let e=l.pop();A(e,void 0,n),{implied:o,conflicting:c}=e},a}let Dn=[],On;function kn(e,t,n,r){On=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=jn(t,e.extends);else try{o=import.meta.resolve(e.extends)}catch{return e}An(o),Dn.push(o),i=a?JSON.parse(On.readFileSync(o,`utf8`)):r.require(e.extends),delete e.extends,i=kn(i,On.path.dirname(o),n,On)}return Dn=[],n?Mn(i,e):Object.assign({},i,e)}function An(e){if(Dn.indexOf(e)>-1)throw new M(`Circular extended configurations: '${e}'.`)}function jn(e,t){return On.path.resolve(e,t)}function Mn(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])?Mn(e[i],t[i]):t[i]);return n}var P=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},F=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)},I,Nn,Pn,L,R,Fn,z,In,Ln,B,Rn,V,H,U,W,zn,Bn,G,K,Vn,Hn,q,Un,Wn,Gn,J,Kn,Y,qn,Jn,Yn,X,Xn,Z,Q;function Zn(e){return(t=[],n=e.process.cwd(),r)=>{let i=new Nr(t,n,r,e);return Object.defineProperty(i,"argv",{get:()=>i.parse(),enumerable:!0}),i.help(),i.version(),i}}const Qn=Symbol(`copyDoubleDash`),$n=Symbol(`copyDoubleDash`),er=Symbol(`deleteFromParserHintObject`),tr=Symbol(`emitWarning`),nr=Symbol(`freeze`),rr=Symbol(`getDollarZero`),ir=Symbol(`getParserConfiguration`),ar=Symbol(`getUsageConfiguration`),or=Symbol(`guessLocale`),sr=Symbol(`guessVersion`),cr=Symbol(`parsePositionalNumbers`),lr=Symbol(`pkgUp`),$=Symbol(`populateParserHintArray`),ur=Symbol(`populateParserHintSingleValueDictionary`),dr=Symbol(`populateParserHintArrayDictionary`),fr=Symbol(`populateParserHintDictionary`),pr=Symbol(`sanitizeKey`),mr=Symbol(`setKey`),hr=Symbol(`unfreeze`),gr=Symbol(`validateAsync`),_r=Symbol(`getCommandInstance`),vr=Symbol(`getContext`),yr=Symbol(`getHasOutput`),br=Symbol(`getLoggerInstance`),xr=Symbol(`getParseContext`),Sr=Symbol(`getUsageInstance`),Cr=Symbol(`getValidationInstance`),wr=Symbol(`hasParseCallback`),Tr=Symbol(`isGlobalContext`),Er=Symbol(`postProcess`),Dr=Symbol(`rebase`),Or=Symbol(`reset`),kr=Symbol(`runYargsParserAndExecuteCommands`),Ar=Symbol(`runValidation`),jr=Symbol(`setHasOutput`),Mr=Symbol(`kTrackManuallySetKeys`);var Nr=class{constructor(e=[],t,n,r){this.customScriptName=!1,this.parsed=!1,I.set(this,void 0),Nn.set(this,void 0),Pn.set(this,{commands:[],fullCommands:[]}),L.set(this,null),R.set(this,null),Fn.set(this,`show-hidden`),z.set(this,null),In.set(this,!0),Ln.set(this,{}),B.set(this,!0),Rn.set(this,[]),V.set(this,void 0),H.set(this,{}),U.set(this,!1),W.set(this,null),zn.set(this,!0),Bn.set(this,void 0),G.set(this,``),K.set(this,void 0),Vn.set(this,void 0),Hn.set(this,{}),q.set(this,null),Un.set(this,null),Wn.set(this,{}),Gn.set(this,{}),J.set(this,void 0),Kn.set(this,!1),Y.set(this,void 0),qn.set(this,!1),Jn.set(this,!1),Yn.set(this,!1),X.set(this,void 0),Xn.set(this,{}),Z.set(this,null),Q.set(this,void 0),P(this,Y,r,`f`),P(this,J,e,`f`),P(this,Nn,t,`f`),P(this,Vn,n,`f`),P(this,V,new Qt(this),`f`),this.$0=this[rr](),this[Or](),P(this,I,F(this,I,`f`),`f`),P(this,X,F(this,X,`f`),`f`),P(this,Q,F(this,Q,`f`),`f`),P(this,K,F(this,K,`f`),`f`),F(this,K,`f`).showHiddenOpt=F(this,Fn,`f`),P(this,Bn,this[$n](),`f`),F(this,Y,`f`).y18n.setLocale(`en_US`)}addHelpOpt(e,t){return N(`[string|boolean] [string]`,[e,t],arguments.length),F(this,W,`f`)&&(this[er](F(this,W,`f`)),P(this,W,null,`f`)),e===!1&&t===void 0?this:(P(this,W,typeof e==`string`?e:`help`,`f`),this.boolean(F(this,W,`f`)),this.describe(F(this,W,`f`),t||F(this,X,`f`).deferY18nLookup(`Show help`)),this)}help(e,t){return this.addHelpOpt(e,t)}addShowHiddenOpt(e,t){if(N(`[string|boolean] [string]`,[e,t],arguments.length),e===!1&&t===void 0)return this;let n=typeof e==`string`?e:F(this,Fn,`f`);return this.boolean(n),this.describe(n,t||F(this,X,`f`).deferY18nLookup(`Show hidden options`)),F(this,K,`f`).showHiddenOpt=n,this}showHidden(e,t){return this.addShowHiddenOpt(e,t)}alias(e,t){return N(`<object|string|array> [string|array]`,[e,t],arguments.length),this[dr](this.alias.bind(this),`alias`,e,t),this}array(e){return N(`<array|string>`,[e],arguments.length),this[$](`array`,e),this[Mr](e),this}boolean(e){return N(`<array|string>`,[e],arguments.length),this[$](`boolean`,e),this[Mr](e),this}check(e,t){return N(`<function> [boolean]`,[e,t],arguments.length),this.middleware((t,n)=>tn(()=>e(t,n.getOptions()),n=>(n?(typeof n==`string`||n instanceof Error)&&F(this,X,`f`).fail(n.toString(),n):F(this,X,`f`).fail(F(this,Y,`f`).y18n.__(`Argument check failed: %s`,e.toString())),t),e=>(F(this,X,`f`).fail(e.message?e.message:e.toString(),e),t)),!1,t),this}choices(e,t){return N(`<object|string|array> [string|array]`,[e,t],arguments.length),this[dr](this.choices.bind(this),`choices`,e,t),this}coerce(e,t){if(N(`<object|string|array> [function]`,[e,t],arguments.length),Array.isArray(e)){if(!t)throw new M(`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 M(`coerce callback must be provided`);let n=e;return F(this,K,`f`).key[n]=!0,F(this,V,`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:tn(()=>t(e[a[0]]),t=>(a.forEach(n=>{e[n]=t}),e),e=>{throw new M(e.message)})},n),this}conflicts(e,t){return N(`<string|object> [string|array]`,[e,t],arguments.length),F(this,Q,`f`).conflicts(e,t),this}config(e=`config`,t,n){return N(`[object|string] [string|function] [function]`,[e,t,n],arguments.length),typeof e==`object`&&!Array.isArray(e)?(e=kn(e,F(this,Nn,`f`),this[ir]()[`deep-merge-config`]||!1,F(this,Y,`f`)),F(this,K,`f`).configObjects=(F(this,K,`f`).configObjects||[]).concat(e),this):(typeof t==`function`&&(n=t,t=void 0),this.describe(e,t||F(this,X,`f`).deferY18nLookup(`Path to JSON config file`)),(Array.isArray(e)?e:[e]).forEach(e=>{F(this,K,`f`).config[e]=n||!0}),this)}completion(e,t,n){return N(`[string] [string|boolean|function] [function]`,[e,t,n],arguments.length),typeof t==`function`&&(n=t,t=void 0),P(this,R,e||F(this,R,`f`)||`completion`,`f`),!t&&t!==!1&&(t=`generate completion script`),this.command(F(this,R,`f`),t),n&&F(this,L,`f`).registerFunction(n),this}command(e,t,n,r,i,a){return N(`<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]`,[e,t,n,r,i,a],arguments.length),F(this,I,`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){N(`<string> [object]`,[e,t],arguments.length);let n=F(this,Vn,`f`)||F(this,Y,`f`).require;return F(this,I,`f`).addDirectory(e,n,F(this,Y,`f`).getCallerFile(),t),this}count(e){return N(`<array|string>`,[e],arguments.length),this[$](`count`,e),this[Mr](e),this}default(e,t,n){return N(`<object|string|array> [*] [string]`,[e,t,n],arguments.length),n&&(Kt(e,F(this,Y,`f`)),F(this,K,`f`).defaultDescription[e]=n),typeof t==`function`&&(Kt(e,F(this,Y,`f`)),F(this,K,`f`).defaultDescription[e]||(F(this,K,`f`).defaultDescription[e]=F(this,X,`f`).functionDescription(t)),t=t.call()),this[ur](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 N(`[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),F(this,K,`f`).demandedCommands._={min:e,max:t,minMsg:n,maxMsg:r},this}demand(e,t,n){return Array.isArray(t)?(t.forEach(e=>{A(n,!0,F(this,Y,`f`)),this.demandOption(e,n)}),t=1/0):typeof t!=`number`&&(n=t,t=1/0),typeof e==`number`?(A(n,!0,F(this,Y,`f`)),this.demandCommand(e,t,n,n)):Array.isArray(e)?e.forEach(e=>{A(n,!0,F(this,Y,`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 N(`<object|string|array> [string]`,[e,t],arguments.length),this[ur](this.demandOption.bind(this),`demandedOptions`,e,t),this}deprecateOption(e,t){return N(`<string> [string|boolean]`,[e,t],arguments.length),F(this,K,`f`).deprecatedOptions[e]=t,this}describe(e,t){return N(`<object|string|array> [string]`,[e,t],arguments.length),this[mr](e,!0),F(this,X,`f`).describe(e,t),this}detectLocale(e){return N(`<boolean>`,[e],arguments.length),P(this,In,e,`f`),this}env(e){return N(`[string|boolean]`,[e],arguments.length),e===!1?delete F(this,K,`f`).envPrefix:F(this,K,`f`).envPrefix=e||``,this}epilogue(e){return N(`<string>`,[e],arguments.length),F(this,X,`f`).epilog(e),this}epilog(e){return this.epilogue(e)}example(e,t){return N(`<string|array> [string]`,[e,t],arguments.length),Array.isArray(e)?e.forEach(e=>this.example(...e)):F(this,X,`f`).example(e,t),this}exit(e,t){P(this,U,!0,`f`),P(this,z,t,`f`),F(this,B,`f`)&&F(this,Y,`f`).process.exit(e)}exitProcess(e=!0){return N(`[boolean]`,[e],arguments.length),P(this,B,e,`f`),this}fail(e){if(N(`<function|boolean>`,[e],arguments.length),typeof e==`boolean`&&e!==!1)throw new M(`Invalid first argument. Expected function or boolean 'false'`);return F(this,X,`f`).failFn(e),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(e,t){return N(`<array> [function]`,[e,t],arguments.length),t?F(this,L,`f`).getCompletion(e,t):new Promise((t,n)=>{F(this,L,`f`).getCompletion(e,(e,r)=>{e?n(e):t(r)})})}getDemandedOptions(){return N([],0),F(this,K,`f`).demandedOptions}getDemandedCommands(){return N([],0),F(this,K,`f`).demandedCommands}getDeprecatedOptions(){return N([],0),F(this,K,`f`).deprecatedOptions}getDetectLocale(){return F(this,In,`f`)}getExitProcess(){return F(this,B,`f`)}getGroups(){return Object.assign({},F(this,H,`f`),F(this,Gn,`f`))}getHelp(){if(P(this,U,!0,`f`),!F(this,X,`f`).hasCachedHelpMessage()){if(!this.parsed){let e=this[kr](F(this,J,`f`),void 0,void 0,0,!0);if(j(e))return e.then(()=>F(this,X,`f`).help())}let e=F(this,I,`f`).runDefaultBuilderOn(this);if(j(e))return e.then(()=>F(this,X,`f`).help())}return Promise.resolve(F(this,X,`f`).help())}getOptions(){return F(this,K,`f`)}getStrict(){return F(this,qn,`f`)}getStrictCommands(){return F(this,Jn,`f`)}getStrictOptions(){return F(this,Yn,`f`)}global(e,t){return N(`<string|array> [boolean]`,[e,t],arguments.length),e=[].concat(e),t===!1?e.forEach(e=>{F(this,K,`f`).local.includes(e)||F(this,K,`f`).local.push(e)}):F(this,K,`f`).local=F(this,K,`f`).local.filter(t=>e.indexOf(t)===-1),this}group(e,t){N(`<string|array> <string>`,[e,t],arguments.length);let n=F(this,Gn,`f`)[t]||F(this,H,`f`)[t];F(this,Gn,`f`)[t]&&delete F(this,Gn,`f`)[t];let r={};return F(this,H,`f`)[t]=(n||[]).concat(e).filter(e=>r[e]?!1:r[e]=!0),this}hide(e){return N(`<string>`,[e],arguments.length),F(this,K,`f`).hiddenOptions.push(e),this}implies(e,t){return N(`<string|object> [number|string|array]`,[e,t],arguments.length),F(this,Q,`f`).implies(e,t),this}locale(e){return N(`[string]`,[e],arguments.length),e===void 0?(this[or](),F(this,Y,`f`).y18n.getLocale()):(P(this,In,!1,`f`),F(this,Y,`f`).y18n.setLocale(e),this)}middleware(e,t,n){return F(this,V,`f`).addMiddleware(e,!!t,n)}nargs(e,t){return N(`<string|object|array> [number]`,[e,t],arguments.length),this[ur](this.nargs.bind(this),`narg`,e,t),this}normalize(e){return N(`<array|string>`,[e],arguments.length),this[$](`normalize`,e),this}number(e){return N(`<array|string>`,[e],arguments.length),this[$](`number`,e),this[Mr](e),this}option(e,t){if(N(`<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[Mr](e),F(this,Z,`f`)&&(e===`version`||t?.alias===`version`)&&this[tr]([`"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`),F(this,K,`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&&(F(this,K,`f`).defaultDescription[e]=t.defaultDescription),t.skipValidation&&this.skipValidation(e);let i=t.describe||t.description||t.desc,a=F(this,X,`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){N(`[string|array] [function|boolean|object] [function]`,[e,t,n],arguments.length),this[nr](),e===void 0&&(e=F(this,J,`f`)),typeof t==`object`&&(P(this,Un,t,`f`),t=n),typeof t==`function`&&(P(this,q,t,`f`),t=!1),t||P(this,J,e,`f`),F(this,q,`f`)&&P(this,B,!1,`f`);let r=this[kr](e,!!t),i=this.parsed;return F(this,L,`f`).setParsed(this.parsed),j(r)?r.then(e=>(F(this,q,`f`)&&F(this,q,`f`).call(this,F(this,z,`f`),e,F(this,G,`f`)),e)).catch(e=>{throw F(this,q,`f`)&&F(this,q,`f`)(e,this.parsed.argv,F(this,G,`f`)),e}).finally(()=>{this[hr](),this.parsed=i}):(F(this,q,`f`)&&F(this,q,`f`).call(this,F(this,z,`f`),r,F(this,G,`f`)),this[hr](),this.parsed=i,r)}parseAsync(e,t,n){let r=this.parse(e,t,n);return j(r)?r:Promise.resolve(r)}parseSync(e,t,n){let r=this.parse(e,t,n);if(j(r))throw new M(`.parseSync() must not be used with asynchronous builders, handlers, or middleware`);return r}parserConfiguration(e){return N(`<object>`,[e],arguments.length),P(this,Hn,e,`f`),this}pkgConf(e,t){N(`<string> [string]`,[e,t],arguments.length);let n=null,r=this[lr](t||F(this,Nn,`f`));return r[e]&&typeof r[e]==`object`&&(n=kn(r[e],t||F(this,Nn,`f`),this[ir]()[`deep-merge-config`]||!1,F(this,Y,`f`)),F(this,K,`f`).configObjects=(F(this,K,`f`).configObjects||[]).concat(n)),this}positional(e,t){N(`<string> <object>`,[e,t],arguments.length);let n=[`default`,`defaultDescription`,`implies`,`normalize`,`choices`,`conflicts`,`coerce`,`type`,`describe`,`desc`,`description`,`alias`];t=fn(t,(e,t)=>e===`type`&&![`string`,`number`,`boolean`].includes(t)?!1:n.includes(e));let r=F(this,Pn,`f`).fullCommands[F(this,Pn,`f`).fullCommands.length-1],i=r?F(this,I,`f`).cmdToParseOptions(r):{array:[],alias:{},default:{},demand:{}};return qt(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,F(this,X,`f`).getPositionalGroupName()),this.option(e,t)}recommendCommands(e=!0){return N(`[boolean]`,[e],arguments.length),P(this,Kn,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 N(`<array|string|object> [number]`,[e],arguments.length),typeof e==`string`&&F(this,K,`f`).narg[e]||this[ur](this.requiresArg.bind(this),`narg`,e,NaN),this}showCompletionScript(e,t){return N(`[string] [string]`,[e,t],arguments.length),e||=this.$0,F(this,Bn,`f`).log(F(this,L,`f`).generateCompletionScript(e,t||F(this,R,`f`)||`completion`)),this}showHelp(e){if(N(`[string|function]`,[e],arguments.length),P(this,U,!0,`f`),!F(this,X,`f`).hasCachedHelpMessage()){if(!this.parsed){let t=this[kr](F(this,J,`f`),void 0,void 0,0,!0);if(j(t))return t.then(()=>{F(this,X,`f`).showHelp(e)}),this}let t=F(this,I,`f`).runDefaultBuilderOn(this);if(j(t))return t.then(()=>{F(this,X,`f`).showHelp(e)}),this}return F(this,X,`f`).showHelp(e),this}scriptName(e){return this.customScriptName=!0,this.$0=e,this}showHelpOnFail(e,t){return N(`[boolean|string] [string]`,[e,t],arguments.length),F(this,X,`f`).showHelpOnFail(e,t),this}showVersion(e){return N(`[string|function]`,[e],arguments.length),F(this,X,`f`).showVersion(e),this}skipValidation(e){return N(`<array|string>`,[e],arguments.length),this[$](`skipValidation`,e),this}strict(e){return N(`[boolean]`,[e],arguments.length),P(this,qn,e!==!1,`f`),this}strictCommands(e){return N(`[boolean]`,[e],arguments.length),P(this,Jn,e!==!1,`f`),this}strictOptions(e){return N(`[boolean]`,[e],arguments.length),P(this,Yn,e!==!1,`f`),this}string(e){return N(`<array|string>`,[e],arguments.length),this[$](`string`,e),this[Mr](e),this}terminalWidth(){return N([],0),F(this,Y,`f`).process.stdColumns}updateLocale(e){return this.updateStrings(e)}updateStrings(e){return N(`<object>`,[e],arguments.length),P(this,In,!1,`f`),F(this,Y,`f`).y18n.updateLocale(e),this}usage(e,t,n,r){if(N(`<string|null|undefined> [string|boolean] [function|object] [function]`,[e,t,n,r],arguments.length),t!==void 0){if(A(e,null,F(this,Y,`f`)),(e||``).match(/^\$0( |$)/))return this.command(e,t,n,r);throw new M(`.usage() description must start with $0 if being used as alias for .command()`)}return F(this,X,`f`).usage(e),this}usageConfiguration(e){return N(`<object>`,[e],arguments.length),P(this,Xn,e,`f`),this}version(e,t,n){let r=`version`;if(N(`[boolean|string] [string] [string]`,[e,t,n],arguments.length),F(this,Z,`f`)&&(this[er](F(this,Z,`f`)),F(this,X,`f`).version(void 0),P(this,Z,null,`f`)),arguments.length===0)n=this[sr](),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 P(this,Z,typeof e==`string`?e:r,`f`),t||=F(this,X,`f`).deferY18nLookup(`Show version number`),F(this,X,`f`).version(n||void 0),this.boolean(F(this,Z,`f`)),this.describe(F(this,Z,`f`),t),this}wrap(e){return N(`<number|null|undefined>`,[e],arguments.length),F(this,X,`f`).wrap(e),this}[(I=/* @__PURE__ */ new WeakMap,Nn=/* @__PURE__ */ new WeakMap,Pn=/* @__PURE__ */ new WeakMap,L=/* @__PURE__ */ new WeakMap,R=/* @__PURE__ */ new WeakMap,Fn=/* @__PURE__ */ new WeakMap,z=/* @__PURE__ */ new WeakMap,In=/* @__PURE__ */ new WeakMap,Ln=/* @__PURE__ */ new WeakMap,B=/* @__PURE__ */ new WeakMap,Rn=/* @__PURE__ */ new WeakMap,V=/* @__PURE__ */ new WeakMap,H=/* @__PURE__ */ new WeakMap,U=/* @__PURE__ */ new WeakMap,W=/* @__PURE__ */ new WeakMap,zn=/* @__PURE__ */ new WeakMap,Bn=/* @__PURE__ */ new WeakMap,G=/* @__PURE__ */ new WeakMap,K=/* @__PURE__ */ new WeakMap,Vn=/* @__PURE__ */ new WeakMap,Hn=/* @__PURE__ */ new WeakMap,q=/* @__PURE__ */ new WeakMap,Un=/* @__PURE__ */ new WeakMap,Wn=/* @__PURE__ */ new WeakMap,Gn=/* @__PURE__ */ new WeakMap,J=/* @__PURE__ */ new WeakMap,Kn=/* @__PURE__ */ new WeakMap,Y=/* @__PURE__ */ new WeakMap,qn=/* @__PURE__ */ new WeakMap,Jn=/* @__PURE__ */ new WeakMap,Yn=/* @__PURE__ */ new WeakMap,X=/* @__PURE__ */ new WeakMap,Xn=/* @__PURE__ */ new WeakMap,Z=/* @__PURE__ */ new WeakMap,Q=/* @__PURE__ */ new WeakMap,Qn)](e){if(!e._||!e[`--`])return e;e._.push.apply(e._,e[`--`]);try{delete e[`--`]}catch{}return e}[$n](){return{log:(...e)=>{this[wr]()||console.log(...e),P(this,U,!0,`f`),F(this,G,`f`).length&&P(this,G,F(this,G,`f`)+`
|
|
113
113
|
`,`f`),P(this,G,F(this,G,`f`)+e.join(` `),`f`)},error:(...e)=>{this[wr]()||console.error(...e),P(this,U,!0,`f`),F(this,G,`f`).length&&P(this,G,F(this,G,`f`)+`
|
|
114
|
-
`,`f`),P(this,G,F(this,G,`f`)+e.join(` `),`f`)}}}[er](e){qt(F(this,K,`f`)).forEach(t=>{if((e=>e===`configObjects`)(t))return;let n=F(this,K,`f`)[t];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n==`object`&&delete n[e]}),delete F(this,X,`f`).getDescriptions()[e]}[tr](e,t,n){F(this,Ln,`f`)[n]||(F(this,Y,`f`).process.emitWarning(e,t),F(this,Ln,`f`)[n]=!0)}[nr](){F(this,Rn,`f`).push({options:F(this,K,`f`),configObjects:F(this,K,`f`).configObjects.slice(0),exitProcess:F(this,B,`f`),groups:F(this,H,`f`),strict:F(this,qn,`f`),strictCommands:F(this,Jn,`f`),strictOptions:F(this,Yn,`f`),completionCommand:F(this,R,`f`),output:F(this,G,`f`),exitError:F(this,z,`f`),hasOutput:F(this,U,`f`),parsed:this.parsed,parseFn:F(this,q,`f`),parseContext:F(this,Un,`f`)}),F(this,X,`f`).freeze(),F(this,Q,`f`).freeze(),F(this,I,`f`).freeze(),F(this,V,`f`).freeze()}[rr](){let e=``,t;return t=/\b(node|iojs|electron|bun)(\.exe)?$/.test(F(this,Y,`f`).process.argv()[0])?F(this,Y,`f`).process.argv().slice(1,2):F(this,Y,`f`).process.argv().slice(0,1),e=t.map(e=>{let t=this[Dr](F(this,Nn,`f`),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e}).join(` `).trim(),F(this,Y,`f`).getEnv(`_`)&&F(this,Y,`f`).getProcessArgvBin()===F(this,Y,`f`).getEnv(`_`)&&(e=F(this,Y,`f`).getEnv(`_`).replace(`${F(this,Y,`f`).path.dirname(F(this,Y,`f`).process.execPath())}/`,``)),e}[ir](){return F(this,Hn,`f`)}[ar](){return F(this,Xn,`f`)}[or](){if(!F(this,In,`f`))return;let e=F(this,Y,`f`).getEnv(`LC_ALL`)||F(this,Y,`f`).getEnv(`LC_MESSAGES`)||F(this,Y,`f`).getEnv(`LANG`)||F(this,Y,`f`).getEnv(`LANGUAGE`)||`en_US`;this.locale(e.replace(/[.:].*/,``))}[sr](){return this[lr]().version||`unknown`}[cr](e){let t=e[`--`]?e[`--`]:e._;for(let e=0,n;(n=t[e])!==void 0;e++)F(this,Y,`f`).Parser.looksLikeNumber(n)&&Number.isSafeInteger(Math.floor(parseFloat(`${n}`)))&&(t[e]=Number(n));return e}[lr](e){let t=e||`*`;if(F(this,Wn,`f`)[t])return F(this,Wn,`f`)[t];let n={};try{let t=e||F(this,Y,`f`).mainFilename;F(this,Y,`f`).path.extname(t)&&(t=F(this,Y,`f`).path.dirname(t));let r=F(this,Y,`f`).findUp(t,(e,t)=>{if(t.includes(`package.json`))return`package.json`});A(r,void 0,F(this,Y,`f`)),n=JSON.parse(F(this,Y,`f`).readFileSync(r,`utf8`))}catch{}return F(this,Wn,`f`)[t]=n||{},F(this,Wn,`f`)[t]}[$](e,t){t=[].concat(t),t.forEach(t=>{t=this[pr](t),F(this,K,`f`)[e].push(t)})}[ur](e,t,n,r){this[fr](e,t,n,r,(e,t,n)=>{F(this,K,`f`)[e][t]=n})}[dr](e,t,n,r){this[fr](e,t,n,r,(e,t,n)=>{F(this,K,`f`)[e][t]=(F(this,K,`f`)[e][t]||[]).concat(n)})}[fr](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 qt(n))e(t,n[t]);else i(t,this[pr](n),r)}[pr](e){return e===`__proto__`?`___proto___`:e}[mr](e,t){return this[ur](this[mr].bind(this),`key`,e,t),this}[hr](){var e,t,n,r,i,a,o,s,c,l,u,d;let f=F(this,Rn,`f`).pop();A(f,void 0,F(this,Y,`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){P(e,K,t,`f`)}}.value,configObjects:p,exitProcess:{set value(e){P(t,B,e,`f`)}}.value,groups:{set value(e){P(n,H,e,`f`)}}.value,output:{set value(e){P(r,G,e,`f`)}}.value,exitError:{set value(e){P(i,z,e,`f`)}}.value,hasOutput:{set value(e){P(a,U,e,`f`)}}.value,parsed:this.parsed,strict:{set value(e){P(o,qn,e,`f`)}}.value,strictCommands:{set value(e){P(s,Jn,e,`f`)}}.value,strictOptions:{set value(e){P(c,Yn,e,`f`)}}.value,completionCommand:{set value(e){P(l,R,e,`f`)}}.value,parseFn:{set value(e){P(u,q,e,`f`)}}.value,parseContext:{set value(e){P(d,Un,e,`f`)}}.value}=f,F(this,K,`f`).configObjects=p,F(this,X,`f`).unfreeze(),F(this,Q,`f`).unfreeze(),F(this,I,`f`).unfreeze(),F(this,V,`f`).unfreeze()}[gr](e,t){return tn(t,t=>(e(t),t))}getInternalMethods(){return{getCommandInstance:this[_r].bind(this),getContext:this[vr].bind(this),getHasOutput:this[yr].bind(this),getLoggerInstance:this[br].bind(this),getParseContext:this[xr].bind(this),getParserConfiguration:this[ir].bind(this),getUsageConfiguration:this[ar].bind(this),getUsageInstance:this[Sr].bind(this),getValidationInstance:this[Cr].bind(this),hasParseCallback:this[wr].bind(this),isGlobalContext:this[Tr].bind(this),postProcess:this[Er].bind(this),reset:this[Or].bind(this),runValidation:this[Ar].bind(this),runYargsParserAndExecuteCommands:this[kr].bind(this),setHasOutput:this[jr].bind(this)}}[_r](){return F(this,I,`f`)}[vr](){return F(this,Pn,`f`)}[yr](){return F(this,U,`f`)}[br](){return F(this,Bn,`f`)}[xr](){return F(this,Un,`f`)||{}}[Sr](){return F(this,X,`f`)}[Cr](){return F(this,Q,`f`)}[wr](){return!!F(this,q,`f`)}[Tr](){return F(this,zn,`f`)}[Er](e,t,n,r){return n||j(e)?e:(t||(e=this[Qn](e)),(this[ir]()[`parse-positional-numbers`]||this[ir]()[`parse-positional-numbers`]===void 0)&&(e=this[cr](e)),r&&(e=en(e,this,F(this,V,`f`).getMiddleware(),!1)),e)}[Or](e={}){P(this,K,F(this,K,`f`)||{},`f`);let t={};t.local=F(this,K,`f`).local||[],t.configObjects=F(this,K,`f`).configObjects||[];let n={};return t.local.forEach(t=>{n[t]=!0,(e[t]||[]).forEach(e=>{n[e]=!0})}),Object.assign(F(this,Gn,`f`),Object.keys(F(this,H,`f`)).reduce((e,t)=>{let r=F(this,H,`f`)[t].filter(e=>!(e in n));return r.length>0&&(e[t]=r),e},{})),P(this,H,{},`f`),[`array`,`boolean`,`string`,`skipValidation`,`count`,`normalize`,`number`,`hiddenOptions`].forEach(e=>{t[e]=(F(this,K,`f`)[e]||[]).filter(e=>!n[e])}),[`narg`,`key`,`alias`,`default`,`defaultDescription`,`config`,`choices`,`demandedOptions`,`demandedCommands`,`deprecatedOptions`].forEach(e=>{t[e]=fn(F(this,K,`f`)[e],e=>!n[e])}),t.envPrefix=F(this,K,`f`).envPrefix,P(this,K,t,`f`),P(this,X,F(this,X,`f`)?F(this,X,`f`).reset(n):hn(this,F(this,Y,`f`)),`f`),P(this,Q,F(this,Q,`f`)?F(this,Q,`f`).reset(n):En(this,F(this,X,`f`),F(this,Y,`f`)),`f`),P(this,I,F(this,I,`f`)?F(this,I,`f`).reset():on(F(this,X,`f`),F(this,Q,`f`),F(this,V,`f`),F(this,Y,`f`)),`f`),F(this,L,`f`)||P(this,L,xn(this,F(this,X,`f`),F(this,I,`f`),F(this,Y,`f`)),`f`),F(this,V,`f`).reset(),P(this,R,null,`f`),P(this,G,``,`f`),P(this,z,null,`f`),P(this,U,!1,`f`),this.parsed=!1,this}[Dr](e,t){return F(this,Y,`f`).path.relative(e,t)}[kr](e,t,n,r=0,i=!1){let a=!!n||i;e||=F(this,J,`f`),F(this,K,`f`).__=F(this,Y,`f`).y18n.__,F(this,K,`f`).configuration=this[ir]();let o=!!F(this,K,`f`).configuration[`populate--`],s=Object.assign({},F(this,K,`f`).configuration,{"populate--":!0}),c=F(this,Y,`f`).Parser.detailed(e,Object.assign({},F(this,K,`f`),{configuration:{"parse-positional-numbers":!1,...s}})),l=Object.assign(c.argv,F(this,Un,`f`)),u,d=c.aliases,f=!1,p=!1;Object.keys(l).forEach(e=>{e===F(this,W,`f`)&&l[e]?f=!0:e===F(this,Z,`f`)&&l[e]&&(p=!0)}),l.$0=this.$0,this.parsed=c,r===0&&F(this,X,`f`).clearCachedHelpMessage();try{if(this[or](),t)return this[Er](l,o,!!n,!1);F(this,W,`f`)&&[F(this,W,`f`)].concat(d[F(this,W,`f`)]||[]).filter(e=>e.length>1).includes(``+l._[l._.length-1])&&(l._.pop(),f=!0),P(this,zn,!1,`f`);let s=F(this,I,`f`).getCommands(),m=F(this,L,`f`)?.completionKey?[F(this,L,`f`)?.completionKey,...this.getAliases()[F(this,L,`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!==F(this,R,`f`)){let e=F(this,I,`f`).runCommand(a,this,c,t+1,i,f||p||i);return this[Er](e,o,!!n,!1)}if(!e&&a!==F(this,R,`f`)){e=a;break}}!F(this,I,`f`).hasDefaultCommand()&&F(this,Kn,`f`)&&e&&!h&&F(this,Q,`f`).recommendCommands(e,s)}F(this,R,`f`)&&l._.includes(F(this,R,`f`))&&!m&&(F(this,B,`f`)&&pn(!0),this.showCompletionScript(),this.exit(0))}if(F(this,I,`f`).hasDefaultCommand()&&!h){let e=F(this,I,`f`).runCommand(null,this,c,0,i,f||p||i);return this[Er](e,o,!!n,!1)}if(m){F(this,B,`f`)&&pn(!0),e=[].concat(e);let t=e.slice(e.indexOf(`--${F(this,L,`f`).completionKey}`)+1);return F(this,L,`f`).getCompletion(t,(e,t)=>{if(e)throw new M(e.message);(t||[]).forEach(e=>{F(this,Bn,`f`).log(e)}),this.exit(0)}),this[Er](l,!o,!!n,!1)}if(F(this,U,`f`)||(f?(F(this,B,`f`)&&pn(!0),a=!0,this.showHelp(e=>{F(this,Bn,`f`).log(e),this.exit(0)})):p&&(F(this,B,`f`)&&pn(!0),a=!0,F(this,X,`f`).showVersion(`log`),this.exit(0))),!a&&F(this,K,`f`).skipValidation.length>0&&(a=Object.keys(l).some(e=>F(this,K,`f`).skipValidation.indexOf(e)>=0&&l[e]===!0)),!a){if(c.error)throw new M(c.error.message);if(!m){let e=this[Ar](d,{},c.error);n||(u=en(l,this,F(this,V,`f`).getMiddleware(),!0)),u=this[gr](e,u??l),j(u)&&!n&&(u=u.then(()=>en(l,this,F(this,V,`f`).getMiddleware(),!1)))}}}catch(e){if(e instanceof M)F(this,X,`f`).fail(e.message,e);else throw e}return this[Er](u??l,o,!!n,!0)}[Ar](e,t,n,r){let i={...this.getDemandedOptions()};return a=>{if(n)throw new M(n.message);F(this,Q,`f`).nonOptionCount(a),F(this,Q,`f`).requiredArguments(a,i);let o=!1;F(this,Jn,`f`)&&(o=F(this,Q,`f`).unknownCommands(a)),F(this,qn,`f`)&&!o?F(this,Q,`f`).unknownArguments(a,e,t,!!r):F(this,Yn,`f`)&&F(this,Q,`f`).unknownArguments(a,e,{},!1,!1),F(this,Q,`f`).limitedChoices(a),F(this,Q,`f`).implications(a),F(this,Q,`f`).conflicting(a)}}[jr](){P(this,U,!0,`f`)}[Mr](e){if(typeof e==`string`)F(this,K,`f`).key[e]=!0;else for(let t of e)F(this,K,`f`).key[t]=!0}};function Pr(e){return!!e&&typeof e.getInternalMethods==`function`}const Fr=Zn(Gt),Ir=[{command:i(`abuse-reports`,`Submit and track abuse reports for phishing, malware, and other policy violations on Cloudflare-proxied sites`,()=>import(`./abuse-reports-CnQBtN1G.mjs`),null),hideCommand:!1},{command:i(`access`,`Access protected applications and services`,()=>import(`./access-BzmXSwzj.mjs`),null),hideCommand:!1},{command:i(`account-tags`,`account-tags`,()=>import(`./account-tags-2qPWbW17.mjs`),null),hideCommand:!1},{command:i(`accounts`,`Account settings, members, roles, subscriptions, and API tokens for your Cloudflare account`,()=>import(`./accounts-B0Byg-AV.mjs`),null),hideCommand:!1},{command:i(`acm`,`acm`,()=>import(`./acm-DgAu0cnk.mjs`),null),hideCommand:!0},{command:i(`addressing`,`addressing`,()=>import(`./addressing-J1oa0ML2.mjs`),null),hideCommand:!1},{command:i(`agent-memory`,`agent-memory`,()=>import(`./agent-memory-4KGou-tm.mjs`),null),hideCommand:!1},{command:i(`ai`,`ai`,()=>import(`./ai-WY7wVQfA.mjs`),null),hideCommand:!1},{command:i(`ai-audit`,`ai-audit`,()=>import(`./ai-audit-D38HaEoZ.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-C0gIipT8.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-ClwnPU-9.mjs`),null),hideCommand:!1},{command:i(`ai-security`,`Detect prompt injection, PII, and unsafe topics in traffic to your AI applications`,()=>import(`./ai-security-BIsvFPYV.mjs`),null),hideCommand:!1},{command:i(`alerting`,`alerting`,()=>import(`./alerting-MHhv28oO.mjs`),null),hideCommand:!0},{command:i(`alerts`,`alerts`,()=>import(`./alerts-BSON-vFh.mjs`),null),hideCommand:!0},{command:i(`analytics`,`Zone-level traffic analytics — dashboard summaries, per-colo breakdowns, and Argo latency metrics`,()=>import(`./analytics-BfBz7bqB.mjs`),null),hideCommand:!1},{command:i(`analytics_engine`,`analytics_engine`,()=>import(`./analytics_engine-CXVdBF1n.mjs`),null),hideCommand:!0},{command:i(`api-security`,`api-security`,()=>import(`./api-security-DUCfcdC1.mjs`),null),hideCommand:!0},{command:i(`argo`,`Network optimization features that speed up and improve reliability of traffic to your origins`,()=>import(`./argo-CUlzI4v3.mjs`),null),hideCommand:!1},{command:i(`artifacts`,`artifacts`,()=>import(`./artifacts-BLfWGzBg.mjs`),null),hideCommand:!1},{command:i(`audit-logs`,`audit-logs`,()=>import(`./audit-logs-CsfIm2QS.mjs`),null),hideCommand:!0},{command:i(`autorag`,`autorag`,()=>import(`./autorag-kNrLiqDX.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-CrKRYJ0b.mjs`),null),hideCommand:!1},{command:i(`billing`,`Account billing profiles and usage data for Cloudflare subscriptions and add-on services`,()=>import(`./billing-NxehgXrR.mjs`),null),hideCommand:!1},{command:i(`bot-management`,`bot-management`,()=>import(`./bot-management-C993iQKL.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-CZ4vYk5y.mjs`),null),hideCommand:!0},{command:i(`brand-protection`,`brand-protection`,()=>import(`./brand-protection-ADVgIi0l.mjs`),null),hideCommand:!0},{command:i(`brands`,`brands`,()=>import(`./brands-bBJgbbOH.mjs`),null),hideCommand:!0},{command:i(`browser-extension`,`browser-extension`,()=>import(`./browser-extension-C1_fcw7h.mjs`),null),hideCommand:!0},{command:i(`browser-run`,`browser-run`,()=>import(`./browser-run-CEptKZYl.mjs`),null),hideCommand:!1},{command:i(`builds`,`Build and deploy Workers from connected repositories, then inspect build status and logs.`,()=>import(`./builds-DqtiTH7p.mjs`),null),hideCommand:!1},{command:i(`cache`,`Purge cached content and configure Cache Reserve, tiered caching, and variant serving`,()=>import(`./cache-hX5QxmI0.mjs`),null),hideCommand:!1},{command:i(`certificate-authorities`,`certificate-authorities`,()=>import(`./certificate-authorities-BOcybjc1.mjs`),null),hideCommand:!0},{command:i(`clear`,`clear`,()=>import(`./clear-BW9vLgI3.mjs`),null),hideCommand:!0},{command:i(`client-certificates`,`client-certificates`,()=>import(`./client-certificates-Bez_ArKE.mjs`),null),hideCommand:!0},{command:i(`client-side-security`,`Client-Side Security — monitor JavaScript, connections, and cookies on your pages for supply-chain attacks`,()=>import(`./client-side-security-CSmA50Bv.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-0Wivqi7S.mjs`),null),hideCommand:!1},{command:i(`cloudforce-one`,`Detection rule management APIs`,()=>import(`./cloudforce-one-J-rU6k1U.mjs`),null),hideCommand:!1},{command:i(`connector-interrupts`,`connector-interrupts`,()=>import(`./connector-interrupts-CH-DaLuo.mjs`),null),hideCommand:!0},{command:i(`connector-telemetry-events`,`connector-telemetry-events`,()=>import(`./connector-telemetry-events-X3Fod9nl.mjs`),null),hideCommand:!0},{command:i(`connector-telemetry-events-latest`,`connector-telemetry-events-latest`,()=>import(`./connector-telemetry-events-latest-BQdOvbWh.mjs`),null),hideCommand:!0},{command:i(`connector-telemetry-snapshots`,`connector-telemetry-snapshots`,()=>import(`./connector-telemetry-snapshots-D-WR4npQ.mjs`),null),hideCommand:!0},{command:i(`connector-telemetry-snapshots-latest`,`connector-telemetry-snapshots-latest`,()=>import(`./connector-telemetry-snapshots-latest-CtdN_dGu.mjs`),null),hideCommand:!0},{command:i(`connectors`,`connectors`,()=>import(`./connectors-CORKD31m.mjs`),null),hideCommand:!0},{command:i(`containers`,`Deploy and manage Containers applications on Cloudflare's global network`,()=>import(`./containers-BboUbx3k.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-DXGREAXa.mjs`),null),hideCommand:!1},{command:i(`cps`,`cps`,()=>import(`./cps-1BoOLtTq.mjs`),null),hideCommand:!1},{command:i(`csamScanner`,`csamScanner`,()=>import(`./csamScanner-CHfbfeup.mjs`),null),hideCommand:!0},{command:i(`ct-alerting`,`ct-alerting`,()=>import(`./ct-alerting-DlH4ILQo.mjs`),null),hideCommand:!0},{command:i(`custom-certificates`,`custom-certificates`,()=>import(`./custom-certificates-zJqJZ2Th.mjs`),null),hideCommand:!0},{command:i(`custom-csrs`,`custom-csrs`,()=>import(`./custom-csrs-DoLIGqYL.mjs`),null),hideCommand:!1},{command:i(`custom-hostnames`,`custom-hostnames`,()=>import(`./custom-hostnames-YfV-aoAK.mjs`),null),hideCommand:!0},{command:i(`custom-nameservers`,`custom-nameservers`,()=>import(`./custom-nameservers-BV43gmgt.mjs`),null),hideCommand:!1},{command:i(`custom-pages`,`Manage custom error and challenge pages and their assets for accounts and zones`,()=>import(`./custom-pages-CoOU1Cdx.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-DujBmzLa.mjs`),null),hideCommand:!1},{command:i(`dcv-delegation`,`dcv-delegation`,()=>import(`./dcv-delegation-CPLsVYOl.mjs`),null),hideCommand:!0},{command:i(`diagnostics`,`Network diagnostic tools — traceroutes from Cloudflare's edge and endpoint health checks`,()=>import(`./diagnostics-B3TYPVRi.mjs`),null),hideCommand:!0},{command:i(`dls`,`dls`,()=>import(`./dls-CWm1HRF0.mjs`),null),hideCommand:!0},{command:i(`dns`,`dns`,()=>import(`./dns-CjAFU7Z9.mjs`),null),hideCommand:!1},{command:i(`dns-firewall`,`dns-firewall`,()=>import(`./dns-firewall-BooBP9ap.mjs`),null),hideCommand:!0},{command:i(`domain-info`,`domain-info`,()=>import(`./domain-info-BkcBcyfF.mjs`),null),hideCommand:!0},{command:i(`durable-objects`,`durable-objects`,()=>import(`./durable-objects-CSrMQDCE.mjs`),null),hideCommand:!1},{command:i(`email-auth`,`email-auth`,()=>import(`./email-auth-Bp1Mui-n.mjs`),null),hideCommand:!0},{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-CVF6SwQt.mjs`),null),hideCommand:!1},{command:i(`email-security`,`Cloud email security — investigate threats, manage allow/block policies, and detect phishing`,()=>import(`./email-security-mYZtazae.mjs`),null),hideCommand:!1},{command:i(`email-sending`,`Send transactional email and manage sending subdomains and their DNS configuration`,()=>import(`./email-sending-BqaKU_Xu.mjs`),null),hideCommand:!1},{command:i(`fieldExtractors`,`fieldExtractors`,()=>import(`./fieldExtractors-CAGZVmYg.mjs`),null),hideCommand:!0},{command:i(`firewall`,`Legacy firewall rules, zone lockdowns, access rules, user-agent blocking, and WAF packages`,()=>import(`./firewall-DgTDsYOt.mjs`),null),hideCommand:!1},{command:i(`flagship`,`flagship`,()=>import(`./flagship-Db3PxxyZ.mjs`),null),hideCommand:!1},{command:i(`fraud`,`fraud`,()=>import(`./fraud-BEOQczy8.mjs`),null),hideCommand:!0},{command:i(`google-tag-gateway`,`Google Tag Gateway operations`,()=>import(`./google-tag-gateway-DjLQ9wo0.mjs`),null),hideCommand:!0},{command:i(`health`,`health`,()=>import(`./health-CTaCeVyC.mjs`),null),hideCommand:!0},{command:i(`healthchecks`,`Standalone health checks that monitor origin server availability from Cloudflare's edge`,()=>import(`./healthchecks-C3ScnKss.mjs`),null),hideCommand:!0},{command:i(`hostnames`,`hostnames`,()=>import(`./hostnames-DU0k-xO9.mjs`),null),hideCommand:!0},{command:i(`hyperdrive`,`Accelerate access to existing databases by caching queries and pooling connections at the edge`,()=>import(`./hyperdrive-IpCCLCRd.mjs`),null),hideCommand:!1},{command:i(`iam`,`Identity and access management — permission groups, resource groups, user groups, and SSO connectors`,()=>import(`./iam-96CYM8Vw.mjs`),null),hideCommand:!0},{command:i(`images`,`Store, resize, and deliver optimized images globally — variants, signing keys, and direct uploads`,()=>import(`./images-AB9EgZgT.mjs`),null),hideCommand:!1},{command:i(`intel`,`Threat intelligence lookups — IP reputation, domain info, ASN details, WHOIS, and indicator feeds`,()=>import(`./intel-BKb4RLvS.mjs`),null),hideCommand:!1},{command:i(`internal`,`internal`,()=>import(`./internal-BYS7hO8c.mjs`),null),hideCommand:!0},{command:i(`ips`,`ips`,()=>import(`./ips-z9APCV_b.mjs`),null),hideCommand:!0},{command:i(`k2`,`Durable, ordered event streams that you produce records to and consume from with subscriptions`,()=>import(`./k2-Bv-HiJ29.mjs`),null),hideCommand:!1},{command:i(`keyless-certificates`,`keyless-certificates`,()=>import(`./keyless-certificates-ChgSGHq4.mjs`),null),hideCommand:!0},{command:i(`keys`,`keys`,()=>import(`./keys-BhngDsDa.mjs`),null),hideCommand:!1},{command:i(`kv`,`kv`,()=>import(`./kv-CB5MQVGP.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-Bsi2WpSU.mjs`),null),hideCommand:!1},{command:i(`live`,`live`,()=>import(`./live-BJE_YWE1.mjs`),null),hideCommand:!0},{command:i(`load-balancers`,`Distribute traffic across origin pools with health monitoring, geo-steering, and failover`,()=>import(`./load-balancers-0gXZNCeI.mjs`),null),hideCommand:!1},{command:i(`logo-matches`,`logo-matches`,()=>import(`./logo-matches-DmoF5Otu.mjs`),null),hideCommand:!0},{command:i(`logos`,`logos`,()=>import(`./logos-BL6ohIMH.mjs`),null),hideCommand:!0},{command:i(`logpush`,`logpush`,()=>import(`./logpush-UVopW68t.mjs`),null),hideCommand:!1},{command:i(`logs`,`Log control, retention, and raw log access — CMB config, ray ID lookups, and received fields`,()=>import(`./logs-BVfxiEiM.mjs`),null),hideCommand:!1},{command:i(`magic-cloud-networking`,`magic-cloud-networking`,()=>import(`./magic-cloud-networking-B5S3aM6f.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-CDSJPP47.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-TcDTKM43.mjs`),null),hideCommand:!0},{command:i(`managed-defense`,`managed-defense`,()=>import(`./managed-defense-C88HL0pg.mjs`),null),hideCommand:!1},{command:i(`managed-transforms`,`managed-transforms`,()=>import(`./managed-transforms-Ja41Tahl.mjs`),null),hideCommand:!0},{command:i(`matches`,`matches`,()=>import(`./matches-BL_Y-9Yq.mjs`),null),hideCommand:!0},{command:i(`mcp`,`Manage MCP portals and upstream MCP servers for Cloudflare Access AI controls`,()=>import(`./mcp-BWp5Q09R.mjs`),null),hideCommand:!1},{command:i(`mesh`,`mesh`,()=>import(`./mesh-lFPLRWhV.mjs`),null),hideCommand:!0},{command:i(`monetization`,`monetization`,()=>import(`./monetization-BIc4Bwo2.mjs`),null),hideCommand:!1},{command:i(`mtls-certificates`,`mtls-certificates`,()=>import(`./mtls-certificates-CVBw-Jli.mjs`),null),hideCommand:!0},{command:i(`network`,`network`,()=>import(`./network-Wig0qbaC.mjs`),null),hideCommand:!0},{command:i(`network-interconnects`,`Physical and virtual private interconnects between your infrastructure and Cloudflare's network`,()=>import(`./network-interconnects-C16z1HuQ.mjs`),null),hideCommand:!0},{command:i(`o11y`,`o11y`,()=>import(`./o11y-Bhy4qDRm.mjs`),null),hideCommand:!1},{command:i(`oauth-clients`,`oauth-clients`,()=>import(`./oauth-clients-eXjmK5yf.mjs`),null),hideCommand:!0},{command:i(`oauth-scopes`,`oauth-scopes`,()=>import(`./oauth-scopes-DZWn50EA.mjs`),null),hideCommand:!0},{command:i(`organization`,`organization`,()=>import(`./organization-QdAQTrKa.mjs`),null),hideCommand:!1},{command:i(`organizations`,`Multi-user organizations that group accounts, members, and shared settings under a single entity`,()=>import(`./organizations-CgAQYdK5.mjs`),null),hideCommand:!1},{command:i(`origin-ca-certificates`,`origin-ca-certificates`,()=>import(`./origin-ca-certificates-BklXqp8X.mjs`),null),hideCommand:!0},{command:i(`origin-post-quantum-encryption`,`Enable post-quantum key exchange for connections between Cloudflare and your origin server`,()=>import(`./origin-post-quantum-encryption-Dg16ueT4.mjs`),null),hideCommand:!0},{command:i(`origin-tls-client-auth`,`origin-tls-client-auth`,()=>import(`./origin-tls-client-auth-d8bDU5zU.mjs`),null),hideCommand:!0},{command:i(`page-rules`,`page-rules`,()=>import(`./page-rules-CgMkC6YR.mjs`),null),hideCommand:!0},{command:i(`pages`,`Full-stack application hosting with Git-integrated builds, preview deployments, and custom domains`,()=>import(`./pages-CkBtOOf8.mjs`),null),hideCommand:!1},{command:i(`pay-per-crawl`,`pay-per-crawl`,()=>import(`./pay-per-crawl-CnGXOWyz.mjs`),null),hideCommand:!1},{command:i(`pay-per-use`,`pay-per-use`,()=>import(`./pay-per-use-HbfxpATr.mjs`),null),hideCommand:!1},{command:i(`pipelines`,`Ingest, transform, and route event streams into R2, analytics, or other destinations in real time`,()=>import(`./pipelines-CnO9CCs0.mjs`),null),hideCommand:!1},{command:i(`precursor`,`Precursor settings for a zone`,()=>import(`./precursor-Bc55XJdQ.mjs`),null),hideCommand:!0},{command:i(`previews`,`Manage Worker Previews`,()=>import(`./previews-C7vZrajd.mjs`),null),hideCommand:!1},{command:i(`queries`,`queries`,()=>import(`./queries-BJAH4B74.mjs`),null),hideCommand:!0},{command:i(`queues`,`Reliable message queuing between Workers — produce, consume, and batch-process messages at scale`,()=>import(`./queues-D4G8vvwi.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-CJ8rD6Jb.mjs`),null),hideCommand:!1},{command:i(`r2-data-catalog`,`Iceberg-compatible data catalog for R2 — organize objects into tables and namespaces for SQL query engines`,()=>import(`./r2-data-catalog-BRo-Rx2I.mjs`),null),hideCommand:!1},{command:i(`radar`,`Internet-wide traffic intelligence — BGP, DNS, HTTP trends, attack data, and network quality insights`,()=>import(`./radar-DgaxOdcd.mjs`),null),hideCommand:!1},{command:i(`rate-limit-analytics`,`rate-limit-analytics`,()=>import(`./rate-limit-analytics-BiRyU0Xd.mjs`),null),hideCommand:!1},{command:i(`rate-limits`,`Legacy per-zone rate limiting rules — prefer Advanced Rate Limiting in Rulesets for new configurations`,()=>import(`./rate-limits-Cr2zpncO.mjs`),null),hideCommand:!0},{command:i(`ready`,`ready`,()=>import(`./ready-B3pLxnjc.mjs`),null),hideCommand:!0},{command:i(`realtime`,`Real-time audio, video, and data services on Cloudflare's global network`,()=>import(`./realtime-DU09m7L7.mjs`),null),hideCommand:!1},{command:i(`recent-submissions`,`recent-submissions`,()=>import(`./recent-submissions-JLOvuZq-.mjs`),null),hideCommand:!0},{command:i(`refute`,`refute`,()=>import(`./refute-Dp3VodMn.mjs`),null),hideCommand:!0},{command:i(`registrar`,`registrar`,()=>import(`./registrar-Cj7OfvGs.mjs`),null),hideCommand:!1},{command:i(`registrar-sandbox`,`registrar-sandbox`,()=>import(`./registrar-sandbox-CA0Mua-j.mjs`),null),hideCommand:!1},{command:i(`reporting`,`reporting`,()=>import(`./reporting-3kDVF5c8.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-VBD4R3s3.mjs`),null),hideCommand:!0},{command:i(`resource-sharing`,`Share Cloudflare resources (zones, accounts) across organizations with granular access controls`,()=>import(`./resource-sharing-BtUF3psS.mjs`),null),hideCommand:!1},{command:i(`resource-tagging`,`resource-tagging`,()=>import(`./resource-tagging--90INP8_.mjs`),null),hideCommand:!1},{command:i(`rules`,`Resources used by Cloudflare rules and rulesets`,()=>import(`./rules-CcwPngVo.mjs`),null),hideCommand:!1},{command:i(`rulesets`,`rulesets`,()=>import(`./rulesets-CfdruY82.mjs`),null),hideCommand:!1},{command:i(`rum`,`Real User Measurement (Web Analytics) — track page loads, Core Web Vitals, and visitor metrics`,()=>import(`./rum-RLkdfSL7.mjs`),null),hideCommand:!0},{command:i(`scan-logo`,`scan-logo`,()=>import(`./scan-logo-3Zr6CDJB.mjs`),null),hideCommand:!0},{command:i(`scan-page`,`scan-page`,()=>import(`./scan-page-CxeudOzj.mjs`),null),hideCommand:!0},{command:i(`scim`,`SCIM 2.0 provisioning — manage users, groups, and identity provider sync for your account`,()=>import(`./scim-BZYsTPIL.mjs`),null),hideCommand:!0},{command:i(`search`,`search`,()=>import(`./search-B_P5ZTQj.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-C_-FkSH_.mjs`),null),hideCommand:!1},{command:i(`security-insights`,`security-insights`,()=>import(`./security-insights-BVBEaZmD.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--IoHrHee.mjs`),null),hideCommand:!1},{command:i(`signed-url`,`signed-url`,()=>import(`./signed-url-D5RwvrQq.mjs`),null),hideCommand:!0},{command:i(`smart-shield`,`Smart Shield settings, health checks, and cache reserve management`,()=>import(`./smart-shield-CByC4_60.mjs`),null),hideCommand:!0},{command:i(`snippets`,`snippets`,()=>import(`./snippets-DB-jiZAV.mjs`),null),hideCommand:!1},{command:i(`spectrum`,`Proxy and protect arbitrary TCP/UDP applications through Cloudflare's network with DDoS mitigation`,()=>import(`./spectrum-Bs2g1BmK.mjs`),null),hideCommand:!0},{command:i(`speed`,`Observatory speed tests — run Lighthouse audits, track performance trends, and schedule recurring tests`,()=>import(`./speed-Bq4evEnJ.mjs`),null),hideCommand:!1},{command:i(`sql`,`sql`,()=>import(`./sql-XGci7hZC.mjs`),null),hideCommand:!1},{command:i(`ssl`,`SSL/TLS certificate management — certificate packs, Universal SSL, verification, and TLS mode recommendations`,()=>import(`./ssl-KJTLW1NR.mjs`),null),hideCommand:!0},{command:i(`stream`,`Video encoding, storage, and delivery — upload, live-stream, clip, caption, and embed video at scale`,()=>import(`./stream-BotgYspF.mjs`),null),hideCommand:!1},{command:i(`submission-info`,`submission-info`,()=>import(`./submission-info-_t78q2OE.mjs`),null),hideCommand:!0},{command:i(`submit`,`submit`,()=>import(`./submit-C5VytaHP.mjs`),null),hideCommand:!0},{command:i(`tags`,`tags`,()=>import(`./tags-3Hq-B9qp.mjs`),null),hideCommand:!1},{command:i(`tenant`,`tenant`,()=>import(`./tenant-BgX5onPc.mjs`),null),hideCommand:!1},{command:i(`tenant-custom-nameservers`,`tenant-custom-nameservers`,()=>import(`./tenant-custom-nameservers-BVG8v1Xo.mjs`),null),hideCommand:!0},{command:i(`total-queries`,`total-queries`,()=>import(`./total-queries-CPrKEciQ.mjs`),null),hideCommand:!0},{command:i(`tracked-domains`,`tracked-domains`,()=>import(`./tracked-domains-CTRItgFT.mjs`),null),hideCommand:!0},{command:i(`tunnels`,`tunnels`,()=>import(`./tunnels-CThOI3qH.mjs`),null),hideCommand:!0},{command:i(`turnstile`,`CAPTCHA-free bot verification widgets that protect forms and APIs without degrading user experience`,()=>import(`./turnstile-BgZaUx-g.mjs`),null),hideCommand:!1},{command:i(`url-info`,`url-info`,()=>import(`./url-info-DQERN0Xq.mjs`),null),hideCommand:!0},{command:i(`url-normalization`,`url-normalization`,()=>import(`./url-normalization-Cb1hofqv.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-gHgx1bW7.mjs`),null),hideCommand:!0},{command:i(`user`,`Your Cloudflare user profile, invitations, organizations, billing, and personal API tokens`,()=>import(`./user-CdKzIuSi.mjs`),null),hideCommand:!1},{command:i(`values`,`values`,()=>import(`./values-EwA8Sx0w.mjs`),null),hideCommand:!1},{command:i(`vectorize`,`Globally distributed vector database for building semantic search, recommendations, and RAG applications on Workers`,()=>import(`./vectorize-DejgIJIv.mjs`),null),hideCommand:!1},{command:i(`verify`,`verify`,()=>import(`./verify-5KcvRk-q.mjs`),null),hideCommand:!0},{command:i(`waiting-rooms`,`Virtual queues that throttle traffic to your site during peak demand with customizable waiting pages`,()=>import(`./waiting-rooms-BNR1HvAP.mjs`),null),hideCommand:!1},{command:i(`web-assets`,`web-assets`,()=>import(`./web-assets-iglnzkTV.mjs`),null),hideCommand:!0},{command:i(`web3`,`web3`,()=>import(`./web3-JBUU6IVt.mjs`),null),hideCommand:!0},{command:i(`workers`,`workers`,()=>import(`./workers-CDp4kLTJ.mjs`),null),hideCommand:!1},{command:i(`workers-builds`,`workers-builds`,()=>import(`./workers-builds-CSb9Dglt.mjs`),null),hideCommand:!0},{command:i(`workers-for-platforms`,`workers-for-platforms`,()=>import(`./workers-for-platforms-D4srNZvt.mjs`),null),hideCommand:!1},{command:i(`workers-vpc`,`workers-vpc`,()=>import(`./workers-vpc-LPC8TadH.mjs`),null),hideCommand:!1},{command:i(`workflows`,`Durable, multi-step workflows that run on Workers with automatic retries and state persistence`,()=>import(`./workflows-DN_VqWJC.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-DDErl5yc.mjs`),null),hideCommand:!0},{command:i(`zero-trust`,`Cloudflare's SASE platform — secure access, device posture, DLP, tunnels, gateway policies, and network segmentation`,()=>import(`./zero-trust-M88XX3uD.mjs`),null),hideCommand:!1},{command:i(`zone`,`zone`,()=>import(`./zone-BsGvedmN.mjs`),null),hideCommand:!1},{command:i(`zones`,`Zones are domains on Cloudflare — list, create, and configure domain settings`,()=>import(`./zones-l_sRKrVl.mjs`),null),hideCommand:!1}];function Lr(e){return typeof e==`object`&&!!e&&`schemas`in e&&typeof e.schemas==`object`&&e.schemas!==null&&!Array.isArray(e.schemas)}function Rr(e,t){if(!t)return e;let n=a(import.meta.url,`schemas.json`,Lr);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 zr=[{kind:`root`,dryRun:`preview`,command:`auth`,describe:`Manage authentication and profiles`,dir:`auth`,load:()=>import(`./auth-CGRemu5W.mjs`),telemetry:{command:`auth`,recordArgs:!1}},{kind:`root`,dryRun:`preview`,command:`login`,describe:!1,dir:`login`,load:()=>import(`./login-Ik98G4K6.mjs`),telemetry:null},{kind:`root`,dryRun:`preview`,command:`build`,describe:`Build a project for Cloudflare`,dir:`build`,load:()=>import(`./build-Bm6kGyzo.mjs`),telemetry:{command:`build`,classification:{safeFlags:[]}}},{kind:`root`,dryRun:`preview`,command:`complete [shell]`,describe:`Generate and handle shell completions`,dir:`completions`,load:()=>import(`./completions-CpNGTlUX.mjs`),telemetry:null},{kind:`root`,dryRun:`native`,command:`deploy`,describe:`Deploy a project to Cloudflare`,dir:`deploy`,load:()=>import(`./deploy-wNujfGUJ.mjs`),telemetry:{command:`deploy`,classification:{safeFlags:[`dry-run`,`prebuilt`,`containers-rollout`,`provision`]}}},{kind:`root`,dryRun:`preview`,command:`dev [implArgs..]`,describe:`Run the project's Cloudflare dev server`,dir:`dev`,load:()=>import(`./dev-EtnMYA7K.mjs`),telemetry:{command:`dev`,recordArgs:!1}},{kind:`root`,dryRun:`preview`,command:`docs`,describe:`Search live Cloudflare documentation`,dir:`docs`,load:()=>import(`./docs-C5XB7HdG.mjs`),telemetry:{command:`docs`,recordArgs:!1}},{kind:`root`,dryRun:`preview`,command:`init [directory]`,describe:`Create a new Cloudflare project or set up an existing one`,dir:`init`,load:()=>import(`./init-D2nPoW4f.mjs`),telemetry:{command:`init`,classification:{safeFlags:[`install`,`package-manager`]}}},{kind:`root`,dryRun:`native`,command:`migrate [path]`,describe:`Migrate a Wrangler project to cf`,dir:`migrate`,load:()=>import(`./migrate-6e5mJ79R.mjs`),telemetry:{command:`migrate`,recordArgs:!1}},{kind:`root`,dryRun:`preview`,command:`cli`,describe:`Discover commands and configure the cf CLI`,dir:`cli`,load:()=>import(`./cli-R8h3OKZI.mjs`),telemetry:{command:`cli`,recordArgs:!1}},{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`,load:()=>import(`./schema-S3pUZwpI.mjs`),telemetry:{command:`schema`,classification:{safeFlags:[`list`]}}},{kind:`root`,dryRun:`preview`,command:`tools`,describe:!1,dir:`tools`,load:()=>import(`./tools-BCCRUENY.mjs`),telemetry:{command:`tools`,classification:{safeFlags:[`text`]}}},{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 Br(){return zr.filter(e=>e.kind===`root`)}function Vr(e){return e.command.split(/\s+/)[0]??e.command}function Hr(e){try{let t=new URL(e);return`${t.pathname.replace(/^\/client\/v\d+/,``)}${t.search}`}catch{return e}}function Ur(e){if(u(h),e instanceof te){let t=e.statusCode,n=e.body,r=t===void 0?`Envelope Error`:Gr(t),i=[];if(n){let e=n;Array.isArray(e.errors)&&(i=e.errors)}let a=e.rawResponse?.url?`HTTP ${Hr(e.rawResponse.url)}`:void 0,s=t===void 0?r:`${t} ${r}`,c=a?`${s} · ${a}`:s,l=o.muted(c),u=``;return i.length>0?u=i.map((e,t)=>{let n=typeof e.code==`number`?o.error(o.bold(`[${e.code}]`)):o.error(o.bold(`[error]`)),r=o.bold(e.message??``);return t===i.length-1?`${n} ${r}\n${l}`:`${n} ${r}`}).join(`
|
|
114
|
+
`,`f`),P(this,G,F(this,G,`f`)+e.join(` `),`f`)}}}[er](e){qt(F(this,K,`f`)).forEach(t=>{if((e=>e===`configObjects`)(t))return;let n=F(this,K,`f`)[t];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n==`object`&&delete n[e]}),delete F(this,X,`f`).getDescriptions()[e]}[tr](e,t,n){F(this,Ln,`f`)[n]||(F(this,Y,`f`).process.emitWarning(e,t),F(this,Ln,`f`)[n]=!0)}[nr](){F(this,Rn,`f`).push({options:F(this,K,`f`),configObjects:F(this,K,`f`).configObjects.slice(0),exitProcess:F(this,B,`f`),groups:F(this,H,`f`),strict:F(this,qn,`f`),strictCommands:F(this,Jn,`f`),strictOptions:F(this,Yn,`f`),completionCommand:F(this,R,`f`),output:F(this,G,`f`),exitError:F(this,z,`f`),hasOutput:F(this,U,`f`),parsed:this.parsed,parseFn:F(this,q,`f`),parseContext:F(this,Un,`f`)}),F(this,X,`f`).freeze(),F(this,Q,`f`).freeze(),F(this,I,`f`).freeze(),F(this,V,`f`).freeze()}[rr](){let e=``,t;return t=/\b(node|iojs|electron|bun)(\.exe)?$/.test(F(this,Y,`f`).process.argv()[0])?F(this,Y,`f`).process.argv().slice(1,2):F(this,Y,`f`).process.argv().slice(0,1),e=t.map(e=>{let t=this[Dr](F(this,Nn,`f`),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e}).join(` `).trim(),F(this,Y,`f`).getEnv(`_`)&&F(this,Y,`f`).getProcessArgvBin()===F(this,Y,`f`).getEnv(`_`)&&(e=F(this,Y,`f`).getEnv(`_`).replace(`${F(this,Y,`f`).path.dirname(F(this,Y,`f`).process.execPath())}/`,``)),e}[ir](){return F(this,Hn,`f`)}[ar](){return F(this,Xn,`f`)}[or](){if(!F(this,In,`f`))return;let e=F(this,Y,`f`).getEnv(`LC_ALL`)||F(this,Y,`f`).getEnv(`LC_MESSAGES`)||F(this,Y,`f`).getEnv(`LANG`)||F(this,Y,`f`).getEnv(`LANGUAGE`)||`en_US`;this.locale(e.replace(/[.:].*/,``))}[sr](){return this[lr]().version||`unknown`}[cr](e){let t=e[`--`]?e[`--`]:e._;for(let e=0,n;(n=t[e])!==void 0;e++)F(this,Y,`f`).Parser.looksLikeNumber(n)&&Number.isSafeInteger(Math.floor(parseFloat(`${n}`)))&&(t[e]=Number(n));return e}[lr](e){let t=e||`*`;if(F(this,Wn,`f`)[t])return F(this,Wn,`f`)[t];let n={};try{let t=e||F(this,Y,`f`).mainFilename;F(this,Y,`f`).path.extname(t)&&(t=F(this,Y,`f`).path.dirname(t));let r=F(this,Y,`f`).findUp(t,(e,t)=>{if(t.includes(`package.json`))return`package.json`});A(r,void 0,F(this,Y,`f`)),n=JSON.parse(F(this,Y,`f`).readFileSync(r,`utf8`))}catch{}return F(this,Wn,`f`)[t]=n||{},F(this,Wn,`f`)[t]}[$](e,t){t=[].concat(t),t.forEach(t=>{t=this[pr](t),F(this,K,`f`)[e].push(t)})}[ur](e,t,n,r){this[fr](e,t,n,r,(e,t,n)=>{F(this,K,`f`)[e][t]=n})}[dr](e,t,n,r){this[fr](e,t,n,r,(e,t,n)=>{F(this,K,`f`)[e][t]=(F(this,K,`f`)[e][t]||[]).concat(n)})}[fr](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 qt(n))e(t,n[t]);else i(t,this[pr](n),r)}[pr](e){return e===`__proto__`?`___proto___`:e}[mr](e,t){return this[ur](this[mr].bind(this),`key`,e,t),this}[hr](){var e,t,n,r,i,a,o,s,c,l,u,d;let f=F(this,Rn,`f`).pop();A(f,void 0,F(this,Y,`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){P(e,K,t,`f`)}}.value,configObjects:p,exitProcess:{set value(e){P(t,B,e,`f`)}}.value,groups:{set value(e){P(n,H,e,`f`)}}.value,output:{set value(e){P(r,G,e,`f`)}}.value,exitError:{set value(e){P(i,z,e,`f`)}}.value,hasOutput:{set value(e){P(a,U,e,`f`)}}.value,parsed:this.parsed,strict:{set value(e){P(o,qn,e,`f`)}}.value,strictCommands:{set value(e){P(s,Jn,e,`f`)}}.value,strictOptions:{set value(e){P(c,Yn,e,`f`)}}.value,completionCommand:{set value(e){P(l,R,e,`f`)}}.value,parseFn:{set value(e){P(u,q,e,`f`)}}.value,parseContext:{set value(e){P(d,Un,e,`f`)}}.value}=f,F(this,K,`f`).configObjects=p,F(this,X,`f`).unfreeze(),F(this,Q,`f`).unfreeze(),F(this,I,`f`).unfreeze(),F(this,V,`f`).unfreeze()}[gr](e,t){return tn(t,t=>(e(t),t))}getInternalMethods(){return{getCommandInstance:this[_r].bind(this),getContext:this[vr].bind(this),getHasOutput:this[yr].bind(this),getLoggerInstance:this[br].bind(this),getParseContext:this[xr].bind(this),getParserConfiguration:this[ir].bind(this),getUsageConfiguration:this[ar].bind(this),getUsageInstance:this[Sr].bind(this),getValidationInstance:this[Cr].bind(this),hasParseCallback:this[wr].bind(this),isGlobalContext:this[Tr].bind(this),postProcess:this[Er].bind(this),reset:this[Or].bind(this),runValidation:this[Ar].bind(this),runYargsParserAndExecuteCommands:this[kr].bind(this),setHasOutput:this[jr].bind(this)}}[_r](){return F(this,I,`f`)}[vr](){return F(this,Pn,`f`)}[yr](){return F(this,U,`f`)}[br](){return F(this,Bn,`f`)}[xr](){return F(this,Un,`f`)||{}}[Sr](){return F(this,X,`f`)}[Cr](){return F(this,Q,`f`)}[wr](){return!!F(this,q,`f`)}[Tr](){return F(this,zn,`f`)}[Er](e,t,n,r){return n||j(e)?e:(t||(e=this[Qn](e)),(this[ir]()[`parse-positional-numbers`]||this[ir]()[`parse-positional-numbers`]===void 0)&&(e=this[cr](e)),r&&(e=en(e,this,F(this,V,`f`).getMiddleware(),!1)),e)}[Or](e={}){P(this,K,F(this,K,`f`)||{},`f`);let t={};t.local=F(this,K,`f`).local||[],t.configObjects=F(this,K,`f`).configObjects||[];let n={};return t.local.forEach(t=>{n[t]=!0,(e[t]||[]).forEach(e=>{n[e]=!0})}),Object.assign(F(this,Gn,`f`),Object.keys(F(this,H,`f`)).reduce((e,t)=>{let r=F(this,H,`f`)[t].filter(e=>!(e in n));return r.length>0&&(e[t]=r),e},{})),P(this,H,{},`f`),[`array`,`boolean`,`string`,`skipValidation`,`count`,`normalize`,`number`,`hiddenOptions`].forEach(e=>{t[e]=(F(this,K,`f`)[e]||[]).filter(e=>!n[e])}),[`narg`,`key`,`alias`,`default`,`defaultDescription`,`config`,`choices`,`demandedOptions`,`demandedCommands`,`deprecatedOptions`].forEach(e=>{t[e]=fn(F(this,K,`f`)[e],e=>!n[e])}),t.envPrefix=F(this,K,`f`).envPrefix,P(this,K,t,`f`),P(this,X,F(this,X,`f`)?F(this,X,`f`).reset(n):hn(this,F(this,Y,`f`)),`f`),P(this,Q,F(this,Q,`f`)?F(this,Q,`f`).reset(n):En(this,F(this,X,`f`),F(this,Y,`f`)),`f`),P(this,I,F(this,I,`f`)?F(this,I,`f`).reset():on(F(this,X,`f`),F(this,Q,`f`),F(this,V,`f`),F(this,Y,`f`)),`f`),F(this,L,`f`)||P(this,L,xn(this,F(this,X,`f`),F(this,I,`f`),F(this,Y,`f`)),`f`),F(this,V,`f`).reset(),P(this,R,null,`f`),P(this,G,``,`f`),P(this,z,null,`f`),P(this,U,!1,`f`),this.parsed=!1,this}[Dr](e,t){return F(this,Y,`f`).path.relative(e,t)}[kr](e,t,n,r=0,i=!1){let a=!!n||i;e||=F(this,J,`f`),F(this,K,`f`).__=F(this,Y,`f`).y18n.__,F(this,K,`f`).configuration=this[ir]();let o=!!F(this,K,`f`).configuration[`populate--`],s=Object.assign({},F(this,K,`f`).configuration,{"populate--":!0}),c=F(this,Y,`f`).Parser.detailed(e,Object.assign({},F(this,K,`f`),{configuration:{"parse-positional-numbers":!1,...s}})),l=Object.assign(c.argv,F(this,Un,`f`)),u,d=c.aliases,f=!1,p=!1;Object.keys(l).forEach(e=>{e===F(this,W,`f`)&&l[e]?f=!0:e===F(this,Z,`f`)&&l[e]&&(p=!0)}),l.$0=this.$0,this.parsed=c,r===0&&F(this,X,`f`).clearCachedHelpMessage();try{if(this[or](),t)return this[Er](l,o,!!n,!1);F(this,W,`f`)&&[F(this,W,`f`)].concat(d[F(this,W,`f`)]||[]).filter(e=>e.length>1).includes(``+l._[l._.length-1])&&(l._.pop(),f=!0),P(this,zn,!1,`f`);let s=F(this,I,`f`).getCommands(),m=F(this,L,`f`)?.completionKey?[F(this,L,`f`)?.completionKey,...this.getAliases()[F(this,L,`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!==F(this,R,`f`)){let e=F(this,I,`f`).runCommand(a,this,c,t+1,i,f||p||i);return this[Er](e,o,!!n,!1)}if(!e&&a!==F(this,R,`f`)){e=a;break}}!F(this,I,`f`).hasDefaultCommand()&&F(this,Kn,`f`)&&e&&!h&&F(this,Q,`f`).recommendCommands(e,s)}F(this,R,`f`)&&l._.includes(F(this,R,`f`))&&!m&&(F(this,B,`f`)&&pn(!0),this.showCompletionScript(),this.exit(0))}if(F(this,I,`f`).hasDefaultCommand()&&!h){let e=F(this,I,`f`).runCommand(null,this,c,0,i,f||p||i);return this[Er](e,o,!!n,!1)}if(m){F(this,B,`f`)&&pn(!0),e=[].concat(e);let t=e.slice(e.indexOf(`--${F(this,L,`f`).completionKey}`)+1);return F(this,L,`f`).getCompletion(t,(e,t)=>{if(e)throw new M(e.message);(t||[]).forEach(e=>{F(this,Bn,`f`).log(e)}),this.exit(0)}),this[Er](l,!o,!!n,!1)}if(F(this,U,`f`)||(f?(F(this,B,`f`)&&pn(!0),a=!0,this.showHelp(e=>{F(this,Bn,`f`).log(e),this.exit(0)})):p&&(F(this,B,`f`)&&pn(!0),a=!0,F(this,X,`f`).showVersion(`log`),this.exit(0))),!a&&F(this,K,`f`).skipValidation.length>0&&(a=Object.keys(l).some(e=>F(this,K,`f`).skipValidation.indexOf(e)>=0&&l[e]===!0)),!a){if(c.error)throw new M(c.error.message);if(!m){let e=this[Ar](d,{},c.error);n||(u=en(l,this,F(this,V,`f`).getMiddleware(),!0)),u=this[gr](e,u??l),j(u)&&!n&&(u=u.then(()=>en(l,this,F(this,V,`f`).getMiddleware(),!1)))}}}catch(e){if(e instanceof M)F(this,X,`f`).fail(e.message,e);else throw e}return this[Er](u??l,o,!!n,!0)}[Ar](e,t,n,r){let i={...this.getDemandedOptions()};return a=>{if(n)throw new M(n.message);F(this,Q,`f`).nonOptionCount(a),F(this,Q,`f`).requiredArguments(a,i);let o=!1;F(this,Jn,`f`)&&(o=F(this,Q,`f`).unknownCommands(a)),F(this,qn,`f`)&&!o?F(this,Q,`f`).unknownArguments(a,e,t,!!r):F(this,Yn,`f`)&&F(this,Q,`f`).unknownArguments(a,e,{},!1,!1),F(this,Q,`f`).limitedChoices(a),F(this,Q,`f`).implications(a),F(this,Q,`f`).conflicting(a)}}[jr](){P(this,U,!0,`f`)}[Mr](e){if(typeof e==`string`)F(this,K,`f`).key[e]=!0;else for(let t of e)F(this,K,`f`).key[t]=!0}};function Pr(e){return!!e&&typeof e.getInternalMethods==`function`}const Fr=Zn(Gt),Ir=[{command:i(`abuse-reports`,`Submit and track abuse reports for phishing, malware, and other policy violations on Cloudflare-proxied sites`,()=>import(`./abuse-reports-17K-TRhO.mjs`),null),hideCommand:!1},{command:i(`access`,`Access protected applications and services`,()=>import(`./access-BwB7sg1D.mjs`),null),hideCommand:!1},{command:i(`account-tags`,`account-tags`,()=>import(`./account-tags-povXTDAu.mjs`),null),hideCommand:!1},{command:i(`accounts`,`Account settings, members, roles, subscriptions, and API tokens for your Cloudflare account`,()=>import(`./accounts-BnIGu_ac.mjs`),null),hideCommand:!1},{command:i(`acm`,`acm`,()=>import(`./acm-CQRcu_zw.mjs`),null),hideCommand:!0},{command:i(`addressing`,`addressing`,()=>import(`./addressing-Qcm9jd3C.mjs`),null),hideCommand:!1},{command:i(`agent-memory`,`agent-memory`,()=>import(`./agent-memory-B3xN9I6-.mjs`),null),hideCommand:!1},{command:i(`ai`,`ai`,()=>import(`./ai-BRKOCckA.mjs`),null),hideCommand:!1},{command:i(`ai-audit`,`ai-audit`,()=>import(`./ai-audit-Cd9Rc2Fc.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-BWU5064V.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-CJ3b8eot.mjs`),null),hideCommand:!1},{command:i(`ai-security`,`Detect prompt injection, PII, and unsafe topics in traffic to your AI applications`,()=>import(`./ai-security-Dn0Ee6QS.mjs`),null),hideCommand:!1},{command:i(`alerting`,`alerting`,()=>import(`./alerting-BXTiMfXo.mjs`),null),hideCommand:!0},{command:i(`analytics`,`Zone-level traffic analytics — dashboard summaries, per-colo breakdowns, and Argo latency metrics`,()=>import(`./analytics-Jyd04TRW.mjs`),null),hideCommand:!1},{command:i(`analytics-engine`,`analytics-engine`,()=>import(`./analytics-engine-CzrNfUeh.mjs`),null),hideCommand:!0},{command:i(`api-security`,`api-security`,()=>import(`./api-security-DRBHZaf_.mjs`),null),hideCommand:!0},{command:i(`argo`,`Network optimization features that speed up and improve reliability of traffic to your origins`,()=>import(`./argo-DiQt0pSb.mjs`),null),hideCommand:!1},{command:i(`artifacts`,`artifacts`,()=>import(`./artifacts-eBZ4YN53.mjs`),null),hideCommand:!1},{command:i(`audit-logs`,`audit-logs`,()=>import(`./audit-logs-Bb4HTZay.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-Cwk1RSMX.mjs`),null),hideCommand:!1},{command:i(`billing`,`Account billing profiles and usage data for Cloudflare subscriptions and add-on services`,()=>import(`./billing-CfV8oi6A.mjs`),null),hideCommand:!1},{command:i(`bot-management`,`bot-management`,()=>import(`./bot-management-CH4_Kewx.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-Cg_Wp8ei.mjs`),null),hideCommand:!0},{command:i(`brand-protection`,`brand-protection`,()=>import(`./brand-protection-Cp2ckWou.mjs`),null),hideCommand:!0},{command:i(`browser-run`,`browser-run`,()=>import(`./browser-run-CfQ30dB6.mjs`),null),hideCommand:!1},{command:i(`builds`,`Build and deploy Workers from connected repositories, then inspect build status and logs.`,()=>import(`./builds-B2RBgVL9.mjs`),null),hideCommand:!1},{command:i(`cache`,`Purge cached content and configure Cache Reserve, tiered caching, and variant serving`,()=>import(`./cache-yvrYPvRI.mjs`),null),hideCommand:!1},{command:i(`certificate-authorities`,`certificate-authorities`,()=>import(`./certificate-authorities-BdMRaOnD.mjs`),null),hideCommand:!0},{command:i(`client-certificates`,`client-certificates`,()=>import(`./client-certificates-CuWGvZSr.mjs`),null),hideCommand:!0},{command:i(`client-side-security`,`Client-Side Security — monitor JavaScript, connections, and cookies on your pages for supply-chain attacks`,()=>import(`./client-side-security-D50iZjd_.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-wvSGdxWT.mjs`),null),hideCommand:!1},{command:i(`cloudforce-one`,`Detection rule management APIs`,()=>import(`./cloudforce-one-j6vlmaMB.mjs`),null),hideCommand:!1},{command:i(`connector-interrupts`,`connector-interrupts`,()=>import(`./connector-interrupts-DP4rbOe8.mjs`),null),hideCommand:!0},{command:i(`connector-telemetry-events`,`connector-telemetry-events`,()=>import(`./connector-telemetry-events-BQGBQwzR.mjs`),null),hideCommand:!0},{command:i(`connector-telemetry-snapshots`,`connector-telemetry-snapshots`,()=>import(`./connector-telemetry-snapshots-DBO0Mdcj.mjs`),null),hideCommand:!0},{command:i(`connectors`,`connectors`,()=>import(`./connectors-BSVr3Kz1.mjs`),null),hideCommand:!0},{command:i(`containers`,`Deploy and manage Containers applications on Cloudflare's global network`,()=>import(`./containers-BTqAeVV2.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-B9Keyxe-.mjs`),null),hideCommand:!1},{command:i(`cps`,`cps`,()=>import(`./cps-VRP794c5.mjs`),null),hideCommand:!1},{command:i(`csam-scanner`,`csam-scanner`,()=>import(`./csam-scanner-C1jOgXVu.mjs`),null),hideCommand:!0},{command:i(`ct-alerting`,`ct-alerting`,()=>import(`./ct-alerting-Y9vfa6Fo.mjs`),null),hideCommand:!0},{command:i(`custom-certificates`,`custom-certificates`,()=>import(`./custom-certificates-CojTEC0E.mjs`),null),hideCommand:!0},{command:i(`custom-csrs`,`custom-csrs`,()=>import(`./custom-csrs-DM5X-K6H.mjs`),null),hideCommand:!1},{command:i(`custom-hostnames`,`custom-hostnames`,()=>import(`./custom-hostnames-BBjqaiFF.mjs`),null),hideCommand:!0},{command:i(`custom-nameservers`,`custom-nameservers`,()=>import(`./custom-nameservers-C0NDMLPJ.mjs`),null),hideCommand:!1},{command:i(`custom-pages`,`Manage custom error and challenge pages and their assets for accounts and zones`,()=>import(`./custom-pages-M4RUxcn6.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-hin5PmxW.mjs`),null),hideCommand:!1},{command:i(`dcv-delegation`,`dcv-delegation`,()=>import(`./dcv-delegation-KOO8syyQ.mjs`),null),hideCommand:!0},{command:i(`diagnostics`,`Network diagnostic tools — traceroutes from Cloudflare's edge and endpoint health checks`,()=>import(`./diagnostics-LZuMrGjK.mjs`),null),hideCommand:!0},{command:i(`dls`,`dls`,()=>import(`./dls-Bq8k3iy-.mjs`),null),hideCommand:!0},{command:i(`dns`,`dns`,()=>import(`./dns-ry5E2Bsa.mjs`),null),hideCommand:!1},{command:i(`dns-firewall`,`dns-firewall`,()=>import(`./dns-firewall-zavP5Qxj.mjs`),null),hideCommand:!0},{command:i(`durable-objects`,`durable-objects`,()=>import(`./durable-objects-B9fo41B1.mjs`),null),hideCommand:!1},{command:i(`email-auth`,`email-auth`,()=>import(`./email-auth-D9LGjFlh.mjs`),null),hideCommand:!0},{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-6iDnNPhY.mjs`),null),hideCommand:!1},{command:i(`email-security`,`Cloud email security — investigate threats, manage allow/block policies, and detect phishing`,()=>import(`./email-security-ty4ufRnJ.mjs`),null),hideCommand:!1},{command:i(`email-sending`,`Send transactional email and manage sending subdomains and their DNS configuration`,()=>import(`./email-sending-d7LO_Cz_.mjs`),null),hideCommand:!1},{command:i(`field-extractors`,`field-extractors`,()=>import(`./field-extractors-DkgQ7PSw.mjs`),null),hideCommand:!0},{command:i(`firewall`,`Legacy firewall rules, zone lockdowns, access rules, user-agent blocking, and WAF packages`,()=>import(`./firewall-Q88YyEwD.mjs`),null),hideCommand:!1},{command:i(`flagship`,`flagship`,()=>import(`./flagship-CzI8zhd6.mjs`),null),hideCommand:!1},{command:i(`fraud`,`fraud`,()=>import(`./fraud-CvFXTR0w.mjs`),null),hideCommand:!0},{command:i(`google-tag-gateway`,`Google Tag Gateway operations`,()=>import(`./google-tag-gateway-Y2zbyey8.mjs`),null),hideCommand:!0},{command:i(`healthchecks`,`Standalone health checks that monitor origin server availability from Cloudflare's edge`,()=>import(`./healthchecks-4Hz-6xYi.mjs`),null),hideCommand:!0},{command:i(`hostnames`,`hostnames`,()=>import(`./hostnames-B3k7fIUL.mjs`),null),hideCommand:!0},{command:i(`hyperdrive`,`Accelerate access to existing databases by caching queries and pooling connections at the edge`,()=>import(`./hyperdrive-BWGYz95H.mjs`),null),hideCommand:!1},{command:i(`iam`,`Identity and access management — permission groups, resource groups, user groups, and SSO connectors`,()=>import(`./iam-AXco_qmt.mjs`),null),hideCommand:!0},{command:i(`images`,`Store, resize, and deliver optimized images globally — variants, signing keys, and direct uploads`,()=>import(`./images-BzYh8y0u.mjs`),null),hideCommand:!1},{command:i(`intel`,`Threat intelligence lookups — IP reputation, domain info, ASN details, WHOIS, and indicator feeds`,()=>import(`./intel-BBi3i_GU.mjs`),null),hideCommand:!1},{command:i(`ips`,`ips`,()=>import(`./ips-CWG2b7AM.mjs`),null),hideCommand:!0},{command:i(`k2`,`Durable, ordered event streams that you produce records to and consume from with subscriptions`,()=>import(`./k2-DXdMe3Cb.mjs`),null),hideCommand:!1},{command:i(`keyless-certificates`,`keyless-certificates`,()=>import(`./keyless-certificates-B4ta_OGS.mjs`),null),hideCommand:!0},{command:i(`keys`,`keys`,()=>import(`./keys-B9zvFzrf.mjs`),null),hideCommand:!1},{command:i(`kv`,`kv`,()=>import(`./kv-FUd7UdDu.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-BufVA9vL.mjs`),null),hideCommand:!1},{command:i(`load-balancers`,`Distribute traffic across origin pools with health monitoring, geo-steering, and failover`,()=>import(`./load-balancers-CWd9mSWM.mjs`),null),hideCommand:!1},{command:i(`logo-matches`,`logo-matches`,()=>import(`./logo-matches-BluaPvMa.mjs`),null),hideCommand:!0},{command:i(`logos`,`logos`,()=>import(`./logos-CXtmYWEJ.mjs`),null),hideCommand:!0},{command:i(`logpush`,`logpush`,()=>import(`./logpush-DCYgrqz0.mjs`),null),hideCommand:!1},{command:i(`logs`,`Log control, retention, and raw log access — CMB config, ray ID lookups, and received fields`,()=>import(`./logs-as60IP29.mjs`),null),hideCommand:!1},{command:i(`magic-cloud-networking`,`magic-cloud-networking`,()=>import(`./magic-cloud-networking-0RsHugUF.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-CPqvZdcb.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-ClPyGzOE.mjs`),null),hideCommand:!0},{command:i(`managed-defense`,`managed-defense`,()=>import(`./managed-defense-P4_QWSbK.mjs`),null),hideCommand:!1},{command:i(`managed-transforms`,`managed-transforms`,()=>import(`./managed-transforms-CUwQXMij.mjs`),null),hideCommand:!0},{command:i(`matches`,`matches`,()=>import(`./matches-BjckDBW1.mjs`),null),hideCommand:!0},{command:i(`mcp`,`Manage MCP portals and upstream MCP servers for Cloudflare Access AI controls`,()=>import(`./mcp-C2EG2c7L.mjs`),null),hideCommand:!1},{command:i(`mesh`,`mesh`,()=>import(`./mesh-CpMZA7Xt.mjs`),null),hideCommand:!0},{command:i(`monetization`,`monetization`,()=>import(`./monetization-DypuCZmU.mjs`),null),hideCommand:!1},{command:i(`mtls-certificates`,`mtls-certificates`,()=>import(`./mtls-certificates-B5AWTU6u.mjs`),null),hideCommand:!0},{command:i(`network`,`network`,()=>import(`./network-DQ5Ridgy.mjs`),null),hideCommand:!0},{command:i(`network-interconnects`,`Physical and virtual private interconnects between your infrastructure and Cloudflare's network`,()=>import(`./network-interconnects-ifU4JhGE.mjs`),null),hideCommand:!0},{command:i(`o11y`,`o11y`,()=>import(`./o11y-CzssfRHt.mjs`),null),hideCommand:!1},{command:i(`oauth-clients`,`oauth-clients`,()=>import(`./oauth-clients-gknNcBdV.mjs`),null),hideCommand:!0},{command:i(`oauth-scopes`,`oauth-scopes`,()=>import(`./oauth-scopes-BJeSanuF.mjs`),null),hideCommand:!0},{command:i(`organization`,`organization`,()=>import(`./organization-CXAM41sd.mjs`),null),hideCommand:!1},{command:i(`organizations`,`Multi-user organizations that group accounts, members, and shared settings under a single entity`,()=>import(`./organizations-kfFFW4uO.mjs`),null),hideCommand:!1},{command:i(`origin-ca-certificates`,`origin-ca-certificates`,()=>import(`./origin-ca-certificates-DwhYV3m_.mjs`),null),hideCommand:!0},{command:i(`origin-post-quantum-encryption`,`Enable post-quantum key exchange for connections between Cloudflare and your origin server`,()=>import(`./origin-post-quantum-encryption-DfrnptJ1.mjs`),null),hideCommand:!0},{command:i(`origin-tls-client-auth`,`origin-tls-client-auth`,()=>import(`./origin-tls-client-auth-COSxTc2q.mjs`),null),hideCommand:!0},{command:i(`page-rules`,`page-rules`,()=>import(`./page-rules-ByrDMDBZ.mjs`),null),hideCommand:!0},{command:i(`pages`,`Full-stack application hosting with Git-integrated builds, preview deployments, and custom domains`,()=>import(`./pages-DuGcBC6k.mjs`),null),hideCommand:!1},{command:i(`pay-per-crawl`,`pay-per-crawl`,()=>import(`./pay-per-crawl-B3_Gn9Cj.mjs`),null),hideCommand:!1},{command:i(`pay-per-use`,`pay-per-use`,()=>import(`./pay-per-use-49EXt75f.mjs`),null),hideCommand:!1},{command:i(`pipelines`,`Ingest, transform, and route event streams into R2, analytics, or other destinations in real time`,()=>import(`./pipelines-Bvgh1BQZ.mjs`),null),hideCommand:!1},{command:i(`precursor`,`Precursor settings for a zone`,()=>import(`./precursor-VobQf--m.mjs`),null),hideCommand:!0},{command:i(`previews`,`Manage Worker Previews`,()=>import(`./previews-DkwFHNRx.mjs`),null),hideCommand:!1},{command:i(`queries`,`queries`,()=>import(`./queries-EbIadtC5.mjs`),null),hideCommand:!0},{command:i(`queues`,`Reliable message queuing between Workers — produce, consume, and batch-process messages at scale`,()=>import(`./queues-C4GZ-O3f.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-DEuFfWBR.mjs`),null),hideCommand:!1},{command:i(`radar`,`Internet-wide traffic intelligence — BGP, DNS, HTTP trends, attack data, and network quality insights`,()=>import(`./radar-CDOERVcR.mjs`),null),hideCommand:!1},{command:i(`realtime`,`Real-time audio, video, and data services on Cloudflare's global network`,()=>import(`./realtime-D_A9Qgly.mjs`),null),hideCommand:!1},{command:i(`registrar`,`registrar`,()=>import(`./registrar-X1YLlnmg.mjs`),null),hideCommand:!1},{command:i(`registrar-sandbox`,`registrar-sandbox`,()=>import(`./registrar-sandbox-BF3cYO3n.mjs`),null),hideCommand:!1},{command:i(`reporting`,`reporting`,()=>import(`./reporting-BWm9jIF8.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-CHWpiejG.mjs`),null),hideCommand:!0},{command:i(`resource-sharing`,`Share Cloudflare resources (zones, accounts) across organizations with granular access controls`,()=>import(`./resource-sharing-C186jZv0.mjs`),null),hideCommand:!1},{command:i(`resource-tagging`,`resource-tagging`,()=>import(`./resource-tagging-BTagOZli.mjs`),null),hideCommand:!1},{command:i(`rules`,`Resources used by Cloudflare rules and rulesets`,()=>import(`./rules-DYnGIU_0.mjs`),null),hideCommand:!1},{command:i(`rulesets`,`rulesets`,()=>import(`./rulesets-BcNrbVcq.mjs`),null),hideCommand:!1},{command:i(`rum`,`Real User Measurement (Web Analytics) — track page loads, Core Web Vitals, and visitor metrics`,()=>import(`./rum-BDyRecfp.mjs`),null),hideCommand:!0},{command:i(`scim`,`SCIM 2.0 provisioning — manage users, groups, and identity provider sync for your account`,()=>import(`./scim-zn-CNCsc.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-CFhyQUV6.mjs`),null),hideCommand:!1},{command:i(`security-insights`,`security-insights`,()=>import(`./security-insights-D8XgtCed.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-CCM-Vro0.mjs`),null),hideCommand:!1},{command:i(`smart-shield`,`Smart Shield settings, health checks, and cache reserve management`,()=>import(`./smart-shield-DwW7N92r.mjs`),null),hideCommand:!0},{command:i(`snippets`,`snippets`,()=>import(`./snippets-B2jBY0m_.mjs`),null),hideCommand:!1},{command:i(`spectrum`,`Proxy and protect arbitrary TCP/UDP applications through Cloudflare's network with DDoS mitigation`,()=>import(`./spectrum-Cf_4cGE8.mjs`),null),hideCommand:!0},{command:i(`speed`,`Observatory speed tests — run Lighthouse audits, track performance trends, and schedule recurring tests`,()=>import(`./speed-DoXdyIYK.mjs`),null),hideCommand:!1},{command:i(`sql`,`sql`,()=>import(`./sql-Bze4h80q.mjs`),null),hideCommand:!1},{command:i(`ssl`,`SSL/TLS certificate management — certificate packs, Universal SSL, verification, and TLS mode recommendations`,()=>import(`./ssl-u_0gUhPA.mjs`),null),hideCommand:!0},{command:i(`stream`,`Video encoding, storage, and delivery — upload, live-stream, clip, caption, and embed video at scale`,()=>import(`./stream-BcReYIHJ.mjs`),null),hideCommand:!1},{command:i(`submit`,`submit`,()=>import(`./submit-ldFVNfNC.mjs`),null),hideCommand:!0},{command:i(`tags`,`tags`,()=>import(`./tags-D_Hc_A-r.mjs`),null),hideCommand:!1},{command:i(`tenant`,`tenant`,()=>import(`./tenant-AZ0EAsmT.mjs`),null),hideCommand:!1},{command:i(`tenant-custom-nameservers`,`tenant-custom-nameservers`,()=>import(`./tenant-custom-nameservers-aozjaasc.mjs`),null),hideCommand:!0},{command:i(`tunnels`,`tunnels`,()=>import(`./tunnels-CXez5LPB.mjs`),null),hideCommand:!0},{command:i(`turnstile`,`CAPTCHA-free bot verification widgets that protect forms and APIs without degrading user experience`,()=>import(`./turnstile-B2NQ8Nsk.mjs`),null),hideCommand:!1},{command:i(`url-info`,`url-info`,()=>import(`./url-info-D_UqGiWD.mjs`),null),hideCommand:!0},{command:i(`url-normalization`,`url-normalization`,()=>import(`./url-normalization-CF1YHpIN.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-ChF3GO2U.mjs`),null),hideCommand:!0},{command:i(`user`,`Your Cloudflare user profile, invitations, organizations, billing, and personal API tokens`,()=>import(`./user-BfWRsdJh.mjs`),null),hideCommand:!1},{command:i(`values`,`values`,()=>import(`./values-CLfxkAUJ.mjs`),null),hideCommand:!1},{command:i(`vectorize`,`Globally distributed vector database for building semantic search, recommendations, and RAG applications on Workers`,()=>import(`./vectorize-CRYbWKg5.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-Crp7MVd9.mjs`),null),hideCommand:!1},{command:i(`web-assets`,`web-assets`,()=>import(`./web-assets-CgyrPnT-.mjs`),null),hideCommand:!0},{command:i(`web3`,`web3`,()=>import(`./web3-Cd0Yd0eQ.mjs`),null),hideCommand:!0},{command:i(`workers`,`workers`,()=>import(`./workers-CTwJpTfJ.mjs`),null),hideCommand:!1},{command:i(`workers-builds`,`workers-builds`,()=>import(`./workers-builds-f2nVw7EZ.mjs`),null),hideCommand:!0},{command:i(`workers-for-platforms`,`workers-for-platforms`,()=>import(`./workers-for-platforms-DjeKp2uy.mjs`),null),hideCommand:!1},{command:i(`workers-vpc`,`workers-vpc`,()=>import(`./workers-vpc-B_L3TEg2.mjs`),null),hideCommand:!1},{command:i(`workflows`,`Durable, multi-step workflows that run on Workers with automatic retries and state persistence`,()=>import(`./workflows-CBPGf65x.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-3VDxl0gF.mjs`),null),hideCommand:!0},{command:i(`zero-trust`,`Cloudflare's SASE platform — secure access, device posture, DLP, tunnels, gateway policies, and network segmentation`,()=>import(`./zero-trust-B9xY8zcn.mjs`),null),hideCommand:!1},{command:i(`zone`,`zone`,()=>import(`./zone-CmwVqTI2.mjs`),null),hideCommand:!1},{command:i(`zones`,`Zones are domains on Cloudflare — list, create, and configure domain settings`,()=>import(`./zones-Bf0VVpMf.mjs`),null),hideCommand:!1}];function Lr(e){return typeof e==`object`&&!!e&&`schemas`in e&&typeof e.schemas==`object`&&e.schemas!==null&&!Array.isArray(e.schemas)}function Rr(e,t){if(!t)return e;let n=a(import.meta.url,`schemas.json`,Lr);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 zr=[{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 Br(){return zr.filter(e=>e.kind===`root`)}function Vr(e){return e.command.split(/\s+/)[0]??e.command}const Hr={auth:{load:()=>import(`./auth-C6My1gI6.mjs`),telemetry:{command:`auth`,recordArgs:!1}},login:{load:()=>import(`./login-DVbXZ_Tv.mjs`),telemetry:null},build:{load:()=>import(`./build-Bm6kGyzo.mjs`),telemetry:{command:`build`,classification:{safeFlags:[]}}},completions:{load:()=>import(`./completions-oD1EcuHk.mjs`),telemetry:null},deploy:{load:()=>import(`./deploy-Bo7FtE44.mjs`),telemetry:{command:`deploy`,classification:{safeFlags:[`dry-run`,`prebuilt`,`containers-rollout`,`provision`]}}},dev:{load:()=>import(`./dev-EtnMYA7K.mjs`),telemetry:{command:`dev`,recordArgs:!1}},init:{load:()=>import(`./init-DlenHBtS.mjs`),telemetry:{command:`init`,classification:{safeFlags:[`install`,`package-manager`]}}},migrate:{load:()=>import(`./migrate-6e5mJ79R.mjs`),telemetry:{command:`migrate`,recordArgs:!1}},docs:{load:()=>import(`./docs-B08YtL0U.mjs`),telemetry:{command:`docs`,recordArgs:!1}},cli:{load:()=>import(`./cli-CsnoQloF.mjs`),telemetry:{command:`cli`,recordArgs:!1}},schema:{load:()=>import(`./schema-S3pUZwpI.mjs`),telemetry:{command:`schema`,classification:{safeFlags:[`list`]}}},tools:{load:()=>import(`./tools-BCCRUENY.mjs`),telemetry:{command:`tools`,classification:{safeFlags:[`text`]}}}};function Ur(){return Br().map(e=>({...e,...Hr[e.dir]}))}function Wr(e){try{let t=new URL(e);return`${t.pathname.replace(/^\/client\/v\d+/,``)}${t.search}`}catch{return e}}function Gr(e){if(u(h),e instanceof te){let t=e.statusCode,n=e.body,r=t===void 0?`Envelope Error`:qr(t),i=[];if(n){let e=n;Array.isArray(e.errors)&&(i=e.errors)}let a=e.rawResponse?.url?`HTTP ${Wr(e.rawResponse.url)}`:void 0,s=t===void 0?r:`${t} ${r}`,c=a?`${s} · ${a}`:s,l=o.muted(c),u=``;return i.length>0?u=i.map((e,t)=>{let n=typeof e.code==`number`?o.error(o.bold(`[${e.code}]`)):o.error(o.bold(`[error]`)),r=o.bold(e.message??``);return t===i.length-1?`${n} ${r}\n${l}`:`${n} ${r}`}).join(`
|
|
115
115
|
|
|
116
116
|
`):(u=o.error(o.bold(e.message||c)),e.message&&c&&(u+=`\n${l}`)),console.error(_(u,void 0,{title:`APIError`,rawMessage:!0})),t===401?console.error(`
|
|
117
117
|
`+g(`Try running: cf auth login`)):t===403&&console.error(`
|
|
118
|
-
`+g(`Check your API token permissions`)),e}if(e instanceof m){let t=e.status===void 0?``:`${e.status} ${
|
|
118
|
+
`+g(`Check your API token permissions`)),e}if(e instanceof m){let t=e.status===void 0?``:`${e.status} ${qr(e.status)}`.trim(),n=t?o.muted(t):``,r=e.notes??[],i;if(r.length>0){let t=typeof e.code==`number`?o.error(o.bold(`[${e.code}]`)):o.error(o.bold(`[error]`));i=r.map((e,i)=>{let a=o.bold(e.text),s=i===0?`${t} ${a}`:a;return i===r.length-1&&n?`${s}\n${n}`:s}).join(`
|
|
119
119
|
|
|
120
120
|
`)}else{let t=o.error(o.bold(e.message));i=n?`${t}\n${n}`:t}return console.error(_(i,void 0,{title:`APIError`,rawMessage:!0})),e.status===401?console.error(`
|
|
121
121
|
`+g(`Try running: cf auth login`)):e.status===403&&console.error(`
|
|
122
|
-
`+g(`Check your API token permissions`)),e}if(e instanceof Error){let t=process.env.DEBUG&&e.stack?
|
|
123
|
-
`);function
|
|
124
|
-
`)),!0}function
|
|
125
|
-
The Cloudflare CLI - manage your Cloudflare resources`).updateStrings({"Commands:":s(`Commands`),"Options:":s(`Options`),"Positionals:":s(`Positionals`),"Examples:":s(`Examples`)}).help(`help`,`Show help`).alias(`h`,`help`).options(
|
|
122
|
+
`+g(`Check your API token permissions`)),e}if(e instanceof Error){let t=process.env.DEBUG&&e.stack?Kr(e.stack):void 0;return console.error(_(e.message,t)),e}return console.error(_(`An unexpected error occurred`,String(e))),e}function Kr(e){return e.replace(/[A-Za-z0-9_-]{40,}/g,`[REDACTED]`)}function qr(e){return{400:`Bad Request`,401:`Unauthorized`,403:`Forbidden`,404:`Not Found`,405:`Method Not Allowed`,409:`Conflict`,422:`Unprocessable Entity`,429:`Too Many Requests`,500:`Internal Server Error`,502:`Bad Gateway`,503:`Service Unavailable`,504:`Gateway Timeout`}[e]??``}const Jr={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}},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 Yr(e,t){return Object.entries(Jr).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 Xr=Ur().map(e=>v(i(e.command,e.describe,e.load,e.telemetry),e.dryRun)),Zr=new Set(Br().map(Vr)),Qr=[`=== 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(`
|
|
123
|
+
`);function $r(e){return s().isAgentic?`${Qr}\n${e}`:e}function ei(e,t){return $r(Rr(e,t))}async function ti(e=!1){if(!process.stderr.isTTY||e||l(process.argv.slice(2))||ii()===`complete`)return;let{readState:t,updateState:n}=await import(`./state-CODDG9Nx.mjs`);t().completions?.prompted||(process.stderr.write(o.muted("Tip: run `cf complete <bash|zsh|fish>` to install shell completions.\n")),n({completions:{prompted:!0}}))}let ni;function ri(){return ni??=import(`./telemetry-Cojgz4Sv.mjs`),ni}function ii(e=process.argv.slice(2)){return ai(e,1)[0]}function ai(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;if(Yr(t,e[r+1])){r++;continue}t.startsWith(`-`)||n.push(t)}return n}async function oi(e=!1){if(!process.stderr.isTTY)return;let t=process.argv.slice(2);if(e||l(t)||t.includes(`--help`)||t.includes(`-h`)||ui(ai(t).join(` `)))return;let{getBannerLastShown:n,getTelemetryDispatcher:r,setBannerLastShown:i}=await ri();r().enabled&&n()!==h&&(process.stderr.write(o.muted("Cloudflare collects anonymous cf usage telemetry. Run `cf cli telemetry disable` to opt out.\n")),i(h))}async function si(){try{await Promise.race([b(),ae(1e3,void 0,{ref:!1})])}catch{}}function ci(e){return e instanceof Error&&e.message.startsWith(`Unknown command:`)}function li(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 ui(e){let[t,n]=e.split(` `);return t===`complete`||t===`cli`&&n===`telemetry`}async function di(e,t){if(ie()||e instanceof d)return;let n=ci(e)?void 0:t;if(!(n===void 0&&!ci(e)||ui(n??ai().join(` `))))try{let{getTelemetryDispatcher:t,UNKNOWN_COMMAND_EVENT:r}=await ri(),{sanitizeError:i}=await import(`./error-sanitization-CIQOep3I.mjs`),a=t(),o={command:n??r,sanitizedArgs:{},argsUsed:[],argsCombination:``};a.sendCommandEvent(`cf command started`,o),a.sendCommandEvent(`cf command finished`,{...o,outcome:`error`,durationMs:0,...i(e)})}catch{}}async function fi(e){if(e&&!ui(e))try{let{getTelemetryDispatcher:t}=await ri();t().sendAdhocEvent(`cf help shown`,{command:e})}catch{}}function pi(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:(u(h,{quiet:l(r),update:e}),console.log(h),!0)}function mi(e){if(process.argv.slice(2).length>0)return!1;let t=[ee(h,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(`
|
|
124
|
+
`)),!0}function hi(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`)||ii(i)!==`complete`&&u(h,{quiet:e||l(i),update:t}))}async function gi(){let e=process.argv.slice(2);if(l(e)||ii(e)===`complete`||(e.length===0?process.stdout.isTTY!==!0:process.stderr.isTTY!==!0))return;let{isCI:t}=await import(`./interactive-DGUWZ2Gk.mjs`);if(t)return;let{getUpdateNotice:n,maybeStartBackgroundUpdateCheck:r}=await import(`./update-check-BnGDxswi.mjs`),i=!1;return{notice:n(h),start(){i||(i=!0,r())}}}function _i(e,t={}){let{onCommandResolved:n,onHelpShown:r,updateCheck:i}=t,a,s=e=>o.brand(e),l=e.indexOf(`--`),u=(l===-1?e:e.slice(0,l)).some(e=>e===`--local`||e===`--no-local`||e.startsWith(`--local=`)),d=Fr(e).scriptName(`cf`).parserConfiguration({"sort-commands":!0}).wrap(process.stdout.columns||80).usage(`$0 <command> [options]`).usage(`
|
|
125
|
+
The Cloudflare CLI - manage your Cloudflare resources`).updateStrings({"Commands:":s(`Commands`),"Options:":s(`Options`),"Positionals:":s(`Positionals`),"Examples:":s(`Examples`)}).help(`help`,`Show help`).alias(`h`,`help`).options(Jr).group([...Object.keys(Jr),`help`,`version`],s(`Global flags`));for(let e of Xr)d.command(e);for(let e of Ir)e.hideCommand?d.command({...e.command,describe:!1}):d.command(e.command);d.middleware(async e=>{hi(e.quiet,i?.notice),i?.start();let t=li(d);t!==void 0&&n?.(t);try{await oi(e.quiet)}catch{}try{await ti(e.quiet)}catch{}re(e.mode);let r=String(e._[0]??``),o=e.persistTo??e[`persist-to`];if(!e.help&&(r===`dev`&&u||e.local&&Zr.has(r)))throw Error(`--local is not supported by cf ${r}.`);if(!e.help&&r===`dev`&&o!==void 0)throw Error(`--persist-to is not supported by cf dev.`);if(o===``)throw Error(`--persist-to requires a non-empty directory.`);if(o!==void 0&&!e.local)throw Error(`--persist-to can only be used with --local.`);if(t!==void 0&&f(t,e.local)&&(a=await p(e)),!e.local){let{resolveProfile:t}=await import(`./oauth-BDdhqasa.mjs`),n=t(e.profile);c(n)}}).demandCommand(1,`You need to specify a command`).strictCommands().strictOptions().recommendCommands().version(h).alias(`v`,`version`).epilogue(`For more information, visit https://developers.cloudflare.com/`).exitProcess(!1).fail((e,t,a)=>{hi(!1,i?.notice),i?.start();let o=li(d);if(o!==void 0&&n?.(o),t)throw t;let s=/^Did you mean (.+)\?$/.exec(e)?.[1];if(!s||a.getCommands().some(([e])=>e.split(` `)[0]===s)){if(e===`Please specify a subcommand`){o!==void 0&&r?.(o),a.showHelp(`log`);return}throw a.showHelp(`error`),Error(e)}});let m=d.showHelp.bind(d);d.showHelp=e=>m(t=>{let i=li(d);i!==void 0&&n?.(i),r?.(i??`cf`);let a=ei(t,i);typeof e==`function`?e(a):e===`log`?console.log(a):console.error(a)});let g=d.getHelp.bind(d);return d.getHelp=async()=>ei(await g(),li(d)),{cli:d,dispose:()=>{a?.(),a=void 0}}}async function vi(e){let t=process.argv;process.argv=[`node`,`cf`,...e];try{await yi()}finally{process.argv=t}}async function yi(){re(void 0),y();let e=await gi();if(pi(e?.notice)||mi(e?.notice))throw e?.start(),new d(0);let t,n,{cli:r,dispose:i}=_i(bt(process.argv),{onCommandResolved:e=>{t=e},onHelpShown:e=>{n=e},updateCheck:e}),a=bt(process.argv),o=a.indexOf(`--`),s=o===-1?a:a.slice(0,o);if(s.includes(`--help`)||s.includes(`-h`)){hi(!1,e?.notice),e?.start();try{await ti()}catch{}}try{await r.parse(bt(process.argv)),await fi(n)}catch(e){if(e instanceof d)throw e;if(t===void 0){try{await oi()}catch{}try{await ti()}catch{}}throw await di(e,t??li(r)),Gr(e)}finally{i(),await ne(),await si()}}export{yi as n,vi as r,_i as t};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-eVI_UEt8.mjs";import{i as n}from"./context-B-vEsyrK.mjs";import{t as r}from"./output-Co4xdFf6.mjs";import{t as i}from"./dry-run-C2KjGX10.mjs";import{t as a}from"./progress-R-1tIuep.mjs";import{t as o}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as s,t as c}from"./body-parser-DkHKPkJ7.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{i as u,n as d}from"./prompt-dgLm0iFJ.mjs";var f={method:`POST`,path:t=>e`/zones/${t.zone_id}/ssl/analyze`,body:`json`};function p(e){return e.usage(`$0 ssl analyze create
|
|
3
3
|
|
|
4
4
|
Returns the set of hostnames, the signature algorithm, and the expiration date of the certificate.`).option(`bundle-method`,{type:`string`,description:`A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it.`,choices:[`ubiquitous`,`optimal`,`force`],default:`ubiquitous`}).coerce(`bundle-method`,e=>l(e,`bundle-method`,`text`)).option(`certificate`,{type:`string`,description:`The zone's SSL certificate or certificate and the intermediate(s).`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const m={command:`create`,describe:`Analyze Certificate`,builder:p,handler:async e=>o({command:`ssl analyze create`,classification:{safeFlags:[`bundle-method`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf ssl analyze create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/analyze`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({bundle_method:e[`bundle-method`],certificate:l(e.certificate,`certificate`,`text`)}):s(e.body)});return}let o=await t(e),u=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=u,e.body){let t=s(e.body),n=await a(`Creating`,async()=>o.send(f,{body:t,zone_id:u}));r(n,{successLabel:`Created`});return}let d=c({bundle_method:e[`bundle-method`],certificate:l(e.certificate,`certificate`,`text`)}),p=await a(`Creating`,async()=>o.send(f,{body:d,zone_id:u}));r(p,{successLabel:`Created`})})},h={command:`analyze`,describe:`Operations for analyze`,builder:e=>e.command(m).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var g={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/settings/auto_origin_tls_kex`,body:`json`};function _(e){return e.usage('$0 ssl auto-origin-tls-kex edit\n\nEnable or disable Auto-Origin TLS KEX selection for the zone by sending `{"enabled": true}` or `{"enabled": false}`. When enabled, Cloudflare runs a periodic scan of the zone\'s origins to determine the preferred key-exchange algorithm and writes that preference to the edge so it is sent first in the TLS ClientHello to the origin.').option(`enabled`,{type:`boolean`,description:`Controls enablement of Auto-Origin TLS KEX selection for the zone.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Update enablement of Auto-Origin TLS KEX selection.`})}const v={command:`edit`,describe:`Patch Auto-Origin TLS KEX enrollment status for the given zone`,builder:_,handler:async e=>o({command:`ssl auto-origin-tls-kex edit`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf ssl auto-origin-tls-kex edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/auto_origin_tls_kex`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({enabled:e.enabled}):s(e.body)});return}let o=await t(e),l=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=l,e.body){let t=s(e.body),n=await a(`Updating`,async()=>o.send(g,{body:t,zone_id:l}));r(n,{successLabel:`Updated`});return}if(e.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);let u=c({enabled:e.enabled}),d=await a(`Updating`,async()=>o.send(g,{body:u,zone_id:l}));r(d,{successLabel:`Updated`})})};var ee={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/auto_origin_tls_kex`};function te(e){return e.usage(`$0 ssl auto-origin-tls-kex get
|
|
5
5
|
|
|
@@ -11,12 +11,12 @@ The automatic system is enabled when this endpoint is hit with value in the requ
|
|
|
11
11
|
|
|
12
12
|
For a given zone, order an advanced certificate pack.`).option(`certificate-authority`,{type:`string`,description:`Certificate Authority selected for the order. For information on any certificate authority specific details or restrictions [see this page for more details](https://developers.cloudflare.com/ssl/reference/certificate-authorities).`,choices:[`google`,`lets_encrypt`,`ssl_com`]}).coerce(`certificate-authority`,e=>l(e,`certificate-authority`,`text`)).option(`cloudflare-branding`,{type:`boolean`,description:`Whether or not to add Cloudflare Branding for the order. This will add a subdomain of sni.cloudflaressl.com as the Common Name if set to true.`}).option(`hosts`,{type:`string`,array:!0,description:`Comma separated list of valid host names for the certificate packs. Must contain the zone apex, may not contain more than 50 hosts, and may not be empty.`}).option(`type`,{type:`string`,description:`Type of certificate pack.`,choices:[`advanced`]}).coerce(`type`,e=>l(e,`type`,`text`)).option(`validation-method`,{type:`string`,description:`Validation Method selected for the order.`,choices:[`txt`,`http`,`email`]}).coerce(`validation-method`,e=>l(e,`validation-method`,`text`)).option(`validity-days`,{type:`number`,description:`Validity Days selected for the order.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const A={command:`create`,describe:`Order Advanced Certificate Manager Certificate Pack`,builder:k,handler:async e=>o({command:`ssl certificate-packs create`,classification:{safeFlags:[`certificate-authority`,`cloudflare-branding`,`type`,`validation-method`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf ssl certificate-packs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/certificate_packs/order`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({certificate_authority:e[`certificate-authority`],cloudflare_branding:e[`cloudflare-branding`],hosts:e.hosts,type:e.type,validation_method:e[`validation-method`],validity_days:e[`validity-days`]}):s(e.body)});return}let o=await t(e),l=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=l,e.body){let t=s(e.body),n=await a(`Creating`,async()=>o.send(O,{body:t,zone_id:l}));r(n,{successLabel:`Created`});return}if(e[`certificate-authority`]===void 0&&(e[`certificate-authority`]=await u(`certificate-authority`,`Certificate Authority selected for the order. For information on any certificate authority specific details or restrictions [see this page for more details](https://developers.cloudflare.com/ssl/reference/certificate-authorities).`,[`google`,`lets_encrypt`,`ssl_com`])),e.hosts===void 0)throw Error(`--hosts is required (or pass --body with this field set).`);if(e.type===void 0&&(e.type=await u(`type`,`Type of certificate pack.`,[`advanced`])),e[`validation-method`]===void 0&&(e[`validation-method`]=await u(`validation-method`,`Validation Method selected for the order.`,[`txt`,`http`,`email`])),e[`validity-days`]===void 0)throw Error(`--validity-days is required (or pass --body with this field set).`);let d=c({certificate_authority:e[`certificate-authority`],cloudflare_branding:e[`cloudflare-branding`],hosts:e.hosts,type:e.type,validation_method:e[`validation-method`],validity_days:e[`validity-days`]}),f=await a(`Creating`,async()=>o.send(O,{body:d,zone_id:l}));r(f,{successLabel:`Created`})})};var j={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/ssl/certificate_packs/${t.certificate_pack_id}`};function M(e){return e.usage(`$0 ssl certificate-packs delete <certificate-pack-id>
|
|
13
13
|
|
|
14
|
-
For a given zone, delete an advanced certificate pack.`).positional(`certificate-pack-id`,{type:`string`,description:`The unique identifier for a certificate_pack.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const N={command:`delete <certificate-pack-id>`,describe:`Delete Advanced Certificate Manager Certificate Pack`,builder:M,handler:async e=>o({command:`ssl certificate-packs delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf ssl certificate-packs delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/certificate_packs/${e[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(e[`certificate-pack-id`]))}`,pathParams:{"
|
|
14
|
+
For a given zone, delete an advanced certificate pack.`).positional(`certificate-pack-id`,{type:`string`,description:`The unique identifier for a certificate_pack.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const N={command:`delete <certificate-pack-id>`,describe:`Delete Advanced Certificate Manager Certificate Pack`,builder:M,handler:async e=>o({command:`ssl certificate-packs delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf ssl certificate-packs delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/certificate_packs/${e[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(e[`certificate-pack-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"certificate-pack-id":String(e[`certificate-pack-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,!await d({force:!!e.force})){process.stderr.write(`Aborted.
|
|
15
15
|
`);return}let c=await a(`Deleting`,async()=>o.send(j,{zone_id:s,certificate_pack_id:e[`certificate-pack-id`]}));r(c,{successLabel:`Deleted`})})};var P={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/ssl/certificate_packs/${t.certificate_pack_id}`,body:`json`};function F(e){return e.usage(`$0 ssl certificate-packs edit <certificate-pack-id>
|
|
16
16
|
|
|
17
|
-
For a given zone, restart validation or add cloudflare branding for an advanced certificate pack. The former is only a validation operation for a Certificate Pack in a validation_timed_out status.`).positional(`certificate-pack-id`,{type:`string`,description:`The unique identifier for a certificate_pack.`,demandOption:!0}).option(`cloudflare-branding`,{type:`boolean`,description:`Whether or not to add Cloudflare Branding for the order. This will add a subdomain of sni.cloudflaressl.com as the Common Name if set to true.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const I={command:`edit <certificate-pack-id>`,describe:`Restart Validation or Update Advanced Certificate Manager Certificate Pack`,builder:F,handler:async e=>o({command:`ssl certificate-packs edit`,classification:{safeFlags:[`cloudflare-branding`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf ssl certificate-packs edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/certificate_packs/${e[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(e[`certificate-pack-id`]))}`,pathParams:{"
|
|
17
|
+
For a given zone, restart validation or add cloudflare branding for an advanced certificate pack. The former is only a validation operation for a Certificate Pack in a validation_timed_out status.`).positional(`certificate-pack-id`,{type:`string`,description:`The unique identifier for a certificate_pack.`,demandOption:!0}).option(`cloudflare-branding`,{type:`boolean`,description:`Whether or not to add Cloudflare Branding for the order. This will add a subdomain of sni.cloudflaressl.com as the Common Name if set to true.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const I={command:`edit <certificate-pack-id>`,describe:`Restart Validation or Update Advanced Certificate Manager Certificate Pack`,builder:F,handler:async e=>o({command:`ssl certificate-packs edit`,classification:{safeFlags:[`cloudflare-branding`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf ssl certificate-packs edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/certificate_packs/${e[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(e[`certificate-pack-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"certificate-pack-id":String(e[`certificate-pack-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({cloudflare_branding:e[`cloudflare-branding`]}):s(e.body)});return}let o=await t(e),l=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=l,e.body){let t=s(e.body),n=await a(`Updating`,async()=>o.send(P,{body:t,zone_id:l,certificate_pack_id:e[`certificate-pack-id`]}));r(n,{successLabel:`Updated`});return}let u=c({cloudflare_branding:e[`cloudflare-branding`]}),d=await a(`Updating`,async()=>o.send(P,{body:u,zone_id:l,certificate_pack_id:e[`certificate-pack-id`]}));r(d,{successLabel:`Updated`})})};var L={method:`GET`,path:t=>e`/zones/${t.zone_id}/ssl/certificate_packs/${t.certificate_pack_id}`};function R(e){return e.usage(`$0 ssl certificate-packs get <certificate-pack-id>
|
|
18
18
|
|
|
19
|
-
For a given zone, get a certificate pack.`).positional(`certificate-pack-id`,{type:`string`,description:`The unique identifier for a certificate_pack.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const z={command:`get <certificate-pack-id>`,describe:`Get Certificate Pack`,builder:R,handler:async e=>o({command:`ssl certificate-packs get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf ssl certificate-packs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/certificate_packs/${e[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(e[`certificate-pack-id`]))}`,pathParams:{"
|
|
19
|
+
For a given zone, get a certificate pack.`).positional(`certificate-pack-id`,{type:`string`,description:`The unique identifier for a certificate_pack.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const z={command:`get <certificate-pack-id>`,describe:`Get Certificate Pack`,builder:R,handler:async e=>o({command:`ssl certificate-packs get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf ssl certificate-packs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/certificate_packs/${e[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(e[`certificate-pack-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"certificate-pack-id":String(e[`certificate-pack-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=s;let c=await a(`Loading`,async()=>o.send(L,{zone_id:s,certificate_pack_id:e[`certificate-pack-id`]}));r(c,{successLabel:`Loaded`})})};var B={method:`GET`,path:t=>e`/zones/${t.zone_id}/ssl/certificate_packs`,query:[`page`,`per_page`,`status`,`deploy`]};function V(e){return e.usage(`$0 ssl certificate-packs list
|
|
20
20
|
|
|
21
21
|
For a given zone, list all active certificate packs.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of certificate packs per page.`}).option(`status`,{type:`string`,description:`Include Certificate Packs of all statuses, not just active ones.`,choices:[`all`]}).option(`deploy`,{type:`string`,description:`Specify the deployment environment for the certificate packs.`,choices:[`staging`,`production`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const H={command:`list`,describe:`List Certificate Packs`,builder:V,handler:async e=>o({command:`ssl certificate-packs list`,classification:{safeFlags:[`status`,`deploy`,`dry-run`]}},e,async()=>{let o={page:e.page,per_page:e[`per-page`],status:e.status,deploy:e.deploy};if(e.dryRun){i({command:`cf ssl certificate-packs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/certificate_packs`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:o,bodyKind:`none`});return}let s=await t(e),c=await n({zone:e.zone},s,{quiet:e.quiet});e.zoneId=c;let l=await a(`Loading`,async()=>s.send(B,{zone_id:c,...o}));r(l,{successLabel:`Loaded`})})};var ne={method:`GET`,path:t=>e`/zones/${t.zone_id}/ssl/certificate_packs/quota`};function U(e){return e.usage(`$0 ssl certificate-packs quota get
|
|
22
22
|
|
|
@@ -40,6 +40,6 @@ If you do not have a valid custom or advanced certificate at Cloudflare's edge a
|
|
|
40
40
|
|
|
41
41
|
Get Universal SSL Settings for a Zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const se={command:`get`,describe:`Universal SSL Settings Details`,builder:oe,handler:async e=>o({command:`ssl universal settings get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf ssl universal settings get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/universal/settings`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=s;let c=await a(`Loading`,async()=>o.send(ae,{zone_id:s}));r(c,{successLabel:`Loaded`})})},Q={command:`settings`,describe:`Operations for universal.settings`,builder:e=>e.command(ie).command(se).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ce={command:`universal`,describe:`Operations for universal`,builder:e=>e.command(Q).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var $={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/ssl/verification/${t.certificate_pack_id}`,body:`json`};function le(e){return e.usage(`$0 ssl verification edit <certificate-pack-id>
|
|
42
42
|
|
|
43
|
-
Edit SSL validation method for a certificate pack. A PATCH request will request an immediate validation check on any certificate, and return the updated status. If a validation method is provided, the validation will be immediately attempted using that method.`).positional(`certificate-pack-id`,{type:`string`,description:`Certificate Pack UUID.`,demandOption:!0}).option(`validation-method`,{type:`string`,description:`Desired validation method.`,choices:[`http`,`cname`,`txt`,`email`]}).coerce(`validation-method`,e=>l(e,`validation-method`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ue={command:`edit <certificate-pack-id>`,describe:`Edit SSL Certificate Pack Validation Method`,builder:le,handler:async e=>o({command:`ssl verification edit`,classification:{safeFlags:[`validation-method`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf ssl verification edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/verification/${e[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(e[`certificate-pack-id`]))}`,pathParams:{"
|
|
43
|
+
Edit SSL validation method for a certificate pack. A PATCH request will request an immediate validation check on any certificate, and return the updated status. If a validation method is provided, the validation will be immediately attempted using that method.`).positional(`certificate-pack-id`,{type:`string`,description:`Certificate Pack UUID.`,demandOption:!0}).option(`validation-method`,{type:`string`,description:`Desired validation method.`,choices:[`http`,`cname`,`txt`,`email`]}).coerce(`validation-method`,e=>l(e,`validation-method`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ue={command:`edit <certificate-pack-id>`,describe:`Edit SSL Certificate Pack Validation Method`,builder:le,handler:async e=>o({command:`ssl verification edit`,classification:{safeFlags:[`validation-method`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf ssl verification edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/verification/${e[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(e[`certificate-pack-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"certificate-pack-id":String(e[`certificate-pack-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({validation_method:e[`validation-method`]}):s(e.body)});return}let o=await t(e),l=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=l,e.body){let t=s(e.body),n=await a(`Updating`,async()=>o.send($,{body:t,zone_id:l,certificate_pack_id:e[`certificate-pack-id`]}));r(n,{successLabel:`Updated`});return}e[`validation-method`]===void 0&&(e[`validation-method`]=await u(`validation-method`,`Desired validation method.`,[`http`,`cname`,`txt`,`email`]));let d=c({validation_method:e[`validation-method`]}),f=await a(`Updating`,async()=>o.send($,{body:d,zone_id:l,certificate_pack_id:e[`certificate-pack-id`]}));r(f,{successLabel:`Updated`})})};var de={method:`GET`,path:t=>e`/zones/${t.zone_id}/ssl/verification`,query:[`retry`]};function fe(e){return e.usage(`$0 ssl verification get
|
|
44
44
|
|
|
45
45
|
Get SSL Verification Info for a Zone.`).option(`retry`,{type:`string`,description:`Immediately retry SSL Verification.`,choices:[`true`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const pe={command:`get`,describe:`SSL Verification Details`,builder:fe,handler:async e=>o({command:`ssl verification get`,classification:{safeFlags:[`retry`,`dry-run`]}},e,async()=>{let o={retry:e.retry};if(e.dryRun){i({command:`cf ssl verification get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/verification`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:o,bodyKind:`none`});return}let s=await t(e),c=await n({zone:e.zone},s,{quiet:e.quiet});e.zoneId=c;let l=await a(`Loading`,async()=>s.send(de,{zone_id:c,...o}));r(l,{successLabel:`Loaded`})})},me={command:`verification`,describe:`Operations for verification`,builder:e=>e.command(ue).command(pe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},he={command:`ssl`,describe:`SSL/TLS certificate management — certificate packs, Universal SSL, verification, and TLS mode recommendations`,builder:e=>e.command(h).command(b).command(D).command(K).command(X).command(ce).command(me).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{he as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{i as n,n as r}from"./auth-
|
|
2
|
+
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{i as n,n as r}from"./auth-eVI_UEt8.mjs";import{a as i,t as a}from"./context-B-vEsyrK.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-R-1tIuep.mjs";import{t as l}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{i as u,n as d,r as f,t as p}from"./body-parser-DkHKPkJ7.mjs";import{n as m,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g,n as _}from"./prompt-dgLm0iFJ.mjs";import{n as v,t as ee}from"./raw-fetch-BapeoreV.mjs";var te={method:`POST`,path:t=>e`/accounts/${t.account_id}/stream/keys`};function ne(e){return e.usage(`$0 stream keys create
|
|
3
3
|
|
|
4
4
|
Creates an RSA private key in PEM and JWK formats. Key files are only displayed once after creation. Keys are created, used, and deleted independently of videos, and every key can sign any video.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const re={command:`create`,describe:`Create signing keys`,builder:ne,handler:async e=>l({command:`stream keys create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();s({command:`cf stream keys create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/stream/keys`,pathParams:{},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Creating`,async()=>n.send(te,{account_id:l}));o(u,{successLabel:`Created`})})};var ie={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/stream/keys/${t.identifier}`};function ae(e){return e.usage(`$0 stream keys delete <identifier>
|
|
5
5
|
|
|
@@ -24,12 +24,12 @@ Lists the live inputs created for an account. To get the credentials needed to s
|
|
|
24
24
|
|
|
25
25
|
Creates a new output that can be used to simulcast or restream live video to other RTMP or SRT destinations. Outputs are always linked to a specific live input — one live input can have many outputs.`).positional(`live-input-identifier`,{type:`string`,description:`A unique identifier for a live input.`,demandOption:!0}).option(`enabled`,{type:`boolean`,description:`When enabled, live video streamed to the associated live input will be sent to the output URL. When disabled, live video will not be sent to the output URL, even when streaming to the associated live input. Use this to control precisely when you start and stop simulcasting to specific destinations like YouTube and Twitch.`,default:!0}).option(`stream-key`,{type:`string`,description:`The streamKey used to authenticate against an output's target.`}).option(`url`,{type:`string`,description:`The URL an output uses to restream.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const z={command:`create <live-input-identifier>`,describe:`Create a new output, connected to a live input`,builder:R,handler:async e=>l({command:`stream live-inputs outputs create`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf stream live-inputs outputs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/stream/live_inputs/${e[`live-input-identifier`]==null?`<live-input-identifier>`:encodeURIComponent(String(e[`live-input-identifier`]))}/outputs`,pathParams:{"live-input-identifier":String(e[`live-input-identifier`]??``)},bodyKind:`json`,body:e.body===void 0?p({enabled:e.enabled,streamKey:m(e[`stream-key`],`stream-key`,`text`),url:m(e.url,`url`,`text`)}):d(e.body),sensitiveBodyPaths:[[`streamKey`],[`url`]]});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),r=await c(`Creating`,async()=>n.send(L,{body:t,account_id:l,live_input_identifier:e[`live-input-identifier`]}));o(r,{successLabel:`Created`});return}e[`stream-key`]===void 0&&(e[`stream-key`]=await g(`stream-key`,`The streamKey used to authenticate against an output's target.`,{kind:`secret`})),e.url===void 0&&(e.url=await g(`url`,`The URL an output uses to restream.`,{kind:`secret`}));let u=p({enabled:e.enabled,streamKey:m(e[`stream-key`],`stream-key`,`text`),url:m(e.url,`url`,`text`)}),f=await c(`Creating`,async()=>n.send(L,{body:u,account_id:l,live_input_identifier:e[`live-input-identifier`]}));o(f,{successLabel:`Created`})})};var B={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/stream/live_inputs/${t.live_input_identifier}/outputs/${t.output_identifier}`};function V(e){return e.usage(`$0 stream live-inputs outputs delete <output-identifier>
|
|
26
26
|
|
|
27
|
-
Deletes an output and removes it from the associated live input.`).positional(`output-identifier`,{type:`string`,description:`A unique identifier for the output.`,demandOption:!0}).option(`live-input-identifier`,{type:`string`,description:`A unique identifier for a live input.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const H={command:`delete <output-identifier>`,describe:`Delete an output`,builder:V,handler:async e=>l({command:`stream live-inputs outputs delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf stream live-inputs outputs delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/stream/live_inputs/${e[`live-input-identifier`]==null?`<live-input-identifier>`:encodeURIComponent(String(e[`live-input-identifier`]))}/outputs/${e[`output-identifier`]==null?`<output-identifier>`:encodeURIComponent(String(e[`output-identifier`]))}`,pathParams:{"
|
|
27
|
+
Deletes an output and removes it from the associated live input.`).positional(`output-identifier`,{type:`string`,description:`A unique identifier for the output.`,demandOption:!0}).option(`live-input-identifier`,{type:`string`,description:`A unique identifier for a live input.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const H={command:`delete <output-identifier>`,describe:`Delete an output`,builder:V,handler:async e=>l({command:`stream live-inputs outputs delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf stream live-inputs outputs delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/stream/live_inputs/${e[`live-input-identifier`]==null?`<live-input-identifier>`:encodeURIComponent(String(e[`live-input-identifier`]))}/outputs/${e[`output-identifier`]==null?`<output-identifier>`:encodeURIComponent(String(e[`output-identifier`]))}`,pathParams:{"live-input-identifier":String(e[`live-input-identifier`]??``),"output-identifier":String(e[`output-identifier`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,!await _({force:!!e.force,message:`Delete this output? Any active broadcast to this target will be terminated.`})){process.stderr.write(`Aborted.
|
|
28
28
|
`);return}let u=await c(`Deleting`,async()=>n.send(B,{account_id:l,live_input_identifier:e[`live-input-identifier`],output_identifier:e[`output-identifier`]}));o(u,{successLabel:`Deleted`})})};var U={method:`GET`,path:t=>e`/accounts/${t.account_id}/stream/live_inputs/${t.live_input_identifier}/outputs`};function W(e){return e.usage(`$0 stream live-inputs outputs list
|
|
29
29
|
|
|
30
30
|
Retrieves all outputs associated with a specified live input.`).option(`live-input-identifier`,{type:`string`,description:`A unique identifier for a live input.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ue={command:`list`,describe:`List all outputs associated with a specified live input`,builder:W,handler:async e=>l({command:`stream live-inputs outputs list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf stream live-inputs outputs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/stream/live_inputs/${e[`live-input-identifier`]==null?`<live-input-identifier>`:encodeURIComponent(String(e[`live-input-identifier`]))}/outputs`,pathParams:{"live-input-identifier":String(e[`live-input-identifier`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(U,{account_id:l,live_input_identifier:e[`live-input-identifier`]}));o(u,{successLabel:`Loaded`})})};var G={method:`PUT`,path:t=>e`/accounts/${t.account_id}/stream/live_inputs/${t.live_input_identifier}/outputs/${t.output_identifier}`,body:`json`};function de(e){return e.usage(`$0 stream live-inputs outputs update <output-identifier>
|
|
31
31
|
|
|
32
|
-
Updates the state of an output.`).positional(`output-identifier`,{type:`string`,description:`A unique identifier for the output.`,demandOption:!0}).option(`live-input-identifier`,{type:`string`,description:`A unique identifier for a live input.`,demandOption:!0}).option(`enabled`,{type:`boolean`,description:`When enabled, live video streamed to the associated live input will be sent to the output URL. When disabled, live video will not be sent to the output URL, even when streaming to the associated live input. Use this to control precisely when you start and stop simulcasting to specific destinations like YouTube and Twitch.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const fe={command:`update <output-identifier>`,describe:`Update an output`,builder:de,handler:async e=>l({command:`stream live-inputs outputs update`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf stream live-inputs outputs update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/stream/live_inputs/${e[`live-input-identifier`]==null?`<live-input-identifier>`:encodeURIComponent(String(e[`live-input-identifier`]))}/outputs/${e[`output-identifier`]==null?`<output-identifier>`:encodeURIComponent(String(e[`output-identifier`]))}`,pathParams:{"
|
|
32
|
+
Updates the state of an output.`).positional(`output-identifier`,{type:`string`,description:`A unique identifier for the output.`,demandOption:!0}).option(`live-input-identifier`,{type:`string`,description:`A unique identifier for a live input.`,demandOption:!0}).option(`enabled`,{type:`boolean`,description:`When enabled, live video streamed to the associated live input will be sent to the output URL. When disabled, live video will not be sent to the output URL, even when streaming to the associated live input. Use this to control precisely when you start and stop simulcasting to specific destinations like YouTube and Twitch.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const fe={command:`update <output-identifier>`,describe:`Update an output`,builder:de,handler:async e=>l({command:`stream live-inputs outputs update`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf stream live-inputs outputs update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/stream/live_inputs/${e[`live-input-identifier`]==null?`<live-input-identifier>`:encodeURIComponent(String(e[`live-input-identifier`]))}/outputs/${e[`output-identifier`]==null?`<output-identifier>`:encodeURIComponent(String(e[`output-identifier`]))}`,pathParams:{"live-input-identifier":String(e[`live-input-identifier`]??``),"output-identifier":String(e[`output-identifier`]??``)},bodyKind:`json`,body:e.body===void 0?p({enabled:e.enabled}):d(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),r=await c(`Updating`,async()=>n.send(G,{body:t,account_id:l,live_input_identifier:e[`live-input-identifier`],output_identifier:e[`output-identifier`]}));o(r,{successLabel:`Updated`});return}if(e.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);let u=p({enabled:e.enabled}),f=await c(`Updating`,async()=>n.send(G,{body:u,account_id:l,live_input_identifier:e[`live-input-identifier`],output_identifier:e[`output-identifier`]}));o(f,{successLabel:`Updated`})})},pe={command:`outputs`,describe:`Operations for live-inputs.outputs`,builder:e=>e.command(z).command(H).command(ue).command(fe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var me={method:`POST`,path:t=>e`/accounts/${t.account_id}/stream/live_inputs/${t.live_input_identifier}/rotate_keys`};function he(e){return e.usage(`$0 stream live-inputs rotate-keys <live-input-identifier>
|
|
33
33
|
|
|
34
34
|
Rotates the credentials for a live input without changing its identifier. Old credentials are revoked, broadcasts using stale credentials are automatically disconnected shortly after rotation, and the response returns refreshed credentials.`).positional(`live-input-identifier`,{type:`string`,description:`A unique identifier for a live input.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const ge={command:`rotate-keys <live-input-identifier>`,describe:`Rotate keys for a live input`,builder:he,handler:async e=>l({command:`stream live-inputs rotate-keys`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf stream live-inputs rotate-keys`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/stream/live_inputs/${e[`live-input-identifier`]==null?`<live-input-identifier>`:encodeURIComponent(String(e[`live-input-identifier`]))}/rotate_keys`,pathParams:{"live-input-identifier":String(e[`live-input-identifier`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,!await _({force:!!e.force,message:`Rotate keys for this live input? Active broadcasts will be terminated. New broadcasts cannot start with outdated credentials.`})){process.stderr.write(`Aborted.
|
|
35
35
|
`);return}let u=await c(`Deleting`,async()=>n.send(me,{account_id:l,live_input_identifier:e[`live-input-identifier`]}));o(u,{successLabel:`Deleted`})})};var K={method:`PUT`,path:t=>e`/accounts/${t.account_id}/stream/live_inputs/${t.live_input_identifier}`,body:`json`};function _e(e){return e.usage(`$0 stream live-inputs update <live-input-identifier>
|
|
@@ -45,16 +45,16 @@ Deletes additional audio tracks on a video. Deleting a default audio track is no
|
|
|
45
45
|
|
|
46
46
|
Lists additional audio tracks on a video. Note this API will not return information for audio attached to the video upload.`).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Me={command:`list`,describe:`List additional audio tracks on a video`,builder:je,handler:async e=>l({command:`stream videos audio-tracks list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf stream videos audio-tracks list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/stream/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}/audio`,pathParams:{identifier:String(e.identifier??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(Ae,{account_id:l,identifier:e.identifier}));o(u,{successLabel:`Loaded`})})},Ne={command:`audio-tracks`,describe:`Operations for videos.audio-tracks`,builder:e=>e.command(we).command(De).command(ke).command(Me).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Pe={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/stream/${t.identifier}/captions/${t.language}`};function Fe(e){return e.usage(`$0 stream videos captions language delete <language>
|
|
47
47
|
|
|
48
|
-
Removes the captions or subtitles from a video.`).positional(`language`,{type:`string`,description:`The language tag in BCP 47 format.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Ie={command:`delete <language>`,describe:`Delete captions or subtitles`,builder:Fe,handler:async e=>l({command:`stream videos captions language delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf stream videos captions language delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/stream/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}/captions/${e.language==null?`<language>`:encodeURIComponent(String(e.language))}`,pathParams:{
|
|
48
|
+
Removes the captions or subtitles from a video.`).positional(`language`,{type:`string`,description:`The language tag in BCP 47 format.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Ie={command:`delete <language>`,describe:`Delete captions or subtitles`,builder:Fe,handler:async e=>l({command:`stream videos captions language delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf stream videos captions language delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/stream/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}/captions/${e.language==null?`<language>`:encodeURIComponent(String(e.language))}`,pathParams:{identifier:String(e.identifier??``),language:String(e.language??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,!await _({force:!!e.force,message:`Remove this caption?`})){process.stderr.write(`Aborted.
|
|
49
49
|
`);return}let u=await c(`Deleting`,async()=>n.send(Pe,{account_id:l,identifier:e.identifier,language:e.language}));o(u,{successLabel:`Deleted`})})};var Le={method:`POST`,path:t=>e`/accounts/${t.account_id}/stream/${t.identifier}/captions/${t.language}/generate`};function Re(e){return e.usage(`$0 stream videos captions language generate <language>
|
|
50
50
|
|
|
51
|
-
Generate captions or subtitles for provided language via AI.`).positional(`language`,{type:`string`,description:`The language tag in BCP 47 format.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ze={command:`generate <language>`,describe:`Generate captions or subtitles for a provided language via AI`,builder:Re,handler:async e=>l({command:`stream videos captions language generate`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf stream videos captions language generate`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/stream/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}/captions/${e.language==null?`<language>`:encodeURIComponent(String(e.language))}/generate`,pathParams:{
|
|
51
|
+
Generate captions or subtitles for provided language via AI.`).positional(`language`,{type:`string`,description:`The language tag in BCP 47 format.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ze={command:`generate <language>`,describe:`Generate captions or subtitles for a provided language via AI`,builder:Re,handler:async e=>l({command:`stream videos captions language generate`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf stream videos captions language generate`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/stream/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}/captions/${e.language==null?`<language>`:encodeURIComponent(String(e.language))}/generate`,pathParams:{identifier:String(e.identifier??``),language:String(e.language??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Creating`,async()=>n.send(Le,{account_id:l,identifier:e.identifier,language:e.language}));o(u,{successLabel:`Created`})})};var Be={method:`GET`,path:t=>e`/accounts/${t.account_id}/stream/${t.identifier}/captions/${t.language}`};function Ve(e){return e.usage(`$0 stream videos captions language get <language>
|
|
52
52
|
|
|
53
|
-
Lists the captions or subtitles for provided language.`).positional(`language`,{type:`string`,description:`The language tag in BCP 47 format.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const He={command:`get <language>`,describe:`List captions or subtitles for a provided language`,builder:Ve,handler:async e=>l({command:`stream videos captions language get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf stream videos captions language get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/stream/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}/captions/${e.language==null?`<language>`:encodeURIComponent(String(e.language))}`,pathParams:{
|
|
53
|
+
Lists the captions or subtitles for provided language.`).positional(`language`,{type:`string`,description:`The language tag in BCP 47 format.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const He={command:`get <language>`,describe:`List captions or subtitles for a provided language`,builder:Ve,handler:async e=>l({command:`stream videos captions language get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf stream videos captions language get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/stream/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}/captions/${e.language==null?`<language>`:encodeURIComponent(String(e.language))}`,pathParams:{identifier:String(e.identifier??``),language:String(e.language??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(Be,{account_id:l,identifier:e.identifier,language:e.language}));o(u,{successLabel:`Loaded`})})};function Ue(e){return e.usage(`$0 stream videos captions language upload <language>
|
|
54
54
|
|
|
55
|
-
Uploads the caption or subtitle file to the endpoint for a specific BCP47 language. One caption or subtitle file per language is allowed.`).positional(`language`,{type:`string`,description:`The language tag in BCP 47 format.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`})}const We={command:`upload <language>`,describe:`Upload captions or subtitles`,builder:Ue,handler:async e=>l({command:`stream videos captions language upload`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf stream videos captions language upload`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/stream/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}/captions/${e.language==null?`<language>`:encodeURIComponent(String(e.language))}`,pathParams:{
|
|
55
|
+
Uploads the caption or subtitle file to the endpoint for a specific BCP47 language. One caption or subtitle file per language is allowed.`).positional(`language`,{type:`string`,description:`The language tag in BCP 47 format.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`})}const We={command:`upload <language>`,describe:`Upload captions or subtitles`,builder:Ue,handler:async e=>l({command:`stream videos captions language upload`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf stream videos captions language upload`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/stream/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}/captions/${e.language==null?`<language>`:encodeURIComponent(String(e.language))}`,pathParams:{identifier:String(e.identifier??``),language:String(e.language??``)},bodyKind:`multipart`,body:{body:e.body,file:e.file}});return}let l=await r(e),u=e.local?t:await a();if(e.accountId=u,e.file!==void 0||e.body!==void 0){let t=new FormData;if(e.file){let n=h(e.file);t.append(`file`,new Blob([n]),e.file.split(/[\\/]/).filter(Boolean).pop())}else e.body!==void 0&&t.append(`file`,e.body);let r=await c(`Updating`,async()=>n(l,`PUT`,`/accounts/${u}/stream/${encodeURIComponent(String(e.identifier))}/captions/${encodeURIComponent(String(e.language))}`,{body:t}));o(r,{successLabel:`Updated`});return}if(e.body){let t=m(e.body,`body`,`binary`),r=await c(`Updating`,async()=>n(l,`PUT`,`/accounts/${u}/stream/${encodeURIComponent(String(e.identifier))}/captions/${encodeURIComponent(String(e.language))}`,{body:t,headers:{"Content-Type":`multipart/form-data`}}));o(r,{successLabel:`Updated`});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function Ge(e){return e.usage(`$0 stream videos captions language vtt get <language>
|
|
56
56
|
|
|
57
|
-
Return WebVTT captions for a provided language.`).positional(`language`,{type:`string`,description:`The language tag in BCP 47 format.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ke={command:`get <language>`,describe:`Return WebVTT captions for a provided language`,builder:Ge,handler:async e=>l({command:`stream videos captions language vtt get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf stream videos captions language vtt get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/stream/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}/captions/${e.language==null?`<language>`:encodeURIComponent(String(e.language))}/vtt`,pathParams:{
|
|
57
|
+
Return WebVTT captions for a provided language.`).positional(`language`,{type:`string`,description:`The language tag in BCP 47 format.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ke={command:`get <language>`,describe:`Return WebVTT captions for a provided language`,builder:Ge,handler:async e=>l({command:`stream videos captions language vtt get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf stream videos captions language vtt get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/stream/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}/captions/${e.language==null?`<language>`:encodeURIComponent(String(e.language))}/vtt`,pathParams:{identifier:String(e.identifier??``),language:String(e.language??``)},bodyKind:`none`});return}await r(e);let n=e.local?t:await a();e.accountId=n;let o=await c(`Loading`,async()=>ee(`/accounts/${n}/stream/${encodeURIComponent(String(e.identifier))}/captions/${encodeURIComponent(String(e.language))}/vtt`,{method:`GET`,local:e.local===!0,persistTo:e.persistTo}));v(o.toString(`utf-8`))})},qe={command:`vtt`,describe:`Operations for videos.captions.language.vtt`,builder:e=>e.command(Ke).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Je={command:`language`,describe:`Operations for videos.captions.language`,builder:e=>e.command(Ie).command(ze).command(He).command(We).command(qe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ye={method:`GET`,path:t=>e`/accounts/${t.account_id}/stream/${t.identifier}/captions`};function Xe(e){return e.usage(`$0 stream videos captions list
|
|
58
58
|
|
|
59
59
|
Lists the available captions or subtitles for a specific video.`).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ze={command:`list`,describe:`List captions or subtitles`,builder:Xe,handler:async e=>l({command:`stream videos captions list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf stream videos captions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/stream/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}/captions`,pathParams:{identifier:String(e.identifier??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(Ye,{account_id:l,identifier:e.identifier}));o(u,{successLabel:`Loaded`})})},Qe={command:`captions`,describe:`Operations for videos.captions`,builder:e=>e.command(Ze).command(Je).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Y={method:`POST`,path:t=>e`/accounts/${t.account_id}/stream/clip`,body:`json`};function $e(e){return e.usage(`$0 stream videos clip
|
|
60
60
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-
|
|
2
|
+
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-eVI_UEt8.mjs";import{a as r,t as i}from"./context-B-vEsyrK.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-R-1tIuep.mjs";import{t as c}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";var l={method:`POST`,path:t=>e`/accounts/${t.account_id}/brand-protection/submit`};function u(e){return e.usage(`$0 submit create
|
|
3
3
|
|
|
4
4
|
Return new URL submissions`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const d={command:`create`,describe:`Create new URL submissions`,builder:u,handler:async e=>c({command:`submit create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await r();o({command:`cf submit create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/brand-protection/submit`,pathParams:{},bodyKind:`none`});return}let c=await n(e),u=e.local?t:await i();e.accountId=u;let d=await s(`Creating`,async()=>c.send(l,{account_id:u}));a(d,{successLabel:`Created`})})},f={command:`submit`,describe:`submit`,builder:e=>e.command(d).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{f as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-
|
|
2
|
+
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-eVI_UEt8.mjs";import{a as r,t as i}from"./context-B-vEsyrK.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-R-1tIuep.mjs";import{t as c}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";var l={method:`GET`,path:t=>e`/accounts/${t.account_id}/tags/resources`,query:[`type`,`name`,`id`,`case_insensitive`,`tag`,`cursor`]};function u(e){return e.usage(`$0 tags resources list
|
|
3
3
|
|
|
4
4
|
Lists all tagged resources for an account.`).option(`type`,{type:`string`,description:`Filter by resource type. Can be repeated to filter by multiple types (OR logic). Example: ?type=zone&type=worker`}).option(`name`,{type:`string`,description:`Filter by resource name. Performs a case-insensitive substring match. Example: ?name=my-zone`}).option(`id`,{type:`string`,description:`Filter by resource ID. Can be repeated up to 50 times to filter by multiple IDs. Example: ?id=abc&id=def`}).option(`case-insensitive`,{type:`boolean`,description:"Match `tag` keys and values case-insensitively. Stored casing is unchanged. Example: ?tag=environment=production&case_insensitive=true"}).option(`tag`,{type:`string`,description:"Filter resources by tag criteria. This parameter can be repeated multiple times, with AND logic between parameters.\n\nSupported syntax:\n- **Key-only**: `tag=<key>` - Resource must have the tag key (e.g., `tag=production`)\n- **Key-value**: `tag=<key>=<value>` - Resource must have the tag with specific value (e.g., `tag=env=prod`)\n- **Multiple values (OR)**: `tag=<key>=<v1>,<v2>` - Resource must have tag with any of the values (e.g., `tag=env=prod,staging`)\n- **Negate key-only**: `tag=!<key>` - Resource must not have the tag key (e.g., `tag=!archived`)\n- **Negate key-value**: `tag=<key>!=<value>` - Resource must not have the tag with specific value (e.g., `tag=region!=us-west-1`)\n\nMultiple tag parameters are combined with AND logic."}).option(`cursor`,{type:`string`,description:`Cursor for pagination.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const d={command:`list`,describe:`List tagged resources`,builder:u,handler:async e=>c({command:`tags resources list`,classification:{safeFlags:[`case-insensitive`,`dry-run`]}},e,async()=>{let c={type:e.type,name:e.name,id:e.id,case_insensitive:e[`case-insensitive`],tag:e.tag,cursor:e.cursor};if(e.dryRun){let e=await r();o({command:`cf tags resources list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/tags/resources`,pathParams:{},query:c,bodyKind:`none`});return}let u=await n(e),d=e.local?t:await i();e.accountId=d;let f=await s(`Loading`,async()=>u.send(l,{account_id:d,...c}));a(f,{successLabel:`Loaded`})})},f={command:`resources`,describe:`Operations for resources`,builder:e=>e.command(d).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},p={command:`tags`,describe:`tags`,builder:e=>e.command(f).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{p as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{a as e,n as t,r as n,t as r}from"./lifecycle-oud60haK.mjs";import{a as i,c as a,d as o,f as s,i as c,l,m as u,n as d,o as f,p,r as m,s as h,t as g}from"./run-
|
|
2
|
+
import{a as e,n as t,r as n,t as r}from"./lifecycle-oud60haK.mjs";import{a as i,c as a,d as o,f as s,i as c,l,m as u,n as d,o as f,p,r as m,s as h,t as g}from"./run-BvDCuZ8q.mjs";import{t as _}from"./telemetry-Ct_2AaO4.mjs";export{i as TELEMETRY_ENV_VAR,f as TELEMETRY_POLICY_DATE,_ as UNKNOWN_COMMAND_EVENT,r as allTelemetryDispatchesSettled,t as beginTelemetryRun,h as getBannerLastShown,a as getDeviceId,c as getTelemetryDispatcher,l as getTelemetryFromEnv,o as isFirstUsage,n as markCommandReported,s as resolveTelemetry,g as runWithTelemetry,m as sanitizeArgs,p as setBannerLastShown,u as setTelemetryPermission,e as wasCommandReported,d as withTelemetry};
|