cf 1.0.0-beta.10 → 1.0.0-beta.11
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/{abuse-reports-BhSTEz7h.mjs → abuse-reports-DX5xgeka.mjs} +10 -10
- package/dist/{access-D4DN4XZF.mjs → access-DuHs0Mii.mjs} +1 -1
- package/dist/{account-tags-BWEIZLID.mjs → account-tags-CiKwgOWd.mjs} +5 -5
- package/dist/{accounts-ZQvIqGJz.mjs → accounts-DfXSHrkF.mjs} +62 -62
- package/dist/{acm-OQqE8FMc.mjs → acm-BgSr3Ig4.mjs} +7 -7
- package/dist/{addressing-DCFm17JQ.mjs → addressing-B70NFnrX.mjs} +49 -49
- package/dist/{agent-memory-BtfPt2me.mjs → agent-memory-DJRquHeq.mjs} +15 -15
- package/dist/{ai-B0_sZbmy.mjs → ai-CP2oIS-I.mjs} +16 -16
- package/dist/{ai-audit-DaubuhYF.mjs → ai-audit-Bn_BfMFS.mjs} +3 -3
- package/dist/{ai-gateway-CJ-1Dzzr.mjs → ai-gateway-CrrEtzUP.mjs} +44 -44
- package/dist/{ai-search-Dywa1kqX.mjs → ai-search-C4YWVTCa.mjs} +42 -42
- package/dist/{ai-security-2wxMPqKS.mjs → ai-security-Bt_fG65f.mjs} +4 -4
- package/dist/{alerting-yad9DYRv.mjs → alerting-CRr88fVR.mjs} +26 -26
- package/dist/{analytics-DKNw2fVc.mjs → analytics-XqS9OP5B.mjs} +10 -10
- package/dist/{analytics_engine-BA3kF46s.mjs → analytics_engine-CzmYem4f.mjs} +2 -2
- package/dist/{api-security-CSuYMpMO.mjs → api-security-gB1FHrHq.mjs} +57 -57
- package/dist/{argo-DMfNmOV4.mjs → argo-wFCAsYx7.mjs} +5 -5
- package/dist/{artifacts-Cb3hwClm.mjs → artifacts-qFjlNRqb.mjs} +20 -20
- package/dist/{audit-logs-BrjNuiLx.mjs → audit-logs-CpPUjMUP.mjs} +2 -2
- package/dist/auth-7Fk7PVIC.mjs +2 -0
- package/dist/auth-BmJ946bE.mjs +2 -0
- package/dist/auth-Br-t8vL_.mjs +2 -0
- package/dist/auth-token-DeG33BMQ.mjs +8 -0
- package/dist/{autoconfig-DPUztTL2.mjs → autoconfig-D-copdZG.mjs} +2 -2
- package/dist/{banner-ClclgnBn.mjs → banner-Xk4xBN8U.mjs} +1 -1
- package/dist/{basin-catalog-BLsQhJP4.mjs → basin-catalog-CshcpsAH.mjs} +17 -17
- package/dist/{billing-CRwD7oQS.mjs → billing-B-xNxxiP.mjs} +11 -11
- package/dist/{bot-management-CyW8F8Wm.mjs → bot-management-DhafeA2J.mjs} +4 -4
- package/dist/{botnet-feed-BBKsxf3Y.mjs → botnet-feed-D6uCLE_D.mjs} +5 -5
- package/dist/{brand-protection-DSeD8LXl.mjs → brand-protection-c3WiHbYn.mjs} +13 -13
- package/dist/{browser-run-BAcUTwB4.mjs → browser-run-D9_cwaSD.mjs} +24 -24
- package/dist/build-9ihDp-Gy.mjs +2 -0
- package/dist/{build-B5UYMEQH.mjs → build-DrG6TqMw.mjs} +1 -1
- package/dist/{builds-W1HEG7Bv.mjs → builds-Dl8if-2k.mjs} +32 -32
- package/dist/{cache-B7E_PXUp.mjs → cache-CIZokBjd.mjs} +24 -24
- package/dist/{certificate-authorities-D_uAJH9B.mjs → certificate-authorities-NUQzCDK8.mjs} +3 -3
- package/dist/{cf-Bh_fTFIj.mjs → cf-DfQfIu3q.mjs} +1 -1
- package/dist/{chunk-FT2NMTJB-1VFYM1Ro.mjs → chunk-FT2NMTJB-BFqlGcem.mjs} +1 -1
- package/dist/{chunk-KKDV4JPS-DdzLLtnl.mjs → chunk-KKDV4JPS-B_t8sDTz.mjs} +1 -1
- package/dist/{cli-BeXSqJAj.mjs → cli-aChy8ou_.mjs} +1 -1
- package/dist/{client-certificates-DqFcK_s1.mjs → client-certificates-qgLpBn8t.mjs} +6 -6
- package/dist/{client-side-security-DJXZ1XAu.mjs → client-side-security-DZO6Xw14.mjs} +14 -14
- package/dist/{cloud-connector-Czg1GdQi.mjs → cloud-connector-C7vGDCzX.mjs} +3 -3
- package/dist/{cloudflared-DGuau-lC.mjs → cloudflared-CEfZhSQH.mjs} +1 -1
- package/dist/{cloudforce-one-B1IhIZcp.mjs → cloudforce-one-CE7y5UkF.mjs} +237 -237
- package/dist/{command-xU78ACNA.mjs → command-07vhr56i.mjs} +1 -1
- package/dist/{command-DxSJy_ym.mjs → command-B6TpINoN.mjs} +1 -1
- package/dist/{command-BCag-xjk.mjs → command-BWC9CbE7.mjs} +1 -1
- package/dist/{command-B6DqnUwt.mjs → command-BsmF3J_l.mjs} +1 -1
- package/dist/command-C2pNxAeL.mjs +2 -0
- package/dist/{command-TCklVvOY.mjs → command-C65Ed0o9.mjs} +1 -1
- package/dist/{command-DUafPVUr.mjs → command-Cdx___59.mjs} +1 -1
- package/dist/{command-BOLlvEan.mjs → command-CrtDkZNs.mjs} +1 -1
- package/dist/{command-C__qB2mo.mjs → command-D0MKPucK.mjs} +1 -1
- package/dist/{command-DfffeX-k.mjs → command-DHdWKtqx.mjs} +1 -1
- package/dist/{command-DZookrfw.mjs → command-Ds5OVat3.mjs} +1 -1
- package/dist/{command-BrHTpaji.mjs → command-Dv6YavZa.mjs} +1 -1
- package/dist/{command-DzHL5LKI.mjs → command-dAYWrB5y.mjs} +1 -1
- package/dist/{command-K1-DZFJS.mjs → command-eM48o0J6.mjs} +1 -1
- package/dist/{command-6YTtWltE.mjs → command-maDJWJgu.mjs} +1 -1
- package/dist/{completions-Cm9brGAI.mjs → completions-D0280hul.mjs} +1 -1
- package/dist/{connector-interrupts-D93KTMkw.mjs → connector-interrupts-CVjFhU-C.mjs} +3 -3
- package/dist/{connector-telemetry-events-D6CmKR14.mjs → connector-telemetry-events-Bu3LKP6T.mjs} +3 -3
- package/dist/{connector-telemetry-snapshots-WO9IUk0e.mjs → connector-telemetry-snapshots-BbDTIc06.mjs} +3 -3
- package/dist/{connectors-DNT6GTW3.mjs → connectors-DGtx-rPI.mjs} +7 -7
- package/dist/{containers-Ce7IO-Ia.mjs → containers-CzNbBrYE.mjs} +2 -2
- package/dist/{containers-Btx7vCDP.mjs → containers-DEFrbNgO.mjs} +16 -16
- package/dist/{content-scan-C_ROsbTJ.mjs → content-scan-BCtWBCqd.mjs} +6 -6
- package/dist/{context-CEOHpZgd.mjs → context-CquYYyS3.mjs} +2 -2
- package/dist/{cps-BPQqyL2E.mjs → cps-C8BbnbuD.mjs} +1 -1
- package/dist/{csamScanner-D-oO5cxT.mjs → csamScanner-CsJ9H2fA.mjs} +3 -3
- package/dist/{ct-alerting-CnTRE1Fb.mjs → ct-alerting-CYsQZO2H.mjs} +3 -3
- package/dist/{custom-certificates-DvnFBZdJ.mjs → custom-certificates-CA8HqolM.mjs} +7 -7
- package/dist/{custom-csrs-BZ8TXbuQ.mjs → custom-csrs-D0P2vWJE.mjs} +5 -5
- package/dist/{custom-hostnames-CTqf-KlT.mjs → custom-hostnames-CzYMChbh.mjs} +12 -12
- package/dist/{custom-nameservers-B0CpnUVg.mjs → custom-nameservers-Cet3oF56.mjs} +5 -5
- package/dist/{custom-pages-DcoSGN56.mjs → custom-pages-DUkHIaTP.mjs} +10 -10
- package/dist/d1-B2duXfH2.mjs +41 -0
- package/dist/{dcv-delegation-yOtz90qE.mjs → dcv-delegation-BkdRVEAH.mjs} +2 -2
- package/dist/delegate.mjs +1 -1
- package/dist/{deploy-C4p6SzLH.mjs → deploy-BdWBEbLj.mjs} +1 -1
- package/dist/{deploy-input-DTjBGloL.mjs → deploy-input-LmLfj6kI.mjs} +1 -1
- package/dist/{dev-BML-bpNU.mjs → dev-BHkVwAea.mjs} +1 -1
- package/dist/{diagnostics-hOvnx5DT.mjs → diagnostics-9Wj5UWBL.mjs} +7 -7
- package/dist/{dialog-BlUXJKbA.mjs → dialog-Dpi-UVbz.mjs} +1 -1
- package/dist/discover-BYkHr5Ja.mjs +2 -0
- package/dist/{dist-DW47TUGh.mjs → dist-Cpb7_h4N.mjs} +1 -1
- package/dist/{dist-BuCJ_55d.mjs → dist-D1iG7guo.mjs} +1 -1
- package/dist/{dist-C3s9SXTd.mjs → dist-zep5OXGt.mjs} +1 -1
- package/dist/{dls-v6DyEWTd.mjs → dls-Caya7FZc.mjs} +8 -8
- package/dist/{dns-C9sUPsNt.mjs → dns-BLNa0GrP.mjs} +63 -63
- package/dist/{dns-firewall-EDiT-Zli.mjs → dns-firewall-ChCvC5rT.mjs} +8 -8
- package/dist/{dot-prop-IITUZ2XW-BilKo4kO.mjs → dot-prop-IITUZ2XW-BsZYdILY.mjs} +1 -1
- package/dist/dry-run-p9Q7nMZ5.mjs +2 -0
- package/dist/{durable-objects-C01phVwL.mjs → durable-objects-DuRbdp7N.mjs} +3 -3
- package/dist/{email-auth-BgvoEHJk.mjs → email-auth-C28s03aI.mjs} +3 -3
- package/dist/{email-routing-Bggn219w.mjs → email-routing-Ci-xjXIN.mjs} +24 -24
- package/dist/{email-security-_t7rzrzd.mjs → email-security-DPU6xvI9.mjs} +71 -71
- package/dist/{email-sending-_dKCs2VF.mjs → email-sending-kTVAlVKO.mjs} +23 -23
- package/dist/error-sanitization-BbEw--0B.mjs +2 -0
- package/dist/error-sanitization-p5rmb53x.mjs +2 -0
- package/dist/errors-cuuW88wR.mjs +3 -0
- package/dist/{fieldExtractors-Cm5QnkE0.mjs → fieldExtractors-ceaXu4zD.mjs} +4 -4
- package/dist/{firewall-CZEN8iA_.mjs → firewall-BND3qSY2.mjs} +18 -18
- package/dist/{flagship-B_SAI_ZL.mjs → flagship-DfxbNzgx.mjs} +15 -15
- package/dist/{fraud-9_9hobAh.mjs → fraud-DgyYv_CC.mjs} +3 -3
- package/dist/generate-9P8Q_RiO.mjs +2 -0
- package/dist/{generate-CLqGOlOx.mjs → generate-VxmGG8BF.mjs} +1 -1
- package/dist/{google-tag-gateway-O_N0vHRY.mjs → google-tag-gateway-v3p7murv.mjs} +3 -3
- package/dist/{healthchecks-Bt3Gw_JZ.mjs → healthchecks-CByb4qYA.mjs} +10 -10
- package/dist/{hostnames-DdOube3R.mjs → hostnames-3CqeMF5g.mjs} +6 -6
- package/dist/{hyperdrive-C14NAh9l.mjs → hyperdrive-CmyYTE-K.mjs} +9 -9
- package/dist/{iam-DUW7neMx.mjs → iam-CV_M681j.mjs} +24 -24
- package/dist/{images-B9dnr1z0.mjs → images-DaLPjskW.mjs} +38 -38
- package/dist/index.mjs +1 -1
- package/dist/{init-BGcAIvV7.mjs → init-CBKifk5L.mjs} +2 -2
- package/dist/{intel-BQpZMck3.mjs → intel-MpftjuPB.mjs} +37 -37
- package/dist/interactive-mJQ_IrGd.mjs +2 -0
- package/dist/{ips-PT_uQKAf.mjs → ips-WWvPwSBc.mjs} +1 -1
- package/dist/{k2-nPYti7Y0.mjs → k2-D0QYUFqT.mjs} +6 -6
- package/dist/{keyless-certificates-BHvas2q1.mjs → keyless-certificates-DqILy3t9.mjs} +6 -6
- package/dist/{keys-O5kAW9ox.mjs → keys-DhX4AcqF.mjs} +2 -2
- package/dist/{kv-BUP_ZLM_.mjs → kv-DLUfUL0_.mjs} +9 -9
- package/dist/{lazy-command-glNW3jzf.mjs → lazy-command--5YpWUVY.mjs} +1 -1
- package/dist/{leaked-credential-checks-De9hI1rl.mjs → leaked-credential-checks-C0U1oYM5.mjs} +8 -8
- package/dist/{load-balancers-Cs6bUHS1.mjs → load-balancers-BJKI9lm7.mjs} +39 -39
- package/dist/local-DkYQiSQQ.mjs +2 -0
- package/dist/{local-B5oRPTEN.mjs → local-rYpzEQb-.mjs} +1 -1
- package/dist/{local-runtime-CZnegFEM.mjs → local-runtime-DZTTIe6x.mjs} +1 -1
- package/dist/{login-C5nSIS-T.mjs → login-CnE2Ii_F.mjs} +1 -1
- package/dist/login-bnylLTit.mjs +5 -0
- package/dist/{logo-matches-BkQKdu4Z.mjs → logo-matches-DFZybI0C.mjs} +3 -3
- package/dist/{logos-C_sv-boo.mjs → logos-Da2YtqSN.mjs} +4 -4
- package/dist/{logpush-NUcyMKHi.mjs → logpush-Q7WIEHS1.mjs} +23 -23
- package/dist/{logs-BZT4PlqZ.mjs → logs-c3b3USyS.mjs} +12 -12
- package/dist/{magic-cloud-networking-DQnSdmgA.mjs → magic-cloud-networking-BoyDmFq3.mjs} +37 -37
- package/dist/{magic-network-monitoring-pHTU6aS8.mjs → magic-network-monitoring-BkUbpMUp.mjs} +18 -18
- package/dist/{magic-transit-5302bQNh.mjs → magic-transit-4-THD45G.mjs} +161 -161
- package/dist/{managed-defense-8OEfDzuO.mjs → managed-defense-CTMqSp6z.mjs} +9 -9
- package/dist/{managed-transforms-CCpUz4TY.mjs → managed-transforms-DcYAvqTe.mjs} +4 -4
- package/dist/{matches-BSiYXs99.mjs → matches-hnU16rSJ.mjs} +3 -3
- package/dist/{mcp-CCMiS75R.mjs → mcp-kZX4irfN.mjs} +15 -15
- package/dist/{mesh-DKBGTlCD.mjs → mesh-Dxzvvso6.mjs} +12 -12
- package/dist/{migrate-BJ9Go_wP.mjs → migrate-BNvUWrjy.mjs} +1 -1
- package/dist/{monetization-CFf_lb6x.mjs → monetization-Dsqj9DCA.mjs} +11 -11
- package/dist/{mtls-certificates-DsF3NFNs.mjs → mtls-certificates-BSbMwIna.mjs} +6 -6
- package/dist/{network-interconnects-YiRUBbjx.mjs → network-interconnects-osO_vAPu.mjs} +17 -17
- package/dist/{network-Bm0qYRqY.mjs → network-mEnXTEiG.mjs} +24 -24
- package/dist/{oauth-cNZUky3h.mjs → oauth-CeZ3d_dB.mjs} +2 -2
- package/dist/{oauth-clients-CP6alY0_.mjs → oauth-clients-CWPHi-Yn.mjs} +7 -7
- package/dist/{oauth-scopes-xl-pcWdg.mjs → oauth-scopes-CxpRD6d7.mjs} +1 -1
- package/dist/{oauth-DxGgIwFc.mjs → oauth-w0fWmrwU.mjs} +1 -1
- package/dist/{observability-Bp71PtlD.mjs → observability-BxL2RqWZ.mjs} +44 -44
- package/dist/{organization-Dbom1gTR.mjs → organization-DNieJ1xJ.mjs} +1 -1
- package/dist/{organizations-OUMVsuen.mjs → organizations-BIXPmTy5.mjs} +1 -1
- package/dist/{origin-ca-certificates-B3-T0-Nn.mjs → origin-ca-certificates-dVJvSIH8.mjs} +1 -1
- package/dist/{origin-post-quantum-encryption-CGB6AfPa.mjs → origin-post-quantum-encryption-CO6tDW1t.mjs} +3 -3
- package/dist/{origin-tls-client-auth-CgzzfAWr.mjs → origin-tls-client-auth-DeTY8aN2.mjs} +14 -14
- package/dist/output-ClYel9WX.mjs +2 -0
- package/dist/{page-rules-B9BQKU4_.mjs → page-rules-DA552Ra4.mjs} +7 -7
- package/dist/{pages-DZPdyuT4.mjs → pages-B0x7tidm.mjs} +27 -27
- package/dist/{pay-per-crawl-CnveMVDi.mjs → pay-per-crawl-DoTg9VP7.mjs} +32 -32
- package/dist/{pay-per-use-Bpxe8PHv.mjs → pay-per-use-yRO2QBfe.mjs} +3 -3
- package/dist/{pipelines-CHev3o5G.mjs → pipelines-CQxrm9ao.mjs} +20 -20
- package/dist/{precursor-C9PK9Bue.mjs → precursor-FiGYDRV9.mjs} +2 -2
- package/dist/previews-BthBa50j.mjs +4 -0
- package/dist/{progress-A61dRbXl.mjs → progress-TLUEIYE6.mjs} +1 -1
- package/dist/{prompt-CGUzvBgY.mjs → prompt-Ck_1PCHm.mjs} +1 -1
- package/dist/{queries-f-btyefs.mjs → queries-C0RRdol7.mjs} +4 -4
- package/dist/{queues-kLNdeb3q.mjs → queues-sLgvjsRP.mjs} +26 -26
- package/dist/{r2-D_awYx2p.mjs → r2-C2PllL6i.mjs} +63 -63
- package/dist/{radar-CU4T02Ag.mjs → radar-Bez6k9Dw.mjs} +1 -1
- package/dist/raw-fetch-DNxNCoeP.mjs +2 -0
- package/dist/{realtime-C0dvcBBM.mjs → realtime-D-HSXznX.mjs} +78 -78
- package/dist/{registrar-CHc-4vcf.mjs → registrar-DwHrG9QR.mjs} +9 -9
- package/dist/{registrar-sandbox-Dq8LV2AI.mjs → registrar-sandbox-jNukmzQP.mjs} +6 -6
- package/dist/{registry-Cg5lP8oo.mjs → registry-CsSLAAOE.mjs} +1 -1
- package/dist/{reporting-4u21g6Dk.mjs → reporting-DolhAb10.mjs} +7 -7
- package/dist/{request-headers-D31kdxrQ.mjs → request-headers-Lhj314mk.mjs} +1 -1
- package/dist/{request-tracers-CupJ_83j.mjs → request-tracers-w72hKc33.mjs} +2 -2
- package/dist/resolve-Djf2xgBx.mjs +2 -0
- package/dist/{resource-sharing-CO-Lh-u7.mjs → resource-sharing-DTrSkqI4.mjs} +18 -18
- package/dist/{resource-tagging-D0R5SzR6.mjs → resource-tagging-aURR4fIJ.mjs} +2 -2
- package/dist/{rules-BsmKzB9H.mjs → rules-C8a7cV-W.mjs} +8 -8
- package/dist/{rulesets-HOOnxHZZ.mjs → rulesets-RJ6yBefy.mjs} +17 -17
- package/dist/{rum-wcLEvVJl.mjs → rum-Bk1dPW4p.mjs} +14 -14
- package/dist/run-BJOAPmsz.mjs +2 -0
- package/dist/{run-CIJTelJL.mjs → run-iFM5TxtQ.mjs} +1 -1
- package/dist/{schema-flags-D8vL2oiF.mjs → schema-flags-PagOq-G2.mjs} +1 -1
- package/dist/{schema-GdBsV4P7.mjs → schema-v7mOxMdx.mjs} +1 -1
- package/dist/{scim-BkdJmAS8.mjs → scim-C0FmjkkV.mjs} +10 -10
- package/dist/{secrets-store-CHs0oYA0.mjs → secrets-store-cG_5RMzK.mjs} +11 -11
- package/dist/{security-insights-vsl-4xFa.mjs → security-insights-DVAqroY5.mjs} +20 -20
- package/dist/{security-txt-Fnl3LdSn.mjs → security-txt-rfrrdiZV.mjs} +4 -4
- package/dist/{session-CZTuHcbm.mjs → session-B6mFkaVZ.mjs} +1 -1
- package/dist/shared-BqsWoApw.mjs +2 -0
- package/dist/{smart-shield-DB0E7cZI.mjs → smart-shield-_HA814Im.mjs} +11 -11
- package/dist/{snippets-CFaF_NyG.mjs → snippets-mRelEw0p.mjs} +10 -10
- package/dist/{spawn-B0Sl8lUu.mjs → spawn-BzPhcLJI.mjs} +1 -1
- package/dist/{spectrum-DtG0jYjE.mjs → spectrum-BwtOiaDw.mjs} +11 -11
- package/dist/{speed-B-RiNHGK.mjs → speed-DmqsZtiJ.mjs} +11 -11
- package/dist/{src-CM3XaB4p.mjs → src--KDGqL5N.mjs} +5 -5
- package/dist/{ssl-DBVpCZAM.mjs → ssl-DCvfveJB.mjs} +16 -16
- package/dist/{startup-profile-CR7GMuLx.mjs → startup-profile-BCe9k9sR.mjs} +1 -1
- package/dist/startup-profile-WrwRyMwH.mjs +2 -0
- package/dist/{state-BaGRaYow.mjs → state-BPwdiNO_.mjs} +1 -1
- package/dist/state-a1tTOGjm.mjs +2 -0
- package/dist/{stream-cAdBvpS1.mjs → stream-aroClJeD.mjs} +56 -56
- package/dist/{submit-Bkd7l2rK.mjs → submit-BBKhoKT8.mjs} +2 -2
- package/dist/{tags--eph7JbN.mjs → tags-Djw0e-4j.mjs} +2 -2
- package/dist/telemetry-DoBQOGRk.mjs +2 -0
- package/dist/{telemetry-51etasAu.mjs → telemetry-DrFNujdx.mjs} +1 -1
- package/dist/{tenant-custom-nameservers-B5IIIwbz.mjs → tenant-custom-nameservers-XCbXryBZ.mjs} +1 -1
- package/dist/{tenant-Bj-He2xO.mjs → tenant-tc1wb_ym.mjs} +1 -1
- package/dist/{tools-BJZ0DDlL.mjs → tools-CB4NleeJ.mjs} +1 -1
- package/dist/{tunnels-CgtuRpcD.mjs → tunnels-C2FTswb6.mjs} +13 -13
- package/dist/{turnstile-Bmcnrzw7.mjs → turnstile-BV4Mdd-j.mjs} +6 -6
- package/dist/{ui-BQxRjahW.mjs → ui-D1hhIDIs.mjs} +1 -1
- package/dist/update-check-CFt6cMOi.mjs +2 -0
- package/dist/{update-check-DC0qP_8z.mjs → update-check-Dtj9fzNe.mjs} +1 -1
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-info-DhVehaT8.mjs → url-info-CeegsDK7.mjs} +2 -2
- package/dist/{url-normalization-BpGDUUQc.mjs → url-normalization-Dbypc9wz.mjs} +4 -4
- package/dist/{url-scanner-DiLdqsQk.mjs → url-scanner-BFXMrpJF.mjs} +8 -8
- package/dist/{user-B6P5_OjP.mjs → user-3uwLMH78.mjs} +1 -1
- package/dist/{values-Cxx4Lxrd.mjs → values-BTncDc3U.mjs} +2 -2
- package/dist/{vectorize-YyxVpql-.mjs → vectorize-CtMAtx8r.mjs} +17 -17
- package/dist/version-oN1bmOgM.mjs +2 -0
- package/dist/{waiting-rooms-BdahlCdD.mjs → waiting-rooms-1xDvjF13.mjs} +25 -25
- package/dist/{web-assets-yaKxN4w_.mjs → web-assets-BfEprX1S.mjs} +29 -29
- package/dist/{web3-Bu9c_QAt.mjs → web3-DNbp5sZw.mjs} +13 -13
- package/dist/{workers-5GgoGA2e.mjs → workers-DK_JgS4Y.mjs} +18 -18
- package/dist/{workers-builds-h-1FJjE1.mjs → workers-builds-CdhwmmsQ.mjs} +7 -7
- package/dist/{workers-for-platforms-CV9iRrp9.mjs → workers-for-platforms-CP6IqxrK.mjs} +23 -23
- package/dist/{workers-vpc-C1oUHHqk.mjs → workers-vpc-LVfayM2-.mjs} +6 -6
- package/dist/{workflows-dtMlkj1-.mjs → workflows-CA5K8FFb.mjs} +23 -23
- package/dist/{wrangler-migration-CJEb9hY3.mjs → wrangler-migration-B0mKHqGd.mjs} +1 -1
- package/dist/{zaraz-838AbMEX.mjs → zaraz-BY60ZUQ4.mjs} +11 -11
- package/dist/{zero-trust-CYt-eELJ.mjs → zero-trust-CQNohO7_.mjs} +416 -416
- package/dist/{zone-uJwRLSnn.mjs → zone-BVDW2UGd.mjs} +2 -2
- package/dist/{zones-Dpofsnth.mjs → zones-CcZL0YQp.mjs} +44 -44
- package/package.json +9 -4
- package/dist/auth-BBlAI8HG.mjs +0 -2
- package/dist/auth-BIr56Mbx.mjs +0 -8
- package/dist/build-DLZ9gBNA.mjs +0 -2
- package/dist/command-CAtsHc1V.mjs +0 -2
- package/dist/d1-m7UfzBzl.mjs +0 -41
- package/dist/discover-DwczTkRX.mjs +0 -2
- package/dist/dry-run-Bq0JAsbX.mjs +0 -2
- package/dist/error-sanitization-CJ5OLJrh.mjs +0 -2
- package/dist/error-sanitization-hmi1CqE5.mjs +0 -2
- package/dist/generate-BPqoDbck.mjs +0 -2
- package/dist/interactive-SgAjen2z.mjs +0 -2
- package/dist/local-Bj-l0TP6.mjs +0 -2
- package/dist/login-CUup7w0e.mjs +0 -5
- package/dist/output-CvQFJkvi.mjs +0 -2
- package/dist/previews-BIMI1dTz.mjs +0 -4
- package/dist/raw-fetch-CvkmFO23.mjs +0 -2
- package/dist/resolve-PZuJ878-.mjs +0 -2
- package/dist/run-quhbAvQi.mjs +0 -2
- package/dist/sdk-BCzcRJCi.mjs +0 -3
- package/dist/shared-BS30oCf8.mjs +0 -2
- package/dist/startup-profile-CLmojOrn.mjs +0 -2
- package/dist/state-CpXhcMdX.mjs +0 -2
- package/dist/telemetry-Q3_UmwHj.mjs +0 -2
- package/dist/update-check-BqSpgzHk.mjs +0 -2
- package/dist/version-C0pInAZ9.mjs +0 -2
- /package/dist/{Page-CjJht2qT.mjs → Page-DAgOEX17.mjs} +0 -0
- /package/dist/{alerts-DY_7Nknx.mjs → alerts-D3iKtzoN.mjs} +0 -0
- /package/dist/{autorag-K396-M2S.mjs → autorag-pvRfDwne.mjs} +0 -0
- /package/dist/{body-parser-hh2avzkz.mjs → body-parser-NjzJZMOV.mjs} +0 -0
- /package/dist/{brands-DeLbFxSt.mjs → brands-DP5Ndir1.mjs} +0 -0
- /package/dist/{browser-extension-C1zmKFDG.mjs → browser-extension-Dee2Y1qn.mjs} +0 -0
- /package/dist/{chunk-WMOON6TZ-D_ToS88f.mjs → chunk-WMOON6TZ-B8xCqjB1.mjs} +0 -0
- /package/dist/{clear-CRfI7WS7.mjs → clear-qLKPlJqb.mjs} +0 -0
- /package/dist/{cli-types-DoVT5q_M.mjs → cli-types-_Kmwfpnp.mjs} +0 -0
- /package/dist/{connector-telemetry-events-latest-D8p_dR8s.mjs → connector-telemetry-events-latest-_aCmWeZx.mjs} +0 -0
- /package/dist/{connector-telemetry-snapshots-latest-COFmzmlk.mjs → connector-telemetry-snapshots-latest-CffEplpV.mjs} +0 -0
- /package/dist/{delegate-B6LetRpZ.mjs → delegate-CCGgla7X.mjs} +0 -0
- /package/dist/{discover-C5aiI6u0.mjs → discover-t6E9lpf3.mjs} +0 -0
- /package/dist/{domain-info-aiwP60Fo.mjs → domain-info-BQh9XapD.mjs} +0 -0
- /package/dist/{gt-DmcMNPX6.mjs → gt-KlYHH-UC.mjs} +0 -0
- /package/dist/{health-Bz33n-_F.mjs → health--10IShMi.mjs} +0 -0
- /package/dist/{input-validation-Dk52b0me.mjs → input-validation-0CeePPHp.mjs} +0 -0
- /package/dist/{interactive-C-o16XQs.mjs → interactive-D80kbTap.mjs} +0 -0
- /package/dist/{internal-BHrJbbdA.mjs → internal-BUs583vv.mjs} +0 -0
- /package/dist/{lifecycle-C7tAC1Mn.mjs → lifecycle-Cyc3fmyN.mjs} +0 -0
- /package/dist/{live-MeJQXIei.mjs → live-VCSxA0N9.mjs} +0 -0
- /package/dist/{open-PCXX3ZDZ-BKRik1gi.mjs → open-PCXX3ZDZ-C7gpxSsl.mjs} +0 -0
- /package/dist/{project-settings-DO6njFg_.mjs → project-settings-Bf6rReo1.mjs} +0 -0
- /package/dist/{r2-data-catalog-2jQrdAdo.mjs → r2-data-catalog-Bg7zq1IB.mjs} +0 -0
- /package/dist/{rate-limit-analytics-CU55zqCU.mjs → rate-limit-analytics-D3q0mGv2.mjs} +0 -0
- /package/dist/{rate-limits-CZ-qHDPK.mjs → rate-limits-BIxlBuMn.mjs} +0 -0
- /package/dist/{ready-BOpbZ1pN.mjs → ready-CAgelFmC.mjs} +0 -0
- /package/dist/{recent-submissions-KDqD2HyS.mjs → recent-submissions-B3TOjNmk.mjs} +0 -0
- /package/dist/{refute-DkF4XIMw.mjs → refute-BZNkFpBB.mjs} +0 -0
- /package/dist/{resolve-BCTrtcx7.mjs → resolve-CGKqk7q8.mjs} +0 -0
- /package/dist/{scan-logo-DQkf6glG.mjs → scan-logo-StecHiaf.mjs} +0 -0
- /package/dist/{scan-page-CMOJ_E0n.mjs → scan-page-B4adr-vD.mjs} +0 -0
- /package/dist/{search-Bre1Zwn3.mjs → search-Devngw4M.mjs} +0 -0
- /package/dist/{signed-url-24ZbX4yV.mjs → signed-url-ChR5eXXd.mjs} +0 -0
- /package/dist/{submission-info-BmkbZVqM.mjs → submission-info-BGb81HZN.mjs} +0 -0
- /package/dist/{total-queries-j8OAF_cE.mjs → total-queries-_wa6KxEl.mjs} +0 -0
- /package/dist/{tracked-domains-fe3EWYmF.mjs → tracked-domains-BesKGqfI.mjs} +0 -0
- /package/dist/{verify-CKgZYvln.mjs → verify-CYM5GlPu.mjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{i as e,n as t}from"./source-38bULAR8.mjs";import{n,t as r}from"./ansi-styles-eKEZXVwN.mjs";import{t as i}from"./lazy-command
|
|
2
|
+
import{i as e,n as t}from"./source-38bULAR8.mjs";import{n,t as r}from"./ansi-styles-eKEZXVwN.mjs";import{t as i}from"./lazy-command--5YpWUVY.mjs";import{n as a}from"./metadata-C33s4rc-.mjs";import{r as o}from"./theme-BIWQFmZ0.mjs";import{t as s}from"./agent-context-GRiQ4zRU.mjs";import{t as c}from"./args-CXgkQKK7.mjs";import{t as l}from"./cli-exit-Dqoo6Jgb.mjs";import{n as u,t as d}from"./dotenv-CcQjGlV0.mjs";import{n as f}from"./errors-cuuW88wR.mjs";import{at as p}from"./dist-D1iG7guo.mjs";import{n as m}from"./version-oN1bmOgM.mjs";import{n as h,t as g}from"./banner-Xk4xBN8U.mjs";import{n as ee,t as _}from"./session-B6mFkaVZ.mjs";import{t as v}from"./ui-D1hhIDIs.mjs";import{i as y}from"./local-rYpzEQb-.mjs";import{a as te}from"./project-settings-Bf6rReo1.mjs";import{a as ne,n as re,t as b}from"./lifecycle-Cyc3fmyN.mjs";import{createRequire as x}from"node:module";import{setTimeout as S}from"node:timers/promises";import{notStrictEqual as ie,strictEqual as C}from"assert";import{basename as ae,dirname as oe,extname as se,join as ce,normalize as le,relative as ue,resolve as w}from"path";import{readFileSync as de,readdirSync as fe,statSync as pe,writeFile as T}from"fs";import{format as me,inspect as he}from"util";import{fileURLToPath as ge}from"url";import{readFileSync as _e,readdirSync as ve}from"node:fs";const ye={right:Ce,center:we};var be=class{constructor(e){this.width=e.width,this.wrap=e.wrap??!0,this.rows=[]}span(...e){let t=this.div(...e);t.span=!0}resetOutput(){this.rows=[]}div(...e){if(e.length===0&&this.div(``),this.wrap&&this.shouldApplyLayoutDSL(...e)&&typeof e[0]==`string`)return this.applyLayoutDSL(e[0]);let t=e.map(e=>typeof e==`string`?this.colFromString(e):e);return this.rows.push(t),t}shouldApplyLayoutDSL(...e){return e.length===1&&typeof e[0]==`string`&&/[\t\n]/.test(e[0])}applyLayoutDSL(e){let t=e.split(`
|
|
3
3
|
`).map(e=>e.split(` `)),n=0;return t.forEach(e=>{e.length>1&&D.stringWidth(e[0])>n&&(n=Math.min(Math.floor(this.width*.5),D.stringWidth(e[0])))}),t.forEach(e=>{this.div(...e.map((t,r)=>({text:t.trim(),padding:this.measurePadding(t),width:r===0&&e.length>1?n:void 0})))}),this.rows[this.rows.length-1]}colFromString(e){return{text:e,padding:this.measurePadding(e)}}measurePadding(e){let t=D.stripAnsi(e);return[0,t.match(/\s*$/)[0].length,0,t.match(/^\s*/)[0].length]}toString(){let e=[];return this.rows.forEach(t=>{this.rowToString(t,e)}),e.filter(e=>!e.hidden).map(e=>e.text).join(`
|
|
4
4
|
`)}rowToString(e,t){return this.rasterize(e).forEach((n,r)=>{let i=``;n.forEach((n,a)=>{let{width:o}=e[a],s=this.negatePadding(e[a]),c=n;if(s>D.stringWidth(n)&&(c+=` `.repeat(s-D.stringWidth(n))),e[a].align&&e[a].align!==`left`&&this.wrap){let t=ye[e[a].align];c=t(c,s),D.stringWidth(c)<s&&(c+=` `.repeat((o||0)-D.stringWidth(c)-1))}let l=e[a].padding||[0,0,0,0];l[3]&&(i+=` `.repeat(l[3])),i+=xe(e[a],c,`| `),i+=c,i+=xe(e[a],c,` |`),l[1]&&(i+=` `.repeat(l[1])),r===0&&t.length>0&&(i=this.renderInline(i,t[t.length-1]))}),t.push({text:i.replace(/ +$/,``),span:e.span})}),t}renderInline(e,t){let n=e.match(/^ */),r=n?n[0].length:0,i=t.text,a=D.stringWidth(i.trimRight());return t.span?this.wrap?r<a?e:(t.hidden=!0,i.trimRight()+` `.repeat(r-a)+e.trimLeft()):(t.hidden=!0,i+e):e}rasterize(e){let t=[],n=this.columnWidths(e),r;return e.forEach((e,i)=>{e.width=n[i],r=this.wrap?D.wrap(e.text,this.negatePadding(e),{hard:!0}).split(`
|
|
5
5
|
`):e.text.split(`
|
|
@@ -95,7 +95,7 @@ complete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name
|
|
|
95
95
|
`)}`:``;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=>{!cn.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):!1},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=>{cn.indexOf(e)===-1&&Object.prototype.hasOwnProperty.call(i.choices,e)&&[].concat(n[e]).forEach(t=>{i.choices[e].indexOf(t)===-1&&t!==void 0&&(a[e]=(a[e]||[]).concat(t))})});let o=Object.keys(a);if(!o.length)return;let s=r(`Invalid values:`);o.forEach(e=>{s+=`\n ${r(`Argument: %s, Given: %s, Choices: %s`,e,t.stringifiedValues(a[e]),t.stringifiedValues(i.choices[e]))}`}),t.fail(s)};let o={};a.implies=function(t,r){P(`<string|object> [array|number|string]`,[t,r],arguments.length),typeof t==`object`?Object.keys(t).forEach(e=>{a.implies(e,t[e])}):(e.global(t),o[t]||(o[t]=[]),Array.isArray(r)?r.forEach(e=>a.implies(t,e)):(j(r,void 0,n),o[t].push(r)))},a.getImplied=function(){return o};function s(e,t){let n=Number(t);return t=isNaN(n)?t:n,typeof t==`number`?t=e._.length>=t:t.match(/^--no-.+/)?(t=t.match(/^--no-(.+)/)[1],t=!Object.prototype.hasOwnProperty.call(e,t)):t=Object.prototype.hasOwnProperty.call(e,t),t}a.implications=function(e){let n=[];if(Object.keys(o).forEach(t=>{let r=t;(o[t]||[]).forEach(t=>{let i=r,a=t;i=s(e,i),t=s(e,t),i&&!t&&n.push(` ${r} -> ${a}`)})}),n.length){let e=`${r(`Implications failed:`)}\n`;n.forEach(t=>{e+=t}),t.fail(e)}};let c={};a.conflicts=function(t,n){P(`<string|object> [array|string]`,[t,n],arguments.length),typeof t==`object`?Object.keys(t).forEach(e=>{a.conflicts(e,t[e])}):(e.global(t),c[t]||(c[t]=[]),Array.isArray(n)?n.forEach(e=>a.conflicts(t,e)):c[t].push(n))},a.getConflicting=()=>c,a.conflicting=function(i){Object.keys(i).forEach(e=>{c[e]&&c[e].forEach(n=>{n&&i[e]!==void 0&&i[n]!==void 0&&t.fail(r(`Arguments %s and %s are mutually exclusive`,e,n))})}),e.getInternalMethods().getParserConfiguration()[`strip-dashed`]&&Object.keys(c).forEach(e=>{c[e].forEach(a=>{a&&i[n.Parser.camelCase(e)]!==void 0&&i[n.Parser.camelCase(a)]!==void 0&&t.fail(r(`Arguments %s and %s are mutually exclusive`,e,a))})})},a.recommendCommands=function(e,n){n=n.sort((e,t)=>t.length-e.length);let i=null,a=1/0;for(let t=0,r;(r=n[t])!==void 0;t++){let t=sn(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=Jt(o,t=>!e[t]),c=Jt(c,t=>!e[t]),a};let l=[];return a.freeze=function(){l.push({implied:o,conflicting:c})},a.unfreeze=function(){let e=l.pop();j(e,void 0,n),{implied:o,conflicting:c}=e},a}let un=[],dn;function fn(e,t,n,r){dn=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=mn(t,e.extends);else try{o=import.meta.resolve(e.extends)}catch{return e}pn(o),un.push(o),i=a?JSON.parse(dn.readFileSync(o,`utf8`)):r.require(e.extends),delete e.extends,i=fn(i,dn.path.dirname(o),n,dn)}return un=[],n?hn(i,e):Object.assign({},i,e)}function pn(e){if(un.indexOf(e)>-1)throw new N(`Circular extended configurations: '${e}'.`)}function mn(e,t){return dn.path.resolve(e,t)}function hn(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))r(t[i])&&r(n[i])?n[i]=hn(e[i],t[i]):n[i]=t[i];return n}var F=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},I=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},L,gn,_n,R,z,vn,B,yn,bn,V,xn,H,U,W,G,Sn,Cn,K,q,wn,Tn,J,En,Dn,On,Y,kn,X,An,jn,Mn,Z,Nn,Q,$;function Pn(e){return(t=[],n=e.process.cwd(),r)=>{let i=new _r(t,n,r,e);return Object.defineProperty(i,`argv`,{get:()=>i.parse(),enumerable:!0}),i.help(),i.version(),i}}const Fn=Symbol(`copyDoubleDash`),In=Symbol(`copyDoubleDash`),Ln=Symbol(`deleteFromParserHintObject`),Rn=Symbol(`emitWarning`),zn=Symbol(`freeze`),Bn=Symbol(`getDollarZero`),Vn=Symbol(`getParserConfiguration`),Hn=Symbol(`getUsageConfiguration`),Un=Symbol(`guessLocale`),Wn=Symbol(`guessVersion`),Gn=Symbol(`parsePositionalNumbers`),Kn=Symbol(`pkgUp`),qn=Symbol(`populateParserHintArray`),Jn=Symbol(`populateParserHintSingleValueDictionary`),Yn=Symbol(`populateParserHintArrayDictionary`),Xn=Symbol(`populateParserHintDictionary`),Zn=Symbol(`sanitizeKey`),Qn=Symbol(`setKey`),$n=Symbol(`unfreeze`),er=Symbol(`validateAsync`),tr=Symbol(`getCommandInstance`),nr=Symbol(`getContext`),rr=Symbol(`getHasOutput`),ir=Symbol(`getLoggerInstance`),ar=Symbol(`getParseContext`),or=Symbol(`getUsageInstance`),sr=Symbol(`getValidationInstance`),cr=Symbol(`hasParseCallback`),lr=Symbol(`isGlobalContext`),ur=Symbol(`postProcess`),dr=Symbol(`rebase`),fr=Symbol(`reset`),pr=Symbol(`runYargsParserAndExecuteCommands`),mr=Symbol(`runValidation`),hr=Symbol(`setHasOutput`),gr=Symbol(`kTrackManuallySetKeys`);var _r=class{constructor(e=[],t,n,r){this.customScriptName=!1,this.parsed=!1,L.set(this,void 0),gn.set(this,void 0),_n.set(this,{commands:[],fullCommands:[]}),R.set(this,null),z.set(this,null),vn.set(this,`show-hidden`),B.set(this,null),yn.set(this,!0),bn.set(this,{}),V.set(this,!0),xn.set(this,[]),H.set(this,void 0),U.set(this,{}),W.set(this,!1),G.set(this,null),Sn.set(this,!0),Cn.set(this,void 0),K.set(this,``),q.set(this,void 0),wn.set(this,void 0),Tn.set(this,{}),J.set(this,null),En.set(this,null),Dn.set(this,{}),On.set(this,{}),Y.set(this,void 0),kn.set(this,!1),X.set(this,void 0),An.set(this,!1),jn.set(this,!1),Mn.set(this,!1),Z.set(this,void 0),Nn.set(this,{}),Q.set(this,null),$.set(this,void 0),F(this,X,r,`f`),F(this,Y,e,`f`),F(this,gn,t,`f`),F(this,wn,n,`f`),F(this,H,new Ft(this),`f`),this.$0=this[Bn](),this[fr](),F(this,L,I(this,L,`f`),`f`),F(this,Z,I(this,Z,`f`),`f`),F(this,$,I(this,$,`f`),`f`),F(this,q,I(this,q,`f`),`f`),I(this,q,`f`).showHiddenOpt=I(this,vn,`f`),F(this,Cn,this[In](),`f`),I(this,X,`f`).y18n.setLocale(`en_US`)}addHelpOpt(e,t){return P(`[string|boolean] [string]`,[e,t],arguments.length),I(this,G,`f`)&&(this[Ln](I(this,G,`f`)),F(this,G,null,`f`)),e===!1&&t===void 0?this:(F(this,G,typeof e==`string`?e:`help`,`f`),this.boolean(I(this,G,`f`)),this.describe(I(this,G,`f`),t||I(this,Z,`f`).deferY18nLookup(`Show help`)),this)}help(e,t){return this.addHelpOpt(e,t)}addShowHiddenOpt(e,t){if(P(`[string|boolean] [string]`,[e,t],arguments.length),e===!1&&t===void 0)return this;let n=typeof e==`string`?e:I(this,vn,`f`);return this.boolean(n),this.describe(n,t||I(this,Z,`f`).deferY18nLookup(`Show hidden options`)),I(this,q,`f`).showHiddenOpt=n,this}showHidden(e,t){return this.addShowHiddenOpt(e,t)}alias(e,t){return P(`<object|string|array> [string|array]`,[e,t],arguments.length),this[Yn](this.alias.bind(this),`alias`,e,t),this}array(e){return P(`<array|string>`,[e],arguments.length),this[qn](`array`,e),this[gr](e),this}boolean(e){return P(`<array|string>`,[e],arguments.length),this[qn](`boolean`,e),this[gr](e),this}check(e,t){return P(`<function> [boolean]`,[e,t],arguments.length),this.middleware((t,n)=>Rt(()=>e(t,n.getOptions()),n=>(n?(typeof n==`string`||n instanceof Error)&&I(this,Z,`f`).fail(n.toString(),n):I(this,Z,`f`).fail(I(this,X,`f`).y18n.__(`Argument check failed: %s`,e.toString())),t),e=>(I(this,Z,`f`).fail(e.message?e.message:e.toString(),e),t)),!1,t),this}choices(e,t){return P(`<object|string|array> [string|array]`,[e,t],arguments.length),this[Yn](this.choices.bind(this),`choices`,e,t),this}coerce(e,t){if(P(`<object|string|array> [function]`,[e,t],arguments.length),Array.isArray(e)){if(!t)throw new N(`coerce callback must be provided`);for(let n of e)this.coerce(n,t);return this}else if(typeof e==`object`){for(let t of Object.keys(e))this.coerce(t,e[t]);return this}if(!t)throw new N(`coerce callback must be provided`);let n=e;return I(this,q,`f`).key[n]=!0,I(this,H,`f`).addCoerceMiddleware((e,r)=>{let i=[n,...r.getAliases()[n]??[]].filter(t=>Object.prototype.hasOwnProperty.call(e,t));return i.length===0?e:Rt(()=>t(e[i[0]]),t=>(i.forEach(n=>{e[n]=t}),e),e=>{throw new N(e.message)})},n),this}conflicts(e,t){return P(`<string|object> [string|array]`,[e,t],arguments.length),I(this,$,`f`).conflicts(e,t),this}config(e=`config`,t,n){return P(`[object|string] [string|function] [function]`,[e,t,n],arguments.length),typeof e==`object`&&!Array.isArray(e)?(e=fn(e,I(this,gn,`f`),this[Vn]()[`deep-merge-config`]||!1,I(this,X,`f`)),I(this,q,`f`).configObjects=(I(this,q,`f`).configObjects||[]).concat(e),this):(typeof t==`function`&&(n=t,t=void 0),this.describe(e,t||I(this,Z,`f`).deferY18nLookup(`Path to JSON config file`)),(Array.isArray(e)?e:[e]).forEach(e=>{I(this,q,`f`).config[e]=n||!0}),this)}completion(e,t,n){return P(`[string] [string|boolean|function] [function]`,[e,t,n],arguments.length),typeof t==`function`&&(n=t,t=void 0),F(this,z,e||I(this,z,`f`)||`completion`,`f`),!t&&t!==!1&&(t=`generate completion script`),this.command(I(this,z,`f`),t),n&&I(this,R,`f`).registerFunction(n),this}command(e,t,n,r,i,a){return P(`<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]`,[e,t,n,r,i,a],arguments.length),I(this,L,`f`).addHandler(e,t,n,r,i,a),this}commands(e,t,n,r,i,a){return this.command(e,t,n,r,i,a)}commandDir(e,t){P(`<string> [object]`,[e,t],arguments.length);let n=I(this,wn,`f`)||I(this,X,`f`).require;return I(this,L,`f`).addDirectory(e,n,I(this,X,`f`).getCallerFile(),t),this}count(e){return P(`<array|string>`,[e],arguments.length),this[qn](`count`,e),this[gr](e),this}default(e,t,n){return P(`<object|string|array> [*] [string]`,[e,t,n],arguments.length),n&&(kt(e,I(this,X,`f`)),I(this,q,`f`).defaultDescription[e]=n),typeof t==`function`&&(kt(e,I(this,X,`f`)),I(this,q,`f`).defaultDescription[e]||(I(this,q,`f`).defaultDescription[e]=I(this,Z,`f`).functionDescription(t)),t=t.call()),this[Jn](this.default.bind(this),`default`,e,t),this}defaults(e,t,n){return this.default(e,t,n)}demandCommand(e=1,t,n,r){return P(`[number] [number|string] [string|null|undefined] [string|null|undefined]`,[e,t,n,r],arguments.length),typeof t!=`number`&&(n=t,t=1/0),this.global(`_`,!1),I(this,q,`f`).demandedCommands._={min:e,max:t,minMsg:n,maxMsg:r},this}demand(e,t,n){return Array.isArray(t)?(t.forEach(e=>{j(n,!0,I(this,X,`f`)),this.demandOption(e,n)}),t=1/0):typeof t!=`number`&&(n=t,t=1/0),typeof e==`number`?(j(n,!0,I(this,X,`f`)),this.demandCommand(e,t,n,n)):Array.isArray(e)?e.forEach(e=>{j(n,!0,I(this,X,`f`)),this.demandOption(e,n)}):typeof n==`string`?this.demandOption(e,n):(n===!0||n===void 0)&&this.demandOption(e),this}demandOption(e,t){return P(`<object|string|array> [string]`,[e,t],arguments.length),this[Jn](this.demandOption.bind(this),`demandedOptions`,e,t),this}deprecateOption(e,t){return P(`<string> [string|boolean]`,[e,t],arguments.length),I(this,q,`f`).deprecatedOptions[e]=t,this}describe(e,t){return P(`<object|string|array> [string]`,[e,t],arguments.length),this[Qn](e,!0),I(this,Z,`f`).describe(e,t),this}detectLocale(e){return P(`<boolean>`,[e],arguments.length),F(this,yn,e,`f`),this}env(e){return P(`[string|boolean]`,[e],arguments.length),e===!1?delete I(this,q,`f`).envPrefix:I(this,q,`f`).envPrefix=e||``,this}epilogue(e){return P(`<string>`,[e],arguments.length),I(this,Z,`f`).epilog(e),this}epilog(e){return this.epilogue(e)}example(e,t){return P(`<string|array> [string]`,[e,t],arguments.length),Array.isArray(e)?e.forEach(e=>this.example(...e)):I(this,Z,`f`).example(e,t),this}exit(e,t){F(this,W,!0,`f`),F(this,B,t,`f`),I(this,V,`f`)&&I(this,X,`f`).process.exit(e)}exitProcess(e=!0){return P(`[boolean]`,[e],arguments.length),F(this,V,e,`f`),this}fail(e){if(P(`<function|boolean>`,[e],arguments.length),typeof e==`boolean`&&e!==!1)throw new N(`Invalid first argument. Expected function or boolean 'false'`);return I(this,Z,`f`).failFn(e),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(e,t){return P(`<array> [function]`,[e,t],arguments.length),t?I(this,R,`f`).getCompletion(e,t):new Promise((t,n)=>{I(this,R,`f`).getCompletion(e,(e,r)=>{e?n(e):t(r)})})}getDemandedOptions(){return P([],0),I(this,q,`f`).demandedOptions}getDemandedCommands(){return P([],0),I(this,q,`f`).demandedCommands}getDeprecatedOptions(){return P([],0),I(this,q,`f`).deprecatedOptions}getDetectLocale(){return I(this,yn,`f`)}getExitProcess(){return I(this,V,`f`)}getGroups(){return Object.assign({},I(this,U,`f`),I(this,On,`f`))}getHelp(){if(F(this,W,!0,`f`),!I(this,Z,`f`).hasCachedHelpMessage()){if(!this.parsed){let e=this[pr](I(this,Y,`f`),void 0,void 0,0,!0);if(M(e))return e.then(()=>I(this,Z,`f`).help())}let e=I(this,L,`f`).runDefaultBuilderOn(this);if(M(e))return e.then(()=>I(this,Z,`f`).help())}return Promise.resolve(I(this,Z,`f`).help())}getOptions(){return I(this,q,`f`)}getStrict(){return I(this,An,`f`)}getStrictCommands(){return I(this,jn,`f`)}getStrictOptions(){return I(this,Mn,`f`)}global(e,t){return P(`<string|array> [boolean]`,[e,t],arguments.length),e=[].concat(e),t===!1?e.forEach(e=>{I(this,q,`f`).local.includes(e)||I(this,q,`f`).local.push(e)}):I(this,q,`f`).local=I(this,q,`f`).local.filter(t=>e.indexOf(t)===-1),this}group(e,t){P(`<string|array> <string>`,[e,t],arguments.length);let n=I(this,On,`f`)[t]||I(this,U,`f`)[t];I(this,On,`f`)[t]&&delete I(this,On,`f`)[t];let r={};return I(this,U,`f`)[t]=(n||[]).concat(e).filter(e=>r[e]?!1:r[e]=!0),this}hide(e){return P(`<string>`,[e],arguments.length),I(this,q,`f`).hiddenOptions.push(e),this}implies(e,t){return P(`<string|object> [number|string|array]`,[e,t],arguments.length),I(this,$,`f`).implies(e,t),this}locale(e){return P(`[string]`,[e],arguments.length),e===void 0?(this[Un](),I(this,X,`f`).y18n.getLocale()):(F(this,yn,!1,`f`),I(this,X,`f`).y18n.setLocale(e),this)}middleware(e,t,n){return I(this,H,`f`).addMiddleware(e,!!t,n)}nargs(e,t){return P(`<string|object|array> [number]`,[e,t],arguments.length),this[Jn](this.nargs.bind(this),`narg`,e,t),this}normalize(e){return P(`<array|string>`,[e],arguments.length),this[qn](`normalize`,e),this}number(e){return P(`<array|string>`,[e],arguments.length),this[qn](`number`,e),this[gr](e),this}option(e,t){if(P(`<string|object> [object]`,[e,t],arguments.length),typeof e==`object`)Object.keys(e).forEach(t=>{this.options(t,e[t])});else{typeof t!=`object`&&(t={}),this[gr](e),I(this,Q,`f`)&&(e===`version`||t?.alias===`version`)&&this[Rn]([`"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(`
|
|
96
96
|
`),void 0,`versionWarning`),I(this,q,`f`).key[e]=!0,t.alias&&this.alias(e,t.alias);let n=t.deprecate||t.deprecated;n&&this.deprecateOption(e,n);let r=t.demand||t.required||t.require;r&&this.demand(e,r),t.demandOption&&this.demandOption(e,typeof t.demandOption==`string`?t.demandOption:void 0),t.conflicts&&this.conflicts(e,t.conflicts),`default`in t&&this.default(e,t.default),t.implies!==void 0&&this.implies(e,t.implies),t.nargs!==void 0&&this.nargs(e,t.nargs),t.config&&this.config(e,t.configParser),t.normalize&&this.normalize(e),t.choices&&this.choices(e,t.choices),t.coerce&&this.coerce(e,t.coerce),t.group&&this.group(e,t.group),(t.boolean||t.type===`boolean`)&&(this.boolean(e),t.alias&&this.boolean(t.alias)),(t.array||t.type===`array`)&&(this.array(e),t.alias&&this.array(t.alias)),(t.number||t.type===`number`)&&(this.number(e),t.alias&&this.number(t.alias)),(t.string||t.type===`string`)&&(this.string(e),t.alias&&this.string(t.alias)),(t.count||t.type===`count`)&&this.count(e),typeof t.global==`boolean`&&this.global(e,t.global),t.defaultDescription&&(I(this,q,`f`).defaultDescription[e]=t.defaultDescription),t.skipValidation&&this.skipValidation(e);let i=t.describe||t.description||t.desc,a=I(this,Z,`f`).getDescriptions();(!Object.prototype.hasOwnProperty.call(a,e)||typeof i==`string`)&&this.describe(e,i),t.hidden&&this.hide(e),t.requiresArg&&this.requiresArg(e)}return this}options(e,t){return this.option(e,t)}parse(e,t,n){P(`[string|array] [function|boolean|object] [function]`,[e,t,n],arguments.length),this[zn](),e===void 0&&(e=I(this,Y,`f`)),typeof t==`object`&&(F(this,En,t,`f`),t=n),typeof t==`function`&&(F(this,J,t,`f`),t=!1),t||F(this,Y,e,`f`),I(this,J,`f`)&&F(this,V,!1,`f`);let r=this[pr](e,!!t),i=this.parsed;return I(this,R,`f`).setParsed(this.parsed),M(r)?r.then(e=>(I(this,J,`f`)&&I(this,J,`f`).call(this,I(this,B,`f`),e,I(this,K,`f`)),e)).catch(e=>{throw I(this,J,`f`)&&I(this,J,`f`)(e,this.parsed.argv,I(this,K,`f`)),e}).finally(()=>{this[$n](),this.parsed=i}):(I(this,J,`f`)&&I(this,J,`f`).call(this,I(this,B,`f`),r,I(this,K,`f`)),this[$n](),this.parsed=i,r)}parseAsync(e,t,n){let r=this.parse(e,t,n);return M(r)?r:Promise.resolve(r)}parseSync(e,t,n){let r=this.parse(e,t,n);if(M(r))throw new N(`.parseSync() must not be used with asynchronous builders, handlers, or middleware`);return r}parserConfiguration(e){return P(`<object>`,[e],arguments.length),F(this,Tn,e,`f`),this}pkgConf(e,t){P(`<string> [string]`,[e,t],arguments.length);let n=null,r=this[Kn](t||I(this,gn,`f`));return r[e]&&typeof r[e]==`object`&&(n=fn(r[e],t||I(this,gn,`f`),this[Vn]()[`deep-merge-config`]||!1,I(this,X,`f`)),I(this,q,`f`).configObjects=(I(this,q,`f`).configObjects||[]).concat(n)),this}positional(e,t){P(`<string> <object>`,[e,t],arguments.length);let n=[`default`,`defaultDescription`,`implies`,`normalize`,`choices`,`conflicts`,`coerce`,`type`,`describe`,`desc`,`description`,`alias`];t=Jt(t,(e,t)=>e===`type`&&![`string`,`number`,`boolean`].includes(t)?!1:n.includes(e));let r=I(this,_n,`f`).fullCommands[I(this,_n,`f`).fullCommands.length-1],i=r?I(this,L,`f`).cmdToParseOptions(r):{array:[],alias:{},default:{},demand:{}};return At(i).forEach(n=>{let r=i[n];Array.isArray(r)?r.indexOf(e)!==-1&&(t[n]=!0):r[e]&&!(n in t)&&(t[n]=r[e])}),this.group(e,I(this,Z,`f`).getPositionalGroupName()),this.option(e,t)}recommendCommands(e=!0){return P(`[boolean]`,[e],arguments.length),F(this,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 P(`<array|string|object> [number]`,[e],arguments.length),typeof e==`string`&&I(this,q,`f`).narg[e]||this[Jn](this.requiresArg.bind(this),`narg`,e,NaN),this}showCompletionScript(e,t){return P(`[string] [string]`,[e,t],arguments.length),e||=this.$0,I(this,Cn,`f`).log(I(this,R,`f`).generateCompletionScript(e,t||I(this,z,`f`)||`completion`)),this}showHelp(e){if(P(`[string|function]`,[e],arguments.length),F(this,W,!0,`f`),!I(this,Z,`f`).hasCachedHelpMessage()){if(!this.parsed){let t=this[pr](I(this,Y,`f`),void 0,void 0,0,!0);if(M(t))return t.then(()=>{I(this,Z,`f`).showHelp(e)}),this}let t=I(this,L,`f`).runDefaultBuilderOn(this);if(M(t))return t.then(()=>{I(this,Z,`f`).showHelp(e)}),this}return I(this,Z,`f`).showHelp(e),this}scriptName(e){return this.customScriptName=!0,this.$0=e,this}showHelpOnFail(e,t){return P(`[boolean|string] [string]`,[e,t],arguments.length),I(this,Z,`f`).showHelpOnFail(e,t),this}showVersion(e){return P(`[string|function]`,[e],arguments.length),I(this,Z,`f`).showVersion(e),this}skipValidation(e){return P(`<array|string>`,[e],arguments.length),this[qn](`skipValidation`,e),this}strict(e){return P(`[boolean]`,[e],arguments.length),F(this,An,e!==!1,`f`),this}strictCommands(e){return P(`[boolean]`,[e],arguments.length),F(this,jn,e!==!1,`f`),this}strictOptions(e){return P(`[boolean]`,[e],arguments.length),F(this,Mn,e!==!1,`f`),this}string(e){return P(`<array|string>`,[e],arguments.length),this[qn](`string`,e),this[gr](e),this}terminalWidth(){return P([],0),I(this,X,`f`).process.stdColumns}updateLocale(e){return this.updateStrings(e)}updateStrings(e){return P(`<object>`,[e],arguments.length),F(this,yn,!1,`f`),I(this,X,`f`).y18n.updateLocale(e),this}usage(e,t,n,r){if(P(`<string|null|undefined> [string|boolean] [function|object] [function]`,[e,t,n,r],arguments.length),t!==void 0){if(j(e,null,I(this,X,`f`)),(e||``).match(/^\$0( |$)/))return this.command(e,t,n,r);throw new N(`.usage() description must start with $0 if being used as alias for .command()`)}else return I(this,Z,`f`).usage(e),this}usageConfiguration(e){return P(`<object>`,[e],arguments.length),F(this,Nn,e,`f`),this}version(e,t,n){let r=`version`;if(P(`[boolean|string] [string] [string]`,[e,t,n],arguments.length),I(this,Q,`f`)&&(this[Ln](I(this,Q,`f`)),I(this,Z,`f`).version(void 0),F(this,Q,null,`f`)),arguments.length===0)n=this[Wn](),e=r;else if(arguments.length===1){if(e===!1)return this;n=e,e=r}else arguments.length===2&&(n=t,t=void 0);return F(this,Q,typeof e==`string`?e:r,`f`),t||=I(this,Z,`f`).deferY18nLookup(`Show version number`),I(this,Z,`f`).version(n||void 0),this.boolean(I(this,Q,`f`)),this.describe(I(this,Q,`f`),t),this}wrap(e){return P(`<number|null|undefined>`,[e],arguments.length),I(this,Z,`f`).wrap(e),this}[(L=new WeakMap,gn=new WeakMap,_n=new WeakMap,R=new WeakMap,z=new WeakMap,vn=new WeakMap,B=new WeakMap,yn=new WeakMap,bn=new WeakMap,V=new WeakMap,xn=new WeakMap,H=new WeakMap,U=new WeakMap,W=new WeakMap,G=new WeakMap,Sn=new WeakMap,Cn=new WeakMap,K=new WeakMap,q=new WeakMap,wn=new WeakMap,Tn=new WeakMap,J=new WeakMap,En=new WeakMap,Dn=new WeakMap,On=new WeakMap,Y=new WeakMap,kn=new WeakMap,X=new WeakMap,An=new WeakMap,jn=new WeakMap,Mn=new WeakMap,Z=new WeakMap,Nn=new WeakMap,Q=new WeakMap,$=new WeakMap,Fn)](e){if(!e._||!e[`--`])return e;e._.push.apply(e._,e[`--`]);try{delete e[`--`]}catch{}return e}[In](){return{log:(...e)=>{this[cr]()||console.log(...e),F(this,W,!0,`f`),I(this,K,`f`).length&&F(this,K,I(this,K,`f`)+`
|
|
97
97
|
`,`f`),F(this,K,I(this,K,`f`)+e.join(` `),`f`)},error:(...e)=>{this[cr]()||console.error(...e),F(this,W,!0,`f`),I(this,K,`f`).length&&F(this,K,I(this,K,`f`)+`
|
|
98
|
-
`,`f`),F(this,K,I(this,K,`f`)+e.join(` `),`f`)}}}[Ln](e){At(I(this,q,`f`)).forEach(t=>{if((e=>e===`configObjects`)(t))return;let n=I(this,q,`f`)[t];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n==`object`&&delete n[e]}),delete I(this,Z,`f`).getDescriptions()[e]}[Rn](e,t,n){I(this,bn,`f`)[n]||(I(this,X,`f`).process.emitWarning(e,t),I(this,bn,`f`)[n]=!0)}[zn](){I(this,xn,`f`).push({options:I(this,q,`f`),configObjects:I(this,q,`f`).configObjects.slice(0),exitProcess:I(this,V,`f`),groups:I(this,U,`f`),strict:I(this,An,`f`),strictCommands:I(this,jn,`f`),strictOptions:I(this,Mn,`f`),completionCommand:I(this,z,`f`),output:I(this,K,`f`),exitError:I(this,B,`f`),hasOutput:I(this,W,`f`),parsed:this.parsed,parseFn:I(this,J,`f`),parseContext:I(this,En,`f`)}),I(this,Z,`f`).freeze(),I(this,$,`f`).freeze(),I(this,L,`f`).freeze(),I(this,H,`f`).freeze()}[Bn](){let e=``,t;return t=/\b(node|iojs|electron)(\.exe)?$/.test(I(this,X,`f`).process.argv()[0])?I(this,X,`f`).process.argv().slice(1,2):I(this,X,`f`).process.argv().slice(0,1),e=t.map(e=>{let t=this[dr](I(this,gn,`f`),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e}).join(` `).trim(),I(this,X,`f`).getEnv(`_`)&&I(this,X,`f`).getProcessArgvBin()===I(this,X,`f`).getEnv(`_`)&&(e=I(this,X,`f`).getEnv(`_`).replace(`${I(this,X,`f`).path.dirname(I(this,X,`f`).process.execPath())}/`,``)),e}[Vn](){return I(this,Tn,`f`)}[Hn](){return I(this,Nn,`f`)}[Un](){if(!I(this,yn,`f`))return;let e=I(this,X,`f`).getEnv(`LC_ALL`)||I(this,X,`f`).getEnv(`LC_MESSAGES`)||I(this,X,`f`).getEnv(`LANG`)||I(this,X,`f`).getEnv(`LANGUAGE`)||`en_US`;this.locale(e.replace(/[.:].*/,``))}[Wn](){return this[Kn]().version||`unknown`}[Gn](e){let t=e[`--`]?e[`--`]:e._;for(let e=0,n;(n=t[e])!==void 0;e++)I(this,X,`f`).Parser.looksLikeNumber(n)&&Number.isSafeInteger(Math.floor(parseFloat(`${n}`)))&&(t[e]=Number(n));return e}[Kn](e){let t=e||`*`;if(I(this,Dn,`f`)[t])return I(this,Dn,`f`)[t];let n={};try{let t=e||I(this,X,`f`).mainFilename;I(this,X,`f`).path.extname(t)&&(t=I(this,X,`f`).path.dirname(t));let r=I(this,X,`f`).findUp(t,(e,t)=>{if(t.includes(`package.json`))return`package.json`});j(r,void 0,I(this,X,`f`)),n=JSON.parse(I(this,X,`f`).readFileSync(r,`utf8`))}catch{}return I(this,Dn,`f`)[t]=n||{},I(this,Dn,`f`)[t]}[qn](e,t){t=[].concat(t),t.forEach(t=>{t=this[Zn](t),I(this,q,`f`)[e].push(t)})}[Jn](e,t,n,r){this[Xn](e,t,n,r,(e,t,n)=>{I(this,q,`f`)[e][t]=n})}[Yn](e,t,n,r){this[Xn](e,t,n,r,(e,t,n)=>{I(this,q,`f`)[e][t]=(I(this,q,`f`)[e][t]||[]).concat(n)})}[Xn](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 At(n))e(t,n[t]);else i(t,this[Zn](n),r)}[Zn](e){return e===`__proto__`?`___proto___`:e}[Qn](e,t){return this[Jn](this[Qn].bind(this),`key`,e,t),this}[$n](){var e,t,n,r,i,a,o,s,c,l,u,d;let f=I(this,xn,`f`).pop();j(f,void 0,I(this,X,`f`));let p;e=this,t=this,n=this,r=this,i=this,a=this,o=this,s=this,c=this,l=this,u=this,d=this,{options:{set value(t){F(e,q,t,`f`)}}.value,configObjects:p,exitProcess:{set value(e){F(t,V,e,`f`)}}.value,groups:{set value(e){F(n,U,e,`f`)}}.value,output:{set value(e){F(r,K,e,`f`)}}.value,exitError:{set value(e){F(i,B,e,`f`)}}.value,hasOutput:{set value(e){F(a,W,e,`f`)}}.value,parsed:this.parsed,strict:{set value(e){F(o,An,e,`f`)}}.value,strictCommands:{set value(e){F(s,jn,e,`f`)}}.value,strictOptions:{set value(e){F(c,Mn,e,`f`)}}.value,completionCommand:{set value(e){F(l,z,e,`f`)}}.value,parseFn:{set value(e){F(u,J,e,`f`)}}.value,parseContext:{set value(e){F(d,En,e,`f`)}}.value}=f,I(this,q,`f`).configObjects=p,I(this,Z,`f`).unfreeze(),I(this,$,`f`).unfreeze(),I(this,L,`f`).unfreeze(),I(this,H,`f`).unfreeze()}[er](e,t){return Rt(t,t=>(e(t),t))}getInternalMethods(){return{getCommandInstance:this[tr].bind(this),getContext:this[nr].bind(this),getHasOutput:this[rr].bind(this),getLoggerInstance:this[ir].bind(this),getParseContext:this[ar].bind(this),getParserConfiguration:this[Vn].bind(this),getUsageConfiguration:this[Hn].bind(this),getUsageInstance:this[or].bind(this),getValidationInstance:this[sr].bind(this),hasParseCallback:this[cr].bind(this),isGlobalContext:this[lr].bind(this),postProcess:this[ur].bind(this),reset:this[fr].bind(this),runValidation:this[mr].bind(this),runYargsParserAndExecuteCommands:this[pr].bind(this),setHasOutput:this[hr].bind(this)}}[tr](){return I(this,L,`f`)}[nr](){return I(this,_n,`f`)}[rr](){return I(this,W,`f`)}[ir](){return I(this,Cn,`f`)}[ar](){return I(this,En,`f`)||{}}[or](){return I(this,Z,`f`)}[sr](){return I(this,$,`f`)}[cr](){return!!I(this,J,`f`)}[lr](){return I(this,Sn,`f`)}[ur](e,t,n,r){return n||M(e)?e:(t||(e=this[Fn](e)),(this[Vn]()[`parse-positional-numbers`]||this[Vn]()[`parse-positional-numbers`]===void 0)&&(e=this[Gn](e)),r&&(e=Lt(e,this,I(this,H,`f`).getMiddleware(),!1)),e)}[fr](e={}){F(this,q,I(this,q,`f`)||{},`f`);let t={};t.local=I(this,q,`f`).local||[],t.configObjects=I(this,q,`f`).configObjects||[];let n={};return t.local.forEach(t=>{n[t]=!0,(e[t]||[]).forEach(e=>{n[e]=!0})}),Object.assign(I(this,On,`f`),Object.keys(I(this,U,`f`)).reduce((e,t)=>{let r=I(this,U,`f`)[t].filter(e=>!(e in n));return r.length>0&&(e[t]=r),e},{})),F(this,U,{},`f`),[`array`,`boolean`,`string`,`skipValidation`,`count`,`normalize`,`number`,`hiddenOptions`].forEach(e=>{t[e]=(I(this,q,`f`)[e]||[]).filter(e=>!n[e])}),[`narg`,`key`,`alias`,`default`,`defaultDescription`,`config`,`choices`,`demandedOptions`,`demandedCommands`,`deprecatedOptions`].forEach(e=>{t[e]=Jt(I(this,q,`f`)[e],e=>!n[e])}),t.envPrefix=I(this,q,`f`).envPrefix,F(this,q,t,`f`),F(this,Z,I(this,Z,`f`)?I(this,Z,`f`).reset(n):Zt(this,I(this,X,`f`)),`f`),F(this,$,I(this,$,`f`)?I(this,$,`f`).reset(n):ln(this,I(this,Z,`f`),I(this,X,`f`)),`f`),F(this,L,I(this,L,`f`)?I(this,L,`f`).reset():Ht(I(this,Z,`f`),I(this,$,`f`),I(this,H,`f`),I(this,X,`f`)),`f`),I(this,R,`f`)||F(this,R,rn(this,I(this,Z,`f`),I(this,L,`f`),I(this,X,`f`)),`f`),I(this,H,`f`).reset(),F(this,z,null,`f`),F(this,K,``,`f`),F(this,B,null,`f`),F(this,W,!1,`f`),this.parsed=!1,this}[dr](e,t){return I(this,X,`f`).path.relative(e,t)}[pr](e,t,n,r=0,i=!1){let a=!!n||i;e||=I(this,Y,`f`),I(this,q,`f`).__=I(this,X,`f`).y18n.__,I(this,q,`f`).configuration=this[Vn]();let o=!!I(this,q,`f`).configuration[`populate--`],s=Object.assign({},I(this,q,`f`).configuration,{"populate--":!0}),c=I(this,X,`f`).Parser.detailed(e,Object.assign({},I(this,q,`f`),{configuration:{"parse-positional-numbers":!1,...s}})),l=Object.assign(c.argv,I(this,En,`f`)),u,d=c.aliases,f=!1,p=!1;Object.keys(l).forEach(e=>{e===I(this,G,`f`)&&l[e]?f=!0:e===I(this,Q,`f`)&&l[e]&&(p=!0)}),l.$0=this.$0,this.parsed=c,r===0&&I(this,Z,`f`).clearCachedHelpMessage();try{if(this[Un](),t)return this[ur](l,o,!!n,!1);I(this,G,`f`)&&[I(this,G,`f`)].concat(d[I(this,G,`f`)]||[]).filter(e=>e.length>1).includes(``+l._[l._.length-1])&&(l._.pop(),f=!0),F(this,Sn,!1,`f`);let s=I(this,L,`f`).getCommands(),m=I(this,R,`f`)?.completionKey?[I(this,R,`f`)?.completionKey,...this.getAliases()[I(this,R,`f`)?.completionKey]??[]].some(e=>Object.prototype.hasOwnProperty.call(l,e)):!1,h=f||m||i;if(l._.length){if(s.length){let e;for(let t=r||0,a;l._[t]!==void 0;t++)if(a=String(l._[t]),s.includes(a)&&a!==I(this,z,`f`)){let e=I(this,L,`f`).runCommand(a,this,c,t+1,i,f||p||i);return this[ur](e,o,!!n,!1)}else if(!e&&a!==I(this,z,`f`)){e=a;break}!I(this,L,`f`).hasDefaultCommand()&&I(this,kn,`f`)&&e&&!h&&I(this,$,`f`).recommendCommands(e,s)}I(this,z,`f`)&&l._.includes(I(this,z,`f`))&&!m&&(I(this,V,`f`)&&Yt(!0),this.showCompletionScript(),this.exit(0))}if(I(this,L,`f`).hasDefaultCommand()&&!h){let e=I(this,L,`f`).runCommand(null,this,c,0,i,f||p||i);return this[ur](e,o,!!n,!1)}if(m){I(this,V,`f`)&&Yt(!0),e=[].concat(e);let t=e.slice(e.indexOf(`--${I(this,R,`f`).completionKey}`)+1);return I(this,R,`f`).getCompletion(t,(e,t)=>{if(e)throw new N(e.message);(t||[]).forEach(e=>{I(this,Cn,`f`).log(e)}),this.exit(0)}),this[ur](l,!o,!!n,!1)}if(I(this,W,`f`)||(f?(I(this,V,`f`)&&Yt(!0),a=!0,this.showHelp(e=>{I(this,Cn,`f`).log(e),this.exit(0)})):p&&(I(this,V,`f`)&&Yt(!0),a=!0,I(this,Z,`f`).showVersion(`log`),this.exit(0))),!a&&I(this,q,`f`).skipValidation.length>0&&(a=Object.keys(l).some(e=>I(this,q,`f`).skipValidation.indexOf(e)>=0&&l[e]===!0)),!a){if(c.error)throw new N(c.error.message);if(!m){let e=this[mr](d,{},c.error);n||(u=Lt(l,this,I(this,H,`f`).getMiddleware(),!0)),u=this[er](e,u??l),M(u)&&!n&&(u=u.then(()=>Lt(l,this,I(this,H,`f`).getMiddleware(),!1)))}}}catch(e){if(e instanceof N)I(this,Z,`f`).fail(e.message,e);else throw e}return this[ur](u??l,o,!!n,!0)}[mr](e,t,n,r){let i={...this.getDemandedOptions()};return a=>{if(n)throw new N(n.message);I(this,$,`f`).nonOptionCount(a),I(this,$,`f`).requiredArguments(a,i);let o=!1;I(this,jn,`f`)&&(o=I(this,$,`f`).unknownCommands(a)),I(this,An,`f`)&&!o?I(this,$,`f`).unknownArguments(a,e,t,!!r):I(this,Mn,`f`)&&I(this,$,`f`).unknownArguments(a,e,{},!1,!1),I(this,$,`f`).limitedChoices(a),I(this,$,`f`).implications(a),I(this,$,`f`).conflicting(a)}}[hr](){F(this,W,!0,`f`)}[gr](e){if(typeof e==`string`)I(this,q,`f`).key[e]=!0;else for(let t of e)I(this,q,`f`).key[t]=!0}};function vr(e){return!!e&&typeof e.getInternalMethods==`function`}const yr=Pn(Ot),br=[{command:i(`abuse-reports`,`Submit and track abuse reports for phishing, malware, and other policy violations on Cloudflare-proxied sites`,()=>import(`./abuse-reports-BhSTEz7h.mjs`),null),hideCommand:!1},{command:i(`access`,`Access protected applications and services`,()=>import(`./access-D4DN4XZF.mjs`),null),hideCommand:!1},{command:i(`account-tags`,`account-tags`,()=>import(`./account-tags-BWEIZLID.mjs`),null),hideCommand:!1},{command:i(`accounts`,`Account settings, members, roles, subscriptions, and API tokens for your Cloudflare account`,()=>import(`./accounts-ZQvIqGJz.mjs`),null),hideCommand:!1},{command:i(`acm`,`acm`,()=>import(`./acm-OQqE8FMc.mjs`),null),hideCommand:!0},{command:i(`addressing`,`addressing`,()=>import(`./addressing-DCFm17JQ.mjs`),null),hideCommand:!1},{command:i(`agent-memory`,`agent-memory`,()=>import(`./agent-memory-BtfPt2me.mjs`),null),hideCommand:!1},{command:i(`ai`,`ai`,()=>import(`./ai-B0_sZbmy.mjs`),null),hideCommand:!1},{command:i(`ai-audit`,`ai-audit`,()=>import(`./ai-audit-DaubuhYF.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-CJ-1Dzzr.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-Dywa1kqX.mjs`),null),hideCommand:!1},{command:i(`ai-security`,`Detect prompt injection, PII, and unsafe topics in traffic to your AI applications`,()=>import(`./ai-security-2wxMPqKS.mjs`),null),hideCommand:!0},{command:i(`alerting`,`alerting`,()=>import(`./alerting-yad9DYRv.mjs`),null),hideCommand:!0},{command:i(`alerts`,`alerts`,()=>import(`./alerts-DY_7Nknx.mjs`),null),hideCommand:!0},{command:i(`analytics`,`Zone-level traffic analytics — dashboard summaries, per-colo breakdowns, and Argo latency metrics`,()=>import(`./analytics-DKNw2fVc.mjs`),null),hideCommand:!1},{command:i(`analytics_engine`,`analytics_engine`,()=>import(`./analytics_engine-BA3kF46s.mjs`),null),hideCommand:!0},{command:i(`api-security`,`api-security`,()=>import(`./api-security-CSuYMpMO.mjs`),null),hideCommand:!0},{command:i(`argo`,`Network optimization features that speed up and improve reliability of traffic to your origins`,()=>import(`./argo-DMfNmOV4.mjs`),null),hideCommand:!0},{command:i(`artifacts`,`artifacts`,()=>import(`./artifacts-Cb3hwClm.mjs`),null),hideCommand:!1},{command:i(`audit-logs`,`audit-logs`,()=>import(`./audit-logs-BrjNuiLx.mjs`),null),hideCommand:!0},{command:i(`autorag`,`autorag`,()=>import(`./autorag-K396-M2S.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-BLsQhJP4.mjs`),null),hideCommand:!1},{command:i(`billing`,`Account billing profiles and usage data for Cloudflare subscriptions and add-on services`,()=>import(`./billing-CRwD7oQS.mjs`),null),hideCommand:!1},{command:i(`bot-management`,`bot-management`,()=>import(`./bot-management-CyW8F8Wm.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-BBKsxf3Y.mjs`),null),hideCommand:!0},{command:i(`brand-protection`,`brand-protection`,()=>import(`./brand-protection-DSeD8LXl.mjs`),null),hideCommand:!0},{command:i(`brands`,`brands`,()=>import(`./brands-DeLbFxSt.mjs`),null),hideCommand:!0},{command:i(`browser-extension`,`browser-extension`,()=>import(`./browser-extension-C1zmKFDG.mjs`),null),hideCommand:!0},{command:i(`browser-run`,`browser-run`,()=>import(`./browser-run-BAcUTwB4.mjs`),null),hideCommand:!1},{command:i(`builds`,`Build and deploy Workers from connected repositories, then inspect build status and logs.`,()=>import(`./builds-W1HEG7Bv.mjs`),null),hideCommand:!1},{command:i(`cache`,`Purge cached content and configure Cache Reserve, tiered caching, and variant serving`,()=>import(`./cache-B7E_PXUp.mjs`),null),hideCommand:!1},{command:i(`certificate-authorities`,`certificate-authorities`,()=>import(`./certificate-authorities-D_uAJH9B.mjs`),null),hideCommand:!0},{command:i(`clear`,`clear`,()=>import(`./clear-CRfI7WS7.mjs`),null),hideCommand:!0},{command:i(`client-certificates`,`client-certificates`,()=>import(`./client-certificates-DqFcK_s1.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-DJXZ1XAu.mjs`),null),hideCommand:!0},{command:i(`cloud-connector`,`Route traffic from Cloudflare directly to cloud provider services (AWS, Azure, GCP) without origin servers`,()=>import(`./cloud-connector-Czg1GdQi.mjs`),null),hideCommand:!1},{command:i(`cloudforce-one`,`Detection rule management APIs`,()=>import(`./cloudforce-one-B1IhIZcp.mjs`),null),hideCommand:!1},{command:i(`connector-interrupts`,`connector-interrupts`,()=>import(`./connector-interrupts-D93KTMkw.mjs`),null),hideCommand:!0},{command:i(`connector-telemetry-events`,`connector-telemetry-events`,()=>import(`./connector-telemetry-events-D6CmKR14.mjs`),null),hideCommand:!0},{command:i(`connector-telemetry-events-latest`,`connector-telemetry-events-latest`,()=>import(`./connector-telemetry-events-latest-D8p_dR8s.mjs`),null),hideCommand:!0},{command:i(`connector-telemetry-snapshots`,`connector-telemetry-snapshots`,()=>import(`./connector-telemetry-snapshots-WO9IUk0e.mjs`),null),hideCommand:!0},{command:i(`connector-telemetry-snapshots-latest`,`connector-telemetry-snapshots-latest`,()=>import(`./connector-telemetry-snapshots-latest-COFmzmlk.mjs`),null),hideCommand:!0},{command:i(`connectors`,`connectors`,()=>import(`./connectors-DNT6GTW3.mjs`),null),hideCommand:!0},{command:i(`containers`,`Deploy and manage Containers applications on Cloudflare's global network`,()=>import(`./containers-Btx7vCDP.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-C_ROsbTJ.mjs`),null),hideCommand:!0},{command:i(`cps`,`cps`,()=>import(`./cps-BPQqyL2E.mjs`),null),hideCommand:!1},{command:i(`csamScanner`,`csamScanner`,()=>import(`./csamScanner-D-oO5cxT.mjs`),null),hideCommand:!0},{command:i(`ct-alerting`,`ct-alerting`,()=>import(`./ct-alerting-CnTRE1Fb.mjs`),null),hideCommand:!0},{command:i(`custom-certificates`,`custom-certificates`,()=>import(`./custom-certificates-DvnFBZdJ.mjs`),null),hideCommand:!0},{command:i(`custom-csrs`,`custom-csrs`,()=>import(`./custom-csrs-BZ8TXbuQ.mjs`),null),hideCommand:!1},{command:i(`custom-hostnames`,`custom-hostnames`,()=>import(`./custom-hostnames-CTqf-KlT.mjs`),null),hideCommand:!0},{command:i(`custom-nameservers`,`custom-nameservers`,()=>import(`./custom-nameservers-B0CpnUVg.mjs`),null),hideCommand:!1},{command:i(`custom-pages`,`Manage custom error and challenge pages and their assets for accounts and zones`,()=>import(`./custom-pages-DcoSGN56.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-m7UfzBzl.mjs`),null),hideCommand:!1},{command:i(`dcv-delegation`,`dcv-delegation`,()=>import(`./dcv-delegation-yOtz90qE.mjs`),null),hideCommand:!0},{command:i(`diagnostics`,`Network diagnostic tools — traceroutes from Cloudflare's edge and endpoint health checks`,()=>import(`./diagnostics-hOvnx5DT.mjs`),null),hideCommand:!0},{command:i(`dls`,`dls`,()=>import(`./dls-v6DyEWTd.mjs`),null),hideCommand:!0},{command:i(`dns`,`dns`,()=>import(`./dns-C9sUPsNt.mjs`),null),hideCommand:!1},{command:i(`dns-firewall`,`dns-firewall`,()=>import(`./dns-firewall-EDiT-Zli.mjs`),null),hideCommand:!0},{command:i(`domain-info`,`domain-info`,()=>import(`./domain-info-aiwP60Fo.mjs`),null),hideCommand:!0},{command:i(`durable-objects`,`durable-objects`,()=>import(`./durable-objects-C01phVwL.mjs`),null),hideCommand:!1},{command:i(`email-auth`,`email-auth`,()=>import(`./email-auth-BgvoEHJk.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-Bggn219w.mjs`),null),hideCommand:!1},{command:i(`email-security`,`Cloud email security — investigate threats, manage allow/block policies, and detect phishing`,()=>import(`./email-security-_t7rzrzd.mjs`),null),hideCommand:!1},{command:i(`email-sending`,`Send transactional email and manage sending subdomains and their DNS configuration`,()=>import(`./email-sending-_dKCs2VF.mjs`),null),hideCommand:!1},{command:i(`fieldExtractors`,`fieldExtractors`,()=>import(`./fieldExtractors-Cm5QnkE0.mjs`),null),hideCommand:!0},{command:i(`firewall`,`Legacy firewall rules, zone lockdowns, access rules, user-agent blocking, and WAF packages`,()=>import(`./firewall-CZEN8iA_.mjs`),null),hideCommand:!1},{command:i(`flagship`,`flagship`,()=>import(`./flagship-B_SAI_ZL.mjs`),null),hideCommand:!1},{command:i(`fraud`,`fraud`,()=>import(`./fraud-9_9hobAh.mjs`),null),hideCommand:!0},{command:i(`google-tag-gateway`,`Google Tag Gateway operations`,()=>import(`./google-tag-gateway-O_N0vHRY.mjs`),null),hideCommand:!0},{command:i(`health`,`health`,()=>import(`./health-Bz33n-_F.mjs`),null),hideCommand:!0},{command:i(`healthchecks`,`Standalone health checks that monitor origin server availability from Cloudflare's edge`,()=>import(`./healthchecks-Bt3Gw_JZ.mjs`),null),hideCommand:!0},{command:i(`hostnames`,`hostnames`,()=>import(`./hostnames-DdOube3R.mjs`),null),hideCommand:!0},{command:i(`hyperdrive`,`Accelerate access to existing databases by caching queries and pooling connections at the edge`,()=>import(`./hyperdrive-C14NAh9l.mjs`),null),hideCommand:!1},{command:i(`iam`,`Identity and access management — permission groups, resource groups, user groups, and SSO connectors`,()=>import(`./iam-DUW7neMx.mjs`),null),hideCommand:!0},{command:i(`images`,`Store, resize, and deliver optimized images globally — variants, signing keys, and direct uploads`,()=>import(`./images-B9dnr1z0.mjs`),null),hideCommand:!1},{command:i(`intel`,`Threat intelligence lookups — IP reputation, domain info, ASN details, WHOIS, and indicator feeds`,()=>import(`./intel-BQpZMck3.mjs`),null),hideCommand:!1},{command:i(`internal`,`internal`,()=>import(`./internal-BHrJbbdA.mjs`),null),hideCommand:!0},{command:i(`ips`,`ips`,()=>import(`./ips-PT_uQKAf.mjs`),null),hideCommand:!0},{command:i(`k2`,`Durable, ordered event streams that you produce records to and consume from with subscriptions`,()=>import(`./k2-nPYti7Y0.mjs`),null),hideCommand:!1},{command:i(`keyless-certificates`,`keyless-certificates`,()=>import(`./keyless-certificates-BHvas2q1.mjs`),null),hideCommand:!0},{command:i(`keys`,`keys`,()=>import(`./keys-O5kAW9ox.mjs`),null),hideCommand:!1},{command:i(`kv`,`kv`,()=>import(`./kv-BUP_ZLM_.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-De9hI1rl.mjs`),null),hideCommand:!0},{command:i(`live`,`live`,()=>import(`./live-MeJQXIei.mjs`),null),hideCommand:!0},{command:i(`load-balancers`,`Distribute traffic across origin pools with health monitoring, geo-steering, and failover`,()=>import(`./load-balancers-Cs6bUHS1.mjs`),null),hideCommand:!1},{command:i(`logo-matches`,`logo-matches`,()=>import(`./logo-matches-BkQKdu4Z.mjs`),null),hideCommand:!0},{command:i(`logos`,`logos`,()=>import(`./logos-C_sv-boo.mjs`),null),hideCommand:!0},{command:i(`logpush`,`logpush`,()=>import(`./logpush-NUcyMKHi.mjs`),null),hideCommand:!1},{command:i(`logs`,`Log control, retention, and raw log access — CMB config, ray ID lookups, and received fields`,()=>import(`./logs-BZT4PlqZ.mjs`),null),hideCommand:!1},{command:i(`magic-cloud-networking`,`magic-cloud-networking`,()=>import(`./magic-cloud-networking-DQnSdmgA.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-pHTU6aS8.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-5302bQNh.mjs`),null),hideCommand:!0},{command:i(`managed-defense`,`managed-defense`,()=>import(`./managed-defense-8OEfDzuO.mjs`),null),hideCommand:!1},{command:i(`managed-transforms`,`managed-transforms`,()=>import(`./managed-transforms-CCpUz4TY.mjs`),null),hideCommand:!0},{command:i(`matches`,`matches`,()=>import(`./matches-BSiYXs99.mjs`),null),hideCommand:!0},{command:i(`mcp`,`mcp`,()=>import(`./mcp-CCMiS75R.mjs`),null),hideCommand:!1},{command:i(`mesh`,`mesh`,()=>import(`./mesh-DKBGTlCD.mjs`),null),hideCommand:!0},{command:i(`monetization`,`monetization`,()=>import(`./monetization-CFf_lb6x.mjs`),null),hideCommand:!1},{command:i(`mtls-certificates`,`mtls-certificates`,()=>import(`./mtls-certificates-DsF3NFNs.mjs`),null),hideCommand:!0},{command:i(`network`,`network`,()=>import(`./network-Bm0qYRqY.mjs`),null),hideCommand:!0},{command:i(`network-interconnects`,`Physical and virtual private interconnects between your infrastructure and Cloudflare's network`,()=>import(`./network-interconnects-YiRUBbjx.mjs`),null),hideCommand:!0},{command:i(`oauth-clients`,`oauth-clients`,()=>import(`./oauth-clients-CP6alY0_.mjs`),null),hideCommand:!0},{command:i(`oauth-scopes`,`oauth-scopes`,()=>import(`./oauth-scopes-xl-pcWdg.mjs`),null),hideCommand:!0},{command:i(`observability`,`observability`,()=>import(`./observability-Bp71PtlD.mjs`),null),hideCommand:!1},{command:i(`organization`,`organization`,()=>import(`./organization-Dbom1gTR.mjs`),null),hideCommand:!1},{command:i(`organizations`,`Multi-user organizations that group accounts, members, and shared settings under a single entity`,()=>import(`./organizations-OUMVsuen.mjs`),null),hideCommand:!1},{command:i(`origin-ca-certificates`,`origin-ca-certificates`,()=>import(`./origin-ca-certificates-B3-T0-Nn.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-CGB6AfPa.mjs`),null),hideCommand:!0},{command:i(`origin-tls-client-auth`,`origin-tls-client-auth`,()=>import(`./origin-tls-client-auth-CgzzfAWr.mjs`),null),hideCommand:!0},{command:i(`page-rules`,`page-rules`,()=>import(`./page-rules-B9BQKU4_.mjs`),null),hideCommand:!0},{command:i(`pages`,`Full-stack application hosting with Git-integrated builds, preview deployments, and custom domains`,()=>import(`./pages-DZPdyuT4.mjs`),null),hideCommand:!1},{command:i(`pay-per-crawl`,`pay-per-crawl`,()=>import(`./pay-per-crawl-CnveMVDi.mjs`),null),hideCommand:!1},{command:i(`pay-per-use`,`pay-per-use`,()=>import(`./pay-per-use-Bpxe8PHv.mjs`),null),hideCommand:!1},{command:i(`pipelines`,`Ingest, transform, and route event streams into R2, analytics, or other destinations in real time`,()=>import(`./pipelines-CHev3o5G.mjs`),null),hideCommand:!1},{command:i(`precursor`,`Precursor settings for a zone`,()=>import(`./precursor-C9PK9Bue.mjs`),null),hideCommand:!0},{command:i(`queries`,`queries`,()=>import(`./queries-f-btyefs.mjs`),null),hideCommand:!0},{command:i(`queues`,`Reliable message queuing between Workers — produce, consume, and batch-process messages at scale`,()=>import(`./queues-kLNdeb3q.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-D_awYx2p.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-2jQrdAdo.mjs`),null),hideCommand:!1},{command:i(`radar`,`Internet-wide traffic intelligence — BGP, DNS, HTTP trends, attack data, and network quality insights`,()=>import(`./radar-CU4T02Ag.mjs`),null),hideCommand:!0},{command:i(`rate-limit-analytics`,`rate-limit-analytics`,()=>import(`./rate-limit-analytics-CU55zqCU.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-CZ-qHDPK.mjs`),null),hideCommand:!0},{command:i(`ready`,`ready`,()=>import(`./ready-BOpbZ1pN.mjs`),null),hideCommand:!0},{command:i(`realtime`,`Real-time audio, video, and data services on Cloudflare's global network`,()=>import(`./realtime-C0dvcBBM.mjs`),null),hideCommand:!1},{command:i(`recent-submissions`,`recent-submissions`,()=>import(`./recent-submissions-KDqD2HyS.mjs`),null),hideCommand:!0},{command:i(`refute`,`refute`,()=>import(`./refute-DkF4XIMw.mjs`),null),hideCommand:!0},{command:i(`registrar`,`registrar`,()=>import(`./registrar-CHc-4vcf.mjs`),null),hideCommand:!1},{command:i(`registrar-sandbox`,`registrar-sandbox`,()=>import(`./registrar-sandbox-Dq8LV2AI.mjs`),null),hideCommand:!1},{command:i(`reporting`,`reporting`,()=>import(`./reporting-4u21g6Dk.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-CupJ_83j.mjs`),null),hideCommand:!0},{command:i(`resource-sharing`,`Share Cloudflare resources (zones, accounts) across organizations with granular access controls`,()=>import(`./resource-sharing-CO-Lh-u7.mjs`),null),hideCommand:!1},{command:i(`resource-tagging`,`resource-tagging`,()=>import(`./resource-tagging-D0R5SzR6.mjs`),null),hideCommand:!1},{command:i(`rules`,`Resources used by Cloudflare rules and rulesets`,()=>import(`./rules-BsmKzB9H.mjs`),null),hideCommand:!1},{command:i(`rulesets`,`rulesets`,()=>import(`./rulesets-HOOnxHZZ.mjs`),null),hideCommand:!1},{command:i(`rum`,`Real User Measurement (Web Analytics) — track page loads, Core Web Vitals, and visitor metrics`,()=>import(`./rum-wcLEvVJl.mjs`),null),hideCommand:!0},{command:i(`scan-logo`,`scan-logo`,()=>import(`./scan-logo-DQkf6glG.mjs`),null),hideCommand:!0},{command:i(`scan-page`,`scan-page`,()=>import(`./scan-page-CMOJ_E0n.mjs`),null),hideCommand:!0},{command:i(`scim`,`SCIM 2.0 provisioning — manage users, groups, and identity provider sync for your account`,()=>import(`./scim-BkdJmAS8.mjs`),null),hideCommand:!0},{command:i(`search`,`search`,()=>import(`./search-Bre1Zwn3.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-CHs0oYA0.mjs`),null),hideCommand:!1},{command:i(`security-insights`,`security-insights`,()=>import(`./security-insights-vsl-4xFa.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-Fnl3LdSn.mjs`),null),hideCommand:!1},{command:i(`signed-url`,`signed-url`,()=>import(`./signed-url-24ZbX4yV.mjs`),null),hideCommand:!0},{command:i(`smart-shield`,`Smart Shield settings, health checks, and cache reserve management`,()=>import(`./smart-shield-DB0E7cZI.mjs`),null),hideCommand:!0},{command:i(`snippets`,`snippets`,()=>import(`./snippets-CFaF_NyG.mjs`),null),hideCommand:!1},{command:i(`spectrum`,`Proxy and protect arbitrary TCP/UDP applications through Cloudflare's network with DDoS mitigation`,()=>import(`./spectrum-DtG0jYjE.mjs`),null),hideCommand:!0},{command:i(`speed`,`Observatory speed tests — run Lighthouse audits, track performance trends, and schedule recurring tests`,()=>import(`./speed-B-RiNHGK.mjs`),null),hideCommand:!1},{command:i(`ssl`,`SSL/TLS certificate management — certificate packs, Universal SSL, verification, and TLS mode recommendations`,()=>import(`./ssl-DBVpCZAM.mjs`),null),hideCommand:!0},{command:i(`stream`,`Video encoding, storage, and delivery — upload, live-stream, clip, caption, and embed video at scale`,()=>import(`./stream-cAdBvpS1.mjs`),null),hideCommand:!1},{command:i(`submission-info`,`submission-info`,()=>import(`./submission-info-BmkbZVqM.mjs`),null),hideCommand:!0},{command:i(`submit`,`submit`,()=>import(`./submit-Bkd7l2rK.mjs`),null),hideCommand:!0},{command:i(`tags`,`tags`,()=>import(`./tags--eph7JbN.mjs`),null),hideCommand:!1},{command:i(`tenant`,`tenant`,()=>import(`./tenant-Bj-He2xO.mjs`),null),hideCommand:!1},{command:i(`tenant-custom-nameservers`,`tenant-custom-nameservers`,()=>import(`./tenant-custom-nameservers-B5IIIwbz.mjs`),null),hideCommand:!0},{command:i(`total-queries`,`total-queries`,()=>import(`./total-queries-j8OAF_cE.mjs`),null),hideCommand:!0},{command:i(`tracked-domains`,`tracked-domains`,()=>import(`./tracked-domains-fe3EWYmF.mjs`),null),hideCommand:!0},{command:i(`tunnels`,`tunnels`,()=>import(`./tunnels-CgtuRpcD.mjs`),null),hideCommand:!0},{command:i(`turnstile`,`CAPTCHA-free bot verification widgets that protect forms and APIs without degrading user experience`,()=>import(`./turnstile-Bmcnrzw7.mjs`),null),hideCommand:!0},{command:i(`url-info`,`url-info`,()=>import(`./url-info-DhVehaT8.mjs`),null),hideCommand:!0},{command:i(`url-normalization`,`url-normalization`,()=>import(`./url-normalization-BpGDUUQc.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-DiLdqsQk.mjs`),null),hideCommand:!0},{command:i(`user`,`Your Cloudflare user profile, invitations, organizations, billing, and personal API tokens`,()=>import(`./user-B6P5_OjP.mjs`),null),hideCommand:!1},{command:i(`values`,`values`,()=>import(`./values-Cxx4Lxrd.mjs`),null),hideCommand:!1},{command:i(`vectorize`,`Globally distributed vector database for building semantic search, recommendations, and RAG applications on Workers`,()=>import(`./vectorize-YyxVpql-.mjs`),null),hideCommand:!1},{command:i(`verify`,`verify`,()=>import(`./verify-CKgZYvln.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-BdahlCdD.mjs`),null),hideCommand:!1},{command:i(`web-assets`,`web-assets`,()=>import(`./web-assets-yaKxN4w_.mjs`),null),hideCommand:!0},{command:i(`web3`,`web3`,()=>import(`./web3-Bu9c_QAt.mjs`),null),hideCommand:!0},{command:i(`workers`,`workers`,()=>import(`./workers-5GgoGA2e.mjs`),null),hideCommand:!1},{command:i(`workers-builds`,`workers-builds`,()=>import(`./workers-builds-h-1FJjE1.mjs`),null),hideCommand:!0},{command:i(`workers-for-platforms`,`workers-for-platforms`,()=>import(`./workers-for-platforms-CV9iRrp9.mjs`),null),hideCommand:!1},{command:i(`workers-vpc`,`workers-vpc`,()=>import(`./workers-vpc-C1oUHHqk.mjs`),null),hideCommand:!1},{command:i(`workflows`,`Durable, multi-step workflows that run on Workers with automatic retries and state persistence`,()=>import(`./workflows-dtMlkj1-.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-838AbMEX.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-CYt-eELJ.mjs`),null),hideCommand:!1},{command:i(`zone`,`zone`,()=>import(`./zone-uJwRLSnn.mjs`),null),hideCommand:!1},{command:i(`zones`,`Zones are domains on Cloudflare — list, create, and configure domain settings`,()=>import(`./zones-Dpofsnth.mjs`),null),hideCommand:!1}];function xr(e){return typeof e==`object`&&!!e&&`schemas`in e&&typeof e.schemas==`object`&&e.schemas!==null&&!Array.isArray(e.schemas)}function Sr(e,t){if(!t)return e;let n=a(import.meta.url,`schemas.json`,xr);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 Cr=[{kind:`root`,command:`auth`,describe:`Manage authentication and profiles`,dir:`auth`,load:()=>import(`./auth-BBlAI8HG.mjs`),telemetry:{command:`auth`,recordArgs:!1}},{kind:`root`,command:`login`,describe:!1,dir:`login`,load:()=>import(`./login-C5nSIS-T.mjs`),telemetry:null},{kind:`root`,command:`build`,describe:`Build a project for Cloudflare`,dir:`build`,load:()=>import(`./build-DLZ9gBNA.mjs`),telemetry:{command:`build`,classification:{safeFlags:[]}}},{kind:`root`,command:`complete [shell]`,describe:`Generate and handle shell completions`,dir:`completions`,load:()=>import(`./completions-Cm9brGAI.mjs`),telemetry:null},{kind:`root`,command:`deploy`,describe:`Deploy a project to Cloudflare`,dir:`deploy`,load:()=>import(`./deploy-C4p6SzLH.mjs`),telemetry:{command:`deploy`,classification:{safeFlags:[`dry-run`,`prebuilt`,`containers-rollout`]}}},{kind:`root`,command:`dev [implArgs..]`,describe:`Run the project's Cloudflare dev server`,dir:`dev`,load:()=>import(`./dev-BML-bpNU.mjs`),telemetry:{command:`dev`,recordArgs:!1}},{kind:`root`,command:`init [directory]`,describe:`Create a new Cloudflare project or set up an existing one`,dir:`init`,load:()=>import(`./init-BGcAIvV7.mjs`),telemetry:{command:`init`,classification:{safeFlags:[`install`,`package-manager`]}}},{kind:`root`,command:`migrate [path]`,describe:`Migrate a Wrangler project to cf`,dir:`migrate`,load:()=>import(`./migrate-BJ9Go_wP.mjs`),telemetry:{command:`migrate`,recordArgs:!1}},{kind:`root`,command:`cli`,describe:`Discover commands and configure the cf CLI`,dir:`cli`,load:()=>import(`./cli-BeXSqJAj.mjs`),telemetry:{command:`cli`,recordArgs:!1}},{kind:`root`,command:`previews`,describe:`Manage Worker Previews`,dir:`previews`,load:()=>import(`./previews-BIMI1dTz.mjs`),telemetry:{command:`previews`,recordArgs:!1}},{kind:`root`,command:`schema [command..]`,describe:`Show API schema details for a command`,dir:`schema`,load:()=>import(`./schema-GdBsV4P7.mjs`),telemetry:{command:`schema`,classification:{safeFlags:[`list`]}}},{kind:`root`,command:`tools`,describe:!1,dir:`tools`,load:()=>import(`./tools-BJZ0DDlL.mjs`),telemetry:{command:`tools`,classification:{safeFlags:[`text`]}}},{kind:`leafOverride`,emitKey:`ai/run`,dir:`ai/run`},{kind:`leafOverride`,emitKey:`registrar/registrations/create`,dir:`registrar/registrations/create`},{kind:`leaf`,parent:`workers/versions`,name:`create`,dir:`workers/versions/create`},{kind:`leaf`,parent:`containers`,name:`build`,dir:`containers/build`},{kind:`leaf`,parent:`containers`,name:`push`,dir:`containers/push`},{kind:`leaf`,parent:`containers/images`,name:`list`,dir:`containers/images/list`},{kind:`leaf`,parent:`containers/images`,name:`delete`,dir:`containers/images/delete`},{kind:`leaf`,parent:`containers`,name:`ssh`,dir:`containers/ssh`},{kind:`leaf`,parent:`pages`,name:`deploy`,dir:`pages/deploy`},{kind:`leaf`,parent:`workers`,name:`check`,dir:`workers/check`},{kind:`leaf`,parent:`workers`,name:`types`,dir:`workers/types`},{kind:`parentOverride`,parent:`access`,describe:`Access protected applications and services`,expose:!0},{kind:`leaf`,parent:`access`,name:`login`,dir:`access/login`},{kind:`leaf`,parent:`access`,name:`token`,dir:`access/token`},{kind:`leaf`,parent:`access`,name:`ssh-config`,dir:`access/ssh-config`},{kind:`leaf`,parent:`access`,name:`ssh-gen`,dir:`access/ssh-gen`},{kind:`leaf`,parent:`access`,name:`tcp`,dir:`access/tcp`},{kind:`leaf`,parent:`access`,name:`curl`,dir:`access/curl`},{kind:`leaf`,parent:`tunnels`,name:`diag`,dir:`tunnels/diag`},{kind:`leaf`,parent:`tunnels`,name:`login`,dir:`tunnels/login`},{kind:`leaf`,parent:`tunnels`,name:`quick-start`,dir:`tunnels/quick-start`},{kind:`leaf`,parent:`tunnels`,name:`ready`,dir:`tunnels/ready`},{kind:`leaf`,parent:`tunnels`,name:`run`,dir:`tunnels/run`},{kind:`leaf`,parent:`tunnels`,name:`tail`,dir:`tunnels/tail`},{kind:`subgroup`,parent:`d1`,name:`migrations`,dir:`d1/migrations`,describe:`Create, list, and apply D1 database migrations`},{kind:`subgroup`,parent:`workers`,name:`triggers`,dir:`workers/triggers`,describe:`Manage triggers (Routes, Workflows, Cron triggers etc.)`}];function wr(){return Cr.filter(e=>e.kind===`root`)}function Tr(e){return e.command.split(/\s+/)[0]??e.command}function Er(e){try{let t=new URL(e);return`${t.pathname.replace(/^\/client\/v\d+/,``)}${t.search}`}catch{return e}}function Dr(e){if(_(m),e instanceof f){let t=e.statusCode,n=e.body,r=t===void 0?`Envelope Error`:kr(t),i=[];if(n){let e=n;Array.isArray(e.errors)&&(i=e.errors)}let a=e.rawResponse?.url?`HTTP ${Er(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(`
|
|
98
|
+
`,`f`),F(this,K,I(this,K,`f`)+e.join(` `),`f`)}}}[Ln](e){At(I(this,q,`f`)).forEach(t=>{if((e=>e===`configObjects`)(t))return;let n=I(this,q,`f`)[t];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n==`object`&&delete n[e]}),delete I(this,Z,`f`).getDescriptions()[e]}[Rn](e,t,n){I(this,bn,`f`)[n]||(I(this,X,`f`).process.emitWarning(e,t),I(this,bn,`f`)[n]=!0)}[zn](){I(this,xn,`f`).push({options:I(this,q,`f`),configObjects:I(this,q,`f`).configObjects.slice(0),exitProcess:I(this,V,`f`),groups:I(this,U,`f`),strict:I(this,An,`f`),strictCommands:I(this,jn,`f`),strictOptions:I(this,Mn,`f`),completionCommand:I(this,z,`f`),output:I(this,K,`f`),exitError:I(this,B,`f`),hasOutput:I(this,W,`f`),parsed:this.parsed,parseFn:I(this,J,`f`),parseContext:I(this,En,`f`)}),I(this,Z,`f`).freeze(),I(this,$,`f`).freeze(),I(this,L,`f`).freeze(),I(this,H,`f`).freeze()}[Bn](){let e=``,t;return t=/\b(node|iojs|electron)(\.exe)?$/.test(I(this,X,`f`).process.argv()[0])?I(this,X,`f`).process.argv().slice(1,2):I(this,X,`f`).process.argv().slice(0,1),e=t.map(e=>{let t=this[dr](I(this,gn,`f`),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e}).join(` `).trim(),I(this,X,`f`).getEnv(`_`)&&I(this,X,`f`).getProcessArgvBin()===I(this,X,`f`).getEnv(`_`)&&(e=I(this,X,`f`).getEnv(`_`).replace(`${I(this,X,`f`).path.dirname(I(this,X,`f`).process.execPath())}/`,``)),e}[Vn](){return I(this,Tn,`f`)}[Hn](){return I(this,Nn,`f`)}[Un](){if(!I(this,yn,`f`))return;let e=I(this,X,`f`).getEnv(`LC_ALL`)||I(this,X,`f`).getEnv(`LC_MESSAGES`)||I(this,X,`f`).getEnv(`LANG`)||I(this,X,`f`).getEnv(`LANGUAGE`)||`en_US`;this.locale(e.replace(/[.:].*/,``))}[Wn](){return this[Kn]().version||`unknown`}[Gn](e){let t=e[`--`]?e[`--`]:e._;for(let e=0,n;(n=t[e])!==void 0;e++)I(this,X,`f`).Parser.looksLikeNumber(n)&&Number.isSafeInteger(Math.floor(parseFloat(`${n}`)))&&(t[e]=Number(n));return e}[Kn](e){let t=e||`*`;if(I(this,Dn,`f`)[t])return I(this,Dn,`f`)[t];let n={};try{let t=e||I(this,X,`f`).mainFilename;I(this,X,`f`).path.extname(t)&&(t=I(this,X,`f`).path.dirname(t));let r=I(this,X,`f`).findUp(t,(e,t)=>{if(t.includes(`package.json`))return`package.json`});j(r,void 0,I(this,X,`f`)),n=JSON.parse(I(this,X,`f`).readFileSync(r,`utf8`))}catch{}return I(this,Dn,`f`)[t]=n||{},I(this,Dn,`f`)[t]}[qn](e,t){t=[].concat(t),t.forEach(t=>{t=this[Zn](t),I(this,q,`f`)[e].push(t)})}[Jn](e,t,n,r){this[Xn](e,t,n,r,(e,t,n)=>{I(this,q,`f`)[e][t]=n})}[Yn](e,t,n,r){this[Xn](e,t,n,r,(e,t,n)=>{I(this,q,`f`)[e][t]=(I(this,q,`f`)[e][t]||[]).concat(n)})}[Xn](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 At(n))e(t,n[t]);else i(t,this[Zn](n),r)}[Zn](e){return e===`__proto__`?`___proto___`:e}[Qn](e,t){return this[Jn](this[Qn].bind(this),`key`,e,t),this}[$n](){var e,t,n,r,i,a,o,s,c,l,u,d;let f=I(this,xn,`f`).pop();j(f,void 0,I(this,X,`f`));let p;e=this,t=this,n=this,r=this,i=this,a=this,o=this,s=this,c=this,l=this,u=this,d=this,{options:{set value(t){F(e,q,t,`f`)}}.value,configObjects:p,exitProcess:{set value(e){F(t,V,e,`f`)}}.value,groups:{set value(e){F(n,U,e,`f`)}}.value,output:{set value(e){F(r,K,e,`f`)}}.value,exitError:{set value(e){F(i,B,e,`f`)}}.value,hasOutput:{set value(e){F(a,W,e,`f`)}}.value,parsed:this.parsed,strict:{set value(e){F(o,An,e,`f`)}}.value,strictCommands:{set value(e){F(s,jn,e,`f`)}}.value,strictOptions:{set value(e){F(c,Mn,e,`f`)}}.value,completionCommand:{set value(e){F(l,z,e,`f`)}}.value,parseFn:{set value(e){F(u,J,e,`f`)}}.value,parseContext:{set value(e){F(d,En,e,`f`)}}.value}=f,I(this,q,`f`).configObjects=p,I(this,Z,`f`).unfreeze(),I(this,$,`f`).unfreeze(),I(this,L,`f`).unfreeze(),I(this,H,`f`).unfreeze()}[er](e,t){return Rt(t,t=>(e(t),t))}getInternalMethods(){return{getCommandInstance:this[tr].bind(this),getContext:this[nr].bind(this),getHasOutput:this[rr].bind(this),getLoggerInstance:this[ir].bind(this),getParseContext:this[ar].bind(this),getParserConfiguration:this[Vn].bind(this),getUsageConfiguration:this[Hn].bind(this),getUsageInstance:this[or].bind(this),getValidationInstance:this[sr].bind(this),hasParseCallback:this[cr].bind(this),isGlobalContext:this[lr].bind(this),postProcess:this[ur].bind(this),reset:this[fr].bind(this),runValidation:this[mr].bind(this),runYargsParserAndExecuteCommands:this[pr].bind(this),setHasOutput:this[hr].bind(this)}}[tr](){return I(this,L,`f`)}[nr](){return I(this,_n,`f`)}[rr](){return I(this,W,`f`)}[ir](){return I(this,Cn,`f`)}[ar](){return I(this,En,`f`)||{}}[or](){return I(this,Z,`f`)}[sr](){return I(this,$,`f`)}[cr](){return!!I(this,J,`f`)}[lr](){return I(this,Sn,`f`)}[ur](e,t,n,r){return n||M(e)?e:(t||(e=this[Fn](e)),(this[Vn]()[`parse-positional-numbers`]||this[Vn]()[`parse-positional-numbers`]===void 0)&&(e=this[Gn](e)),r&&(e=Lt(e,this,I(this,H,`f`).getMiddleware(),!1)),e)}[fr](e={}){F(this,q,I(this,q,`f`)||{},`f`);let t={};t.local=I(this,q,`f`).local||[],t.configObjects=I(this,q,`f`).configObjects||[];let n={};return t.local.forEach(t=>{n[t]=!0,(e[t]||[]).forEach(e=>{n[e]=!0})}),Object.assign(I(this,On,`f`),Object.keys(I(this,U,`f`)).reduce((e,t)=>{let r=I(this,U,`f`)[t].filter(e=>!(e in n));return r.length>0&&(e[t]=r),e},{})),F(this,U,{},`f`),[`array`,`boolean`,`string`,`skipValidation`,`count`,`normalize`,`number`,`hiddenOptions`].forEach(e=>{t[e]=(I(this,q,`f`)[e]||[]).filter(e=>!n[e])}),[`narg`,`key`,`alias`,`default`,`defaultDescription`,`config`,`choices`,`demandedOptions`,`demandedCommands`,`deprecatedOptions`].forEach(e=>{t[e]=Jt(I(this,q,`f`)[e],e=>!n[e])}),t.envPrefix=I(this,q,`f`).envPrefix,F(this,q,t,`f`),F(this,Z,I(this,Z,`f`)?I(this,Z,`f`).reset(n):Zt(this,I(this,X,`f`)),`f`),F(this,$,I(this,$,`f`)?I(this,$,`f`).reset(n):ln(this,I(this,Z,`f`),I(this,X,`f`)),`f`),F(this,L,I(this,L,`f`)?I(this,L,`f`).reset():Ht(I(this,Z,`f`),I(this,$,`f`),I(this,H,`f`),I(this,X,`f`)),`f`),I(this,R,`f`)||F(this,R,rn(this,I(this,Z,`f`),I(this,L,`f`),I(this,X,`f`)),`f`),I(this,H,`f`).reset(),F(this,z,null,`f`),F(this,K,``,`f`),F(this,B,null,`f`),F(this,W,!1,`f`),this.parsed=!1,this}[dr](e,t){return I(this,X,`f`).path.relative(e,t)}[pr](e,t,n,r=0,i=!1){let a=!!n||i;e||=I(this,Y,`f`),I(this,q,`f`).__=I(this,X,`f`).y18n.__,I(this,q,`f`).configuration=this[Vn]();let o=!!I(this,q,`f`).configuration[`populate--`],s=Object.assign({},I(this,q,`f`).configuration,{"populate--":!0}),c=I(this,X,`f`).Parser.detailed(e,Object.assign({},I(this,q,`f`),{configuration:{"parse-positional-numbers":!1,...s}})),l=Object.assign(c.argv,I(this,En,`f`)),u,d=c.aliases,f=!1,p=!1;Object.keys(l).forEach(e=>{e===I(this,G,`f`)&&l[e]?f=!0:e===I(this,Q,`f`)&&l[e]&&(p=!0)}),l.$0=this.$0,this.parsed=c,r===0&&I(this,Z,`f`).clearCachedHelpMessage();try{if(this[Un](),t)return this[ur](l,o,!!n,!1);I(this,G,`f`)&&[I(this,G,`f`)].concat(d[I(this,G,`f`)]||[]).filter(e=>e.length>1).includes(``+l._[l._.length-1])&&(l._.pop(),f=!0),F(this,Sn,!1,`f`);let s=I(this,L,`f`).getCommands(),m=I(this,R,`f`)?.completionKey?[I(this,R,`f`)?.completionKey,...this.getAliases()[I(this,R,`f`)?.completionKey]??[]].some(e=>Object.prototype.hasOwnProperty.call(l,e)):!1,h=f||m||i;if(l._.length){if(s.length){let e;for(let t=r||0,a;l._[t]!==void 0;t++)if(a=String(l._[t]),s.includes(a)&&a!==I(this,z,`f`)){let e=I(this,L,`f`).runCommand(a,this,c,t+1,i,f||p||i);return this[ur](e,o,!!n,!1)}else if(!e&&a!==I(this,z,`f`)){e=a;break}!I(this,L,`f`).hasDefaultCommand()&&I(this,kn,`f`)&&e&&!h&&I(this,$,`f`).recommendCommands(e,s)}I(this,z,`f`)&&l._.includes(I(this,z,`f`))&&!m&&(I(this,V,`f`)&&Yt(!0),this.showCompletionScript(),this.exit(0))}if(I(this,L,`f`).hasDefaultCommand()&&!h){let e=I(this,L,`f`).runCommand(null,this,c,0,i,f||p||i);return this[ur](e,o,!!n,!1)}if(m){I(this,V,`f`)&&Yt(!0),e=[].concat(e);let t=e.slice(e.indexOf(`--${I(this,R,`f`).completionKey}`)+1);return I(this,R,`f`).getCompletion(t,(e,t)=>{if(e)throw new N(e.message);(t||[]).forEach(e=>{I(this,Cn,`f`).log(e)}),this.exit(0)}),this[ur](l,!o,!!n,!1)}if(I(this,W,`f`)||(f?(I(this,V,`f`)&&Yt(!0),a=!0,this.showHelp(e=>{I(this,Cn,`f`).log(e),this.exit(0)})):p&&(I(this,V,`f`)&&Yt(!0),a=!0,I(this,Z,`f`).showVersion(`log`),this.exit(0))),!a&&I(this,q,`f`).skipValidation.length>0&&(a=Object.keys(l).some(e=>I(this,q,`f`).skipValidation.indexOf(e)>=0&&l[e]===!0)),!a){if(c.error)throw new N(c.error.message);if(!m){let e=this[mr](d,{},c.error);n||(u=Lt(l,this,I(this,H,`f`).getMiddleware(),!0)),u=this[er](e,u??l),M(u)&&!n&&(u=u.then(()=>Lt(l,this,I(this,H,`f`).getMiddleware(),!1)))}}}catch(e){if(e instanceof N)I(this,Z,`f`).fail(e.message,e);else throw e}return this[ur](u??l,o,!!n,!0)}[mr](e,t,n,r){let i={...this.getDemandedOptions()};return a=>{if(n)throw new N(n.message);I(this,$,`f`).nonOptionCount(a),I(this,$,`f`).requiredArguments(a,i);let o=!1;I(this,jn,`f`)&&(o=I(this,$,`f`).unknownCommands(a)),I(this,An,`f`)&&!o?I(this,$,`f`).unknownArguments(a,e,t,!!r):I(this,Mn,`f`)&&I(this,$,`f`).unknownArguments(a,e,{},!1,!1),I(this,$,`f`).limitedChoices(a),I(this,$,`f`).implications(a),I(this,$,`f`).conflicting(a)}}[hr](){F(this,W,!0,`f`)}[gr](e){if(typeof e==`string`)I(this,q,`f`).key[e]=!0;else for(let t of e)I(this,q,`f`).key[t]=!0}};function vr(e){return!!e&&typeof e.getInternalMethods==`function`}const yr=Pn(Ot),br=[{command:i(`abuse-reports`,`Submit and track abuse reports for phishing, malware, and other policy violations on Cloudflare-proxied sites`,()=>import(`./abuse-reports-DX5xgeka.mjs`),null),hideCommand:!1},{command:i(`access`,`Access protected applications and services`,()=>import(`./access-DuHs0Mii.mjs`),null),hideCommand:!1},{command:i(`account-tags`,`account-tags`,()=>import(`./account-tags-CiKwgOWd.mjs`),null),hideCommand:!1},{command:i(`accounts`,`Account settings, members, roles, subscriptions, and API tokens for your Cloudflare account`,()=>import(`./accounts-DfXSHrkF.mjs`),null),hideCommand:!1},{command:i(`acm`,`acm`,()=>import(`./acm-BgSr3Ig4.mjs`),null),hideCommand:!0},{command:i(`addressing`,`addressing`,()=>import(`./addressing-B70NFnrX.mjs`),null),hideCommand:!1},{command:i(`agent-memory`,`agent-memory`,()=>import(`./agent-memory-DJRquHeq.mjs`),null),hideCommand:!1},{command:i(`ai`,`ai`,()=>import(`./ai-CP2oIS-I.mjs`),null),hideCommand:!1},{command:i(`ai-audit`,`ai-audit`,()=>import(`./ai-audit-Bn_BfMFS.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-CrrEtzUP.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-C4YWVTCa.mjs`),null),hideCommand:!1},{command:i(`ai-security`,`Detect prompt injection, PII, and unsafe topics in traffic to your AI applications`,()=>import(`./ai-security-Bt_fG65f.mjs`),null),hideCommand:!0},{command:i(`alerting`,`alerting`,()=>import(`./alerting-CRr88fVR.mjs`),null),hideCommand:!0},{command:i(`alerts`,`alerts`,()=>import(`./alerts-D3iKtzoN.mjs`),null),hideCommand:!0},{command:i(`analytics`,`Zone-level traffic analytics — dashboard summaries, per-colo breakdowns, and Argo latency metrics`,()=>import(`./analytics-XqS9OP5B.mjs`),null),hideCommand:!1},{command:i(`analytics_engine`,`analytics_engine`,()=>import(`./analytics_engine-CzmYem4f.mjs`),null),hideCommand:!0},{command:i(`api-security`,`api-security`,()=>import(`./api-security-gB1FHrHq.mjs`),null),hideCommand:!0},{command:i(`argo`,`Network optimization features that speed up and improve reliability of traffic to your origins`,()=>import(`./argo-wFCAsYx7.mjs`),null),hideCommand:!0},{command:i(`artifacts`,`artifacts`,()=>import(`./artifacts-qFjlNRqb.mjs`),null),hideCommand:!1},{command:i(`audit-logs`,`audit-logs`,()=>import(`./audit-logs-CpPUjMUP.mjs`),null),hideCommand:!0},{command:i(`autorag`,`autorag`,()=>import(`./autorag-pvRfDwne.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-CshcpsAH.mjs`),null),hideCommand:!1},{command:i(`billing`,`Account billing profiles and usage data for Cloudflare subscriptions and add-on services`,()=>import(`./billing-B-xNxxiP.mjs`),null),hideCommand:!1},{command:i(`bot-management`,`bot-management`,()=>import(`./bot-management-DhafeA2J.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-D6uCLE_D.mjs`),null),hideCommand:!0},{command:i(`brand-protection`,`brand-protection`,()=>import(`./brand-protection-c3WiHbYn.mjs`),null),hideCommand:!0},{command:i(`brands`,`brands`,()=>import(`./brands-DP5Ndir1.mjs`),null),hideCommand:!0},{command:i(`browser-extension`,`browser-extension`,()=>import(`./browser-extension-Dee2Y1qn.mjs`),null),hideCommand:!0},{command:i(`browser-run`,`browser-run`,()=>import(`./browser-run-D9_cwaSD.mjs`),null),hideCommand:!1},{command:i(`builds`,`Build and deploy Workers from connected repositories, then inspect build status and logs.`,()=>import(`./builds-Dl8if-2k.mjs`),null),hideCommand:!1},{command:i(`cache`,`Purge cached content and configure Cache Reserve, tiered caching, and variant serving`,()=>import(`./cache-CIZokBjd.mjs`),null),hideCommand:!1},{command:i(`certificate-authorities`,`certificate-authorities`,()=>import(`./certificate-authorities-NUQzCDK8.mjs`),null),hideCommand:!0},{command:i(`clear`,`clear`,()=>import(`./clear-qLKPlJqb.mjs`),null),hideCommand:!0},{command:i(`client-certificates`,`client-certificates`,()=>import(`./client-certificates-qgLpBn8t.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-DZO6Xw14.mjs`),null),hideCommand:!0},{command:i(`cloud-connector`,`Route traffic from Cloudflare directly to cloud provider services (AWS, Azure, GCP) without origin servers`,()=>import(`./cloud-connector-C7vGDCzX.mjs`),null),hideCommand:!1},{command:i(`cloudforce-one`,`Detection rule management APIs`,()=>import(`./cloudforce-one-CE7y5UkF.mjs`),null),hideCommand:!1},{command:i(`connector-interrupts`,`connector-interrupts`,()=>import(`./connector-interrupts-CVjFhU-C.mjs`),null),hideCommand:!0},{command:i(`connector-telemetry-events`,`connector-telemetry-events`,()=>import(`./connector-telemetry-events-Bu3LKP6T.mjs`),null),hideCommand:!0},{command:i(`connector-telemetry-events-latest`,`connector-telemetry-events-latest`,()=>import(`./connector-telemetry-events-latest-_aCmWeZx.mjs`),null),hideCommand:!0},{command:i(`connector-telemetry-snapshots`,`connector-telemetry-snapshots`,()=>import(`./connector-telemetry-snapshots-BbDTIc06.mjs`),null),hideCommand:!0},{command:i(`connector-telemetry-snapshots-latest`,`connector-telemetry-snapshots-latest`,()=>import(`./connector-telemetry-snapshots-latest-CffEplpV.mjs`),null),hideCommand:!0},{command:i(`connectors`,`connectors`,()=>import(`./connectors-DGtx-rPI.mjs`),null),hideCommand:!0},{command:i(`containers`,`Deploy and manage Containers applications on Cloudflare's global network`,()=>import(`./containers-DEFrbNgO.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-BCtWBCqd.mjs`),null),hideCommand:!0},{command:i(`cps`,`cps`,()=>import(`./cps-C8BbnbuD.mjs`),null),hideCommand:!1},{command:i(`csamScanner`,`csamScanner`,()=>import(`./csamScanner-CsJ9H2fA.mjs`),null),hideCommand:!0},{command:i(`ct-alerting`,`ct-alerting`,()=>import(`./ct-alerting-CYsQZO2H.mjs`),null),hideCommand:!0},{command:i(`custom-certificates`,`custom-certificates`,()=>import(`./custom-certificates-CA8HqolM.mjs`),null),hideCommand:!0},{command:i(`custom-csrs`,`custom-csrs`,()=>import(`./custom-csrs-D0P2vWJE.mjs`),null),hideCommand:!1},{command:i(`custom-hostnames`,`custom-hostnames`,()=>import(`./custom-hostnames-CzYMChbh.mjs`),null),hideCommand:!0},{command:i(`custom-nameservers`,`custom-nameservers`,()=>import(`./custom-nameservers-Cet3oF56.mjs`),null),hideCommand:!1},{command:i(`custom-pages`,`Manage custom error and challenge pages and their assets for accounts and zones`,()=>import(`./custom-pages-DUkHIaTP.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-B2duXfH2.mjs`),null),hideCommand:!1},{command:i(`dcv-delegation`,`dcv-delegation`,()=>import(`./dcv-delegation-BkdRVEAH.mjs`),null),hideCommand:!0},{command:i(`diagnostics`,`Network diagnostic tools — traceroutes from Cloudflare's edge and endpoint health checks`,()=>import(`./diagnostics-9Wj5UWBL.mjs`),null),hideCommand:!0},{command:i(`dls`,`dls`,()=>import(`./dls-Caya7FZc.mjs`),null),hideCommand:!0},{command:i(`dns`,`dns`,()=>import(`./dns-BLNa0GrP.mjs`),null),hideCommand:!1},{command:i(`dns-firewall`,`dns-firewall`,()=>import(`./dns-firewall-ChCvC5rT.mjs`),null),hideCommand:!0},{command:i(`domain-info`,`domain-info`,()=>import(`./domain-info-BQh9XapD.mjs`),null),hideCommand:!0},{command:i(`durable-objects`,`durable-objects`,()=>import(`./durable-objects-DuRbdp7N.mjs`),null),hideCommand:!1},{command:i(`email-auth`,`email-auth`,()=>import(`./email-auth-C28s03aI.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-Ci-xjXIN.mjs`),null),hideCommand:!1},{command:i(`email-security`,`Cloud email security — investigate threats, manage allow/block policies, and detect phishing`,()=>import(`./email-security-DPU6xvI9.mjs`),null),hideCommand:!1},{command:i(`email-sending`,`Send transactional email and manage sending subdomains and their DNS configuration`,()=>import(`./email-sending-kTVAlVKO.mjs`),null),hideCommand:!1},{command:i(`fieldExtractors`,`fieldExtractors`,()=>import(`./fieldExtractors-ceaXu4zD.mjs`),null),hideCommand:!0},{command:i(`firewall`,`Legacy firewall rules, zone lockdowns, access rules, user-agent blocking, and WAF packages`,()=>import(`./firewall-BND3qSY2.mjs`),null),hideCommand:!1},{command:i(`flagship`,`flagship`,()=>import(`./flagship-DfxbNzgx.mjs`),null),hideCommand:!1},{command:i(`fraud`,`fraud`,()=>import(`./fraud-DgyYv_CC.mjs`),null),hideCommand:!0},{command:i(`google-tag-gateway`,`Google Tag Gateway operations`,()=>import(`./google-tag-gateway-v3p7murv.mjs`),null),hideCommand:!0},{command:i(`health`,`health`,()=>import(`./health--10IShMi.mjs`),null),hideCommand:!0},{command:i(`healthchecks`,`Standalone health checks that monitor origin server availability from Cloudflare's edge`,()=>import(`./healthchecks-CByb4qYA.mjs`),null),hideCommand:!0},{command:i(`hostnames`,`hostnames`,()=>import(`./hostnames-3CqeMF5g.mjs`),null),hideCommand:!0},{command:i(`hyperdrive`,`Accelerate access to existing databases by caching queries and pooling connections at the edge`,()=>import(`./hyperdrive-CmyYTE-K.mjs`),null),hideCommand:!1},{command:i(`iam`,`Identity and access management — permission groups, resource groups, user groups, and SSO connectors`,()=>import(`./iam-CV_M681j.mjs`),null),hideCommand:!0},{command:i(`images`,`Store, resize, and deliver optimized images globally — variants, signing keys, and direct uploads`,()=>import(`./images-DaLPjskW.mjs`),null),hideCommand:!1},{command:i(`intel`,`Threat intelligence lookups — IP reputation, domain info, ASN details, WHOIS, and indicator feeds`,()=>import(`./intel-MpftjuPB.mjs`),null),hideCommand:!1},{command:i(`internal`,`internal`,()=>import(`./internal-BUs583vv.mjs`),null),hideCommand:!0},{command:i(`ips`,`ips`,()=>import(`./ips-WWvPwSBc.mjs`),null),hideCommand:!0},{command:i(`k2`,`Durable, ordered event streams that you produce records to and consume from with subscriptions`,()=>import(`./k2-D0QYUFqT.mjs`),null),hideCommand:!1},{command:i(`keyless-certificates`,`keyless-certificates`,()=>import(`./keyless-certificates-DqILy3t9.mjs`),null),hideCommand:!0},{command:i(`keys`,`keys`,()=>import(`./keys-DhX4AcqF.mjs`),null),hideCommand:!1},{command:i(`kv`,`kv`,()=>import(`./kv-DLUfUL0_.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-C0U1oYM5.mjs`),null),hideCommand:!0},{command:i(`live`,`live`,()=>import(`./live-VCSxA0N9.mjs`),null),hideCommand:!0},{command:i(`load-balancers`,`Distribute traffic across origin pools with health monitoring, geo-steering, and failover`,()=>import(`./load-balancers-BJKI9lm7.mjs`),null),hideCommand:!1},{command:i(`logo-matches`,`logo-matches`,()=>import(`./logo-matches-DFZybI0C.mjs`),null),hideCommand:!0},{command:i(`logos`,`logos`,()=>import(`./logos-Da2YtqSN.mjs`),null),hideCommand:!0},{command:i(`logpush`,`logpush`,()=>import(`./logpush-Q7WIEHS1.mjs`),null),hideCommand:!1},{command:i(`logs`,`Log control, retention, and raw log access — CMB config, ray ID lookups, and received fields`,()=>import(`./logs-c3b3USyS.mjs`),null),hideCommand:!1},{command:i(`magic-cloud-networking`,`magic-cloud-networking`,()=>import(`./magic-cloud-networking-BoyDmFq3.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-BkUbpMUp.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-4-THD45G.mjs`),null),hideCommand:!0},{command:i(`managed-defense`,`managed-defense`,()=>import(`./managed-defense-CTMqSp6z.mjs`),null),hideCommand:!1},{command:i(`managed-transforms`,`managed-transforms`,()=>import(`./managed-transforms-DcYAvqTe.mjs`),null),hideCommand:!0},{command:i(`matches`,`matches`,()=>import(`./matches-hnU16rSJ.mjs`),null),hideCommand:!0},{command:i(`mcp`,`mcp`,()=>import(`./mcp-kZX4irfN.mjs`),null),hideCommand:!1},{command:i(`mesh`,`mesh`,()=>import(`./mesh-Dxzvvso6.mjs`),null),hideCommand:!0},{command:i(`monetization`,`monetization`,()=>import(`./monetization-Dsqj9DCA.mjs`),null),hideCommand:!1},{command:i(`mtls-certificates`,`mtls-certificates`,()=>import(`./mtls-certificates-BSbMwIna.mjs`),null),hideCommand:!0},{command:i(`network`,`network`,()=>import(`./network-mEnXTEiG.mjs`),null),hideCommand:!0},{command:i(`network-interconnects`,`Physical and virtual private interconnects between your infrastructure and Cloudflare's network`,()=>import(`./network-interconnects-osO_vAPu.mjs`),null),hideCommand:!0},{command:i(`oauth-clients`,`oauth-clients`,()=>import(`./oauth-clients-CWPHi-Yn.mjs`),null),hideCommand:!0},{command:i(`oauth-scopes`,`oauth-scopes`,()=>import(`./oauth-scopes-CxpRD6d7.mjs`),null),hideCommand:!0},{command:i(`observability`,`observability`,()=>import(`./observability-BxL2RqWZ.mjs`),null),hideCommand:!1},{command:i(`organization`,`organization`,()=>import(`./organization-DNieJ1xJ.mjs`),null),hideCommand:!1},{command:i(`organizations`,`Multi-user organizations that group accounts, members, and shared settings under a single entity`,()=>import(`./organizations-BIXPmTy5.mjs`),null),hideCommand:!1},{command:i(`origin-ca-certificates`,`origin-ca-certificates`,()=>import(`./origin-ca-certificates-dVJvSIH8.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-CO6tDW1t.mjs`),null),hideCommand:!0},{command:i(`origin-tls-client-auth`,`origin-tls-client-auth`,()=>import(`./origin-tls-client-auth-DeTY8aN2.mjs`),null),hideCommand:!0},{command:i(`page-rules`,`page-rules`,()=>import(`./page-rules-DA552Ra4.mjs`),null),hideCommand:!0},{command:i(`pages`,`Full-stack application hosting with Git-integrated builds, preview deployments, and custom domains`,()=>import(`./pages-B0x7tidm.mjs`),null),hideCommand:!1},{command:i(`pay-per-crawl`,`pay-per-crawl`,()=>import(`./pay-per-crawl-DoTg9VP7.mjs`),null),hideCommand:!1},{command:i(`pay-per-use`,`pay-per-use`,()=>import(`./pay-per-use-yRO2QBfe.mjs`),null),hideCommand:!1},{command:i(`pipelines`,`Ingest, transform, and route event streams into R2, analytics, or other destinations in real time`,()=>import(`./pipelines-CQxrm9ao.mjs`),null),hideCommand:!1},{command:i(`precursor`,`Precursor settings for a zone`,()=>import(`./precursor-FiGYDRV9.mjs`),null),hideCommand:!0},{command:i(`queries`,`queries`,()=>import(`./queries-C0RRdol7.mjs`),null),hideCommand:!0},{command:i(`queues`,`Reliable message queuing between Workers — produce, consume, and batch-process messages at scale`,()=>import(`./queues-sLgvjsRP.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-C2PllL6i.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-Bg7zq1IB.mjs`),null),hideCommand:!1},{command:i(`radar`,`Internet-wide traffic intelligence — BGP, DNS, HTTP trends, attack data, and network quality insights`,()=>import(`./radar-Bez6k9Dw.mjs`),null),hideCommand:!0},{command:i(`rate-limit-analytics`,`rate-limit-analytics`,()=>import(`./rate-limit-analytics-D3q0mGv2.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-BIxlBuMn.mjs`),null),hideCommand:!0},{command:i(`ready`,`ready`,()=>import(`./ready-CAgelFmC.mjs`),null),hideCommand:!0},{command:i(`realtime`,`Real-time audio, video, and data services on Cloudflare's global network`,()=>import(`./realtime-D-HSXznX.mjs`),null),hideCommand:!1},{command:i(`recent-submissions`,`recent-submissions`,()=>import(`./recent-submissions-B3TOjNmk.mjs`),null),hideCommand:!0},{command:i(`refute`,`refute`,()=>import(`./refute-BZNkFpBB.mjs`),null),hideCommand:!0},{command:i(`registrar`,`registrar`,()=>import(`./registrar-DwHrG9QR.mjs`),null),hideCommand:!1},{command:i(`registrar-sandbox`,`registrar-sandbox`,()=>import(`./registrar-sandbox-jNukmzQP.mjs`),null),hideCommand:!1},{command:i(`reporting`,`reporting`,()=>import(`./reporting-DolhAb10.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-w72hKc33.mjs`),null),hideCommand:!0},{command:i(`resource-sharing`,`Share Cloudflare resources (zones, accounts) across organizations with granular access controls`,()=>import(`./resource-sharing-DTrSkqI4.mjs`),null),hideCommand:!1},{command:i(`resource-tagging`,`resource-tagging`,()=>import(`./resource-tagging-aURR4fIJ.mjs`),null),hideCommand:!1},{command:i(`rules`,`Resources used by Cloudflare rules and rulesets`,()=>import(`./rules-C8a7cV-W.mjs`),null),hideCommand:!1},{command:i(`rulesets`,`rulesets`,()=>import(`./rulesets-RJ6yBefy.mjs`),null),hideCommand:!1},{command:i(`rum`,`Real User Measurement (Web Analytics) — track page loads, Core Web Vitals, and visitor metrics`,()=>import(`./rum-Bk1dPW4p.mjs`),null),hideCommand:!0},{command:i(`scan-logo`,`scan-logo`,()=>import(`./scan-logo-StecHiaf.mjs`),null),hideCommand:!0},{command:i(`scan-page`,`scan-page`,()=>import(`./scan-page-B4adr-vD.mjs`),null),hideCommand:!0},{command:i(`scim`,`SCIM 2.0 provisioning — manage users, groups, and identity provider sync for your account`,()=>import(`./scim-C0FmjkkV.mjs`),null),hideCommand:!0},{command:i(`search`,`search`,()=>import(`./search-Devngw4M.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-cG_5RMzK.mjs`),null),hideCommand:!1},{command:i(`security-insights`,`security-insights`,()=>import(`./security-insights-DVAqroY5.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-rfrrdiZV.mjs`),null),hideCommand:!1},{command:i(`signed-url`,`signed-url`,()=>import(`./signed-url-ChR5eXXd.mjs`),null),hideCommand:!0},{command:i(`smart-shield`,`Smart Shield settings, health checks, and cache reserve management`,()=>import(`./smart-shield-_HA814Im.mjs`),null),hideCommand:!0},{command:i(`snippets`,`snippets`,()=>import(`./snippets-mRelEw0p.mjs`),null),hideCommand:!1},{command:i(`spectrum`,`Proxy and protect arbitrary TCP/UDP applications through Cloudflare's network with DDoS mitigation`,()=>import(`./spectrum-BwtOiaDw.mjs`),null),hideCommand:!0},{command:i(`speed`,`Observatory speed tests — run Lighthouse audits, track performance trends, and schedule recurring tests`,()=>import(`./speed-DmqsZtiJ.mjs`),null),hideCommand:!1},{command:i(`ssl`,`SSL/TLS certificate management — certificate packs, Universal SSL, verification, and TLS mode recommendations`,()=>import(`./ssl-DCvfveJB.mjs`),null),hideCommand:!0},{command:i(`stream`,`Video encoding, storage, and delivery — upload, live-stream, clip, caption, and embed video at scale`,()=>import(`./stream-aroClJeD.mjs`),null),hideCommand:!1},{command:i(`submission-info`,`submission-info`,()=>import(`./submission-info-BGb81HZN.mjs`),null),hideCommand:!0},{command:i(`submit`,`submit`,()=>import(`./submit-BBKhoKT8.mjs`),null),hideCommand:!0},{command:i(`tags`,`tags`,()=>import(`./tags-Djw0e-4j.mjs`),null),hideCommand:!1},{command:i(`tenant`,`tenant`,()=>import(`./tenant-tc1wb_ym.mjs`),null),hideCommand:!1},{command:i(`tenant-custom-nameservers`,`tenant-custom-nameservers`,()=>import(`./tenant-custom-nameservers-XCbXryBZ.mjs`),null),hideCommand:!0},{command:i(`total-queries`,`total-queries`,()=>import(`./total-queries-_wa6KxEl.mjs`),null),hideCommand:!0},{command:i(`tracked-domains`,`tracked-domains`,()=>import(`./tracked-domains-BesKGqfI.mjs`),null),hideCommand:!0},{command:i(`tunnels`,`tunnels`,()=>import(`./tunnels-C2FTswb6.mjs`),null),hideCommand:!0},{command:i(`turnstile`,`CAPTCHA-free bot verification widgets that protect forms and APIs without degrading user experience`,()=>import(`./turnstile-BV4Mdd-j.mjs`),null),hideCommand:!0},{command:i(`url-info`,`url-info`,()=>import(`./url-info-CeegsDK7.mjs`),null),hideCommand:!0},{command:i(`url-normalization`,`url-normalization`,()=>import(`./url-normalization-Dbypc9wz.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-BFXMrpJF.mjs`),null),hideCommand:!0},{command:i(`user`,`Your Cloudflare user profile, invitations, organizations, billing, and personal API tokens`,()=>import(`./user-3uwLMH78.mjs`),null),hideCommand:!1},{command:i(`values`,`values`,()=>import(`./values-BTncDc3U.mjs`),null),hideCommand:!1},{command:i(`vectorize`,`Globally distributed vector database for building semantic search, recommendations, and RAG applications on Workers`,()=>import(`./vectorize-CtMAtx8r.mjs`),null),hideCommand:!1},{command:i(`verify`,`verify`,()=>import(`./verify-CYM5GlPu.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-1xDvjF13.mjs`),null),hideCommand:!1},{command:i(`web-assets`,`web-assets`,()=>import(`./web-assets-BfEprX1S.mjs`),null),hideCommand:!0},{command:i(`web3`,`web3`,()=>import(`./web3-DNbp5sZw.mjs`),null),hideCommand:!0},{command:i(`workers`,`workers`,()=>import(`./workers-DK_JgS4Y.mjs`),null),hideCommand:!1},{command:i(`workers-builds`,`workers-builds`,()=>import(`./workers-builds-CdhwmmsQ.mjs`),null),hideCommand:!0},{command:i(`workers-for-platforms`,`workers-for-platforms`,()=>import(`./workers-for-platforms-CP6IqxrK.mjs`),null),hideCommand:!1},{command:i(`workers-vpc`,`workers-vpc`,()=>import(`./workers-vpc-LVfayM2-.mjs`),null),hideCommand:!1},{command:i(`workflows`,`Durable, multi-step workflows that run on Workers with automatic retries and state persistence`,()=>import(`./workflows-CA5K8FFb.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-BY60ZUQ4.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-CQNohO7_.mjs`),null),hideCommand:!1},{command:i(`zone`,`zone`,()=>import(`./zone-BVDW2UGd.mjs`),null),hideCommand:!1},{command:i(`zones`,`Zones are domains on Cloudflare — list, create, and configure domain settings`,()=>import(`./zones-CcZL0YQp.mjs`),null),hideCommand:!1}];function xr(e){return typeof e==`object`&&!!e&&`schemas`in e&&typeof e.schemas==`object`&&e.schemas!==null&&!Array.isArray(e.schemas)}function Sr(e,t){if(!t)return e;let n=a(import.meta.url,`schemas.json`,xr);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 Cr=[{kind:`root`,command:`auth`,describe:`Manage authentication and profiles`,dir:`auth`,load:()=>import(`./auth-7Fk7PVIC.mjs`),telemetry:{command:`auth`,recordArgs:!1}},{kind:`root`,command:`login`,describe:!1,dir:`login`,load:()=>import(`./login-CnE2Ii_F.mjs`),telemetry:null},{kind:`root`,command:`build`,describe:`Build a project for Cloudflare`,dir:`build`,load:()=>import(`./build-9ihDp-Gy.mjs`),telemetry:{command:`build`,classification:{safeFlags:[]}}},{kind:`root`,command:`complete [shell]`,describe:`Generate and handle shell completions`,dir:`completions`,load:()=>import(`./completions-D0280hul.mjs`),telemetry:null},{kind:`root`,command:`deploy`,describe:`Deploy a project to Cloudflare`,dir:`deploy`,load:()=>import(`./deploy-BdWBEbLj.mjs`),telemetry:{command:`deploy`,classification:{safeFlags:[`dry-run`,`prebuilt`,`containers-rollout`]}}},{kind:`root`,command:`dev [implArgs..]`,describe:`Run the project's Cloudflare dev server`,dir:`dev`,load:()=>import(`./dev-BHkVwAea.mjs`),telemetry:{command:`dev`,recordArgs:!1}},{kind:`root`,command:`init [directory]`,describe:`Create a new Cloudflare project or set up an existing one`,dir:`init`,load:()=>import(`./init-CBKifk5L.mjs`),telemetry:{command:`init`,classification:{safeFlags:[`install`,`package-manager`]}}},{kind:`root`,command:`migrate [path]`,describe:`Migrate a Wrangler project to cf`,dir:`migrate`,load:()=>import(`./migrate-BNvUWrjy.mjs`),telemetry:{command:`migrate`,recordArgs:!1}},{kind:`root`,command:`cli`,describe:`Discover commands and configure the cf CLI`,dir:`cli`,load:()=>import(`./cli-aChy8ou_.mjs`),telemetry:{command:`cli`,recordArgs:!1}},{kind:`root`,command:`previews`,describe:`Manage Worker Previews`,dir:`previews`,load:()=>import(`./previews-BthBa50j.mjs`),telemetry:{command:`previews`,recordArgs:!1}},{kind:`root`,command:`schema [command..]`,describe:`Show API schema details for a command`,dir:`schema`,load:()=>import(`./schema-v7mOxMdx.mjs`),telemetry:{command:`schema`,classification:{safeFlags:[`list`]}}},{kind:`root`,command:`tools`,describe:!1,dir:`tools`,load:()=>import(`./tools-CB4NleeJ.mjs`),telemetry:{command:`tools`,classification:{safeFlags:[`text`]}}},{kind:`leafOverride`,emitKey:`ai/run`,dir:`ai/run`},{kind:`leafOverride`,emitKey:`registrar/registrations/create`,dir:`registrar/registrations/create`},{kind:`leaf`,parent:`workers/versions`,name:`create`,dir:`workers/versions/create`},{kind:`leaf`,parent:`containers`,name:`build`,dir:`containers/build`},{kind:`leaf`,parent:`containers`,name:`push`,dir:`containers/push`},{kind:`leaf`,parent:`containers/images`,name:`list`,dir:`containers/images/list`},{kind:`leaf`,parent:`containers/images`,name:`delete`,dir:`containers/images/delete`},{kind:`leaf`,parent:`containers`,name:`ssh`,dir:`containers/ssh`},{kind:`leaf`,parent:`pages`,name:`deploy`,dir:`pages/deploy`},{kind:`leaf`,parent:`workers`,name:`check`,dir:`workers/check`},{kind:`leaf`,parent:`workers`,name:`types`,dir:`workers/types`},{kind:`parentOverride`,parent:`access`,describe:`Access protected applications and services`,expose:!0},{kind:`leaf`,parent:`access`,name:`login`,dir:`access/login`},{kind:`leaf`,parent:`access`,name:`token`,dir:`access/token`},{kind:`leaf`,parent:`access`,name:`ssh-config`,dir:`access/ssh-config`},{kind:`leaf`,parent:`access`,name:`ssh-gen`,dir:`access/ssh-gen`},{kind:`leaf`,parent:`access`,name:`tcp`,dir:`access/tcp`},{kind:`leaf`,parent:`access`,name:`curl`,dir:`access/curl`},{kind:`leaf`,parent:`tunnels`,name:`diag`,dir:`tunnels/diag`},{kind:`leaf`,parent:`tunnels`,name:`login`,dir:`tunnels/login`},{kind:`leaf`,parent:`tunnels`,name:`quick-start`,dir:`tunnels/quick-start`},{kind:`leaf`,parent:`tunnels`,name:`ready`,dir:`tunnels/ready`},{kind:`leaf`,parent:`tunnels`,name:`run`,dir:`tunnels/run`},{kind:`leaf`,parent:`tunnels`,name:`tail`,dir:`tunnels/tail`},{kind:`subgroup`,parent:`d1`,name:`migrations`,dir:`d1/migrations`,describe:`Create, list, and apply D1 database migrations`},{kind:`subgroup`,parent:`workers`,name:`triggers`,dir:`workers/triggers`,describe:`Manage triggers (Routes, Workflows, Cron triggers etc.)`}];function wr(){return Cr.filter(e=>e.kind===`root`)}function Tr(e){return e.command.split(/\s+/)[0]??e.command}function Er(e){try{let t=new URL(e);return`${t.pathname.replace(/^\/client\/v\d+/,``)}${t.search}`}catch{return e}}function Dr(e){if(_(m),e instanceof f){let t=e.statusCode,n=e.body,r=t===void 0?`Envelope Error`:kr(t),i=[];if(n){let e=n;Array.isArray(e.errors)&&(i=e.errors)}let a=e.rawResponse?.url?`HTTP ${Er(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(`
|
|
99
99
|
|
|
100
100
|
`):(u=o.error(o.bold(e.message||c)),e.message&&c&&(u+=`\n${l}`)),console.error(v(u,void 0,{title:`APIError`,rawMessage:!0})),t===401?console.error(`
|
|
101
101
|
`+h(`Try running: cf auth login`)):t===403&&console.error(`
|
|
@@ -104,6 +104,6 @@ complete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name
|
|
|
104
104
|
`)}else{let t=o.error(o.bold(e.message));i=n?`${t}\n${n}`:t}return console.error(v(i,void 0,{title:`APIError`,rawMessage:!0})),e.status===401?console.error(`
|
|
105
105
|
`+h(`Try running: cf auth login`)):e.status===403&&console.error(`
|
|
106
106
|
`+h(`Check your API token permissions`)),e}if(e instanceof Error){let t=process.env.DEBUG&&e.stack?Or(e.stack):void 0;return console.error(v(e.message,t)),e}return console.error(v(`An unexpected error occurred`,String(e))),e}function Or(e){return e.replace(/[A-Za-z0-9_-]{40,}/g,`[REDACTED]`)}function kr(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 Ar={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 jr(e){return Object.entries(Ar).some(([t,n])=>{if(n.type===`boolean`)return!1;let r=n.alias;return[t,...Array.isArray(r)?r:r===void 0?[]:[r]].some(t=>e===(t.length===1?`-${t}`:`--${t}`))})}const Mr=wr().map(e=>i(e.command,e.describe,e.load,e.telemetry)),Nr=new Set(wr().map(Tr)),Pr=[`=== 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 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`.",`=== END AGENT COMMAND DISCOVERY ===`].join(`
|
|
107
|
-
`);function Fr(e){return s().isAgentic?`${Pr}\n${e}`:e}function Ir(e,t){return Fr(Sr(e,t))}async function Lr(e=!1){if(!process.stderr.isTTY||e||c(process.argv.slice(2))||Br()===`complete`)return;let{readState:t,updateState:n}=await import(`./state-
|
|
108
|
-
`)),!0}function Zr(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`)||Br(i)!==`complete`&&_(m,{quiet:e||c(i),update:t}))}async function Qr(){let e=process.argv.slice(2);if(c(e)||Br(e)===`complete`||(e.length===0||e.includes(`--version`)||e.includes(`-v`)?process.stdout.isTTY!==!0:process.stderr.isTTY!==!0))return;let{isCI:t}=await import(`./interactive-
|
|
109
|
-
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(Ar).group([...Object.keys(Ar),`help`,`version`],s(`Global flags`));for(let e of Mr)f.command(e);for(let e of br)e.hideCommand?f.command({...e.command,describe:!1}):f.command(e.command);f.middleware(async e=>{Zr(e.quiet,i?.notice),i?.start();let t=Gr(f);t!==void 0&&n?.(t);try{await Hr(e.quiet)}catch{}try{await Lr(e.quiet)}catch{}te(e.mode);let r=String(e._[0]??``);if(!e.help&&(r===`dev`&&l||e.local&&Nr.has(r)))throw Error(`--local is not supported by cf ${r}.`);if(e.persistTo===``)throw Error(`--persist-to requires a non-empty directory.`);if(e.persistTo!==void 0&&!e.local)throw Error(`--persist-to can only be used with --local.`);if(t!==void 0&&u(t,e.local)&&(a=await d(e)),!e.local){let{resolveProfile:t}=await import(`./oauth-
|
|
107
|
+
`);function Fr(e){return s().isAgentic?`${Pr}\n${e}`:e}function Ir(e,t){return Fr(Sr(e,t))}async function Lr(e=!1){if(!process.stderr.isTTY||e||c(process.argv.slice(2))||Br()===`complete`)return;let{readState:t,updateState:n}=await import(`./state-a1tTOGjm.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 Rr;function zr(){return Rr??=import(`./telemetry-DrFNujdx.mjs`),Rr}function Br(e=process.argv.slice(2)){return Vr(e,1)[0]}function Vr(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(jr(t)){r++;continue}t.startsWith(`-`)||n.push(t)}return n}async function Hr(e=!1){if(!process.stderr.isTTY)return;let t=process.argv.slice(2);if(e||c(t)||t.includes(`--help`)||t.includes(`-h`)||Kr(Vr(t).join(` `)))return;let{getBannerLastShown:n,getTelemetryDispatcher:r,setBannerLastShown:i}=await zr();r().enabled&&n()!==m&&(process.stderr.write(o.muted("Cloudflare collects anonymous cf usage telemetry. Run `cf cli telemetry disable` to opt out.\n")),i(m))}async function Ur(){try{await Promise.race([b(),S(1e3,void 0,{ref:!1})])}catch{}}function Wr(e){return e instanceof Error&&e.message.startsWith(`Unknown command:`)}function Gr(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 Kr(e){let[t,n]=e.split(` `);return t===`complete`||t===`cli`&&n===`telemetry`}async function qr(e,t){if(ne()||e instanceof l)return;let n=Wr(e)?void 0:t;if(!(n===void 0&&!Wr(e)||Kr(n??Vr().join(` `))))try{let{getTelemetryDispatcher:t,UNKNOWN_COMMAND_EVENT:r}=await zr(),{sanitizeError:i}=await import(`./error-sanitization-p5rmb53x.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 Jr(e){if(!(!e||Kr(e)))try{let{getTelemetryDispatcher:t}=await zr();t().sendAdhocEvent(`cf help shown`,{command:e})}catch{}}function Yr(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:(console.log(g(m,e)),!0)}function Xr(e){if(process.argv.slice(2).length>0)return!1;let t=[g(m,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(`
|
|
108
|
+
`)),!0}function Zr(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`)||Br(i)!==`complete`&&_(m,{quiet:e||c(i),update:t}))}async function Qr(){let e=process.argv.slice(2);if(c(e)||Br(e)===`complete`||(e.length===0||e.includes(`--version`)||e.includes(`-v`)?process.stdout.isTTY!==!0:process.stderr.isTTY!==!0))return;let{isCI:t}=await import(`./interactive-mJQ_IrGd.mjs`);if(t)return;let{getUpdateNotice:n,maybeStartBackgroundUpdateCheck:r}=await import(`./update-check-CFt6cMOi.mjs`),i=!1;return{notice:n(m),start(){i||(i=!0,r())}}}function $r(e,t={}){let{onCommandResolved:n,onHelpShown:r,updateCheck:i}=t,a,s=e=>o.brand(e),c=e.indexOf(`--`),l=(c===-1?e:e.slice(0,c)).some(e=>e===`--local`||e===`--no-local`||e.startsWith(`--local=`)),f=yr(e).scriptName(`cf`).parserConfiguration({"sort-commands":!0}).wrap(process.stdout.columns||80).usage(`$0 <command> [options]`).usage(`
|
|
109
|
+
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(Ar).group([...Object.keys(Ar),`help`,`version`],s(`Global flags`));for(let e of Mr)f.command(e);for(let e of br)e.hideCommand?f.command({...e.command,describe:!1}):f.command(e.command);f.middleware(async e=>{Zr(e.quiet,i?.notice),i?.start();let t=Gr(f);t!==void 0&&n?.(t);try{await Hr(e.quiet)}catch{}try{await Lr(e.quiet)}catch{}te(e.mode);let r=String(e._[0]??``);if(!e.help&&(r===`dev`&&l||e.local&&Nr.has(r)))throw Error(`--local is not supported by cf ${r}.`);if(e.persistTo===``)throw Error(`--persist-to requires a non-empty directory.`);if(e.persistTo!==void 0&&!e.local)throw Error(`--persist-to can only be used with --local.`);if(t!==void 0&&u(t,e.local)&&(a=await d(e)),!e.local){let{resolveProfile:t}=await import(`./oauth-w0fWmrwU.mjs`);ee(t(e.profile))}}).demandCommand(1,`You need to specify a command`).strictCommands().strictOptions().recommendCommands().version(m).alias(`v`,`version`).epilogue(`For more information, visit https://developers.cloudflare.com/`).exitProcess(!1).fail((e,t,a)=>{Zr(!1,i?.notice),i?.start();let o=Gr(f);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 p=f.showHelp.bind(f);f.showHelp=e=>p(t=>{let i=Gr(f);i!==void 0&&n?.(i),r?.(i??`cf`);let a=Ir(t,i);typeof e==`function`?e(a):e===`log`?console.log(a):console.error(a)});let h=f.getHelp.bind(f);return f.getHelp=async()=>Ir(await h(),Gr(f)),{cli:f,dispose:()=>{a?.(),a=void 0}}}async function ei(e){let t=process.argv;process.argv=[`node`,`cf`,...e];try{await ti()}finally{process.argv=t}}async function ti(){te(void 0),re();let e=await Qr();if(Yr(e?.notice)||Xr(e?.notice))throw e?.start(),new l(0);let t,n,{cli:r,dispose:i}=$r(vt(process.argv),{onCommandResolved:e=>{t=e},onHelpShown:e=>{n=e},updateCheck:e}),a=vt(process.argv),o=a.indexOf(`--`),s=o===-1?a:a.slice(0,o);if(s.includes(`--help`)||s.includes(`-h`)){Zr(!1,e?.notice),e?.start();try{await Lr()}catch{}}try{await r.parse(vt(process.argv)),await Jr(n)}catch(e){if(e instanceof l)throw e;if(t===void 0){try{await Hr()}catch{}try{await Lr()}catch{}}throw await qr(e,t??Gr(r)),Dr(e)}finally{i(),await y(),await Ur()}}export{ti as n,ei as r,$r as t};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{
|
|
2
|
+
import{n as e}from"./auth-Br-t8vL_.mjs";import{i as t}from"./context-CquYYyS3.mjs";import{t as n}from"./output-ClYel9WX.mjs";import{t as r}from"./dry-run-p9Q7nMZ5.mjs";import{t as i}from"./progress-TLUEIYE6.mjs";import{t as a}from"./run-iFM5TxtQ.mjs";import"./telemetry-DoBQOGRk.mjs";import{n as o,t as s}from"./body-parser-NjzJZMOV.mjs";import{n as c}from"./input-validation-0CeePPHp.mjs";import{i as l,n as u}from"./prompt-Ck_1PCHm.mjs";import{t as d}from"./cli-types-_Kmwfpnp.mjs";function f(e){return e.usage(`$0 ssl analyze create
|
|
3
3
|
|
|
4
|
-
Returns the set of hostnames, the signature algorithm, and the expiration date of the certificate.`).option(`bundle-method`,{type:`string`,description:`A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it.`,choices:[`ubiquitous`,`optimal`,`force`],default:`ubiquitous`}).option(`certificate`,{type:`string`,description:`The zone's SSL certificate or certificate and the intermediate(s).`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const p={command:`create`,describe:`Analyze Certificate`,builder:f,handler:async l=>a({command:`ssl analyze create`,classification:{safeFlags:[`bundle-method`,`dry-run`]}},l,async()=>{if(l.dryRun){r({command:`cf ssl analyze create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${l.zone??l.zoneId??`<zone>`}/ssl/analyze`,pathParams:{"zone-id":String(l.zone??l[`zone-id`]??``)},bodyKind:`json`,body:l.body===void 0?s({bundle_method:c(l[`bundle-method`],`bundle-method`,`text`),certificate:c(l.certificate,`certificate`,`text`)}):o(l.body)});return}let a=await
|
|
4
|
+
Returns the set of hostnames, the signature algorithm, and the expiration date of the certificate.`).option(`bundle-method`,{type:`string`,description:`A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it.`,choices:[`ubiquitous`,`optimal`,`force`],default:`ubiquitous`}).option(`certificate`,{type:`string`,description:`The zone's SSL certificate or certificate and the intermediate(s).`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const p={command:`create`,describe:`Analyze Certificate`,builder:f,handler:async l=>a({command:`ssl analyze create`,classification:{safeFlags:[`bundle-method`,`dry-run`]}},l,async()=>{if(l.dryRun){r({command:`cf ssl analyze create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${l.zone??l.zoneId??`<zone>`}/ssl/analyze`,pathParams:{"zone-id":String(l.zone??l[`zone-id`]??``)},bodyKind:`json`,body:l.body===void 0?s({bundle_method:c(l[`bundle-method`],`bundle-method`,`text`),certificate:c(l.certificate,`certificate`,`text`)}):o(l.body)});return}let a=await e(l),u=await t({zone:l.zone},a,{quiet:l.quiet});if(l.zoneId=u,l.body){let e=o(l.body);n(await i(`Creating`,async()=>a.ssl.analyze.create({...e,zone_id:u})),{successLabel:`Created`});return}let d=s({bundle_method:c(l[`bundle-method`],`bundle-method`,`text`),certificate:c(l.certificate,`certificate`,`text`)});n(await i(`Creating`,async()=>a.ssl.analyze.create({...d,zone_id:u})),{successLabel:`Created`})})},m={command:`analyze`,describe:`Operations for analyze`,builder:e=>e.command(p).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function h(e){return e.usage('$0 ssl auto-origin-tls-kex edit\n\nEnable or disable Auto-Origin TLS KEX selection for the zone by sending `{"enabled": true}` or `{"enabled": false}`. When enabled, Cloudflare runs a periodic scan of the zone\'s origins to determine the preferred key-exchange algorithm and writes that preference to the edge so it is sent first in the TLS ClientHello to the origin.').option(`enabled`,{type:`boolean`,description:`Controls enablement of Auto-Origin TLS KEX selection for the zone.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Update enablement of Auto-Origin TLS KEX selection.`})}const g={command:`edit`,describe:`Patch Auto-Origin TLS KEX enrollment status for the given zone`,builder:h,handler:async c=>a({command:`ssl auto-origin-tls-kex edit`,classification:{safeFlags:[`enabled`,`dry-run`]}},c,async()=>{if(c.dryRun){r({command:`cf ssl auto-origin-tls-kex edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${c.zone??c.zoneId??`<zone>`}/settings/auto_origin_tls_kex`,pathParams:{"zone-id":String(c.zone??c[`zone-id`]??``)},bodyKind:`json`,body:c.body===void 0?s({enabled:c.enabled}):o(c.body)});return}let a=await e(c),l=await t({zone:c.zone},a,{quiet:c.quiet});if(c.zoneId=l,c.body){let e=o(c.body);n(await i(`Updating`,async()=>a.ssl.autoOriginTlsKex.edit({...e,zone_id:l})),{successLabel:`Updated`});return}if(c.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);let u=s({enabled:c.enabled});n(await i(`Updating`,async()=>a.ssl.autoOriginTlsKex.edit({...u,zone_id:l})),{successLabel:`Updated`})})};function _(e){return e.usage(`$0 ssl auto-origin-tls-kex get
|
|
5
5
|
|
|
6
|
-
When enabled, Cloudflare automatically selects the preferred TLS key-exchange algorithm to use when establishing the TLS connection to the zone's origin, picking from the algorithms permitted by the zone's \`origin_tls_compliance_modes\` setting. When disabled, the default key-exchange ordering is used.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const v={command:`get`,describe:`Get Auto-Origin TLS KEX enrollment status for the given zone`,builder:_,handler:async o=>a({command:`ssl auto-origin-tls-kex get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf ssl auto-origin-tls-kex get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/settings/auto_origin_tls_kex`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await
|
|
6
|
+
When enabled, Cloudflare automatically selects the preferred TLS key-exchange algorithm to use when establishing the TLS connection to the zone's origin, picking from the algorithms permitted by the zone's \`origin_tls_compliance_modes\` setting. When disabled, the default key-exchange ordering is used.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const v={command:`get`,describe:`Get Auto-Origin TLS KEX enrollment status for the given zone`,builder:_,handler:async o=>a({command:`ssl auto-origin-tls-kex get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf ssl auto-origin-tls-kex get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/settings/auto_origin_tls_kex`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.ssl.autoOriginTlsKex.get({zone_id:s})),{successLabel:`Loaded`})})},y={command:`auto-origin-tls-kex`,describe:`Operations for auto-origin-tls-kex`,builder:e=>e.command(g).command(v).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function b(e){return e.usage(`$0 ssl automatic-upgrader get
|
|
7
7
|
|
|
8
|
-
If the system is enabled, the response will include next_scheduled_scan, representing the next time this zone will be scanned and the zone's ssl/tls encryption mode is potentially upgraded by the system. If the system is disabled, next_scheduled_scan will not be present in the response body.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`get`,describe:`Get Automatic SSL/TLS enrollment status for the given zone`,builder:b,handler:async o=>a({command:`ssl automatic-upgrader get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf ssl automatic-upgrader get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/settings/ssl_automatic_mode`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await
|
|
8
|
+
If the system is enabled, the response will include next_scheduled_scan, representing the next time this zone will be scanned and the zone's ssl/tls encryption mode is potentially upgraded by the system. If the system is disabled, next_scheduled_scan will not be present in the response body.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`get`,describe:`Get Automatic SSL/TLS enrollment status for the given zone`,builder:b,handler:async o=>a({command:`ssl automatic-upgrader get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf ssl automatic-upgrader get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/settings/ssl_automatic_mode`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.ssl.automaticUpgrader.get({zone_id:s})),{successLabel:`Loaded`})})};function S(e){return e.usage(`$0 ssl automatic-upgrader patch
|
|
9
9
|
|
|
10
|
-
The automatic system is enabled when this endpoint is hit with value in the request body is set to "auto", and disabled when the request body value is set to "custom".`).option(`value`,{type:`string`,description:`Controls enablement of Automatic SSL/TLS.`,choices:[`auto`,`custom`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Update enablement of Automatic SSL/TLS.`})}const C={command:`patch`,describe:`Patch Automatic SSL/TLS Enrollment status for given zone`,builder:S,handler:async u=>a({command:`ssl automatic-upgrader patch`,classification:{safeFlags:[`value`,`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf ssl automatic-upgrader patch`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/settings/ssl_automatic_mode`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({value:c(u.value,`value`,`text`)}):o(u.body)});return}let a=await
|
|
10
|
+
The automatic system is enabled when this endpoint is hit with value in the request body is set to "auto", and disabled when the request body value is set to "custom".`).option(`value`,{type:`string`,description:`Controls enablement of Automatic SSL/TLS.`,choices:[`auto`,`custom`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Update enablement of Automatic SSL/TLS.`})}const C={command:`patch`,describe:`Patch Automatic SSL/TLS Enrollment status for given zone`,builder:S,handler:async u=>a({command:`ssl automatic-upgrader patch`,classification:{safeFlags:[`value`,`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf ssl automatic-upgrader patch`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/settings/ssl_automatic_mode`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({value:c(u.value,`value`,`text`)}):o(u.body)});return}let a=await e(u),d=await t({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,u.body){let e=o(u.body);n(await i(`Updating`,async()=>a.ssl.automaticUpgrader.patch({...e,zone_id:d})),{successLabel:`Updated`});return}u.value===void 0&&(u.value=await l(`value`,`Controls enablement of Automatic SSL/TLS.`,[`auto`,`custom`]));let f=s({value:c(u.value,`value`,`text`)});n(await i(`Updating`,async()=>a.ssl.automaticUpgrader.patch({...f,zone_id:d})),{successLabel:`Updated`})})},w={command:`automatic-upgrader`,describe:`SSL automatic mode enrollment — get or update automatic SSL/TLS upgrader settings`,builder:e=>e.command(x).command(C).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function T(e){return e.usage(`$0 ssl certificate-packs create
|
|
11
11
|
|
|
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`]}).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`]}).option(`validation-method`,{type:`string`,description:`Validation Method selected for the order.`,choices:[`txt`,`http`,`email`]}).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 E={command:`create`,describe:`Order Advanced Certificate Manager Certificate Pack`,builder:T,handler:async u=>a({command:`ssl certificate-packs create`,classification:{safeFlags:[`certificate-authority`,`cloudflare-branding`,`type`,`validation-method`,`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf ssl certificate-packs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/ssl/certificate_packs/order`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({certificate_authority:c(u[`certificate-authority`],`certificate-authority`,`text`),cloudflare_branding:u[`cloudflare-branding`],hosts:u.hosts,type:c(u.type,`type`,`text`),validation_method:c(u[`validation-method`],`validation-method`,`text`),validity_days:u[`validity-days`]}):o(u.body)});return}let a=await
|
|
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`]}).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`]}).option(`validation-method`,{type:`string`,description:`Validation Method selected for the order.`,choices:[`txt`,`http`,`email`]}).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 E={command:`create`,describe:`Order Advanced Certificate Manager Certificate Pack`,builder:T,handler:async u=>a({command:`ssl certificate-packs create`,classification:{safeFlags:[`certificate-authority`,`cloudflare-branding`,`type`,`validation-method`,`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf ssl certificate-packs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/ssl/certificate_packs/order`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({certificate_authority:c(u[`certificate-authority`],`certificate-authority`,`text`),cloudflare_branding:u[`cloudflare-branding`],hosts:u.hosts,type:c(u.type,`type`,`text`),validation_method:c(u[`validation-method`],`validation-method`,`text`),validity_days:u[`validity-days`]}):o(u.body)});return}let a=await e(u),d=await t({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,u.body){let e=o(u.body);n(await i(`Creating`,async()=>a.ssl.certificatePacks.create({...e,zone_id:d})),{successLabel:`Created`});return}if(u[`certificate-authority`]===void 0&&(u[`certificate-authority`]=await l(`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`])),u.hosts===void 0)throw Error(`--hosts is required (or pass --body with this field set).`);if(u.type===void 0&&(u.type=await l(`type`,`Type of certificate pack.`,[`advanced`])),u[`validation-method`]===void 0&&(u[`validation-method`]=await l(`validation-method`,`Validation Method selected for the order.`,[`txt`,`http`,`email`])),u[`validity-days`]===void 0)throw Error(`--validity-days is required (or pass --body with this field set).`);let f=s({certificate_authority:c(u[`certificate-authority`],`certificate-authority`,`text`),cloudflare_branding:u[`cloudflare-branding`],hosts:u.hosts,type:c(u.type,`type`,`text`),validation_method:c(u[`validation-method`],`validation-method`,`text`),validity_days:u[`validity-days`]});n(await i(`Creating`,async()=>a.ssl.certificatePacks.create({...f,zone_id:d})),{successLabel:`Created`})})};function D(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 O={command:`delete <certificate-pack-id>`,describe:`Delete Advanced Certificate Manager Certificate Pack`,builder:D,handler:async o=>a({command:`ssl certificate-packs delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf ssl certificate-packs delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/ssl/certificate_packs/${o[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(o[`certificate-pack-id`]))}`,pathParams:{"certificate-pack-id":String(o[`certificate-pack-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await
|
|
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 O={command:`delete <certificate-pack-id>`,describe:`Delete Advanced Certificate Manager Certificate Pack`,builder:D,handler:async o=>a({command:`ssl certificate-packs delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf ssl certificate-packs delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/ssl/certificate_packs/${o[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(o[`certificate-pack-id`]))}`,pathParams:{"certificate-pack-id":String(o[`certificate-pack-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});if(o.zoneId=s,!await u({force:!!o.force})){process.stderr.write(`Aborted.
|
|
15
15
|
`);return}n(await i(`Deleting`,async()=>a.ssl.certificatePacks.delete({zone_id:s,certificate_pack_id:o[`certificate-pack-id`]})),{successLabel:`Deleted`})})};function k(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 A={command:`edit <certificate-pack-id>`,describe:`Restart Validation or Update Advanced Certificate Manager Certificate Pack`,builder:k,handler:async c=>a({command:`ssl certificate-packs edit`,classification:{safeFlags:[`cloudflare-branding`,`dry-run`]}},c,async()=>{if(c.dryRun){r({command:`cf ssl certificate-packs edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${c.zone??c.zoneId??`<zone>`}/ssl/certificate_packs/${c[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(c[`certificate-pack-id`]))}`,pathParams:{"certificate-pack-id":String(c[`certificate-pack-id`]??``),"zone-id":String(c.zone??c[`zone-id`]??``)},bodyKind:`json`,body:c.body===void 0?s({cloudflare_branding:c[`cloudflare-branding`]}):o(c.body)});return}let a=await
|
|
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 A={command:`edit <certificate-pack-id>`,describe:`Restart Validation or Update Advanced Certificate Manager Certificate Pack`,builder:k,handler:async c=>a({command:`ssl certificate-packs edit`,classification:{safeFlags:[`cloudflare-branding`,`dry-run`]}},c,async()=>{if(c.dryRun){r({command:`cf ssl certificate-packs edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${c.zone??c.zoneId??`<zone>`}/ssl/certificate_packs/${c[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(c[`certificate-pack-id`]))}`,pathParams:{"certificate-pack-id":String(c[`certificate-pack-id`]??``),"zone-id":String(c.zone??c[`zone-id`]??``)},bodyKind:`json`,body:c.body===void 0?s({cloudflare_branding:c[`cloudflare-branding`]}):o(c.body)});return}let a=await e(c),l=await t({zone:c.zone},a,{quiet:c.quiet});if(c.zoneId=l,c.body){let e=o(c.body);n(await i(`Updating`,async()=>a.ssl.certificatePacks.edit({...e,zone_id:l,certificate_pack_id:c[`certificate-pack-id`]})),{successLabel:`Updated`});return}let u=s({cloudflare_branding:c[`cloudflare-branding`]});n(await i(`Updating`,async()=>a.ssl.certificatePacks.edit({...u,zone_id:l,certificate_pack_id:c[`certificate-pack-id`]})),{successLabel:`Updated`})})};function j(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 M={command:`get <certificate-pack-id>`,describe:`Get Certificate Pack`,builder:j,handler:async o=>a({command:`ssl certificate-packs get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf ssl certificate-packs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/ssl/certificate_packs/${o[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(o[`certificate-pack-id`]))}`,pathParams:{"certificate-pack-id":String(o[`certificate-pack-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await
|
|
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 M={command:`get <certificate-pack-id>`,describe:`Get Certificate Pack`,builder:j,handler:async o=>a({command:`ssl certificate-packs get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf ssl certificate-packs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/ssl/certificate_packs/${o[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(o[`certificate-pack-id`]))}`,pathParams:{"certificate-pack-id":String(o[`certificate-pack-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.ssl.certificatePacks.get({zone_id:s,certificate_pack_id:o[`certificate-pack-id`]})),{successLabel:`Loaded`})})};function N(e){return e.usage(`$0 ssl certificate-packs list
|
|
20
20
|
|
|
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 P={command:`list`,describe:`List Certificate Packs`,builder:d(N),handler:async o=>a({command:`ssl certificate-packs list`,classification:{safeFlags:[`status`,`deploy`,`dry-run`]}},o,async()=>{let a={page:o.page,per_page:o[`per-page`],status:o.status,deploy:o.deploy};if(o.dryRun){r({command:`cf ssl certificate-packs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/ssl/certificate_packs`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},query:a,bodyKind:`none`});return}let s=await
|
|
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 P={command:`list`,describe:`List Certificate Packs`,builder:d(N),handler:async o=>a({command:`ssl certificate-packs list`,classification:{safeFlags:[`status`,`deploy`,`dry-run`]}},o,async()=>{let a={page:o.page,per_page:o[`per-page`],status:o.status,deploy:o.deploy};if(o.dryRun){r({command:`cf ssl certificate-packs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/ssl/certificate_packs`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},query:a,bodyKind:`none`});return}let s=await e(o),c=await t({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c,n(await i(`Loading`,async()=>s.ssl.certificatePacks.list({zone_id:c,...a})),{successLabel:`Loaded`})})};function F(e){return e.usage(`$0 ssl certificate-packs quota get
|
|
22
22
|
|
|
23
|
-
For a given zone, list certificate pack quotas.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const I={command:`get`,describe:`Get Certificate Pack Quotas`,builder:F,handler:async o=>a({command:`ssl certificate-packs quota get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf ssl certificate-packs quota get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/ssl/certificate_packs/quota`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await
|
|
23
|
+
For a given zone, list certificate pack quotas.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const I={command:`get`,describe:`Get Certificate Pack Quotas`,builder:F,handler:async o=>a({command:`ssl certificate-packs quota get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf ssl certificate-packs quota get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/ssl/certificate_packs/quota`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.ssl.certificatePacks.quota.get({zone_id:s})),{successLabel:`Loaded`})})},L={command:`quota`,describe:`Operations for certificate-packs.quota`,builder:e=>e.command(I).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},R={command:`certificate-packs`,describe:`Operations for certificate-packs`,builder:e=>e.command(E).command(O).command(A).command(M).command(P).command(L).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function z(e){return e.usage(`$0 ssl recommendations get
|
|
24
24
|
|
|
25
|
-
Retrieve the SSL/TLS Recommender's recommendation for a zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const B={command:`get`,describe:`SSL/TLS Recommendation`,builder:z,handler:async o=>a({command:`ssl recommendations get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf ssl recommendations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/ssl/recommendation`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await
|
|
25
|
+
Retrieve the SSL/TLS Recommender's recommendation for a zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const B={command:`get`,describe:`SSL/TLS Recommendation`,builder:z,handler:async o=>a({command:`ssl recommendations get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf ssl recommendations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/ssl/recommendation`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.ssl.recommendations.get({zone_id:s})),{successLabel:`Loaded`})})},V={command:`recommendations`,describe:`Get the recommended SSL/TLS encryption mode based on your origin server's certificate configuration`,builder:e=>e.command(B).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function H(e){return e.usage(`$0 ssl universal settings edit
|
|
26
26
|
|
|
27
27
|
Patch Universal SSL Settings for a Zone.`).option(`enabled`,{type:`boolean`,description:`Disabling Universal SSL removes any currently active Universal SSL certificates for your zone from the edge and prevents any future Universal SSL certificates from being ordered. If there are no advanced certificates or custom certificates uploaded for the domain, visitors will be unable to access the domain over HTTPS.
|
|
28
28
|
|
|
@@ -36,10 +36,10 @@ By disabling Universal SSL, you understand that the following Cloudflare setting
|
|
|
36
36
|
|
|
37
37
|
Similarly, any HTTP redirect to HTTPS at the origin while the Cloudflare proxy is enabled will result in users being unable to visit your site without a valid certificate at Cloudflare's edge.
|
|
38
38
|
|
|
39
|
-
If you do not have a valid custom or advanced certificate at Cloudflare's edge and are unsure if any of the above Cloudflare settings are enabled, or if any HTTP redirects exist at your origin, we advise leaving Universal SSL enabled for your domain.`}).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 U={command:`edit`,describe:`Edit Universal SSL Settings`,builder:H,handler:async c=>a({command:`ssl universal settings edit`,classification:{safeFlags:[`enabled`,`dry-run`]}},c,async()=>{if(c.dryRun){r({command:`cf ssl universal settings edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${c.zone??c.zoneId??`<zone>`}/ssl/universal/settings`,pathParams:{"zone-id":String(c.zone??c[`zone-id`]??``)},bodyKind:`json`,body:c.body===void 0?s({enabled:c.enabled}):o(c.body)});return}let a=await
|
|
39
|
+
If you do not have a valid custom or advanced certificate at Cloudflare's edge and are unsure if any of the above Cloudflare settings are enabled, or if any HTTP redirects exist at your origin, we advise leaving Universal SSL enabled for your domain.`}).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 U={command:`edit`,describe:`Edit Universal SSL Settings`,builder:H,handler:async c=>a({command:`ssl universal settings edit`,classification:{safeFlags:[`enabled`,`dry-run`]}},c,async()=>{if(c.dryRun){r({command:`cf ssl universal settings edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${c.zone??c.zoneId??`<zone>`}/ssl/universal/settings`,pathParams:{"zone-id":String(c.zone??c[`zone-id`]??``)},bodyKind:`json`,body:c.body===void 0?s({enabled:c.enabled}):o(c.body)});return}let a=await e(c),l=await t({zone:c.zone},a,{quiet:c.quiet});if(c.zoneId=l,c.body){let e=o(c.body);n(await i(`Updating`,async()=>a.ssl.universal.settings.edit({body:e,zone_id:l})),{successLabel:`Updated`});return}let u=s({enabled:c.enabled});n(await i(`Updating`,async()=>a.ssl.universal.settings.edit({body:u,zone_id:l})),{successLabel:`Updated`})})};function W(e){return e.usage(`$0 ssl universal settings get
|
|
40
40
|
|
|
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 G={command:`get`,describe:`Universal SSL Settings Details`,builder:W,handler:async o=>a({command:`ssl universal settings get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf ssl universal settings get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/ssl/universal/settings`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await
|
|
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 G={command:`get`,describe:`Universal SSL Settings Details`,builder:W,handler:async o=>a({command:`ssl universal settings get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf ssl universal settings get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/ssl/universal/settings`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.ssl.universal.settings.get({zone_id:s})),{successLabel:`Loaded`})})},K={command:`settings`,describe:`Operations for universal.settings`,builder:e=>e.command(U).command(G).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},q={command:`universal`,describe:`Operations for universal`,builder:e=>e.command(K).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function J(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`]}).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 Y={command:`edit <certificate-pack-id>`,describe:`Edit SSL Certificate Pack Validation Method`,builder:J,handler:async u=>a({command:`ssl verification edit`,classification:{safeFlags:[`validation-method`,`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf ssl verification edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/ssl/verification/${u[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(u[`certificate-pack-id`]))}`,pathParams:{"certificate-pack-id":String(u[`certificate-pack-id`]??``),"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({validation_method:c(u[`validation-method`],`validation-method`,`text`)}):o(u.body)});return}let a=await
|
|
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`]}).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 Y={command:`edit <certificate-pack-id>`,describe:`Edit SSL Certificate Pack Validation Method`,builder:J,handler:async u=>a({command:`ssl verification edit`,classification:{safeFlags:[`validation-method`,`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf ssl verification edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/ssl/verification/${u[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(u[`certificate-pack-id`]))}`,pathParams:{"certificate-pack-id":String(u[`certificate-pack-id`]??``),"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({validation_method:c(u[`validation-method`],`validation-method`,`text`)}):o(u.body)});return}let a=await e(u),d=await t({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,u.body){let e=o(u.body);n(await i(`Updating`,async()=>a.ssl.verification.edit({...e,zone_id:d,certificate_pack_id:u[`certificate-pack-id`]})),{successLabel:`Updated`});return}u[`validation-method`]===void 0&&(u[`validation-method`]=await l(`validation-method`,`Desired validation method.`,[`http`,`cname`,`txt`,`email`]));let f=s({validation_method:c(u[`validation-method`],`validation-method`,`text`)});n(await i(`Updating`,async()=>a.ssl.verification.edit({...f,zone_id:d,certificate_pack_id:u[`certificate-pack-id`]})),{successLabel:`Updated`})})};function X(e){return e.usage(`$0 ssl verification get
|
|
44
44
|
|
|
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 Z={command:`get`,describe:`SSL Verification Details`,builder:d(X),handler:async o=>a({command:`ssl verification get`,classification:{safeFlags:[`retry`,`dry-run`]}},o,async()=>{let a={retry:o.retry};if(o.dryRun){r({command:`cf ssl verification get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/ssl/verification`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},query:a,bodyKind:`none`});return}let s=await
|
|
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 Z={command:`get`,describe:`SSL Verification Details`,builder:d(X),handler:async o=>a({command:`ssl verification get`,classification:{safeFlags:[`retry`,`dry-run`]}},o,async()=>{let a={retry:o.retry};if(o.dryRun){r({command:`cf ssl verification get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/ssl/verification`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},query:a,bodyKind:`none`});return}let s=await e(o),c=await t({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c,n(await i(`Loading`,async()=>s.ssl.verification.get({zone_id:c,...a})),{successLabel:`Loaded`})})},Q={command:`verification`,describe:`Operations for verification`,builder:e=>e.command(Y).command(Z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},$={command:`ssl`,describe:`SSL/TLS certificate management — certificate packs, Universal SSL, verification, and TLS mode recommendations`,builder:e=>e.command(m).command(y).command(w).command(R).command(V).command(q).command(Q).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{$ as default};
|