cf 1.0.0-beta.20 → 1.0.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/_meta/commands.json +911 -751
- package/dist/_meta/schemas.json +401 -382
- package/dist/{abuse-reports-mKv00yPh.mjs → abuse-reports-CbUAnJxd.mjs} +1 -1
- package/dist/{access-CyRjTbhh.mjs → access-C-78DlxL.mjs} +1 -1
- package/dist/{accounts-BmF_YKvG.mjs → accounts-DEqQPxCz.mjs} +8 -15
- package/dist/{acm-BcIFiAb8.mjs → acm-jmhCq3Yh.mjs} +2 -3
- package/dist/{addressing-D6xVD7MM.mjs → addressing-BeYFpQvC.mjs} +12 -23
- package/dist/{agent-memory-Blldunhv.mjs → agent-memory-Chlovb7j.mjs} +5 -9
- package/dist/{ai-CU8tdTfC.mjs → ai-BndH3HYN.mjs} +2 -3
- package/dist/{ai-audit-Id3hq5pV.mjs → ai-audit-BUJ-70O_.mjs} +1 -1
- package/dist/{ai-gateway-BKeZ28CQ.mjs → ai-gateway-CCk7VKhL.mjs} +9 -15
- package/dist/{ai-search-DOiZEmn7.mjs → ai-search-BexET_wp.mjs} +6 -11
- package/dist/{ai-security-CioADDZi.mjs → ai-security-D4MxRlxX.mjs} +3 -5
- package/dist/{alerting-BzN1N3Se.mjs → alerting-rw8Oi3x7.mjs} +5 -9
- package/dist/{analytics-engine-CugCQfDe.mjs → analytics-engine-Bk7dQLcm.mjs} +1 -1
- package/dist/{analytics-Cte-DrzH.mjs → analytics-q-guNEOK.mjs} +1 -1
- package/dist/{api-security-CCs0g510.mjs → api-security-BDc6gkf1.mjs} +9 -17
- package/dist/{argo-BHBFZnmO.mjs → argo-CnLIqm0i.mjs} +1 -1
- package/dist/args-BAOHroBC.mjs +2 -0
- package/dist/{artifacts-BzAwvrCD.mjs → artifacts-Cil33dzV.mjs} +4 -7
- package/dist/{audit-logs-jWivEKCy.mjs → audit-logs--E2Eclb7.mjs} +1 -1
- package/dist/auth-B0lEsD_1.mjs +2 -0
- package/dist/{auth-BUQscD5b.mjs → auth-BcNLQji1.mjs} +1 -1
- package/dist/auth-BtZmY6sE.mjs +2 -0
- package/dist/{auth-token-T0aqYgl9.mjs → auth-token-aF5AVLlH.mjs} +1 -1
- package/dist/{autoconfig-CBdcYYf4.mjs → autoconfig-Dbp6J25P.mjs} +88 -88
- package/dist/{basin-catalog-_8w_4599.mjs → basin-catalog-dnVyzopm.mjs} +3 -5
- package/dist/{billing-Ce0WN0yw.mjs → billing-Fqp3jB2V.mjs} +2 -3
- package/dist/{blocks-CFAm0Ma3.mjs → blocks-BOQH-Won.mjs} +1 -1
- package/dist/{bot-management-DskcSr4B.mjs → bot-management-SEDgo1Xg.mjs} +1 -1
- package/dist/{botnet-feed-CmBm13-D.mjs → botnet-feed-DPqR4M0Y.mjs} +2 -3
- package/dist/{brand-protection-DTuFrsN0.mjs → brand-protection-B8vwKfM9.mjs} +2 -3
- package/dist/{browser-run-CXdzSOHa.mjs → browser-run-BybYDq3I.mjs} +3 -5
- package/dist/build-BqGmiORA.mjs +2 -0
- package/dist/build-CWlpWVBf.mjs +2 -0
- package/dist/{builds-_1u5Nx6f.mjs → builds-CvtOG-Gk.mjs} +8 -15
- package/dist/cache-Bme_d2Wx.mjs +36 -0
- package/dist/cf-fIBhEAxU.mjs +18 -0
- package/dist/chunk-DSGVRFIS-DHC6NOIj.mjs +2 -0
- package/dist/{chunk-2K52M2W5-iYNzknM1.mjs → chunk-XVBBSNW2-DfMyGS-l.mjs} +8 -8
- package/dist/{cli-DyhOdzMo.mjs → cli-CIKDqm-u.mjs} +3 -3
- package/dist/{client-side-security-DnnYaRsd.mjs → client-side-security-ZQeRoo1t.mjs} +2 -3
- package/dist/{cloud-connector-Ct6b6pz8.mjs → cloud-connector-BeunZlNV.mjs} +1 -1
- package/dist/{cloudflared-CHLpWU35.mjs → cloudflared-DbzoIouQ.mjs} +1 -1
- package/dist/{cloudforce-one-Rl6nCCm0.mjs → cloudforce-one-D20t9ojD.mjs} +26 -51
- package/dist/{command-BwgvUpNx.mjs → command-B3uWlw57.mjs} +1 -1
- package/dist/{command-DuLxEkGq.mjs → command-BGRucANI.mjs} +1 -1
- package/dist/{command-BONLLcyz.mjs → command-C6kE7BU0.mjs} +1 -1
- package/dist/{command-DOpykk8X.mjs → command-C9CNvZi_.mjs} +1 -1
- package/dist/{command-BRpBIju7.mjs → command-CQ5qHE7n.mjs} +1 -1
- package/dist/{command-CHGc-KZ7.mjs → command-CkZkTjIj.mjs} +1 -1
- package/dist/{command-BRXOUAGD.mjs → command-CqKRlHGv.mjs} +1 -1
- package/dist/{command-BwlIi3Bv.mjs → command-CtlD6MEi.mjs} +1 -1
- package/dist/{command-CXzje7qc.mjs → command-CzWWQv8j.mjs} +1 -1
- package/dist/{command-BMYi_gS-.mjs → command-DWWuXQV8.mjs} +1 -1
- package/dist/{command-CPDQPdss.mjs → command-DkwmylF2.mjs} +1 -1
- package/dist/{command-CMa807gY.mjs → command-MxFFWqMg.mjs} +1 -1
- package/dist/{command-BVO9UOuU.mjs → command-orlUsdgf.mjs} +1 -1
- package/dist/{command-CVoDyQnL.mjs → command-prWMAJbg.mjs} +1 -1
- package/dist/{command-0WS5I_JW.mjs → command-rUCxlpQI.mjs} +1 -1
- package/dist/command-resolution-DAQ4PWUt.mjs +2 -0
- package/dist/{completions-DMwrvK_S.mjs → completions-2Otv0HMd.mjs} +1 -1
- package/dist/{connector-interrupts-DyWilINb.mjs → connector-interrupts-Dfhxupmg.mjs} +1 -1
- package/dist/{connector-telemetry-events-BUW9qTOs.mjs → connector-telemetry-events-CLVpDTIa.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-Djs5QssR.mjs → connector-telemetry-snapshots-E_1tmNmQ.mjs} +1 -1
- package/dist/{connectors-e_cpzDEm.mjs → connectors-ChJpQFSl.mjs} +2 -3
- package/dist/{containers-CEH15JUu.mjs → containers-Cj5-9nUg.mjs} +6 -9
- package/dist/containers-CzAZfmnj.mjs +380 -0
- package/dist/{content-scan-B6Ahw9JA.mjs → content-scan-CIA_9PV8.mjs} +3 -5
- package/dist/{context-Sgba0fZP.mjs → context-DVh8Wyfs.mjs} +2 -2
- package/dist/{cps-uDD0SSJ-.mjs → cps-hJkqdsHx.mjs} +1 -1
- package/dist/{csam-scanner-BSUl7jGn.mjs → csam-scanner-cCVO3lNF.mjs} +1 -1
- package/dist/{custom-csrs-BDcXggph.mjs → custom-csrs-BrTWUZ0c.mjs} +2 -3
- package/dist/{custom-hostnames-UmIlwkwt.mjs → custom-hostnames-C4ft77oC.mjs} +4 -7
- package/dist/{custom-nameservers-D7kU6d--.mjs → custom-nameservers-BWfrZhD1.mjs} +2 -3
- package/dist/{custom-pages-CkhIQCfM.mjs → custom-pages-DqTMKtRc.mjs} +2 -3
- package/dist/{d1-myRLEAGs.mjs → d1-B58AA9PA.mjs} +3 -6
- package/dist/delegate-D7yYckA4.mjs +2 -0
- package/dist/delegate.mjs +1 -1
- package/dist/{deploy-BJqCpycz.mjs → deploy-CEROLAdh.mjs} +1 -1
- package/dist/deploy-context-Do89WayB.mjs +56 -0
- package/dist/{deploy-input-v2DryyLP.mjs → deploy-input-DyMuMsi5.mjs} +1 -1
- package/dist/{dev-S1PJi83q.mjs → dev-BaFS7kOM.mjs} +2 -2
- package/dist/{diagnostics-q65rcNIk.mjs → diagnostics-4gfYj7Pf.mjs} +2 -3
- package/dist/dialog-D5lus4M4.mjs +2 -0
- package/dist/discover-6kAmVMPp.mjs +2 -0
- package/dist/discover-C06Syc2B.mjs +2 -0
- package/dist/dist-BtzWfAjU.mjs +453 -0
- package/dist/dls-ClWVxTBg.mjs +16 -0
- package/dist/{dns-DhARjFQs.mjs → dns-CML-wxIt.mjs} +68 -68
- package/dist/{dns-firewall-BP6r9QG6.mjs → dns-firewall-CL0b3dJ1.mjs} +2 -3
- package/dist/{docs-CReGWDrw.mjs → docs-BeYBHwUN.mjs} +1 -1
- package/dist/{dotenv-Ck-6V1hm.mjs → dotenv-CmPRiXmU.mjs} +1 -1
- package/dist/{dry-run-BBjUQUhR.mjs → dry-run-gy0Hl9xo.mjs} +1 -1
- package/dist/{durable-objects-tOJy-5te.mjs → durable-objects-uZECeq_f.mjs} +1 -1
- package/dist/{email-auth-Bq9sq_2j.mjs → email-auth-CCNW798I.mjs} +1 -1
- package/dist/email-domains-1rD1d84O.mjs +12 -0
- package/dist/{email-routing-CYo4dp50.mjs → email-routing-CYv-LrbV.mjs} +4 -7
- package/dist/{email-security-CNtWET2d.mjs → email-security-CWEUYPYo.mjs} +16 -31
- package/dist/{email-sending-BvagNLRr.mjs → email-sending-DHSzCfJx.mjs} +3 -5
- package/dist/{errors-DpbAQQv8.mjs → errors-ol9sMqSe.mjs} +8 -8
- package/dist/{field-extractors-C9R3Qivh.mjs → field-extractors-CuBM_uO4.mjs} +2 -3
- package/dist/{firewall-DsgUY-Qv.mjs → firewall-SMIUSypF.mjs} +4 -7
- package/dist/flagship-D3v6iDdw.mjs +24 -0
- package/dist/{fraud-24l8dKyk.mjs → fraud-B2f7O15X.mjs} +1 -1
- package/dist/{google-tag-gateway-CAkudP5W.mjs → google-tag-gateway-BwOc62Gy.mjs} +1 -1
- package/dist/{gt-D6YemCLh.mjs → gt-BQkaDQDq.mjs} +1 -1
- package/dist/{healthchecks-CEGMe3lO.mjs → healthchecks-BQXHnihB.mjs} +3 -5
- package/dist/{hyperdrive-DLDaOU2O.mjs → hyperdrive-Bd6Yfje3.mjs} +2 -3
- package/dist/{iam-ChldOMSL.mjs → iam-qJPI1_aZ.mjs} +5 -9
- package/dist/{images-Ba9tS5wT.mjs → images-goHZJOxy.mjs} +6 -11
- package/dist/index.mjs +1 -1
- package/dist/init-CVx0Ya1E.mjs +43 -0
- package/dist/{intel-DbLRah4Y.mjs → intel-CwiqwJI9.mjs} +18 -21
- package/dist/interactive-CHcvofEp.mjs +2 -0
- package/dist/{interactive-d_lFnSev.mjs → interactive-D4E8PdaW.mjs} +31 -31
- package/dist/interactive-wQM7Blhm.mjs +2 -0
- package/dist/internal-5cnlw9mH.mjs +4 -0
- package/dist/{ips-BGyzyQLL.mjs → ips-KBxmXhvO.mjs} +1 -1
- package/dist/{k2-BVQ3MqEl.mjs → k2-KhIP5NFT.mjs} +2 -3
- package/dist/kv-CCem2sEY.mjs +12 -0
- package/dist/{lazy-command-D0I6itZs.mjs → lazy-command-BMhD5ffF.mjs} +1 -1
- package/dist/{leaked-credential-checks-Dga83Qy3.mjs → leaked-credential-checks-BkPZiwE2.mjs} +3 -5
- package/dist/live-BhHzxFna.mjs +4 -0
- package/dist/{load-balancers-D9cB6of8.mjs → load-balancers-17GBXdju.mjs} +5 -9
- package/dist/local-CAs8RWYW.mjs +2 -0
- package/dist/{local-B7ZJ78al.mjs → local-CSH3UMpD.mjs} +1 -1
- package/dist/{local-runtime-DB545Gqq.mjs → local-runtime-KOFLRZeZ.mjs} +1 -1
- package/dist/log-BWdaOGOW.mjs +66 -0
- package/dist/log-DZfik9Jk.mjs +2 -0
- package/dist/login-BTiflOun.mjs +2 -0
- package/dist/login-Buhvx6Fi.mjs +5 -0
- package/dist/{logpush-Ccmr0Y_I.mjs → logpush-BCCUxa4J.mjs} +3 -5
- package/dist/{logs-CZBMuuBC.mjs → logs-4CwupKRG.mjs} +2 -3
- package/dist/{magic-cloud-networking-BwOxZVql.mjs → magic-cloud-networking-Xy6SC-V-.mjs} +4 -7
- package/dist/{magic-network-monitoring-Cx5kKdbk.mjs → magic-network-monitoring-B8pRZp2g.mjs} +3 -5
- package/dist/{magic-transit-BJwg3sVK.mjs → magic-transit-CwfO3OOX.mjs} +36 -67
- package/dist/managed-defense-CtFLuvuB.mjs +18 -0
- package/dist/{managed-transforms-C-HMtesC.mjs → managed-transforms-Hto8OCBS.mjs} +2 -3
- package/dist/{mcp-bGKgzz6F.mjs → mcp-SQ0MAVUJ.mjs} +3 -5
- package/dist/{mesh-DeQIll19.mjs → mesh-C8A6tVqA.mjs} +3 -5
- package/dist/{migrate-B6HsPeFh.mjs → migrate-Dufxsb_F.mjs} +1 -1
- package/dist/{monetization-B-TIrpA5.mjs → monetization-CYVaCAe9.mjs} +3 -5
- package/dist/{network-BrjykU-I.mjs → network-CJBTdEM3.mjs} +5 -9
- package/dist/{network-interconnects-I06kbxIl.mjs → network-interconnects-CKlNFj3i.mjs} +3 -5
- package/dist/{o11y-Ba0Fa98_.mjs → o11y-5x2Q8CWm.mjs} +8 -15
- package/dist/{oauth-BH-uQd3C.mjs → oauth-BN6_FpYp.mjs} +1 -1
- package/dist/oauth-D_A8AcIS.mjs +4 -0
- package/dist/{oauth-clients-Dd5gvDqf.mjs → oauth-clients-qKXg8ZH3.mjs} +3 -5
- package/dist/{oauth-scopes-CXpH3Syj.mjs → oauth-scopes-Ct1jDyC5.mjs} +1 -1
- package/dist/{organization-DKPqwe3j.mjs → organization-lBQSeqS1.mjs} +3 -5
- package/dist/{organizations-Cq4iy-Yr.mjs → organizations-DEX8Er3g.mjs} +1 -1
- package/dist/{origin-post-quantum-encryption-DSB1sbYV.mjs → origin-post-quantum-encryption-DUsxVGCs.mjs} +1 -1
- package/dist/output-BJEgbI0G.mjs +2 -0
- package/dist/package-BqSbnt6u.mjs +2 -0
- package/dist/{page-rules-CDWTYaf7.mjs → page-rules-BMt6nt03.mjs} +2 -3
- package/dist/{pages-Dgtm51Uj.mjs → pages-Jxa92ECz.mjs} +7 -13
- package/dist/{pay-per-crawl-CHenxdhv.mjs → pay-per-crawl-Cv0044CZ.mjs} +3 -5
- package/dist/{pay-per-use-Bd5l0hBi.mjs → pay-per-use-DGEeG-dC.mjs} +2 -3
- package/dist/{pipelines-GsyD6nUM.mjs → pipelines-CEC78A3w.mjs} +5 -9
- package/dist/{precursor-mO-Zua09.mjs → precursor-Ba0Ejhzt.mjs} +1 -1
- package/dist/previews-DnZbUTym.mjs +6 -0
- package/dist/progress-CtGsPOpV.mjs +2 -0
- package/dist/prompt-YrI7ltMa.mjs +4 -0
- package/dist/{queues-D8cAr2lB.mjs → queues-Chq997uj.mjs} +6 -11
- package/dist/{r2-CJiJbG6b.mjs → r2-BFgZDs-F.mjs} +17 -33
- package/dist/{radar-PUZ_PCZ8.mjs → radar-DJdDzLJw.mjs} +1 -1
- package/dist/{raw-fetch-DSdFjojI.mjs → raw-fetch-BE3QgdTE.mjs} +1 -1
- package/dist/ready-Cok0aqke.mjs +4 -0
- package/dist/{realtime-X6uQsldp.mjs → realtime-BHWWCiKp.mjs} +10 -19
- package/dist/{registrar-BqZdUTss.mjs → registrar-9Y-1IQ0n.mjs} +1 -1
- package/dist/{registrar-sandbox-CmM3e1QN.mjs → registrar-sandbox-DTS1kRnb.mjs} +1 -1
- package/dist/{registry-D0tMkLv6.mjs → registry-Bm-GgDC3.mjs} +1 -1
- package/dist/{reporting-DFVz98Xg.mjs → reporting-D5RbKQJf.mjs} +1 -1
- package/dist/request-headers-KhW_hy36.mjs +2 -0
- package/dist/{request-tracers-BC1u2WDU.mjs → request-tracers-wxWCjmHo.mjs} +1 -1
- package/dist/{resource-sharing-CdEn5Iex.mjs → resource-sharing-BGoaVvJa.mjs} +5 -9
- package/dist/rolldown-runtime-BNtqjh-B.mjs +2 -0
- package/dist/{rules-B663VetJ.mjs → rules-Cd3EjhdF.mjs} +3 -5
- package/dist/{rulesets-p4EijVr6.mjs → rulesets-Bnz3rSBT.mjs} +4 -7
- package/dist/{rum-CHHXe4KK.mjs → rum-CK9HEe3O.mjs} +3 -5
- package/dist/run-Be6Js7D6.mjs +2 -0
- package/dist/run-DnZGQbq_.mjs +2 -0
- package/dist/sanitization-DkVWMHkc.mjs +2 -0
- package/dist/{schema-B38ojvsS.mjs → schema-DuLIZRhA.mjs} +1 -1
- package/dist/{schema-flags-z7yn0JZ_.mjs → schema-flags-BrDlFwLv.mjs} +1 -1
- package/dist/{scim-BMnUa4Oz.mjs → scim-UdqaWnOu.mjs} +3 -5
- package/dist/{secrets-store-EYrhEzVG.mjs → secrets-store-Bf5v96LC.mjs} +3 -5
- package/dist/{security-insights-C-AwDwXb.mjs → security-insights-BAGySlGu.mjs} +1 -1
- package/dist/{security-txt-CQMe8TD3.mjs → security-txt-D0fMmjHs.mjs} +2 -3
- package/dist/session-6xqrJWXy.mjs +2 -0
- package/dist/shared-DYRRG9A-.mjs +2 -0
- package/dist/signed-url-Ce0muRem.mjs +4 -0
- package/dist/{smart-shield-CHSuitaH.mjs → smart-shield-CCy7_M3j.mjs} +3 -5
- package/dist/{snippets-DGSBz4lg.mjs → snippets-Bc8m3HSV.mjs} +3 -5
- package/dist/spawn-BAEdy9kS.mjs +5 -0
- package/dist/{spectrum-59LhYG1t.mjs → spectrum-DtNX8WBX.mjs} +2 -3
- package/dist/{speed-CMCfoG3s.mjs → speed-TbkeWV_x.mjs} +3 -5
- package/dist/{sql-MxWaTDdj.mjs → sql-DI319y25.mjs} +1 -1
- package/dist/src-COwxoocl.mjs +2 -0
- package/dist/{src-J3Yss3VM.mjs → src-Dc6ojwUW.mjs} +5 -5
- package/dist/{ssl-DTTFZR9x.mjs → ssl-D0MIzFl2.mjs} +9 -17
- package/dist/startup-profile-CZYtQziF.mjs +2 -0
- package/dist/{startup-profile-bp348qmf.mjs → startup-profile-DlWrt4Fm.mjs} +5 -5
- package/dist/state-B3Uy1jPX.mjs +2 -0
- package/dist/{state-CqAtTENS.mjs → state-DazGSbRx.mjs} +1 -1
- package/dist/{stream-gVG_7si-.mjs → stream-4Mrb8HEo.mjs} +14 -27
- package/dist/tags-BP25qydR.mjs +22 -0
- package/dist/telemetry-CvZean4s.mjs +2 -0
- package/dist/telemetry-DKSJSLtq.mjs +2 -0
- package/dist/{tenant-custom-nameservers-DBmmUcxn.mjs → tenant-custom-nameservers-BzVP85Tq.mjs} +2 -3
- package/dist/{tenant-Qv_PC8gW.mjs → tenant-jmfZqEZ4.mjs} +1 -1
- package/dist/{tools-B1ajcUAF.mjs → tools-C-vmgYSv.mjs} +1 -1
- package/dist/{tunnels-CHNKPYRV.mjs → tunnels-BNswR1Dj.mjs} +4 -6
- package/dist/{turnstile-C60RxPo2.mjs → turnstile-BgsTP2fz.mjs} +2 -3
- package/dist/ui-Bo6DCvbS.mjs +2 -0
- package/dist/{update-check-BHarE3V9.mjs → update-check-BOF1hn_I.mjs} +1 -1
- package/dist/update-check-C7mfEeQ7.mjs +2 -0
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-normalization-3t6Xpafi.mjs → url-normalization-Bqrs4-2F.mjs} +2 -3
- package/dist/{url-scanner-DNG__DiK.mjs → url-scanner-Dm4Fps5T.mjs} +1 -1
- package/dist/{user-B4i7OIFK.mjs → user-u_LxzLM4.mjs} +8 -15
- package/dist/{vectorize-y3PCQDDf.mjs → vectorize-DLGiOyd4.mjs} +3 -5
- package/dist/version-DmTuWNZ5.mjs +2 -0
- package/dist/{waiting-rooms-xkZLvPkT.mjs → waiting-rooms-DmgJgJXb.mjs} +4 -7
- package/dist/{web-assets-BlqHZywy.mjs → web-assets-rNhZWP-6.mjs} +7 -13
- package/dist/{web3-DGAJMcLv.mjs → web3-BVBdFt8E.mjs} +3 -5
- package/dist/{workers-cCNBx0Bc.mjs → workers-CjUKJvH8.mjs} +18 -22
- package/dist/{workers-builds-COKp3NfU.mjs → workers-builds-D3Q97l7X.mjs} +1 -1
- package/dist/{workers-for-platforms-CAtiWI_G.mjs → workers-for-platforms-C_fcw30y.mjs} +5 -9
- package/dist/{workers-vpc-ChBfXwPy.mjs → workers-vpc-CnRO3Stc.mjs} +2 -3
- package/dist/{workflows-BYhgJvyR.mjs → workflows-cpHFe5v6.mjs} +5 -9
- package/dist/{wrangler-migration-B12OR2bu.mjs → wrangler-migration-DQehjmoh.mjs} +74 -74
- package/dist/{zaraz-BW0kvRCK.mjs → zaraz-BRj0J7vK.mjs} +1 -1
- package/dist/{zero-trust-DSeWXkNV.mjs → zero-trust-CVZKDLCB.mjs} +75 -149
- package/dist/{zone-B-YJG2UA.mjs → zone-N6ccK70C.mjs} +1 -1
- package/dist/{zones-B8pqPHu8.mjs → zones-C4S_kpGz.mjs} +49 -52
- package/package.json +12 -12
- package/dist/auth-CdEGiJ5Y.mjs +0 -2
- package/dist/auth-DF_ml7rE.mjs +0 -2
- package/dist/build-BJHRK6qE.mjs +0 -2
- package/dist/build-D7s3a8zW.mjs +0 -2
- package/dist/cache-CDPUUv_O.mjs +0 -45
- package/dist/cf-3vj8dGYz.mjs +0 -18
- package/dist/chunk-DSGVRFIS-RUG6Dtqz.mjs +0 -2
- package/dist/containers-CcZHRM9g.mjs +0 -376
- package/dist/delegate-Tgfxa-MZ.mjs +0 -2
- package/dist/deploy-context-DIAl408H.mjs +0 -56
- package/dist/dialog-BnIgdgWi.mjs +0 -2
- package/dist/discover-DEjUARkU.mjs +0 -2
- package/dist/discover-P20XeGBF.mjs +0 -2
- package/dist/dist-CX6dDtzj.mjs +0 -449
- package/dist/dist-DAeCUX-u.mjs +0 -60
- package/dist/dls-CMTrCDjZ.mjs +0 -17
- package/dist/flagship-geGDHp9H.mjs +0 -28
- package/dist/init-C08hBFYn.mjs +0 -43
- package/dist/interactive-pjVqirHx.mjs +0 -2
- package/dist/kv-Cd8vbPWK.mjs +0 -15
- package/dist/local-CFZtOOxg.mjs +0 -2
- package/dist/log-CRbgNbDp.mjs +0 -3
- package/dist/login-C3Bahro9.mjs +0 -5
- package/dist/login-DvsRxI3E.mjs +0 -2
- package/dist/logo-matches-jeNkUxAq.mjs +0 -6
- package/dist/logos-pxN5aumY.mjs +0 -7
- package/dist/managed-defense-C_KLy4oB.mjs +0 -18
- package/dist/matches-DnjBnG-Y.mjs +0 -6
- package/dist/oauth-Cf3-g-kk.mjs +0 -4
- package/dist/output-CpiIVa7Q.mjs +0 -2
- package/dist/previews-oHUiD54J.mjs +0 -7
- package/dist/progress-B1dpmxCT.mjs +0 -2
- package/dist/prompt-Y5OBwDVE.mjs +0 -4
- package/dist/queries-CS0sYfte.mjs +0 -9
- package/dist/request-headers-Bg8_Idw3.mjs +0 -2
- package/dist/run-0EozpORq.mjs +0 -2
- package/dist/run-DKg70Sqf.mjs +0 -2
- package/dist/session-3DgztoAI.mjs +0 -2
- package/dist/shared-o8saqcSK.mjs +0 -2
- package/dist/source-AlTrHNem.mjs +0 -6
- package/dist/spawn-BZd__5sj.mjs +0 -10
- package/dist/startup-profile-DJsOtbVN.mjs +0 -2
- package/dist/state-Dvzl3aSj.mjs +0 -2
- package/dist/submit-wJYcQB8d.mjs +0 -4
- package/dist/tags-BwFKjaOr.mjs +0 -23
- package/dist/telemetry-BczXOpQn.mjs +0 -2
- package/dist/telemetry-CE15pfOU.mjs +0 -2
- package/dist/ui-CBhKUPys.mjs +0 -2
- package/dist/update-check-C3RhhXja.mjs +0 -2
- package/dist/url-info-By6VD20A.mjs +0 -4
- package/dist/version-izjB0Yrl.mjs +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{
|
|
2
|
+
import{r as e,t}from"./rolldown-runtime-BNtqjh-B.mjs";import{n,t as r}from"./ansi-styles-kSC6bEIq.mjs";import{t as i}from"./lazy-command-BMhD5ffF.mjs";import{n as a}from"./metadata-Df5kCWJv.mjs";import{r as o}from"./theme-BGHWSKCw.mjs";import{t as s}from"./agent-context-DFEgYjEQ.mjs";import{t as c}from"./args-BAOHroBC.mjs";import{t as l}from"./cli-exit-CstFZ1eJ.mjs";import{n as u,t as d}from"./dotenv-CmPRiXmU.mjs";import{n as f}from"./version-DmTuWNZ5.mjs";import{r as p}from"./blocks-BOQH-Won.mjs";import{n as m,t as h}from"./session-6xqrJWXy.mjs";import{n as g}from"./errors-ol9sMqSe.mjs";import{t as ee}from"./hand-written-dry-run-B82fRl2N.mjs";import{i as _}from"./local-CSH3UMpD.mjs";import{a as te}from"./project-settings-nBMEx1f-.mjs";import{a as v,n as ne,t as re}from"./lifecycle-oud60haK.mjs";import"./ui-Bo6DCvbS.mjs";import{createRequire as y}from"node:module";import{setTimeout as b}from"node:timers/promises";import{notStrictEqual as x,strictEqual as S}from"assert";import{basename as ie,dirname as C,extname as ae,join as oe,normalize as se,relative as ce,resolve as le}from"path";import{readFileSync as ue,readdirSync as de,statSync as fe,writeFile as pe}from"fs";import{format as me,inspect as w}from"util";import{fileURLToPath as he}from"url";import{readFileSync as ge,readdirSync as _e}from"node:fs";const ve={right:E,center:Se};var ye=class{constructor(e){this.width=e.width,this.wrap=e.wrap??!0,this.rows=[]}span(...e){let t=this.div(...e);t.span=!0}resetOutput(){this.rows=[]}div(...e){if(e.length===0&&this.div(``),this.wrap&&this.shouldApplyLayoutDSL(...e)&&typeof e[0]==`string`)return this.applyLayoutDSL(e[0]);let t=e.map(e=>typeof e==`string`?this.colFromString(e):e);return this.rows.push(t),t}shouldApplyLayoutDSL(...e){return e.length===1&&typeof e[0]==`string`&&/[\t\n]/.test(e[0])}applyLayoutDSL(e){let t=e.split(`
|
|
3
3
|
`).map(e=>e.split(` `)),n=0;return t.forEach(e=>{e.length>1&&D.stringWidth(e[0])>n&&(n=Math.min(Math.floor(this.width*.5),D.stringWidth(e[0])))}),t.forEach(e=>{this.div(...e.map((t,r)=>({text:t.trim(),padding:this.measurePadding(t),width:r===0&&e.length>1?n:void 0})))}),this.rows[this.rows.length-1]}colFromString(e){return{text:e,padding:this.measurePadding(e)}}measurePadding(e){let t=D.stripAnsi(e);return[0,t.match(/\s*$/)[0].length,0,t.match(/^\s*/)[0].length]}toString(){let e=[];return this.rows.forEach(t=>{this.rowToString(t,e)}),e.filter(e=>!e.hidden).map(e=>e.text).join(`
|
|
4
4
|
`)}rowToString(e,t){return this.rasterize(e).forEach((n,r)=>{let i=``;n.forEach((n,a)=>{let{width:o}=e[a],s=this.negatePadding(e[a]),c=n;if(s>D.stringWidth(n)&&(c+=` `.repeat(s-D.stringWidth(n))),e[a].align&&e[a].align!==`left`&&this.wrap){let t=ve[e[a].align];c=t(c,s),D.stringWidth(c)<s&&(c+=` `.repeat((o||0)-D.stringWidth(c)-1))}let l=e[a].padding||[0,0,0,0];l[3]&&(i+=` `.repeat(l[3])),i+=T(e[a],c,`| `),i+=c,i+=T(e[a],c,` |`),l[1]&&(i+=` `.repeat(l[1])),r===0&&t.length>0&&(i=this.renderInline(i,t[t.length-1]))}),t.push({text:i.replace(/ +$/,``),span:e.span})}),t}renderInline(e,t){let n=e.match(/^ */),r=n?n[0].length:0,i=t.text,a=D.stringWidth(i.trimRight());return t.span?this.wrap?r<a?e:(t.hidden=!0,i.trimRight()+` `.repeat(r-a)+e.trimLeft()):(t.hidden=!0,i+e):e}rasterize(e){let t=[],n=this.columnWidths(e),r;return e.forEach((e,i)=>{e.width=n[i],r=this.wrap?D.wrap(e.text,this.negatePadding(e),{hard:!0}).split(`
|
|
5
5
|
`):e.text.split(`
|
|
@@ -111,7 +111,7 @@ complete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name
|
|
|
111
111
|
`)}`:``;t.fail(i(`Missing required argument: %s`,`Missing required arguments: %s`,Object.keys(r).length,Object.keys(r).join(`, `)+n))}},a.unknownArguments=function(n,r,o,s,c=!0){let l=e.getInternalMethods().getCommandInstance().getCommands(),u=[],d=e.getInternalMethods().getContext();if(Object.keys(n).forEach(t=>{!xn.includes(t)&&!Object.prototype.hasOwnProperty.call(o,t)&&!Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),t)&&!a.isValidAndSomeAliasIsNotNew(t,r)&&u.push(t)}),c&&(d.commands.length>0||l.length>0||s)&&n._.slice(d.commands.length).forEach(e=>{l.includes(``+e)||u.push(``+e)}),c){let t=e.getDemandedCommands()._?.max||0,r=d.commands.length+t;r<n._.length&&n._.slice(r).forEach(e=>{e=String(e),!d.commands.includes(e)&&!u.includes(e)&&u.push(e)})}u.length&&t.fail(i(`Unknown argument: %s`,`Unknown arguments: %s`,u.length,u.map(e=>e.trim()?e:`"${e}"`).join(`, `)))},a.unknownCommands=function(n){let r=e.getInternalMethods().getCommandInstance().getCommands(),a=[],o=e.getInternalMethods().getContext();return(o.commands.length>0||r.length>0)&&n._.slice(o.commands.length).forEach(e=>{r.includes(``+e)||a.push(``+e)}),a.length>0&&(t.fail(i(`Unknown command: %s`,`Unknown commands: %s`,a.length,a.join(`, `))),!0)},a.isValidAndSomeAliasIsNotNew=function(t,n){if(!Object.prototype.hasOwnProperty.call(n,t))return!1;let r=e.parsed.newAliases;return[t,...n[t]].some(e=>!Object.prototype.hasOwnProperty.call(r,e)||!r[t])},a.limitedChoices=function(n){let i=e.getOptions(),a={};if(!Object.keys(i.choices).length)return;Object.keys(n).forEach(e=>{xn.indexOf(e)===-1&&Object.prototype.hasOwnProperty.call(i.choices,e)&&[].concat(n[e]).forEach(t=>{i.choices[e].indexOf(t)===-1&&t!==void 0&&(a[e]=(a[e]||[]).concat(t))})});let o=Object.keys(a);if(!o.length)return;let s=r(`Invalid values:`);o.forEach(e=>{s+=`\n ${r(`Argument: %s, Given: %s, Choices: %s`,e,t.stringifiedValues(a[e]),t.stringifiedValues(i.choices[e]))}`}),t.fail(s)};let o={};a.implies=function(t,r){P(`<string|object> [array|number|string]`,[t,r],arguments.length),typeof t==`object`?Object.keys(t).forEach(e=>{a.implies(e,t[e])}):(e.global(t),o[t]||(o[t]=[]),Array.isArray(r)?r.forEach(e=>a.implies(t,e)):(j(r,void 0,n),o[t].push(r)))},a.getImplied=function(){return o};function s(e,t){let n=Number(t);return t=isNaN(n)?t:n,typeof t==`number`?t=e._.length>=t:t.match(/^--no-.+/)?(t=t.match(/^--no-(.+)/)[1],t=!Object.prototype.hasOwnProperty.call(e,t)):t=Object.prototype.hasOwnProperty.call(e,t),t}a.implications=function(e){let n=[];if(Object.keys(o).forEach(t=>{let r=t;(o[t]||[]).forEach(t=>{let i=r,a=t;i=s(e,i),t=s(e,t),i&&!t&&n.push(` ${r} -> ${a}`)})}),n.length){let e=`${r(`Implications failed:`)}\n`;n.forEach(t=>{e+=t}),t.fail(e)}};let c={};a.conflicts=function(t,n){P(`<string|object> [array|string]`,[t,n],arguments.length),typeof t==`object`?Object.keys(t).forEach(e=>{a.conflicts(e,t[e])}):(e.global(t),c[t]||(c[t]=[]),Array.isArray(n)?n.forEach(e=>a.conflicts(t,e)):c[t].push(n))},a.getConflicting=()=>c,a.conflicting=function(i){Object.keys(i).forEach(e=>{c[e]&&c[e].forEach(n=>{n&&i[e]!==void 0&&i[n]!==void 0&&t.fail(r(`Arguments %s and %s are mutually exclusive`,e,n))})}),e.getInternalMethods().getParserConfiguration()[`strip-dashed`]&&Object.keys(c).forEach(e=>{c[e].forEach(a=>{a&&i[n.Parser.camelCase(e)]!==void 0&&i[n.Parser.camelCase(a)]!==void 0&&t.fail(r(`Arguments %s and %s are mutually exclusive`,e,a))})})},a.recommendCommands=function(e,n){n=n.sort((e,t)=>t.length-e.length);let i=null,a=1/0;for(let t=0,r;(r=n[t])!==void 0;t++){let t=bn(e,r);t<=3&&t<a&&(a=t,i=r)}i&&t.fail(r(`Did you mean %s?`,i))},a.reset=function(e){return o=cn(o,t=>!e[t]),c=cn(c,t=>!e[t]),a};let l=[];return a.freeze=function(){l.push({implied:o,conflicting:c})},a.unfreeze=function(){let e=l.pop();j(e,void 0,n),{implied:o,conflicting:c}=e},a}let Cn=[],wn;function Tn(e,t,n,r){wn=r;let i={};if(Object.prototype.hasOwnProperty.call(e,`extends`)){if(typeof e.extends!=`string`)return i;let a=/\.json|\..*rc$/.test(e.extends),o=null;if(a)o=Dn(t,e.extends);else try{o=import.meta.resolve(e.extends)}catch{return e}En(o),Cn.push(o),i=a?JSON.parse(wn.readFileSync(o,`utf8`)):r.require(e.extends),delete e.extends,i=Tn(i,wn.path.dirname(o),n,wn)}return Cn=[],n?On(i,e):Object.assign({},i,e)}function En(e){if(Cn.indexOf(e)>-1)throw new N(`Circular extended configurations: '${e}'.`)}function Dn(e,t){return wn.path.resolve(e,t)}function On(e,t){let n={};function r(e){return e&&typeof e==`object`&&!Array.isArray(e)}Object.assign(n,e);for(let i of Object.keys(t))i!==`__proto__`&&(n[i]=r(t[i])&&r(n[i])?On(e[i],t[i]):t[i]);return n}var F=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},I=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},L,kn,An,R,z,jn,B,Mn,Nn,V,Pn,H,U,W,G,Fn,In,K,q,Ln,Rn,J,zn,Bn,Vn,Y,Hn,X,Un,Wn,Gn,Z,Kn,Q,$;function qn(e){return(t=[],n=e.process.cwd(),r)=>{let i=new Ar(t,n,r,e);return Object.defineProperty(i,"argv",{get:()=>i.parse(),enumerable:!0}),i.help(),i.version(),i}}const Jn=Symbol(`copyDoubleDash`),Yn=Symbol(`copyDoubleDash`),Xn=Symbol(`deleteFromParserHintObject`),Zn=Symbol(`emitWarning`),Qn=Symbol(`freeze`),$n=Symbol(`getDollarZero`),er=Symbol(`getParserConfiguration`),tr=Symbol(`getUsageConfiguration`),nr=Symbol(`guessLocale`),rr=Symbol(`guessVersion`),ir=Symbol(`parsePositionalNumbers`),ar=Symbol(`pkgUp`),or=Symbol(`populateParserHintArray`),sr=Symbol(`populateParserHintSingleValueDictionary`),cr=Symbol(`populateParserHintArrayDictionary`),lr=Symbol(`populateParserHintDictionary`),ur=Symbol(`sanitizeKey`),dr=Symbol(`setKey`),fr=Symbol(`unfreeze`),pr=Symbol(`validateAsync`),mr=Symbol(`getCommandInstance`),hr=Symbol(`getContext`),gr=Symbol(`getHasOutput`),_r=Symbol(`getLoggerInstance`),vr=Symbol(`getParseContext`),yr=Symbol(`getUsageInstance`),br=Symbol(`getValidationInstance`),xr=Symbol(`hasParseCallback`),Sr=Symbol(`isGlobalContext`),Cr=Symbol(`postProcess`),wr=Symbol(`rebase`),Tr=Symbol(`reset`),Er=Symbol(`runYargsParserAndExecuteCommands`),Dr=Symbol(`runValidation`),Or=Symbol(`setHasOutput`),kr=Symbol(`kTrackManuallySetKeys`);var Ar=class{constructor(e=[],t,n,r){this.customScriptName=!1,this.parsed=!1,L.set(this,void 0),kn.set(this,void 0),An.set(this,{commands:[],fullCommands:[]}),R.set(this,null),z.set(this,null),jn.set(this,`show-hidden`),B.set(this,null),Mn.set(this,!0),Nn.set(this,{}),V.set(this,!0),Pn.set(this,[]),H.set(this,void 0),U.set(this,{}),W.set(this,!1),G.set(this,null),Fn.set(this,!0),In.set(this,void 0),K.set(this,``),q.set(this,void 0),Ln.set(this,void 0),Rn.set(this,{}),J.set(this,null),zn.set(this,null),Bn.set(this,{}),Vn.set(this,{}),Y.set(this,void 0),Hn.set(this,!1),X.set(this,void 0),Un.set(this,!1),Wn.set(this,!1),Gn.set(this,!1),Z.set(this,void 0),Kn.set(this,{}),Q.set(this,null),$.set(this,void 0),F(this,X,r,`f`),F(this,Y,e,`f`),F(this,kn,t,`f`),F(this,Ln,n,`f`),F(this,H,new Jt(this),`f`),this.$0=this[$n](),this[Tr](),F(this,L,I(this,L,`f`),`f`),F(this,Z,I(this,Z,`f`),`f`),F(this,$,I(this,$,`f`),`f`),F(this,q,I(this,q,`f`),`f`),I(this,q,`f`).showHiddenOpt=I(this,jn,`f`),F(this,In,this[Yn](),`f`),I(this,X,`f`).y18n.setLocale(`en_US`)}addHelpOpt(e,t){return P(`[string|boolean] [string]`,[e,t],arguments.length),I(this,G,`f`)&&(this[Xn](I(this,G,`f`)),F(this,G,null,`f`)),e===!1&&t===void 0||(F(this,G,typeof e==`string`?e:`help`,`f`),this.boolean(I(this,G,`f`)),this.describe(I(this,G,`f`),t||I(this,Z,`f`).deferY18nLookup(`Show help`))),this}help(e,t){return this.addHelpOpt(e,t)}addShowHiddenOpt(e,t){if(P(`[string|boolean] [string]`,[e,t],arguments.length),e===!1&&t===void 0)return this;let n=typeof e==`string`?e:I(this,jn,`f`);return this.boolean(n),this.describe(n,t||I(this,Z,`f`).deferY18nLookup(`Show hidden options`)),I(this,q,`f`).showHiddenOpt=n,this}showHidden(e,t){return this.addShowHiddenOpt(e,t)}alias(e,t){return P(`<object|string|array> [string|array]`,[e,t],arguments.length),this[cr](this.alias.bind(this),`alias`,e,t),this}array(e){return P(`<array|string>`,[e],arguments.length),this[or](`array`,e),this[kr](e),this}boolean(e){return P(`<array|string>`,[e],arguments.length),this[or](`boolean`,e),this[kr](e),this}check(e,t){return P(`<function> [boolean]`,[e,t],arguments.length),this.middleware((t,n)=>Zt(()=>e(t,n.getOptions()),n=>(n?(typeof n==`string`||n instanceof Error)&&I(this,Z,`f`).fail(n.toString(),n):I(this,Z,`f`).fail(I(this,X,`f`).y18n.__(`Argument check failed: %s`,e.toString())),t),e=>(I(this,Z,`f`).fail(e.message?e.message:e.toString(),e),t)),!1,t),this}choices(e,t){return P(`<object|string|array> [string|array]`,[e,t],arguments.length),this[cr](this.choices.bind(this),`choices`,e,t),this}coerce(e,t){if(P(`<object|string|array> [function]`,[e,t],arguments.length),Array.isArray(e)){if(!t)throw new N(`coerce callback must be provided`);for(let n of e)this.coerce(n,t);return this}if(typeof e==`object`){for(let t of Object.keys(e))this.coerce(t,e[t]);return this}if(!t)throw new N(`coerce callback must be provided`);let n=e;return I(this,q,`f`).key[n]=!0,I(this,H,`f`).addCoerceMiddleware((e,r)=>{let i=r.getAliases()[n]??[],a=[n,...i].filter(t=>Object.prototype.hasOwnProperty.call(e,t));return a.length===0?e:Zt(()=>t(e[a[0]]),t=>(a.forEach(n=>{e[n]=t}),e),e=>{throw new N(e.message)})},n),this}conflicts(e,t){return P(`<string|object> [string|array]`,[e,t],arguments.length),I(this,$,`f`).conflicts(e,t),this}config(e=`config`,t,n){return P(`[object|string] [string|function] [function]`,[e,t,n],arguments.length),typeof e==`object`&&!Array.isArray(e)?(e=Tn(e,I(this,kn,`f`),this[er]()[`deep-merge-config`]||!1,I(this,X,`f`)),I(this,q,`f`).configObjects=(I(this,q,`f`).configObjects||[]).concat(e),this):(typeof t==`function`&&(n=t,t=void 0),this.describe(e,t||I(this,Z,`f`).deferY18nLookup(`Path to JSON config file`)),(Array.isArray(e)?e:[e]).forEach(e=>{I(this,q,`f`).config[e]=n||!0}),this)}completion(e,t,n){return P(`[string] [string|boolean|function] [function]`,[e,t,n],arguments.length),typeof t==`function`&&(n=t,t=void 0),F(this,z,e||I(this,z,`f`)||`completion`,`f`),!t&&t!==!1&&(t=`generate completion script`),this.command(I(this,z,`f`),t),n&&I(this,R,`f`).registerFunction(n),this}command(e,t,n,r,i,a){return P(`<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]`,[e,t,n,r,i,a],arguments.length),I(this,L,`f`).addHandler(e,t,n,r,i,a),this}commands(e,t,n,r,i,a){return this.command(e,t,n,r,i,a)}commandDir(e,t){P(`<string> [object]`,[e,t],arguments.length);let n=I(this,Ln,`f`)||I(this,X,`f`).require;return I(this,L,`f`).addDirectory(e,n,I(this,X,`f`).getCallerFile(),t),this}count(e){return P(`<array|string>`,[e],arguments.length),this[or](`count`,e),this[kr](e),this}default(e,t,n){return P(`<object|string|array> [*] [string]`,[e,t,n],arguments.length),n&&(Ht(e,I(this,X,`f`)),I(this,q,`f`).defaultDescription[e]=n),typeof t==`function`&&(Ht(e,I(this,X,`f`)),I(this,q,`f`).defaultDescription[e]||(I(this,q,`f`).defaultDescription[e]=I(this,Z,`f`).functionDescription(t)),t=t.call()),this[sr](this.default.bind(this),`default`,e,t),this}defaults(e,t,n){return this.default(e,t,n)}demandCommand(e=1,t,n,r){return P(`[number] [number|string] [string|null|undefined] [string|null|undefined]`,[e,t,n,r],arguments.length),typeof t!=`number`&&(n=t,t=1/0),this.global(`_`,!1),I(this,q,`f`).demandedCommands._={min:e,max:t,minMsg:n,maxMsg:r},this}demand(e,t,n){return Array.isArray(t)?(t.forEach(e=>{j(n,!0,I(this,X,`f`)),this.demandOption(e,n)}),t=1/0):typeof t!=`number`&&(n=t,t=1/0),typeof e==`number`?(j(n,!0,I(this,X,`f`)),this.demandCommand(e,t,n,n)):Array.isArray(e)?e.forEach(e=>{j(n,!0,I(this,X,`f`)),this.demandOption(e,n)}):typeof n==`string`?this.demandOption(e,n):(n===!0||n===void 0)&&this.demandOption(e),this}demandOption(e,t){return P(`<object|string|array> [string]`,[e,t],arguments.length),this[sr](this.demandOption.bind(this),`demandedOptions`,e,t),this}deprecateOption(e,t){return P(`<string> [string|boolean]`,[e,t],arguments.length),I(this,q,`f`).deprecatedOptions[e]=t,this}describe(e,t){return P(`<object|string|array> [string]`,[e,t],arguments.length),this[dr](e,!0),I(this,Z,`f`).describe(e,t),this}detectLocale(e){return P(`<boolean>`,[e],arguments.length),F(this,Mn,e,`f`),this}env(e){return P(`[string|boolean]`,[e],arguments.length),e===!1?delete I(this,q,`f`).envPrefix:I(this,q,`f`).envPrefix=e||``,this}epilogue(e){return P(`<string>`,[e],arguments.length),I(this,Z,`f`).epilog(e),this}epilog(e){return this.epilogue(e)}example(e,t){return P(`<string|array> [string]`,[e,t],arguments.length),Array.isArray(e)?e.forEach(e=>this.example(...e)):I(this,Z,`f`).example(e,t),this}exit(e,t){F(this,W,!0,`f`),F(this,B,t,`f`),I(this,V,`f`)&&I(this,X,`f`).process.exit(e)}exitProcess(e=!0){return P(`[boolean]`,[e],arguments.length),F(this,V,e,`f`),this}fail(e){if(P(`<function|boolean>`,[e],arguments.length),typeof e==`boolean`&&e!==!1)throw new N(`Invalid first argument. Expected function or boolean 'false'`);return I(this,Z,`f`).failFn(e),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(e,t){return P(`<array> [function]`,[e,t],arguments.length),t?I(this,R,`f`).getCompletion(e,t):new Promise((t,n)=>{I(this,R,`f`).getCompletion(e,(e,r)=>{e?n(e):t(r)})})}getDemandedOptions(){return P([],0),I(this,q,`f`).demandedOptions}getDemandedCommands(){return P([],0),I(this,q,`f`).demandedCommands}getDeprecatedOptions(){return P([],0),I(this,q,`f`).deprecatedOptions}getDetectLocale(){return I(this,Mn,`f`)}getExitProcess(){return I(this,V,`f`)}getGroups(){return Object.assign({},I(this,U,`f`),I(this,Vn,`f`))}getHelp(){if(F(this,W,!0,`f`),!I(this,Z,`f`).hasCachedHelpMessage()){if(!this.parsed){let e=this[Er](I(this,Y,`f`),void 0,void 0,0,!0);if(M(e))return e.then(()=>I(this,Z,`f`).help())}let e=I(this,L,`f`).runDefaultBuilderOn(this);if(M(e))return e.then(()=>I(this,Z,`f`).help())}return Promise.resolve(I(this,Z,`f`).help())}getOptions(){return I(this,q,`f`)}getStrict(){return I(this,Un,`f`)}getStrictCommands(){return I(this,Wn,`f`)}getStrictOptions(){return I(this,Gn,`f`)}global(e,t){return P(`<string|array> [boolean]`,[e,t],arguments.length),e=[].concat(e),t===!1?e.forEach(e=>{I(this,q,`f`).local.includes(e)||I(this,q,`f`).local.push(e)}):I(this,q,`f`).local=I(this,q,`f`).local.filter(t=>e.indexOf(t)===-1),this}group(e,t){P(`<string|array> <string>`,[e,t],arguments.length);let n=I(this,Vn,`f`)[t]||I(this,U,`f`)[t];I(this,Vn,`f`)[t]&&delete I(this,Vn,`f`)[t];let r={};return I(this,U,`f`)[t]=(n||[]).concat(e).filter(e=>r[e]?!1:r[e]=!0),this}hide(e){return P(`<string>`,[e],arguments.length),I(this,q,`f`).hiddenOptions.push(e),this}implies(e,t){return P(`<string|object> [number|string|array]`,[e,t],arguments.length),I(this,$,`f`).implies(e,t),this}locale(e){return P(`[string]`,[e],arguments.length),e===void 0?(this[nr](),I(this,X,`f`).y18n.getLocale()):(F(this,Mn,!1,`f`),I(this,X,`f`).y18n.setLocale(e),this)}middleware(e,t,n){return I(this,H,`f`).addMiddleware(e,!!t,n)}nargs(e,t){return P(`<string|object|array> [number]`,[e,t],arguments.length),this[sr](this.nargs.bind(this),`narg`,e,t),this}normalize(e){return P(`<array|string>`,[e],arguments.length),this[or](`normalize`,e),this}number(e){return P(`<array|string>`,[e],arguments.length),this[or](`number`,e),this[kr](e),this}option(e,t){if(P(`<string|object> [object]`,[e,t],arguments.length),typeof e==`object`)Object.keys(e).forEach(t=>{this.options(t,e[t])});else{typeof t!=`object`&&(t={}),this[kr](e),I(this,Q,`f`)&&(e===`version`||t?.alias===`version`)&&this[Zn]([`"version" is a reserved word.`,`Please do one of the following:`,'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)",`- Use a different option key`,`https://yargs.js.org/docs/#api-reference-version`].join(`
|
|
112
112
|
`),void 0,`versionWarning`),I(this,q,`f`).key[e]=!0,t.alias&&this.alias(e,t.alias);let n=t.deprecate||t.deprecated;n&&this.deprecateOption(e,n);let r=t.demand||t.required||t.require;r&&this.demand(e,r),t.demandOption&&this.demandOption(e,typeof t.demandOption==`string`?t.demandOption:void 0),t.conflicts&&this.conflicts(e,t.conflicts),`default`in t&&this.default(e,t.default),t.implies!==void 0&&this.implies(e,t.implies),t.nargs!==void 0&&this.nargs(e,t.nargs),t.config&&this.config(e,t.configParser),t.normalize&&this.normalize(e),t.choices&&this.choices(e,t.choices),t.coerce&&this.coerce(e,t.coerce),t.group&&this.group(e,t.group),(t.boolean||t.type===`boolean`)&&(this.boolean(e),t.alias&&this.boolean(t.alias)),(t.array||t.type===`array`)&&(this.array(e),t.alias&&this.array(t.alias)),(t.number||t.type===`number`)&&(this.number(e),t.alias&&this.number(t.alias)),(t.string||t.type===`string`)&&(this.string(e),t.alias&&this.string(t.alias)),(t.count||t.type===`count`)&&this.count(e),typeof t.global==`boolean`&&this.global(e,t.global),t.defaultDescription&&(I(this,q,`f`).defaultDescription[e]=t.defaultDescription),t.skipValidation&&this.skipValidation(e);let i=t.describe||t.description||t.desc,a=I(this,Z,`f`).getDescriptions();(!Object.prototype.hasOwnProperty.call(a,e)||typeof i==`string`)&&this.describe(e,i),t.hidden&&this.hide(e),t.requiresArg&&this.requiresArg(e)}return this}options(e,t){return this.option(e,t)}parse(e,t,n){P(`[string|array] [function|boolean|object] [function]`,[e,t,n],arguments.length),this[Qn](),e===void 0&&(e=I(this,Y,`f`)),typeof t==`object`&&(F(this,zn,t,`f`),t=n),typeof t==`function`&&(F(this,J,t,`f`),t=!1),t||F(this,Y,e,`f`),I(this,J,`f`)&&F(this,V,!1,`f`);let r=this[Er](e,!!t),i=this.parsed;return I(this,R,`f`).setParsed(this.parsed),M(r)?r.then(e=>(I(this,J,`f`)&&I(this,J,`f`).call(this,I(this,B,`f`),e,I(this,K,`f`)),e)).catch(e=>{throw I(this,J,`f`)&&I(this,J,`f`)(e,this.parsed.argv,I(this,K,`f`)),e}).finally(()=>{this[fr](),this.parsed=i}):(I(this,J,`f`)&&I(this,J,`f`).call(this,I(this,B,`f`),r,I(this,K,`f`)),this[fr](),this.parsed=i,r)}parseAsync(e,t,n){let r=this.parse(e,t,n);return M(r)?r:Promise.resolve(r)}parseSync(e,t,n){let r=this.parse(e,t,n);if(M(r))throw new N(`.parseSync() must not be used with asynchronous builders, handlers, or middleware`);return r}parserConfiguration(e){return P(`<object>`,[e],arguments.length),F(this,Rn,e,`f`),this}pkgConf(e,t){P(`<string> [string]`,[e,t],arguments.length);let n=null,r=this[ar](t||I(this,kn,`f`));return r[e]&&typeof r[e]==`object`&&(n=Tn(r[e],t||I(this,kn,`f`),this[er]()[`deep-merge-config`]||!1,I(this,X,`f`)),I(this,q,`f`).configObjects=(I(this,q,`f`).configObjects||[]).concat(n)),this}positional(e,t){P(`<string> <object>`,[e,t],arguments.length);let n=[`default`,`defaultDescription`,`implies`,`normalize`,`choices`,`conflicts`,`coerce`,`type`,`describe`,`desc`,`description`,`alias`];t=cn(t,(e,t)=>e===`type`&&![`string`,`number`,`boolean`].includes(t)?!1:n.includes(e));let r=I(this,An,`f`).fullCommands[I(this,An,`f`).fullCommands.length-1],i=r?I(this,L,`f`).cmdToParseOptions(r):{array:[],alias:{},default:{},demand:{}};return Ut(i).forEach(n=>{let r=i[n];Array.isArray(r)?r.indexOf(e)!==-1&&(t[n]=!0):r[e]&&!(n in t)&&(t[n]=r[e])}),this.group(e,I(this,Z,`f`).getPositionalGroupName()),this.option(e,t)}recommendCommands(e=!0){return P(`[boolean]`,[e],arguments.length),F(this,Hn,e,`f`),this}required(e,t,n){return this.demand(e,t,n)}require(e,t,n){return this.demand(e,t,n)}requiresArg(e){return P(`<array|string|object> [number]`,[e],arguments.length),typeof e==`string`&&I(this,q,`f`).narg[e]||this[sr](this.requiresArg.bind(this),`narg`,e,NaN),this}showCompletionScript(e,t){return P(`[string] [string]`,[e,t],arguments.length),e||=this.$0,I(this,In,`f`).log(I(this,R,`f`).generateCompletionScript(e,t||I(this,z,`f`)||`completion`)),this}showHelp(e){if(P(`[string|function]`,[e],arguments.length),F(this,W,!0,`f`),!I(this,Z,`f`).hasCachedHelpMessage()){if(!this.parsed){let t=this[Er](I(this,Y,`f`),void 0,void 0,0,!0);if(M(t))return t.then(()=>{I(this,Z,`f`).showHelp(e)}),this}let t=I(this,L,`f`).runDefaultBuilderOn(this);if(M(t))return t.then(()=>{I(this,Z,`f`).showHelp(e)}),this}return I(this,Z,`f`).showHelp(e),this}scriptName(e){return this.customScriptName=!0,this.$0=e,this}showHelpOnFail(e,t){return P(`[boolean|string] [string]`,[e,t],arguments.length),I(this,Z,`f`).showHelpOnFail(e,t),this}showVersion(e){return P(`[string|function]`,[e],arguments.length),I(this,Z,`f`).showVersion(e),this}skipValidation(e){return P(`<array|string>`,[e],arguments.length),this[or](`skipValidation`,e),this}strict(e){return P(`[boolean]`,[e],arguments.length),F(this,Un,e!==!1,`f`),this}strictCommands(e){return P(`[boolean]`,[e],arguments.length),F(this,Wn,e!==!1,`f`),this}strictOptions(e){return P(`[boolean]`,[e],arguments.length),F(this,Gn,e!==!1,`f`),this}string(e){return P(`<array|string>`,[e],arguments.length),this[or](`string`,e),this[kr](e),this}terminalWidth(){return P([],0),I(this,X,`f`).process.stdColumns}updateLocale(e){return this.updateStrings(e)}updateStrings(e){return P(`<object>`,[e],arguments.length),F(this,Mn,!1,`f`),I(this,X,`f`).y18n.updateLocale(e),this}usage(e,t,n,r){if(P(`<string|null|undefined> [string|boolean] [function|object] [function]`,[e,t,n,r],arguments.length),t!==void 0){if(j(e,null,I(this,X,`f`)),(e||``).match(/^\$0( |$)/))return this.command(e,t,n,r);throw new N(`.usage() description must start with $0 if being used as alias for .command()`)}return I(this,Z,`f`).usage(e),this}usageConfiguration(e){return P(`<object>`,[e],arguments.length),F(this,Kn,e,`f`),this}version(e,t,n){let r=`version`;if(P(`[boolean|string] [string] [string]`,[e,t,n],arguments.length),I(this,Q,`f`)&&(this[Xn](I(this,Q,`f`)),I(this,Z,`f`).version(void 0),F(this,Q,null,`f`)),arguments.length===0)n=this[rr](),e=r;else if(arguments.length===1){if(e===!1)return this;n=e,e=r}else arguments.length===2&&(n=t,t=void 0);return F(this,Q,typeof e==`string`?e:r,`f`),t||=I(this,Z,`f`).deferY18nLookup(`Show version number`),I(this,Z,`f`).version(n||void 0),this.boolean(I(this,Q,`f`)),this.describe(I(this,Q,`f`),t),this}wrap(e){return P(`<number|null|undefined>`,[e],arguments.length),I(this,Z,`f`).wrap(e),this}[(L=/* @__PURE__ */ new WeakMap,kn=/* @__PURE__ */ new WeakMap,An=/* @__PURE__ */ new WeakMap,R=/* @__PURE__ */ new WeakMap,z=/* @__PURE__ */ new WeakMap,jn=/* @__PURE__ */ new WeakMap,B=/* @__PURE__ */ new WeakMap,Mn=/* @__PURE__ */ new WeakMap,Nn=/* @__PURE__ */ new WeakMap,V=/* @__PURE__ */ new WeakMap,Pn=/* @__PURE__ */ new WeakMap,H=/* @__PURE__ */ new WeakMap,U=/* @__PURE__ */ new WeakMap,W=/* @__PURE__ */ new WeakMap,G=/* @__PURE__ */ new WeakMap,Fn=/* @__PURE__ */ new WeakMap,In=/* @__PURE__ */ new WeakMap,K=/* @__PURE__ */ new WeakMap,q=/* @__PURE__ */ new WeakMap,Ln=/* @__PURE__ */ new WeakMap,Rn=/* @__PURE__ */ new WeakMap,J=/* @__PURE__ */ new WeakMap,zn=/* @__PURE__ */ new WeakMap,Bn=/* @__PURE__ */ new WeakMap,Vn=/* @__PURE__ */ new WeakMap,Y=/* @__PURE__ */ new WeakMap,Hn=/* @__PURE__ */ new WeakMap,X=/* @__PURE__ */ new WeakMap,Un=/* @__PURE__ */ new WeakMap,Wn=/* @__PURE__ */ new WeakMap,Gn=/* @__PURE__ */ new WeakMap,Z=/* @__PURE__ */ new WeakMap,Kn=/* @__PURE__ */ new WeakMap,Q=/* @__PURE__ */ new WeakMap,$=/* @__PURE__ */ new WeakMap,Jn)](e){if(!e._||!e[`--`])return e;e._.push.apply(e._,e[`--`]);try{delete e[`--`]}catch{}return e}[Yn](){return{log:(...e)=>{this[xr]()||console.log(...e),F(this,W,!0,`f`),I(this,K,`f`).length&&F(this,K,I(this,K,`f`)+`
|
|
113
113
|
`,`f`),F(this,K,I(this,K,`f`)+e.join(` `),`f`)},error:(...e)=>{this[xr]()||console.error(...e),F(this,W,!0,`f`),I(this,K,`f`).length&&F(this,K,I(this,K,`f`)+`
|
|
114
|
-
`,`f`),F(this,K,I(this,K,`f`)+e.join(` `),`f`)}}}[Xn](e){Ut(I(this,q,`f`)).forEach(t=>{if((e=>e===`configObjects`)(t))return;let n=I(this,q,`f`)[t];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n==`object`&&delete n[e]}),delete I(this,Z,`f`).getDescriptions()[e]}[Zn](e,t,n){I(this,Nn,`f`)[n]||(I(this,X,`f`).process.emitWarning(e,t),I(this,Nn,`f`)[n]=!0)}[Qn](){I(this,Pn,`f`).push({options:I(this,q,`f`),configObjects:I(this,q,`f`).configObjects.slice(0),exitProcess:I(this,V,`f`),groups:I(this,U,`f`),strict:I(this,Un,`f`),strictCommands:I(this,Wn,`f`),strictOptions:I(this,Gn,`f`),completionCommand:I(this,z,`f`),output:I(this,K,`f`),exitError:I(this,B,`f`),hasOutput:I(this,W,`f`),parsed:this.parsed,parseFn:I(this,J,`f`),parseContext:I(this,zn,`f`)}),I(this,Z,`f`).freeze(),I(this,$,`f`).freeze(),I(this,L,`f`).freeze(),I(this,H,`f`).freeze()}[$n](){let e=``,t;return t=/\b(node|iojs|electron|bun)(\.exe)?$/.test(I(this,X,`f`).process.argv()[0])?I(this,X,`f`).process.argv().slice(1,2):I(this,X,`f`).process.argv().slice(0,1),e=t.map(e=>{let t=this[wr](I(this,kn,`f`),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e}).join(` `).trim(),I(this,X,`f`).getEnv(`_`)&&I(this,X,`f`).getProcessArgvBin()===I(this,X,`f`).getEnv(`_`)&&(e=I(this,X,`f`).getEnv(`_`).replace(`${I(this,X,`f`).path.dirname(I(this,X,`f`).process.execPath())}/`,``)),e}[er](){return I(this,Rn,`f`)}[tr](){return I(this,Kn,`f`)}[nr](){if(!I(this,Mn,`f`))return;let e=I(this,X,`f`).getEnv(`LC_ALL`)||I(this,X,`f`).getEnv(`LC_MESSAGES`)||I(this,X,`f`).getEnv(`LANG`)||I(this,X,`f`).getEnv(`LANGUAGE`)||`en_US`;this.locale(e.replace(/[.:].*/,``))}[rr](){return this[ar]().version||`unknown`}[ir](e){let t=e[`--`]?e[`--`]:e._;for(let e=0,n;(n=t[e])!==void 0;e++)I(this,X,`f`).Parser.looksLikeNumber(n)&&Number.isSafeInteger(Math.floor(parseFloat(`${n}`)))&&(t[e]=Number(n));return e}[ar](e){let t=e||`*`;if(I(this,Bn,`f`)[t])return I(this,Bn,`f`)[t];let n={};try{let t=e||I(this,X,`f`).mainFilename;I(this,X,`f`).path.extname(t)&&(t=I(this,X,`f`).path.dirname(t));let r=I(this,X,`f`).findUp(t,(e,t)=>{if(t.includes(`package.json`))return`package.json`});j(r,void 0,I(this,X,`f`)),n=JSON.parse(I(this,X,`f`).readFileSync(r,`utf8`))}catch{}return I(this,Bn,`f`)[t]=n||{},I(this,Bn,`f`)[t]}[or](e,t){t=[].concat(t),t.forEach(t=>{t=this[ur](t),I(this,q,`f`)[e].push(t)})}[sr](e,t,n,r){this[lr](e,t,n,r,(e,t,n)=>{I(this,q,`f`)[e][t]=n})}[cr](e,t,n,r){this[lr](e,t,n,r,(e,t,n)=>{I(this,q,`f`)[e][t]=(I(this,q,`f`)[e][t]||[]).concat(n)})}[lr](e,t,n,r,i){if(Array.isArray(n))n.forEach(t=>{e(t,r)});else if((e=>typeof e==`object`)(n))for(let t of Ut(n))e(t,n[t]);else i(t,this[ur](n),r)}[ur](e){return e===`__proto__`?`___proto___`:e}[dr](e,t){return this[sr](this[dr].bind(this),`key`,e,t),this}[fr](){var e,t,n,r,i,a,o,s,c,l,u,d;let f=I(this,Pn,`f`).pop();j(f,void 0,I(this,X,`f`));let p;e=this,t=this,n=this,r=this,i=this,a=this,o=this,s=this,c=this,l=this,u=this,d=this,{options:{set value(t){F(e,q,t,`f`)}}.value,configObjects:p,exitProcess:{set value(e){F(t,V,e,`f`)}}.value,groups:{set value(e){F(n,U,e,`f`)}}.value,output:{set value(e){F(r,K,e,`f`)}}.value,exitError:{set value(e){F(i,B,e,`f`)}}.value,hasOutput:{set value(e){F(a,W,e,`f`)}}.value,parsed:this.parsed,strict:{set value(e){F(o,Un,e,`f`)}}.value,strictCommands:{set value(e){F(s,Wn,e,`f`)}}.value,strictOptions:{set value(e){F(c,Gn,e,`f`)}}.value,completionCommand:{set value(e){F(l,z,e,`f`)}}.value,parseFn:{set value(e){F(u,J,e,`f`)}}.value,parseContext:{set value(e){F(d,zn,e,`f`)}}.value}=f,I(this,q,`f`).configObjects=p,I(this,Z,`f`).unfreeze(),I(this,$,`f`).unfreeze(),I(this,L,`f`).unfreeze(),I(this,H,`f`).unfreeze()}[pr](e,t){return Zt(t,t=>(e(t),t))}getInternalMethods(){return{getCommandInstance:this[mr].bind(this),getContext:this[hr].bind(this),getHasOutput:this[gr].bind(this),getLoggerInstance:this[_r].bind(this),getParseContext:this[vr].bind(this),getParserConfiguration:this[er].bind(this),getUsageConfiguration:this[tr].bind(this),getUsageInstance:this[yr].bind(this),getValidationInstance:this[br].bind(this),hasParseCallback:this[xr].bind(this),isGlobalContext:this[Sr].bind(this),postProcess:this[Cr].bind(this),reset:this[Tr].bind(this),runValidation:this[Dr].bind(this),runYargsParserAndExecuteCommands:this[Er].bind(this),setHasOutput:this[Or].bind(this)}}[mr](){return I(this,L,`f`)}[hr](){return I(this,An,`f`)}[gr](){return I(this,W,`f`)}[_r](){return I(this,In,`f`)}[vr](){return I(this,zn,`f`)||{}}[yr](){return I(this,Z,`f`)}[br](){return I(this,$,`f`)}[xr](){return!!I(this,J,`f`)}[Sr](){return I(this,Fn,`f`)}[Cr](e,t,n,r){return n||M(e)||(t||(e=this[Jn](e)),(this[er]()[`parse-positional-numbers`]||this[er]()[`parse-positional-numbers`]===void 0)&&(e=this[ir](e)),r&&(e=Xt(e,this,I(this,H,`f`).getMiddleware(),!1))),e}[Tr](e={}){F(this,q,I(this,q,`f`)||{},`f`);let t={};t.local=I(this,q,`f`).local||[],t.configObjects=I(this,q,`f`).configObjects||[];let n={};return t.local.forEach(t=>{n[t]=!0,(e[t]||[]).forEach(e=>{n[e]=!0})}),Object.assign(I(this,Vn,`f`),Object.keys(I(this,U,`f`)).reduce((e,t)=>{let r=I(this,U,`f`)[t].filter(e=>!(e in n));return r.length>0&&(e[t]=r),e},{})),F(this,U,{},`f`),[`array`,`boolean`,`string`,`skipValidation`,`count`,`normalize`,`number`,`hiddenOptions`].forEach(e=>{t[e]=(I(this,q,`f`)[e]||[]).filter(e=>!n[e])}),[`narg`,`key`,`alias`,`default`,`defaultDescription`,`config`,`choices`,`demandedOptions`,`demandedCommands`,`deprecatedOptions`].forEach(e=>{t[e]=cn(I(this,q,`f`)[e],e=>!n[e])}),t.envPrefix=I(this,q,`f`).envPrefix,F(this,q,t,`f`),F(this,Z,I(this,Z,`f`)?I(this,Z,`f`).reset(n):dn(this,I(this,X,`f`)),`f`),F(this,$,I(this,$,`f`)?I(this,$,`f`).reset(n):Sn(this,I(this,Z,`f`),I(this,X,`f`)),`f`),F(this,L,I(this,L,`f`)?I(this,L,`f`).reset():tn(I(this,Z,`f`),I(this,$,`f`),I(this,H,`f`),I(this,X,`f`)),`f`),I(this,R,`f`)||F(this,R,_n(this,I(this,Z,`f`),I(this,L,`f`),I(this,X,`f`)),`f`),I(this,H,`f`).reset(),F(this,z,null,`f`),F(this,K,``,`f`),F(this,B,null,`f`),F(this,W,!1,`f`),this.parsed=!1,this}[wr](e,t){return I(this,X,`f`).path.relative(e,t)}[Er](e,t,n,r=0,i=!1){let a=!!n||i;e||=I(this,Y,`f`),I(this,q,`f`).__=I(this,X,`f`).y18n.__,I(this,q,`f`).configuration=this[er]();let o=!!I(this,q,`f`).configuration[`populate--`],s=Object.assign({},I(this,q,`f`).configuration,{"populate--":!0}),c=I(this,X,`f`).Parser.detailed(e,Object.assign({},I(this,q,`f`),{configuration:{"parse-positional-numbers":!1,...s}})),l=Object.assign(c.argv,I(this,zn,`f`)),u,d=c.aliases,f=!1,p=!1;Object.keys(l).forEach(e=>{e===I(this,G,`f`)&&l[e]?f=!0:e===I(this,Q,`f`)&&l[e]&&(p=!0)}),l.$0=this.$0,this.parsed=c,r===0&&I(this,Z,`f`).clearCachedHelpMessage();try{if(this[nr](),t)return this[Cr](l,o,!!n,!1);I(this,G,`f`)&&[I(this,G,`f`)].concat(d[I(this,G,`f`)]||[]).filter(e=>e.length>1).includes(``+l._[l._.length-1])&&(l._.pop(),f=!0),F(this,Fn,!1,`f`);let s=I(this,L,`f`).getCommands(),m=I(this,R,`f`)?.completionKey?[I(this,R,`f`)?.completionKey,...this.getAliases()[I(this,R,`f`)?.completionKey]??[]].some(e=>Object.prototype.hasOwnProperty.call(l,e)):!1,h=f||m||i;if(l._.length){if(s.length){let e;for(let t=r||0,a;l._[t]!==void 0;t++){if(a=String(l._[t]),s.includes(a)&&a!==I(this,z,`f`)){let e=I(this,L,`f`).runCommand(a,this,c,t+1,i,f||p||i);return this[Cr](e,o,!!n,!1)}if(!e&&a!==I(this,z,`f`)){e=a;break}}!I(this,L,`f`).hasDefaultCommand()&&I(this,Hn,`f`)&&e&&!h&&I(this,$,`f`).recommendCommands(e,s)}I(this,z,`f`)&&l._.includes(I(this,z,`f`))&&!m&&(I(this,V,`f`)&&ln(!0),this.showCompletionScript(),this.exit(0))}if(I(this,L,`f`).hasDefaultCommand()&&!h){let e=I(this,L,`f`).runCommand(null,this,c,0,i,f||p||i);return this[Cr](e,o,!!n,!1)}if(m){I(this,V,`f`)&&ln(!0),e=[].concat(e);let t=e.slice(e.indexOf(`--${I(this,R,`f`).completionKey}`)+1);return I(this,R,`f`).getCompletion(t,(e,t)=>{if(e)throw new N(e.message);(t||[]).forEach(e=>{I(this,In,`f`).log(e)}),this.exit(0)}),this[Cr](l,!o,!!n,!1)}if(I(this,W,`f`)||(f?(I(this,V,`f`)&&ln(!0),a=!0,this.showHelp(e=>{I(this,In,`f`).log(e),this.exit(0)})):p&&(I(this,V,`f`)&&ln(!0),a=!0,I(this,Z,`f`).showVersion(`log`),this.exit(0))),!a&&I(this,q,`f`).skipValidation.length>0&&(a=Object.keys(l).some(e=>I(this,q,`f`).skipValidation.indexOf(e)>=0&&l[e]===!0)),!a){if(c.error)throw new N(c.error.message);if(!m){let e=this[Dr](d,{},c.error);n||(u=Xt(l,this,I(this,H,`f`).getMiddleware(),!0)),u=this[pr](e,u??l),M(u)&&!n&&(u=u.then(()=>Xt(l,this,I(this,H,`f`).getMiddleware(),!1)))}}}catch(e){if(e instanceof N)I(this,Z,`f`).fail(e.message,e);else throw e}return this[Cr](u??l,o,!!n,!0)}[Dr](e,t,n,r){let i={...this.getDemandedOptions()};return a=>{if(n)throw new N(n.message);I(this,$,`f`).nonOptionCount(a),I(this,$,`f`).requiredArguments(a,i);let o=!1;I(this,Wn,`f`)&&(o=I(this,$,`f`).unknownCommands(a)),I(this,Un,`f`)&&!o?I(this,$,`f`).unknownArguments(a,e,t,!!r):I(this,Gn,`f`)&&I(this,$,`f`).unknownArguments(a,e,{},!1,!1),I(this,$,`f`).limitedChoices(a),I(this,$,`f`).implications(a),I(this,$,`f`).conflicting(a)}}[Or](){F(this,W,!0,`f`)}[kr](e){if(typeof e==`string`)I(this,q,`f`).key[e]=!0;else for(let t of e)I(this,q,`f`).key[t]=!0}};function jr(e){return!!e&&typeof e.getInternalMethods==`function`}const Mr=qn(Vt),Nr=[{command:i(`abuse-reports`,`Submit and track abuse reports for phishing, malware, and other policy violations on Cloudflare-proxied sites`,()=>import(`./abuse-reports-mKv00yPh.mjs`),null),hideCommand:!1},{command:i(`access`,`Access protected applications and services`,()=>import(`./access-CyRjTbhh.mjs`),null),hideCommand:!1},{command:i(`accounts`,`Account settings, members, roles, subscriptions, and API tokens for your Cloudflare account`,()=>import(`./accounts-BmF_YKvG.mjs`),null),hideCommand:!1},{command:i(`acm`,`acm`,()=>import(`./acm-BcIFiAb8.mjs`),null),hideCommand:!1},{command:i(`addressing`,`addressing`,()=>import(`./addressing-D6xVD7MM.mjs`),null),hideCommand:!1},{command:i(`agent-memory`,`agent-memory`,()=>import(`./agent-memory-Blldunhv.mjs`),null),hideCommand:!1},{command:i(`ai`,`ai`,()=>import(`./ai-CU8tdTfC.mjs`),null),hideCommand:!1},{command:i(`ai-audit`,`ai-audit`,()=>import(`./ai-audit-Id3hq5pV.mjs`),null),hideCommand:!1},{command:i(`ai-gateway`,`Proxy, cache, rate-limit, and observe requests to AI providers — OpenAI, Anthropic, Workers AI, and more`,()=>import(`./ai-gateway-BKeZ28CQ.mjs`),null),hideCommand:!1},{command:i(`ai-search`,`Managed search-as-a-service: crawl, index, and query content with AI-powered relevance and chat completions`,()=>import(`./ai-search-DOiZEmn7.mjs`),null),hideCommand:!1},{command:i(`ai-security`,`Detect prompt injection, PII, and unsafe topics in traffic to your AI applications`,()=>import(`./ai-security-CioADDZi.mjs`),null),hideCommand:!1},{command:i(`alerting`,`alerting`,()=>import(`./alerting-BzN1N3Se.mjs`),null),hideCommand:!0},{command:i(`analytics`,`Zone-level traffic analytics — dashboard summaries, per-colo breakdowns, and Argo latency metrics`,()=>import(`./analytics-Cte-DrzH.mjs`),null),hideCommand:!1},{command:i(`analytics-engine`,`analytics-engine`,()=>import(`./analytics-engine-CugCQfDe.mjs`),null),hideCommand:!0},{command:i(`api-security`,`api-security`,()=>import(`./api-security-CCs0g510.mjs`),null),hideCommand:!1},{command:i(`argo`,`Network optimization features that speed up and improve reliability of traffic to your origins`,()=>import(`./argo-BHBFZnmO.mjs`),null),hideCommand:!1},{command:i(`artifacts`,`artifacts`,()=>import(`./artifacts-BzAwvrCD.mjs`),null),hideCommand:!1},{command:i(`audit-logs`,`audit-logs`,()=>import(`./audit-logs-jWivEKCy.mjs`),null),hideCommand:!0},{command:i(`basin-catalog`,`Iceberg-compatible data catalog for R2 — organize objects into tables and namespaces for SQL query engines`,()=>import(`./basin-catalog-_8w_4599.mjs`),null),hideCommand:!1},{command:i(`billing`,`Account billing profiles and usage data for Cloudflare subscriptions and add-on services`,()=>import(`./billing-Ce0WN0yw.mjs`),null),hideCommand:!1},{command:i(`bot-management`,`bot-management`,()=>import(`./bot-management-DskcSr4B.mjs`),null),hideCommand:!0},{command:i(`botnet-feed`,`Botnet threat intelligence feeds — IP and ASN-level data on known command-and-control infrastructure`,()=>import(`./botnet-feed-CmBm13-D.mjs`),null),hideCommand:!0},{command:i(`brand-protection`,`brand-protection`,()=>import(`./brand-protection-DTuFrsN0.mjs`),null),hideCommand:!1},{command:i(`browser-run`,`browser-run`,()=>import(`./browser-run-CXdzSOHa.mjs`),null),hideCommand:!1},{command:i(`builds`,`Build and deploy Workers from connected repositories, then inspect build status and logs.`,()=>import(`./builds-_1u5Nx6f.mjs`),null),hideCommand:!1},{command:i(`cache`,`Purge cached content and configure Cache Reserve, tiered caching, and variant serving`,()=>import(`./cache-CDPUUv_O.mjs`),null),hideCommand:!1},{command:i(`client-side-security`,`Client-Side Security — monitor JavaScript, connections, and cookies on your pages for supply-chain attacks`,()=>import(`./client-side-security-DnnYaRsd.mjs`),null),hideCommand:!1},{command:i(`cloud-connector`,`Route traffic from Cloudflare directly to cloud provider services (AWS, Azure, GCP) without origin servers`,()=>import(`./cloud-connector-Ct6b6pz8.mjs`),null),hideCommand:!1},{command:i(`cloudforce-one`,`Detection rule management APIs`,()=>import(`./cloudforce-one-Rl6nCCm0.mjs`),null),hideCommand:!1},{command:i(`connector-interrupts`,`connector-interrupts`,()=>import(`./connector-interrupts-DyWilINb.mjs`),null),hideCommand:!1},{command:i(`connector-telemetry-events`,`connector-telemetry-events`,()=>import(`./connector-telemetry-events-BUW9qTOs.mjs`),null),hideCommand:!1},{command:i(`connector-telemetry-snapshots`,`connector-telemetry-snapshots`,()=>import(`./connector-telemetry-snapshots-Djs5QssR.mjs`),null),hideCommand:!1},{command:i(`connectors`,`connectors`,()=>import(`./connectors-e_cpzDEm.mjs`),null),hideCommand:!1},{command:i(`containers`,`Deploy and manage Containers applications on Cloudflare's global network`,()=>import(`./containers-CEH15JUu.mjs`),null),hideCommand:!1},{command:i(`content-scan`,`Malicious uploads detection, scan uploaded content in HTTP requests for malware and malicious payloads`,()=>import(`./content-scan-B6Ahw9JA.mjs`),null),hideCommand:!1},{command:i(`cps`,`cps`,()=>import(`./cps-uDD0SSJ-.mjs`),null),hideCommand:!1},{command:i(`csam-scanner`,`csam-scanner`,()=>import(`./csam-scanner-BSUl7jGn.mjs`),null),hideCommand:!1},{command:i(`custom-csrs`,`custom-csrs`,()=>import(`./custom-csrs-BDcXggph.mjs`),null),hideCommand:!1},{command:i(`custom-hostnames`,`custom-hostnames`,()=>import(`./custom-hostnames-UmIlwkwt.mjs`),null),hideCommand:!1},{command:i(`custom-nameservers`,`custom-nameservers`,()=>import(`./custom-nameservers-D7kU6d--.mjs`),null),hideCommand:!1},{command:i(`custom-pages`,`Manage custom error and challenge pages and their assets for accounts and zones`,()=>import(`./custom-pages-CkhIQCfM.mjs`),null),hideCommand:!1},{command:i(`d1`,`D1 is Cloudflare's managed, serverless database with SQLite's SQL semantics, built-in disaster recovery, and Worker and HTTP API access.`,()=>import(`./d1-myRLEAGs.mjs`),null),hideCommand:!1},{command:i(`diagnostics`,`Network diagnostic tools — traceroutes from Cloudflare's edge and endpoint health checks`,()=>import(`./diagnostics-q65rcNIk.mjs`),null),hideCommand:!1},{command:i(`dls`,`dls`,()=>import(`./dls-CMTrCDjZ.mjs`),null),hideCommand:!0},{command:i(`dns`,`dns`,()=>import(`./dns-DhARjFQs.mjs`),null),hideCommand:!1},{command:i(`dns-firewall`,`dns-firewall`,()=>import(`./dns-firewall-BP6r9QG6.mjs`),null),hideCommand:!0},{command:i(`durable-objects`,`durable-objects`,()=>import(`./durable-objects-tOJy-5te.mjs`),null),hideCommand:!1},{command:i(`email-auth`,`email-auth`,()=>import(`./email-auth-Bq9sq_2j.mjs`),null),hideCommand:!1},{command:i(`email-routing`,`Route incoming email to verified destination addresses or Workers with routing rules, catch-all behavior, and managed DNS records`,()=>import(`./email-routing-CYo4dp50.mjs`),null),hideCommand:!1},{command:i(`email-security`,`Cloud email security — investigate threats, manage allow/block policies, and detect phishing`,()=>import(`./email-security-CNtWET2d.mjs`),null),hideCommand:!1},{command:i(`email-sending`,`Send transactional email and manage sending subdomains and their DNS configuration`,()=>import(`./email-sending-BvagNLRr.mjs`),null),hideCommand:!1},{command:i(`field-extractors`,`field-extractors`,()=>import(`./field-extractors-C9R3Qivh.mjs`),null),hideCommand:!0},{command:i(`firewall`,`Legacy firewall rules, zone lockdowns, access rules, user-agent blocking, and WAF packages`,()=>import(`./firewall-DsgUY-Qv.mjs`),null),hideCommand:!1},{command:i(`flagship`,`flagship`,()=>import(`./flagship-geGDHp9H.mjs`),null),hideCommand:!1},{command:i(`fraud`,`fraud`,()=>import(`./fraud-24l8dKyk.mjs`),null),hideCommand:!0},{command:i(`google-tag-gateway`,`Google Tag Gateway operations`,()=>import(`./google-tag-gateway-CAkudP5W.mjs`),null),hideCommand:!0},{command:i(`healthchecks`,`Standalone health checks that monitor origin server availability from Cloudflare's edge`,()=>import(`./healthchecks-CEGMe3lO.mjs`),null),hideCommand:!0},{command:i(`hyperdrive`,`Accelerate access to existing databases by caching queries and pooling connections at the edge`,()=>import(`./hyperdrive-DLDaOU2O.mjs`),null),hideCommand:!1},{command:i(`iam`,`Identity and access management — permission groups, resource groups, user groups, and SSO connectors`,()=>import(`./iam-ChldOMSL.mjs`),null),hideCommand:!0},{command:i(`images`,`Store, resize, and deliver optimized images globally — variants, signing keys, and direct uploads`,()=>import(`./images-Ba9tS5wT.mjs`),null),hideCommand:!1},{command:i(`intel`,`Threat intelligence lookups — IP reputation, domain info, ASN details, WHOIS, and indicator feeds`,()=>import(`./intel-DbLRah4Y.mjs`),null),hideCommand:!1},{command:i(`ips`,`ips`,()=>import(`./ips-BGyzyQLL.mjs`),null),hideCommand:!0},{command:i(`k2`,`Durable, ordered event streams that you produce records to and consume from with subscriptions`,()=>import(`./k2-BVQ3MqEl.mjs`),null),hideCommand:!1},{command:i(`kv`,`kv`,()=>import(`./kv-Cd8vbPWK.mjs`),null),hideCommand:!1},{command:i(`leaked-credential-checks`,`Detect compromised credentials in login requests by checking against known breach databases`,()=>import(`./leaked-credential-checks-Dga83Qy3.mjs`),null),hideCommand:!1},{command:i(`load-balancers`,`Distribute traffic across origin pools with health monitoring, geo-steering, and failover`,()=>import(`./load-balancers-D9cB6of8.mjs`),null),hideCommand:!1},{command:i(`logo-matches`,`logo-matches`,()=>import(`./logo-matches-jeNkUxAq.mjs`),null),hideCommand:!0},{command:i(`logos`,`logos`,()=>import(`./logos-pxN5aumY.mjs`),null),hideCommand:!0},{command:i(`logpush`,`logpush`,()=>import(`./logpush-Ccmr0Y_I.mjs`),null),hideCommand:!1},{command:i(`logs`,`Log control, retention, and raw log access — CMB config, ray ID lookups, and received fields`,()=>import(`./logs-CZBMuuBC.mjs`),null),hideCommand:!1},{command:i(`magic-cloud-networking`,`magic-cloud-networking`,()=>import(`./magic-cloud-networking-BwOxZVql.mjs`),null),hideCommand:!0},{command:i(`magic-network-monitoring`,`Flow-based network traffic monitoring with configurable alerting rules and VPC flow ingestion`,()=>import(`./magic-network-monitoring-Cx5kKdbk.mjs`),null),hideCommand:!1},{command:i(`magic-transit`,`DDoS-protected network transit — GRE/IPsec tunnels, static routes, Magic WAN sites, connectors, and packet captures`,()=>import(`./magic-transit-BJwg3sVK.mjs`),null),hideCommand:!1},{command:i(`managed-defense`,`managed-defense`,()=>import(`./managed-defense-C_KLy4oB.mjs`),null),hideCommand:!1},{command:i(`managed-transforms`,`managed-transforms`,()=>import(`./managed-transforms-C-HMtesC.mjs`),null),hideCommand:!0},{command:i(`matches`,`matches`,()=>import(`./matches-DnjBnG-Y.mjs`),null),hideCommand:!0},{command:i(`mcp`,`Manage MCP portals and upstream MCP servers for Cloudflare Access AI controls`,()=>import(`./mcp-bGKgzz6F.mjs`),null),hideCommand:!1},{command:i(`mesh`,`mesh`,()=>import(`./mesh-DeQIll19.mjs`),null),hideCommand:!1},{command:i(`monetization`,`monetization`,()=>import(`./monetization-B-TIrpA5.mjs`),null),hideCommand:!1},{command:i(`network`,`network`,()=>import(`./network-BrjykU-I.mjs`),null),hideCommand:!1},{command:i(`network-interconnects`,`Physical and virtual private interconnects between your infrastructure and Cloudflare's network`,()=>import(`./network-interconnects-I06kbxIl.mjs`),null),hideCommand:!0},{command:i(`o11y`,`o11y`,()=>import(`./o11y-Ba0Fa98_.mjs`),null),hideCommand:!1},{command:i(`oauth-clients`,`oauth-clients`,()=>import(`./oauth-clients-Dd5gvDqf.mjs`),null),hideCommand:!0},{command:i(`oauth-scopes`,`oauth-scopes`,()=>import(`./oauth-scopes-CXpH3Syj.mjs`),null),hideCommand:!0},{command:i(`organization`,`organization`,()=>import(`./organization-DKPqwe3j.mjs`),null),hideCommand:!1},{command:i(`organizations`,`Multi-user organizations that group accounts, members, and shared settings under a single entity`,()=>import(`./organizations-Cq4iy-Yr.mjs`),null),hideCommand:!1},{command:i(`origin-post-quantum-encryption`,`Enable post-quantum key exchange for connections between Cloudflare and your origin server`,()=>import(`./origin-post-quantum-encryption-DSB1sbYV.mjs`),null),hideCommand:!0},{command:i(`page-rules`,`page-rules`,()=>import(`./page-rules-CDWTYaf7.mjs`),null),hideCommand:!0},{command:i(`pages`,`Full-stack application hosting with Git-integrated builds, preview deployments, and custom domains`,()=>import(`./pages-Dgtm51Uj.mjs`),null),hideCommand:!1},{command:i(`pay-per-crawl`,`pay-per-crawl`,()=>import(`./pay-per-crawl-CHenxdhv.mjs`),null),hideCommand:!1},{command:i(`pay-per-use`,`pay-per-use`,()=>import(`./pay-per-use-Bd5l0hBi.mjs`),null),hideCommand:!1},{command:i(`pipelines`,`Ingest, transform, and route event streams into R2, analytics, or other destinations in real time`,()=>import(`./pipelines-GsyD6nUM.mjs`),null),hideCommand:!1},{command:i(`precursor`,`Precursor settings for a zone`,()=>import(`./precursor-mO-Zua09.mjs`),null),hideCommand:!0},{command:i(`previews`,`Manage Worker Previews`,()=>import(`./previews-oHUiD54J.mjs`),null),hideCommand:!1},{command:i(`queries`,`queries`,()=>import(`./queries-CS0sYfte.mjs`),null),hideCommand:!0},{command:i(`queues`,`Reliable message queuing between Workers — produce, consume, and batch-process messages at scale`,()=>import(`./queues-D8cAr2lB.mjs`),null),hideCommand:!1},{command:i(`r2`,`S3-compatible object storage with zero egress fees — buckets, lifecycle rules, event notifications, and data migration`,()=>import(`./r2-CJiJbG6b.mjs`),null),hideCommand:!1},{command:i(`radar`,`Internet-wide traffic intelligence — BGP, DNS, HTTP trends, attack data, and network quality insights`,()=>import(`./radar-PUZ_PCZ8.mjs`),null),hideCommand:!1},{command:i(`realtime`,`Real-time audio, video, and data services on Cloudflare's global network`,()=>import(`./realtime-X6uQsldp.mjs`),null),hideCommand:!1},{command:i(`registrar`,`registrar`,()=>import(`./registrar-BqZdUTss.mjs`),null),hideCommand:!1},{command:i(`registrar-sandbox`,`registrar-sandbox`,()=>import(`./registrar-sandbox-CmM3e1QN.mjs`),null),hideCommand:!1},{command:i(`reporting`,`reporting`,()=>import(`./reporting-DFVz98Xg.mjs`),null),hideCommand:!1},{command:i(`request-tracers`,`Trace how a request would be processed through Cloudflare's rules and configuration pipeline`,()=>import(`./request-tracers-BC1u2WDU.mjs`),null),hideCommand:!1},{command:i(`resource-sharing`,`Share Cloudflare resources (zones, accounts) across organizations with granular access controls`,()=>import(`./resource-sharing-CdEn5Iex.mjs`),null),hideCommand:!1},{command:i(`rules`,`Resources used by Cloudflare rules and rulesets`,()=>import(`./rules-B663VetJ.mjs`),null),hideCommand:!1},{command:i(`rulesets`,`rulesets`,()=>import(`./rulesets-p4EijVr6.mjs`),null),hideCommand:!1},{command:i(`rum`,`Real User Measurement (Web Analytics) — track page loads, Core Web Vitals, and visitor metrics`,()=>import(`./rum-CHHXe4KK.mjs`),null),hideCommand:!0},{command:i(`scim`,`SCIM 2.0 provisioning — manage users, groups, and identity provider sync for your account`,()=>import(`./scim-BMnUa4Oz.mjs`),null),hideCommand:!0},{command:i(`secrets-store`,`Centralized secret management — store API keys, tokens, and credentials for use across Workers and other products`,()=>import(`./secrets-store-EYrhEzVG.mjs`),null),hideCommand:!1},{command:i(`security-insights`,`security-insights`,()=>import(`./security-insights-C-AwDwXb.mjs`),null),hideCommand:!1},{command:i(`security-txt`,`Manage the /.well-known/security.txt file that tells security researchers how to report vulnerabilities`,()=>import(`./security-txt-CQMe8TD3.mjs`),null),hideCommand:!1},{command:i(`smart-shield`,`Smart Shield settings, health checks, and cache reserve management`,()=>import(`./smart-shield-CHSuitaH.mjs`),null),hideCommand:!0},{command:i(`snippets`,`snippets`,()=>import(`./snippets-DGSBz4lg.mjs`),null),hideCommand:!1},{command:i(`spectrum`,`Proxy and protect arbitrary TCP/UDP applications through Cloudflare's network with DDoS mitigation`,()=>import(`./spectrum-59LhYG1t.mjs`),null),hideCommand:!1},{command:i(`speed`,`Observatory speed tests — run Lighthouse audits, track performance trends, and schedule recurring tests`,()=>import(`./speed-CMCfoG3s.mjs`),null),hideCommand:!1},{command:i(`sql`,`sql`,()=>import(`./sql-MxWaTDdj.mjs`),null),hideCommand:!1},{command:i(`ssl`,`SSL/TLS certificate management — certificate packs, Universal SSL, verification, and TLS mode recommendations`,()=>import(`./ssl-DTTFZR9x.mjs`),null),hideCommand:!1},{command:i(`stream`,`Video encoding, storage, and delivery — upload, live-stream, clip, caption, and embed video at scale`,()=>import(`./stream-gVG_7si-.mjs`),null),hideCommand:!1},{command:i(`submit`,`submit`,()=>import(`./submit-wJYcQB8d.mjs`),null),hideCommand:!0},{command:i(`tags`,`tags`,()=>import(`./tags-BwFKjaOr.mjs`),null),hideCommand:!1},{command:i(`tenant`,`tenant`,()=>import(`./tenant-Qv_PC8gW.mjs`),null),hideCommand:!1},{command:i(`tenant-custom-nameservers`,`tenant-custom-nameservers`,()=>import(`./tenant-custom-nameservers-DBmmUcxn.mjs`),null),hideCommand:!0},{command:i(`tunnels`,`tunnels`,()=>import(`./tunnels-CHNKPYRV.mjs`),null),hideCommand:!1},{command:i(`turnstile`,`CAPTCHA-free bot verification widgets that protect forms and APIs without degrading user experience`,()=>import(`./turnstile-C60RxPo2.mjs`),null),hideCommand:!1},{command:i(`url-info`,`url-info`,()=>import(`./url-info-By6VD20A.mjs`),null),hideCommand:!0},{command:i(`url-normalization`,`url-normalization`,()=>import(`./url-normalization-3t6Xpafi.mjs`),null),hideCommand:!0},{command:i(`url-scanner`,`Scan URLs for phishing, malware, and other threats — submit scans and retrieve detailed results`,()=>import(`./url-scanner-DNG__DiK.mjs`),null),hideCommand:!0},{command:i(`user`,`Your Cloudflare user profile, invitations, organizations, billing, and personal API tokens`,()=>import(`./user-B4i7OIFK.mjs`),null),hideCommand:!1},{command:i(`vectorize`,`Globally distributed vector database for building semantic search, recommendations, and RAG applications on Workers`,()=>import(`./vectorize-y3PCQDDf.mjs`),null),hideCommand:!1},{command:i(`waiting-rooms`,`Virtual queues that throttle traffic to your site during peak demand with customizable waiting pages`,()=>import(`./waiting-rooms-xkZLvPkT.mjs`),null),hideCommand:!1},{command:i(`web-assets`,`web-assets`,()=>import(`./web-assets-BlqHZywy.mjs`),null),hideCommand:!1},{command:i(`web3`,`web3`,()=>import(`./web3-DGAJMcLv.mjs`),null),hideCommand:!0},{command:i(`workers`,`workers`,()=>import(`./workers-cCNBx0Bc.mjs`),null),hideCommand:!1},{command:i(`workers-builds`,`workers-builds`,()=>import(`./workers-builds-COKp3NfU.mjs`),null),hideCommand:!0},{command:i(`workers-for-platforms`,`workers-for-platforms`,()=>import(`./workers-for-platforms-CAtiWI_G.mjs`),null),hideCommand:!1},{command:i(`workers-vpc`,`workers-vpc`,()=>import(`./workers-vpc-ChBfXwPy.mjs`),null),hideCommand:!1},{command:i(`workflows`,`Durable, multi-step workflows that run on Workers with automatic retries and state persistence`,()=>import(`./workflows-BYhgJvyR.mjs`),null),hideCommand:!1},{command:i(`zaraz`,`Server-side tag manager — load third-party tools (analytics, pixels, etc.) from Cloudflare's edge without client-side JS`,()=>import(`./zaraz-BW0kvRCK.mjs`),null),hideCommand:!1},{command:i(`zero-trust`,`Cloudflare's SASE platform — secure access, device posture, DLP, tunnels, gateway policies, and network segmentation`,()=>import(`./zero-trust-DSeWXkNV.mjs`),null),hideCommand:!1},{command:i(`zone`,`zone`,()=>import(`./zone-B-YJG2UA.mjs`),null),hideCommand:!1},{command:i(`zones`,`Zones are domains on Cloudflare — list, create, and configure domain settings`,()=>import(`./zones-B8pqPHu8.mjs`),null),hideCommand:!1}];function Pr(e){return typeof e==`object`&&!!e&&`schemas`in e&&typeof e.schemas==`object`&&e.schemas!==null&&!Array.isArray(e.schemas)}function Fr(e,t){if(!t)return e;let n=a(import.meta.url,`schemas.json`,Pr);return!n||!Object.hasOwn(n.schemas,t)?e:`${e}\n\n${o.italic(`To inspect the exact API request, run ${o.code(`cf schema ${t}`)}`)}`}const Ir=[{kind:`root`,dryRun:`preview`,command:`auth`,describe:`Manage authentication and profiles`,dir:`auth`},{kind:`root`,dryRun:`preview`,command:`login`,describe:!1,dir:`login`},{kind:`root`,dryRun:`preview`,command:`build`,describe:`Build a project for Cloudflare`,dir:`build`},{kind:`root`,dryRun:`preview`,command:`complete [shell]`,describe:`Generate and handle shell completions`,dir:`completions`},{kind:`root`,dryRun:`native`,command:`deploy`,describe:`Deploy a project to Cloudflare`,dir:`deploy`},{kind:`root`,dryRun:`preview`,command:`dev [implArgs..]`,describe:`Run the project's Cloudflare dev server`,dir:`dev`},{kind:`root`,dryRun:`preview`,command:`docs`,describe:`Search live Cloudflare documentation`,dir:`docs`},{kind:`root`,dryRun:`preview`,command:`init [directory]`,describe:`Create a new Cloudflare project or set up an existing one`,dir:`init`},{kind:`root`,dryRun:`native`,command:`migrate [path]`,describe:`Migrate a Wrangler project to cf`,dir:`migrate`},{kind:`root`,dryRun:`preview`,command:`cli`,describe:`Discover commands and configure the cf CLI`,dir:`cli`},{kind:`leaf`,dryRun:`preview`,parent:`previews`,name:`deploy`,dir:`previews/deploy`},{kind:`parentOverride`,parent:`previews`,describe:`Manage Worker Previews`,expose:!0,createIfMissing:!0},{kind:`root`,dryRun:`preview`,command:`schema [command..]`,describe:`Show API schema details for a command`,dir:`schema`},{kind:`root`,dryRun:`preview`,command:`tools`,describe:!1,dir:`tools`},{kind:`leafOverride`,dryRun:`native`,emitKey:`ai/run`,dir:`ai/run`},{kind:`leafOverride`,dryRun:`native`,emitKey:`registrar/registrations/create`,dir:`registrar/registrations/create`},{kind:`leaf`,dryRun:`native`,parent:`workers/versions`,name:`create`,dir:`workers/versions/create`},{kind:`leaf`,dryRun:`preview`,parent:`containers`,name:`build`,dir:`containers/build`},{kind:`leaf`,dryRun:`preview`,parent:`containers`,name:`push`,dir:`containers/push`},{kind:`leaf`,dryRun:`preview`,parent:`containers/images`,name:`list`,dir:`containers/images/list`},{kind:`leaf`,dryRun:`preview`,parent:`containers/images`,name:`delete`,dir:`containers/images/delete`},{kind:`leaf`,dryRun:`preview`,parent:`containers`,name:`ssh`,dir:`containers/ssh`},{kind:`leaf`,dryRun:`preview`,parent:`pages`,name:`deploy`,dir:`pages/deploy`},{kind:`leaf`,dryRun:`preview`,parent:`workers`,name:`check`,dir:`workers/check`},{kind:`leaf`,dryRun:`preview`,parent:`workers`,name:`types`,dir:`workers/types`},{kind:`parentOverride`,parent:`access`,describe:`Access protected applications and services`,expose:!0},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`login`,dir:`access/login`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`token`,dir:`access/token`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`ssh-config`,dir:`access/ssh-config`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`ssh-gen`,dir:`access/ssh-gen`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`tcp`,dir:`access/tcp`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`curl`,dir:`access/curl`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`diag`,dir:`tunnels/diag`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`login`,dir:`tunnels/login`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`quick-start`,dir:`tunnels/quick-start`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`ready`,dir:`tunnels/ready`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`run`,dir:`tunnels/run`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`tail`,dir:`tunnels/tail`},{kind:`subgroup`,dryRun:`preview`,parent:`d1`,name:`migrations`,dir:`d1/migrations`,describe:`Create, list, and apply D1 database migrations`},{kind:`subgroup`,dryRun:`native`,parent:`workers`,name:`triggers`,dir:`workers/triggers`,describe:`Manage triggers (Routes, Workflows, Cron triggers etc.)`}];function Lr(){return Ir.filter(e=>e.kind===`root`)}function Rr(e){return e.command.split(/\s+/)[0]??e.command}const zr={auth:{load:()=>import(`./auth-CdEGiJ5Y.mjs`),telemetry:{command:`auth`,recordArgs:!1}},login:{load:()=>import(`./login-DvsRxI3E.mjs`),telemetry:null},build:{load:()=>import(`./build-D7s3a8zW.mjs`),telemetry:{command:`build`,classification:{safeFlags:[]}}},completions:{load:()=>import(`./completions-DMwrvK_S.mjs`),telemetry:null},deploy:{load:()=>import(`./deploy-BJqCpycz.mjs`),telemetry:{command:`deploy`,classification:{safeFlags:[`dry-run`,`prebuilt`,`containers-rollout`,`provision`]}}},dev:{load:()=>import(`./dev-S1PJi83q.mjs`),telemetry:{command:`dev`,recordArgs:!1}},init:{load:()=>import(`./init-C08hBFYn.mjs`),telemetry:{command:`init`,classification:{safeFlags:[`install`,`package-manager`]}}},migrate:{load:()=>import(`./migrate-B6HsPeFh.mjs`),telemetry:{command:`migrate`,recordArgs:!1}},docs:{load:()=>import(`./docs-CReGWDrw.mjs`),telemetry:{command:`docs`,recordArgs:!1}},cli:{load:()=>import(`./cli-DyhOdzMo.mjs`),telemetry:{command:`cli`,recordArgs:!1}},schema:{load:()=>import(`./schema-B38ojvsS.mjs`),telemetry:{command:`schema`,classification:{safeFlags:[`list`]}}},tools:{load:()=>import(`./tools-B1ajcUAF.mjs`),telemetry:{command:`tools`,classification:{safeFlags:[`text`]}}}};function Br(){return Lr().map(e=>({...e,...zr[e.dir]}))}const Vr={quiet:{type:`boolean`,alias:`q`,description:`Suppress non-essential output`,global:!0,default:!1},zone:{type:`string`,alias:`z`,description:`Zone ID or domain name (overrides CLOUDFLARE_ZONE_ID)`,global:!0},profile:{type:`string`,description:`Use a specific auth profile`,requiresArg:!0,global:!0},mode:{type:`string`,alias:`m`,description:`Mode used to evaluate project configuration`,requiresArg:!0,global:!0,coerce:e=>{if(Array.isArray(e))throw Error(`--mode can only be specified once.`);if(e===``)throw Error(`--mode requires a non-empty value.`);return e}},"temporary-account":{type:`boolean`,description:`Create or reuse a temporary account when no Cloudflare credentials are available`,global:!0,default:!1,hidden:!0},"event-code":{type:`string`,description:`Specify the event code to use when creating a temporary account for an event`,requiresArg:!0,global:!0,hidden:!0,coerce:e=>{if(Array.isArray(e))throw Error(`--event-code expects a single value.`);let t=e.trim();if(!t)throw Error(`--event-code cannot be empty.`);return t}},local:{type:`boolean`,description:`Use local resource simulations`,global:!0,default:!1},"persist-to":{type:`string`,description:`Directory holding local persisted state (default: ~/.config/cloudflare/state)`,requiresArg:!0,global:!0}};function Hr(e,t){return Object.entries(Vr).some(([n,r])=>{if(r.type===`boolean`&&t!==`true`&&t!==`false`)return!1;let i=r.alias;return[n,...Array.isArray(i)?i:i===void 0?[]:[i]].some(t=>e===(t.length===1?`-${t}`:`--${t}`))})}const Ur=Br().map(e=>ee(i(e.command,e.describe,e.load,e.telemetry),e.dryRun)),Wr=new Set(Lr().map(Rr)),Gr=[`=== STOP: AGENT COMMAND DISCOVERY ===`,`AGENTS: Do not explore commands by chaining nested --help calls.`,`Your first port of call and the best way to discover commands is:`,`AGENTS: Keep cf cli search and cf docs search queries anonymous; describe the action and resource type only.`,`Never include names, email addresses, domains, account or resource IDs, tokens, or other identifying values.`,` cf cli search "<describe the task you want to accomplish>"`,`It returns five compact JSON matches with short descriptions. Pick the best match instead of repeating similar searches.`,"Run `<discovered command> --help` for detailed command help.","For API request details, replace the result's leading `cf` with `cf schema`.",`For Cloudflare documentation, guides, and examples, use cf docs search "<question>".`,`It returns ranked JSON results. Fetch a result's URL with Accept: text/markdown to read the full page.`,`=== END AGENT COMMAND DISCOVERY ===`].join(`
|
|
115
|
-
`);function Kr(e){return s().isAgentic?`${Gr}\n${e}`:e}function qr(e,t){return Kr(Fr(e,t))}async function Jr(e=!1){if(!process.stderr.isTTY||e||
|
|
116
|
-
`)),!0}function
|
|
117
|
-
The Cloudflare CLI - manage your Cloudflare resources`).updateStrings({"Commands:":
|
|
114
|
+
`,`f`),F(this,K,I(this,K,`f`)+e.join(` `),`f`)}}}[Xn](e){Ut(I(this,q,`f`)).forEach(t=>{if((e=>e===`configObjects`)(t))return;let n=I(this,q,`f`)[t];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n==`object`&&delete n[e]}),delete I(this,Z,`f`).getDescriptions()[e]}[Zn](e,t,n){I(this,Nn,`f`)[n]||(I(this,X,`f`).process.emitWarning(e,t),I(this,Nn,`f`)[n]=!0)}[Qn](){I(this,Pn,`f`).push({options:I(this,q,`f`),configObjects:I(this,q,`f`).configObjects.slice(0),exitProcess:I(this,V,`f`),groups:I(this,U,`f`),strict:I(this,Un,`f`),strictCommands:I(this,Wn,`f`),strictOptions:I(this,Gn,`f`),completionCommand:I(this,z,`f`),output:I(this,K,`f`),exitError:I(this,B,`f`),hasOutput:I(this,W,`f`),parsed:this.parsed,parseFn:I(this,J,`f`),parseContext:I(this,zn,`f`)}),I(this,Z,`f`).freeze(),I(this,$,`f`).freeze(),I(this,L,`f`).freeze(),I(this,H,`f`).freeze()}[$n](){let e=``,t;return t=/\b(node|iojs|electron|bun)(\.exe)?$/.test(I(this,X,`f`).process.argv()[0])?I(this,X,`f`).process.argv().slice(1,2):I(this,X,`f`).process.argv().slice(0,1),e=t.map(e=>{let t=this[wr](I(this,kn,`f`),e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&t.length<e.length?t:e}).join(` `).trim(),I(this,X,`f`).getEnv(`_`)&&I(this,X,`f`).getProcessArgvBin()===I(this,X,`f`).getEnv(`_`)&&(e=I(this,X,`f`).getEnv(`_`).replace(`${I(this,X,`f`).path.dirname(I(this,X,`f`).process.execPath())}/`,``)),e}[er](){return I(this,Rn,`f`)}[tr](){return I(this,Kn,`f`)}[nr](){if(!I(this,Mn,`f`))return;let e=I(this,X,`f`).getEnv(`LC_ALL`)||I(this,X,`f`).getEnv(`LC_MESSAGES`)||I(this,X,`f`).getEnv(`LANG`)||I(this,X,`f`).getEnv(`LANGUAGE`)||`en_US`;this.locale(e.replace(/[.:].*/,``))}[rr](){return this[ar]().version||`unknown`}[ir](e){let t=e[`--`]?e[`--`]:e._;for(let e=0,n;(n=t[e])!==void 0;e++)I(this,X,`f`).Parser.looksLikeNumber(n)&&Number.isSafeInteger(Math.floor(parseFloat(`${n}`)))&&(t[e]=Number(n));return e}[ar](e){let t=e||`*`;if(I(this,Bn,`f`)[t])return I(this,Bn,`f`)[t];let n={};try{let t=e||I(this,X,`f`).mainFilename;I(this,X,`f`).path.extname(t)&&(t=I(this,X,`f`).path.dirname(t));let r=I(this,X,`f`).findUp(t,(e,t)=>{if(t.includes(`package.json`))return`package.json`});j(r,void 0,I(this,X,`f`)),n=JSON.parse(I(this,X,`f`).readFileSync(r,`utf8`))}catch{}return I(this,Bn,`f`)[t]=n||{},I(this,Bn,`f`)[t]}[or](e,t){t=[].concat(t),t.forEach(t=>{t=this[ur](t),I(this,q,`f`)[e].push(t)})}[sr](e,t,n,r){this[lr](e,t,n,r,(e,t,n)=>{I(this,q,`f`)[e][t]=n})}[cr](e,t,n,r){this[lr](e,t,n,r,(e,t,n)=>{I(this,q,`f`)[e][t]=(I(this,q,`f`)[e][t]||[]).concat(n)})}[lr](e,t,n,r,i){if(Array.isArray(n))n.forEach(t=>{e(t,r)});else if((e=>typeof e==`object`)(n))for(let t of Ut(n))e(t,n[t]);else i(t,this[ur](n),r)}[ur](e){return e===`__proto__`?`___proto___`:e}[dr](e,t){return this[sr](this[dr].bind(this),`key`,e,t),this}[fr](){var e,t,n,r,i,a,o,s,c,l,u,d;let f=I(this,Pn,`f`).pop();j(f,void 0,I(this,X,`f`));let p;e=this,t=this,n=this,r=this,i=this,a=this,o=this,s=this,c=this,l=this,u=this,d=this,{options:{set value(t){F(e,q,t,`f`)}}.value,configObjects:p,exitProcess:{set value(e){F(t,V,e,`f`)}}.value,groups:{set value(e){F(n,U,e,`f`)}}.value,output:{set value(e){F(r,K,e,`f`)}}.value,exitError:{set value(e){F(i,B,e,`f`)}}.value,hasOutput:{set value(e){F(a,W,e,`f`)}}.value,parsed:this.parsed,strict:{set value(e){F(o,Un,e,`f`)}}.value,strictCommands:{set value(e){F(s,Wn,e,`f`)}}.value,strictOptions:{set value(e){F(c,Gn,e,`f`)}}.value,completionCommand:{set value(e){F(l,z,e,`f`)}}.value,parseFn:{set value(e){F(u,J,e,`f`)}}.value,parseContext:{set value(e){F(d,zn,e,`f`)}}.value}=f,I(this,q,`f`).configObjects=p,I(this,Z,`f`).unfreeze(),I(this,$,`f`).unfreeze(),I(this,L,`f`).unfreeze(),I(this,H,`f`).unfreeze()}[pr](e,t){return Zt(t,t=>(e(t),t))}getInternalMethods(){return{getCommandInstance:this[mr].bind(this),getContext:this[hr].bind(this),getHasOutput:this[gr].bind(this),getLoggerInstance:this[_r].bind(this),getParseContext:this[vr].bind(this),getParserConfiguration:this[er].bind(this),getUsageConfiguration:this[tr].bind(this),getUsageInstance:this[yr].bind(this),getValidationInstance:this[br].bind(this),hasParseCallback:this[xr].bind(this),isGlobalContext:this[Sr].bind(this),postProcess:this[Cr].bind(this),reset:this[Tr].bind(this),runValidation:this[Dr].bind(this),runYargsParserAndExecuteCommands:this[Er].bind(this),setHasOutput:this[Or].bind(this)}}[mr](){return I(this,L,`f`)}[hr](){return I(this,An,`f`)}[gr](){return I(this,W,`f`)}[_r](){return I(this,In,`f`)}[vr](){return I(this,zn,`f`)||{}}[yr](){return I(this,Z,`f`)}[br](){return I(this,$,`f`)}[xr](){return!!I(this,J,`f`)}[Sr](){return I(this,Fn,`f`)}[Cr](e,t,n,r){return n||M(e)||(t||(e=this[Jn](e)),(this[er]()[`parse-positional-numbers`]||this[er]()[`parse-positional-numbers`]===void 0)&&(e=this[ir](e)),r&&(e=Xt(e,this,I(this,H,`f`).getMiddleware(),!1))),e}[Tr](e={}){F(this,q,I(this,q,`f`)||{},`f`);let t={};t.local=I(this,q,`f`).local||[],t.configObjects=I(this,q,`f`).configObjects||[];let n={};return t.local.forEach(t=>{n[t]=!0,(e[t]||[]).forEach(e=>{n[e]=!0})}),Object.assign(I(this,Vn,`f`),Object.keys(I(this,U,`f`)).reduce((e,t)=>{let r=I(this,U,`f`)[t].filter(e=>!(e in n));return r.length>0&&(e[t]=r),e},{})),F(this,U,{},`f`),[`array`,`boolean`,`string`,`skipValidation`,`count`,`normalize`,`number`,`hiddenOptions`].forEach(e=>{t[e]=(I(this,q,`f`)[e]||[]).filter(e=>!n[e])}),[`narg`,`key`,`alias`,`default`,`defaultDescription`,`config`,`choices`,`demandedOptions`,`demandedCommands`,`deprecatedOptions`].forEach(e=>{t[e]=cn(I(this,q,`f`)[e],e=>!n[e])}),t.envPrefix=I(this,q,`f`).envPrefix,F(this,q,t,`f`),F(this,Z,I(this,Z,`f`)?I(this,Z,`f`).reset(n):dn(this,I(this,X,`f`)),`f`),F(this,$,I(this,$,`f`)?I(this,$,`f`).reset(n):Sn(this,I(this,Z,`f`),I(this,X,`f`)),`f`),F(this,L,I(this,L,`f`)?I(this,L,`f`).reset():tn(I(this,Z,`f`),I(this,$,`f`),I(this,H,`f`),I(this,X,`f`)),`f`),I(this,R,`f`)||F(this,R,_n(this,I(this,Z,`f`),I(this,L,`f`),I(this,X,`f`)),`f`),I(this,H,`f`).reset(),F(this,z,null,`f`),F(this,K,``,`f`),F(this,B,null,`f`),F(this,W,!1,`f`),this.parsed=!1,this}[wr](e,t){return I(this,X,`f`).path.relative(e,t)}[Er](e,t,n,r=0,i=!1){let a=!!n||i;e||=I(this,Y,`f`),I(this,q,`f`).__=I(this,X,`f`).y18n.__,I(this,q,`f`).configuration=this[er]();let o=!!I(this,q,`f`).configuration[`populate--`],s=Object.assign({},I(this,q,`f`).configuration,{"populate--":!0}),c=I(this,X,`f`).Parser.detailed(e,Object.assign({},I(this,q,`f`),{configuration:{"parse-positional-numbers":!1,...s}})),l=Object.assign(c.argv,I(this,zn,`f`)),u,d=c.aliases,f=!1,p=!1;Object.keys(l).forEach(e=>{e===I(this,G,`f`)&&l[e]?f=!0:e===I(this,Q,`f`)&&l[e]&&(p=!0)}),l.$0=this.$0,this.parsed=c,r===0&&I(this,Z,`f`).clearCachedHelpMessage();try{if(this[nr](),t)return this[Cr](l,o,!!n,!1);I(this,G,`f`)&&[I(this,G,`f`)].concat(d[I(this,G,`f`)]||[]).filter(e=>e.length>1).includes(``+l._[l._.length-1])&&(l._.pop(),f=!0),F(this,Fn,!1,`f`);let s=I(this,L,`f`).getCommands(),m=I(this,R,`f`)?.completionKey?[I(this,R,`f`)?.completionKey,...this.getAliases()[I(this,R,`f`)?.completionKey]??[]].some(e=>Object.prototype.hasOwnProperty.call(l,e)):!1,h=f||m||i;if(l._.length){if(s.length){let e;for(let t=r||0,a;l._[t]!==void 0;t++){if(a=String(l._[t]),s.includes(a)&&a!==I(this,z,`f`)){let e=I(this,L,`f`).runCommand(a,this,c,t+1,i,f||p||i);return this[Cr](e,o,!!n,!1)}if(!e&&a!==I(this,z,`f`)){e=a;break}}!I(this,L,`f`).hasDefaultCommand()&&I(this,Hn,`f`)&&e&&!h&&I(this,$,`f`).recommendCommands(e,s)}I(this,z,`f`)&&l._.includes(I(this,z,`f`))&&!m&&(I(this,V,`f`)&&ln(!0),this.showCompletionScript(),this.exit(0))}if(I(this,L,`f`).hasDefaultCommand()&&!h){let e=I(this,L,`f`).runCommand(null,this,c,0,i,f||p||i);return this[Cr](e,o,!!n,!1)}if(m){I(this,V,`f`)&&ln(!0),e=[].concat(e);let t=e.slice(e.indexOf(`--${I(this,R,`f`).completionKey}`)+1);return I(this,R,`f`).getCompletion(t,(e,t)=>{if(e)throw new N(e.message);(t||[]).forEach(e=>{I(this,In,`f`).log(e)}),this.exit(0)}),this[Cr](l,!o,!!n,!1)}if(I(this,W,`f`)||(f?(I(this,V,`f`)&&ln(!0),a=!0,this.showHelp(e=>{I(this,In,`f`).log(e),this.exit(0)})):p&&(I(this,V,`f`)&&ln(!0),a=!0,I(this,Z,`f`).showVersion(`log`),this.exit(0))),!a&&I(this,q,`f`).skipValidation.length>0&&(a=Object.keys(l).some(e=>I(this,q,`f`).skipValidation.indexOf(e)>=0&&l[e]===!0)),!a){if(c.error)throw new N(c.error.message);if(!m){let e=this[Dr](d,{},c.error);n||(u=Xt(l,this,I(this,H,`f`).getMiddleware(),!0)),u=this[pr](e,u??l),M(u)&&!n&&(u=u.then(()=>Xt(l,this,I(this,H,`f`).getMiddleware(),!1)))}}}catch(e){if(e instanceof N)I(this,Z,`f`).fail(e.message,e);else throw e}return this[Cr](u??l,o,!!n,!0)}[Dr](e,t,n,r){let i={...this.getDemandedOptions()};return a=>{if(n)throw new N(n.message);I(this,$,`f`).nonOptionCount(a),I(this,$,`f`).requiredArguments(a,i);let o=!1;I(this,Wn,`f`)&&(o=I(this,$,`f`).unknownCommands(a)),I(this,Un,`f`)&&!o?I(this,$,`f`).unknownArguments(a,e,t,!!r):I(this,Gn,`f`)&&I(this,$,`f`).unknownArguments(a,e,{},!1,!1),I(this,$,`f`).limitedChoices(a),I(this,$,`f`).implications(a),I(this,$,`f`).conflicting(a)}}[Or](){F(this,W,!0,`f`)}[kr](e){if(typeof e==`string`)I(this,q,`f`).key[e]=!0;else for(let t of e)I(this,q,`f`).key[t]=!0}};function jr(e){return!!e&&typeof e.getInternalMethods==`function`}const Mr=qn(Vt),Nr=[{command:i(`abuse-reports`,`Submit and track abuse reports for phishing, malware, and other policy violations on Cloudflare-proxied sites`,()=>import(`./abuse-reports-CbUAnJxd.mjs`),null),hideCommand:!1},{command:i(`access`,`Access protected applications and services`,()=>import(`./access-C-78DlxL.mjs`),null),hideCommand:!1},{command:i(`accounts`,`Account settings, members, roles, subscriptions, and API tokens for your Cloudflare account`,()=>import(`./accounts-DEqQPxCz.mjs`),null),hideCommand:!1},{command:i(`acm`,`acm`,()=>import(`./acm-jmhCq3Yh.mjs`),null),hideCommand:!1},{command:i(`addressing`,`addressing`,()=>import(`./addressing-BeYFpQvC.mjs`),null),hideCommand:!1},{command:i(`agent-memory`,`agent-memory`,()=>import(`./agent-memory-Chlovb7j.mjs`),null),hideCommand:!1},{command:i(`ai`,`ai`,()=>import(`./ai-BndH3HYN.mjs`),null),hideCommand:!1},{command:i(`ai-audit`,`ai-audit`,()=>import(`./ai-audit-BUJ-70O_.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-CCk7VKhL.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-BexET_wp.mjs`),null),hideCommand:!1},{command:i(`ai-security`,`Detect prompt injection, PII, and unsafe topics in traffic to your AI applications`,()=>import(`./ai-security-D4MxRlxX.mjs`),null),hideCommand:!1},{command:i(`alerting`,`alerting`,()=>import(`./alerting-rw8Oi3x7.mjs`),null),hideCommand:!0},{command:i(`analytics`,`Zone-level traffic analytics — dashboard summaries, per-colo breakdowns, and Argo latency metrics`,()=>import(`./analytics-q-guNEOK.mjs`),null),hideCommand:!1},{command:i(`analytics-engine`,`analytics-engine`,()=>import(`./analytics-engine-Bk7dQLcm.mjs`),null),hideCommand:!0},{command:i(`api-security`,`api-security`,()=>import(`./api-security-BDc6gkf1.mjs`),null),hideCommand:!1},{command:i(`argo`,`Network optimization features that speed up and improve reliability of traffic to your origins`,()=>import(`./argo-CnLIqm0i.mjs`),null),hideCommand:!1},{command:i(`artifacts`,`artifacts`,()=>import(`./artifacts-Cil33dzV.mjs`),null),hideCommand:!1},{command:i(`audit-logs`,`audit-logs`,()=>import(`./audit-logs--E2Eclb7.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-dnVyzopm.mjs`),null),hideCommand:!1},{command:i(`billing`,`Account billing profiles and usage data for Cloudflare subscriptions and add-on services`,()=>import(`./billing-Fqp3jB2V.mjs`),null),hideCommand:!1},{command:i(`bot-management`,`bot-management`,()=>import(`./bot-management-SEDgo1Xg.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-DPqR4M0Y.mjs`),null),hideCommand:!1},{command:i(`brand-protection`,`brand-protection`,()=>import(`./brand-protection-B8vwKfM9.mjs`),null),hideCommand:!1},{command:i(`browser-run`,`browser-run`,()=>import(`./browser-run-BybYDq3I.mjs`),null),hideCommand:!1},{command:i(`builds`,`Build and deploy Workers from connected repositories, then inspect build status and logs.`,()=>import(`./builds-CvtOG-Gk.mjs`),null),hideCommand:!1},{command:i(`cache`,`Purge cached content and configure Cache Reserve, tiered caching, and variant serving`,()=>import(`./cache-Bme_d2Wx.mjs`),null),hideCommand:!1},{command:i(`client-side-security`,`Client-Side Security — monitor JavaScript, connections, and cookies on your pages for supply-chain attacks`,()=>import(`./client-side-security-ZQeRoo1t.mjs`),null),hideCommand:!1},{command:i(`cloud-connector`,`Route traffic from Cloudflare directly to cloud provider services (AWS, Azure, GCP) without origin servers`,()=>import(`./cloud-connector-BeunZlNV.mjs`),null),hideCommand:!1},{command:i(`cloudforce-one`,`Detection rule management APIs`,()=>import(`./cloudforce-one-D20t9ojD.mjs`),null),hideCommand:!1},{command:i(`connector-interrupts`,`connector-interrupts`,()=>import(`./connector-interrupts-Dfhxupmg.mjs`),null),hideCommand:!1},{command:i(`connector-telemetry-events`,`connector-telemetry-events`,()=>import(`./connector-telemetry-events-CLVpDTIa.mjs`),null),hideCommand:!1},{command:i(`connector-telemetry-snapshots`,`connector-telemetry-snapshots`,()=>import(`./connector-telemetry-snapshots-E_1tmNmQ.mjs`),null),hideCommand:!1},{command:i(`connectors`,`connectors`,()=>import(`./connectors-ChJpQFSl.mjs`),null),hideCommand:!1},{command:i(`containers`,`Deploy and manage Containers applications on Cloudflare's global network`,()=>import(`./containers-Cj5-9nUg.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-CIA_9PV8.mjs`),null),hideCommand:!1},{command:i(`cps`,`cps`,()=>import(`./cps-hJkqdsHx.mjs`),null),hideCommand:!1},{command:i(`csam-scanner`,`csam-scanner`,()=>import(`./csam-scanner-cCVO3lNF.mjs`),null),hideCommand:!1},{command:i(`custom-csrs`,`custom-csrs`,()=>import(`./custom-csrs-BrTWUZ0c.mjs`),null),hideCommand:!1},{command:i(`custom-hostnames`,`custom-hostnames`,()=>import(`./custom-hostnames-C4ft77oC.mjs`),null),hideCommand:!1},{command:i(`custom-nameservers`,`custom-nameservers`,()=>import(`./custom-nameservers-BWfrZhD1.mjs`),null),hideCommand:!1},{command:i(`custom-pages`,`Manage custom error and challenge pages and their assets for accounts and zones`,()=>import(`./custom-pages-DqTMKtRc.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-B58AA9PA.mjs`),null),hideCommand:!1},{command:i(`diagnostics`,`Network diagnostic tools — traceroutes from Cloudflare's edge and endpoint health checks`,()=>import(`./diagnostics-4gfYj7Pf.mjs`),null),hideCommand:!1},{command:i(`dls`,`dls`,()=>import(`./dls-ClWVxTBg.mjs`),null),hideCommand:!1},{command:i(`dns`,`dns`,()=>import(`./dns-CML-wxIt.mjs`),null),hideCommand:!1},{command:i(`dns-firewall`,`dns-firewall`,()=>import(`./dns-firewall-CL0b3dJ1.mjs`),null),hideCommand:!1},{command:i(`durable-objects`,`durable-objects`,()=>import(`./durable-objects-uZECeq_f.mjs`),null),hideCommand:!1},{command:i(`email-auth`,`email-auth`,()=>import(`./email-auth-CCNW798I.mjs`),null),hideCommand:!1},{command:i(`email-domains`,`email-domains`,()=>import(`./email-domains-1rD1d84O.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-CYv-LrbV.mjs`),null),hideCommand:!1},{command:i(`email-security`,`Cloud email security — investigate threats, manage allow/block policies, and detect phishing`,()=>import(`./email-security-CWEUYPYo.mjs`),null),hideCommand:!1},{command:i(`email-sending`,`Send transactional email and manage sending subdomains and their DNS configuration`,()=>import(`./email-sending-DHSzCfJx.mjs`),null),hideCommand:!1},{command:i(`field-extractors`,`field-extractors`,()=>import(`./field-extractors-CuBM_uO4.mjs`),null),hideCommand:!0},{command:i(`firewall`,`Legacy firewall rules, zone lockdowns, access rules, user-agent blocking, and WAF packages`,()=>import(`./firewall-SMIUSypF.mjs`),null),hideCommand:!1},{command:i(`flagship`,`flagship`,()=>import(`./flagship-D3v6iDdw.mjs`),null),hideCommand:!1},{command:i(`fraud`,`fraud`,()=>import(`./fraud-B2f7O15X.mjs`),null),hideCommand:!0},{command:i(`google-tag-gateway`,`Google Tag Gateway operations`,()=>import(`./google-tag-gateway-BwOc62Gy.mjs`),null),hideCommand:!1},{command:i(`healthchecks`,`Standalone health checks that monitor origin server availability from Cloudflare's edge`,()=>import(`./healthchecks-BQXHnihB.mjs`),null),hideCommand:!0},{command:i(`hyperdrive`,`Accelerate access to existing databases by caching queries and pooling connections at the edge`,()=>import(`./hyperdrive-Bd6Yfje3.mjs`),null),hideCommand:!1},{command:i(`iam`,`Identity and access management — permission groups, resource groups, user groups, and SSO connectors`,()=>import(`./iam-qJPI1_aZ.mjs`),null),hideCommand:!0},{command:i(`images`,`Store, resize, and deliver optimized images globally — variants, signing keys, and direct uploads`,()=>import(`./images-goHZJOxy.mjs`),null),hideCommand:!1},{command:i(`intel`,`Threat intelligence lookups — IP reputation, domain info, ASN details, WHOIS, and indicator feeds`,()=>import(`./intel-CwiqwJI9.mjs`),null),hideCommand:!1},{command:i(`internal`,`internal`,()=>import(`./internal-5cnlw9mH.mjs`),null),hideCommand:!0},{command:i(`ips`,`ips`,()=>import(`./ips-KBxmXhvO.mjs`),null),hideCommand:!0},{command:i(`k2`,`Durable, ordered event streams that you produce records to and consume from with subscriptions`,()=>import(`./k2-KhIP5NFT.mjs`),null),hideCommand:!1},{command:i(`kv`,`kv`,()=>import(`./kv-CCem2sEY.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-BkPZiwE2.mjs`),null),hideCommand:!1},{command:i(`live`,`live`,()=>import(`./live-BhHzxFna.mjs`),null),hideCommand:!0},{command:i(`load-balancers`,`Distribute traffic across origin pools with health monitoring, geo-steering, and failover`,()=>import(`./load-balancers-17GBXdju.mjs`),null),hideCommand:!1},{command:i(`logpush`,`logpush`,()=>import(`./logpush-BCCUxa4J.mjs`),null),hideCommand:!1},{command:i(`logs`,`Log control, retention, and raw log access — CMB config, ray ID lookups, and received fields`,()=>import(`./logs-4CwupKRG.mjs`),null),hideCommand:!1},{command:i(`magic-cloud-networking`,`magic-cloud-networking`,()=>import(`./magic-cloud-networking-Xy6SC-V-.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-B8pRZp2g.mjs`),null),hideCommand:!0},{command:i(`magic-transit`,`DDoS-protected network transit — GRE/IPsec tunnels, static routes, Magic WAN sites, connectors, and packet captures`,()=>import(`./magic-transit-CwfO3OOX.mjs`),null),hideCommand:!1},{command:i(`managed-defense`,`managed-defense`,()=>import(`./managed-defense-CtFLuvuB.mjs`),null),hideCommand:!1},{command:i(`managed-transforms`,`managed-transforms`,()=>import(`./managed-transforms-Hto8OCBS.mjs`),null),hideCommand:!0},{command:i(`mcp`,`Manage MCP portals and upstream MCP servers for Cloudflare Access AI controls`,()=>import(`./mcp-SQ0MAVUJ.mjs`),null),hideCommand:!1},{command:i(`mesh`,`mesh`,()=>import(`./mesh-C8A6tVqA.mjs`),null),hideCommand:!1},{command:i(`monetization`,`monetization`,()=>import(`./monetization-CYVaCAe9.mjs`),null),hideCommand:!1},{command:i(`network`,`network`,()=>import(`./network-CJBTdEM3.mjs`),null),hideCommand:!1},{command:i(`network-interconnects`,`Physical and virtual private interconnects between your infrastructure and Cloudflare's network`,()=>import(`./network-interconnects-CKlNFj3i.mjs`),null),hideCommand:!0},{command:i(`o11y`,`o11y`,()=>import(`./o11y-5x2Q8CWm.mjs`),null),hideCommand:!1},{command:i(`oauth-clients`,`oauth-clients`,()=>import(`./oauth-clients-qKXg8ZH3.mjs`),null),hideCommand:!0},{command:i(`oauth-scopes`,`oauth-scopes`,()=>import(`./oauth-scopes-Ct1jDyC5.mjs`),null),hideCommand:!0},{command:i(`organization`,`organization`,()=>import(`./organization-lBQSeqS1.mjs`),null),hideCommand:!1},{command:i(`organizations`,`Multi-user organizations that group accounts, members, and shared settings under a single entity`,()=>import(`./organizations-DEX8Er3g.mjs`),null),hideCommand:!1},{command:i(`origin-post-quantum-encryption`,`Enable post-quantum key exchange for connections between Cloudflare and your origin server`,()=>import(`./origin-post-quantum-encryption-DUsxVGCs.mjs`),null),hideCommand:!1},{command:i(`page-rules`,`page-rules`,()=>import(`./page-rules-BMt6nt03.mjs`),null),hideCommand:!0},{command:i(`pages`,`Full-stack application hosting with Git-integrated builds, preview deployments, and custom domains`,()=>import(`./pages-Jxa92ECz.mjs`),null),hideCommand:!1},{command:i(`pay-per-crawl`,`pay-per-crawl`,()=>import(`./pay-per-crawl-Cv0044CZ.mjs`),null),hideCommand:!1},{command:i(`pay-per-use`,`pay-per-use`,()=>import(`./pay-per-use-DGEeG-dC.mjs`),null),hideCommand:!1},{command:i(`pipelines`,`Ingest, transform, and route event streams into R2, analytics, or other destinations in real time`,()=>import(`./pipelines-CEC78A3w.mjs`),null),hideCommand:!1},{command:i(`precursor`,`Precursor settings for a zone`,()=>import(`./precursor-Ba0Ejhzt.mjs`),null),hideCommand:!0},{command:i(`previews`,`Manage Worker Previews`,()=>import(`./previews-DnZbUTym.mjs`),null),hideCommand:!1},{command:i(`queues`,`Reliable message queuing between Workers — produce, consume, and batch-process messages at scale`,()=>import(`./queues-Chq997uj.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-BFgZDs-F.mjs`),null),hideCommand:!1},{command:i(`radar`,`Internet-wide traffic intelligence — BGP, DNS, HTTP trends, attack data, and network quality insights`,()=>import(`./radar-DJdDzLJw.mjs`),null),hideCommand:!1},{command:i(`ready`,`ready`,()=>import(`./ready-Cok0aqke.mjs`),null),hideCommand:!0},{command:i(`realtime`,`Real-time audio, video, and data services on Cloudflare's global network`,()=>import(`./realtime-BHWWCiKp.mjs`),null),hideCommand:!1},{command:i(`registrar`,`registrar`,()=>import(`./registrar-9Y-1IQ0n.mjs`),null),hideCommand:!1},{command:i(`registrar-sandbox`,`registrar-sandbox`,()=>import(`./registrar-sandbox-DTS1kRnb.mjs`),null),hideCommand:!1},{command:i(`reporting`,`reporting`,()=>import(`./reporting-D5RbKQJf.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-wxWCjmHo.mjs`),null),hideCommand:!1},{command:i(`resource-sharing`,`Share Cloudflare resources (zones, accounts) across organizations with granular access controls`,()=>import(`./resource-sharing-BGoaVvJa.mjs`),null),hideCommand:!1},{command:i(`rules`,`Resources used by Cloudflare rules and rulesets`,()=>import(`./rules-Cd3EjhdF.mjs`),null),hideCommand:!1},{command:i(`rulesets`,`rulesets`,()=>import(`./rulesets-Bnz3rSBT.mjs`),null),hideCommand:!1},{command:i(`rum`,`Real User Measurement (Web Analytics) — track page loads, Core Web Vitals, and visitor metrics`,()=>import(`./rum-CK9HEe3O.mjs`),null),hideCommand:!0},{command:i(`scim`,`SCIM 2.0 provisioning — manage users, groups, and identity provider sync for your account`,()=>import(`./scim-UdqaWnOu.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-Bf5v96LC.mjs`),null),hideCommand:!1},{command:i(`security-insights`,`security-insights`,()=>import(`./security-insights-BAGySlGu.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-D0fMmjHs.mjs`),null),hideCommand:!1},{command:i(`signed-url`,`signed-url`,()=>import(`./signed-url-Ce0muRem.mjs`),null),hideCommand:!0},{command:i(`smart-shield`,`Smart Shield settings, health checks, and cache reserve management`,()=>import(`./smart-shield-CCy7_M3j.mjs`),null),hideCommand:!1},{command:i(`snippets`,`snippets`,()=>import(`./snippets-Bc8m3HSV.mjs`),null),hideCommand:!1},{command:i(`spectrum`,`Proxy and protect arbitrary TCP/UDP applications through Cloudflare's network with DDoS mitigation`,()=>import(`./spectrum-DtNX8WBX.mjs`),null),hideCommand:!1},{command:i(`speed`,`Observatory speed tests — run Lighthouse audits, track performance trends, and schedule recurring tests`,()=>import(`./speed-TbkeWV_x.mjs`),null),hideCommand:!1},{command:i(`sql`,`sql`,()=>import(`./sql-DI319y25.mjs`),null),hideCommand:!1},{command:i(`ssl`,`SSL/TLS certificate management — certificate packs, Universal SSL, verification, and TLS mode recommendations`,()=>import(`./ssl-D0MIzFl2.mjs`),null),hideCommand:!1},{command:i(`stream`,`Video encoding, storage, and delivery — upload, live-stream, clip, caption, and embed video at scale`,()=>import(`./stream-4Mrb8HEo.mjs`),null),hideCommand:!1},{command:i(`tags`,`tags`,()=>import(`./tags-BP25qydR.mjs`),null),hideCommand:!1},{command:i(`tenant`,`tenant`,()=>import(`./tenant-jmfZqEZ4.mjs`),null),hideCommand:!1},{command:i(`tenant-custom-nameservers`,`tenant-custom-nameservers`,()=>import(`./tenant-custom-nameservers-BzVP85Tq.mjs`),null),hideCommand:!0},{command:i(`tunnels`,`tunnels`,()=>import(`./tunnels-BNswR1Dj.mjs`),null),hideCommand:!1},{command:i(`turnstile`,`CAPTCHA-free bot verification widgets that protect forms and APIs without degrading user experience`,()=>import(`./turnstile-BgsTP2fz.mjs`),null),hideCommand:!1},{command:i(`url-normalization`,`url-normalization`,()=>import(`./url-normalization-Bqrs4-2F.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-Dm4Fps5T.mjs`),null),hideCommand:!0},{command:i(`user`,`Your Cloudflare user profile, invitations, organizations, billing, and personal API tokens`,()=>import(`./user-u_LxzLM4.mjs`),null),hideCommand:!1},{command:i(`vectorize`,`Globally distributed vector database for building semantic search, recommendations, and RAG applications on Workers`,()=>import(`./vectorize-DLGiOyd4.mjs`),null),hideCommand:!1},{command:i(`waiting-rooms`,`Virtual queues that throttle traffic to your site during peak demand with customizable waiting pages`,()=>import(`./waiting-rooms-DmgJgJXb.mjs`),null),hideCommand:!1},{command:i(`web-assets`,`web-assets`,()=>import(`./web-assets-rNhZWP-6.mjs`),null),hideCommand:!1},{command:i(`web3`,`web3`,()=>import(`./web3-BVBdFt8E.mjs`),null),hideCommand:!0},{command:i(`workers`,`workers`,()=>import(`./workers-CjUKJvH8.mjs`),null),hideCommand:!1},{command:i(`workers-builds`,`workers-builds`,()=>import(`./workers-builds-D3Q97l7X.mjs`),null),hideCommand:!0},{command:i(`workers-for-platforms`,`workers-for-platforms`,()=>import(`./workers-for-platforms-C_fcw30y.mjs`),null),hideCommand:!1},{command:i(`workers-vpc`,`workers-vpc`,()=>import(`./workers-vpc-CnRO3Stc.mjs`),null),hideCommand:!1},{command:i(`workflows`,`Durable, multi-step workflows that run on Workers with automatic retries and state persistence`,()=>import(`./workflows-cpHFe5v6.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-BRj0J7vK.mjs`),null),hideCommand:!1},{command:i(`zero-trust`,`Cloudflare's SASE platform — secure access, device posture, DLP, tunnels, gateway policies, and network segmentation`,()=>import(`./zero-trust-CVZKDLCB.mjs`),null),hideCommand:!1},{command:i(`zone`,`zone`,()=>import(`./zone-N6ccK70C.mjs`),null),hideCommand:!1},{command:i(`zones`,`Zones are domains on Cloudflare — list, create, and configure domain settings`,()=>import(`./zones-C4S_kpGz.mjs`),null),hideCommand:!1}];function Pr(e){return typeof e==`object`&&!!e&&`schemas`in e&&typeof e.schemas==`object`&&e.schemas!==null&&!Array.isArray(e.schemas)}function Fr(e,t){if(!t)return e;let n=a(import.meta.url,`schemas.json`,Pr);return!n||!Object.hasOwn(n.schemas,t)?e:`${e}\n\n${o.italic(`To inspect the exact API request, run ${o.code(`cf schema ${t}`)}`)}`}const Ir=[{kind:`root`,dryRun:`preview`,command:`auth`,describe:`Manage authentication and profiles`,dir:`auth`},{kind:`root`,dryRun:`preview`,command:`login`,describe:!1,dir:`login`},{kind:`root`,dryRun:`preview`,command:`build`,describe:`Build a project for Cloudflare`,dir:`build`},{kind:`root`,dryRun:`preview`,command:`complete [shell]`,describe:`Generate and handle shell completions`,dir:`completions`},{kind:`root`,dryRun:`native`,command:`deploy`,describe:`Deploy a project to Cloudflare`,dir:`deploy`},{kind:`root`,dryRun:`preview`,command:`dev [implArgs..]`,describe:`Run the project's Cloudflare dev server`,dir:`dev`},{kind:`root`,dryRun:`preview`,command:`docs`,describe:`Search live Cloudflare documentation`,dir:`docs`},{kind:`root`,dryRun:`preview`,command:`init [directory]`,describe:`Create a new Cloudflare project or set up an existing one`,dir:`init`},{kind:`root`,dryRun:`native`,command:`migrate [path]`,describe:`Migrate a Wrangler project to cf`,dir:`migrate`},{kind:`root`,dryRun:`preview`,command:`cli`,describe:`Discover commands and configure the cf CLI`,dir:`cli`},{kind:`leaf`,dryRun:`preview`,parent:`previews`,name:`deploy`,dir:`previews/deploy`},{kind:`parentOverride`,parent:`previews`,describe:`Manage Worker Previews`,expose:!0,createIfMissing:!0},{kind:`root`,dryRun:`preview`,command:`schema [command..]`,describe:`Show API schema details for a command`,dir:`schema`},{kind:`root`,dryRun:`preview`,command:`tools`,describe:!1,dir:`tools`},{kind:`leafOverride`,dryRun:`native`,emitKey:`ai/run`,dir:`ai/run`},{kind:`leafOverride`,dryRun:`native`,emitKey:`registrar/registrations/create`,dir:`registrar/registrations/create`},{kind:`leaf`,dryRun:`native`,parent:`workers/versions`,name:`create`,dir:`workers/versions/create`},{kind:`leaf`,dryRun:`preview`,parent:`containers`,name:`build`,dir:`containers/build`},{kind:`leaf`,dryRun:`preview`,parent:`containers`,name:`push`,dir:`containers/push`},{kind:`leaf`,dryRun:`preview`,parent:`containers/images`,name:`list`,dir:`containers/images/list`},{kind:`leaf`,dryRun:`preview`,parent:`containers/images`,name:`delete`,dir:`containers/images/delete`},{kind:`leaf`,dryRun:`preview`,parent:`containers`,name:`ssh`,dir:`containers/ssh`},{kind:`leaf`,dryRun:`preview`,parent:`pages`,name:`deploy`,dir:`pages/deploy`},{kind:`leaf`,dryRun:`preview`,parent:`workers`,name:`check`,dir:`workers/check`},{kind:`leaf`,dryRun:`preview`,parent:`workers`,name:`types`,dir:`workers/types`},{kind:`parentOverride`,parent:`access`,describe:`Access protected applications and services`,expose:!0},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`login`,dir:`access/login`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`token`,dir:`access/token`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`ssh-config`,dir:`access/ssh-config`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`ssh-gen`,dir:`access/ssh-gen`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`tcp`,dir:`access/tcp`},{kind:`leaf`,dryRun:`preview`,parent:`access`,name:`curl`,dir:`access/curl`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`diag`,dir:`tunnels/diag`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`login`,dir:`tunnels/login`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`quick-start`,dir:`tunnels/quick-start`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`ready`,dir:`tunnels/ready`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`run`,dir:`tunnels/run`},{kind:`leaf`,dryRun:`preview`,parent:`tunnels`,name:`tail`,dir:`tunnels/tail`},{kind:`subgroup`,dryRun:`preview`,parent:`d1`,name:`migrations`,dir:`d1/migrations`,describe:`Create, list, and apply D1 database migrations`},{kind:`subgroup`,dryRun:`native`,parent:`workers`,name:`triggers`,dir:`workers/triggers`,describe:`Manage triggers (Routes, Workflows, Cron triggers etc.)`}];function Lr(){return Ir.filter(e=>e.kind===`root`)}function Rr(e){return e.command.split(/\s+/)[0]??e.command}const zr={auth:{load:()=>import(`./auth-BtZmY6sE.mjs`),telemetry:{command:`auth`,recordArgs:!1}},login:{load:()=>import(`./login-BTiflOun.mjs`),telemetry:null},build:{load:()=>import(`./build-BqGmiORA.mjs`),telemetry:{command:`build`,classification:{safeFlags:[]}}},completions:{load:()=>import(`./completions-2Otv0HMd.mjs`),telemetry:null},deploy:{load:()=>import(`./deploy-CEROLAdh.mjs`),telemetry:{command:`deploy`,classification:{safeFlags:[`dry-run`,`prebuilt`,`containers-rollout`,`provision`]}}},dev:{load:()=>import(`./dev-BaFS7kOM.mjs`),telemetry:{command:`dev`,recordArgs:!1}},init:{load:()=>import(`./init-CVx0Ya1E.mjs`),telemetry:{command:`init`,classification:{safeFlags:[`install`,`package-manager`]}}},migrate:{load:()=>import(`./migrate-Dufxsb_F.mjs`),telemetry:{command:`migrate`,recordArgs:!1}},docs:{load:()=>import(`./docs-BeYBHwUN.mjs`),telemetry:{command:`docs`,recordArgs:!1}},cli:{load:()=>import(`./cli-CIKDqm-u.mjs`),telemetry:{command:`cli`,recordArgs:!1}},schema:{load:()=>import(`./schema-DuLIZRhA.mjs`),telemetry:{command:`schema`,classification:{safeFlags:[`list`]}}},tools:{load:()=>import(`./tools-C-vmgYSv.mjs`),telemetry:{command:`tools`,classification:{safeFlags:[`text`]}}}};function Br(){return Lr().map(e=>({...e,...zr[e.dir]}))}const Vr={quiet:{type:`boolean`,alias:`q`,description:`Suppress non-essential output`,global:!0,default:!1},zone:{type:`string`,alias:`z`,description:`Zone ID or domain name (overrides CLOUDFLARE_ZONE_ID)`,global:!0},profile:{type:`string`,description:`Use a specific auth profile`,requiresArg:!0,global:!0},mode:{type:`string`,alias:`m`,description:`Mode used to evaluate project configuration`,requiresArg:!0,global:!0,coerce:e=>{if(Array.isArray(e))throw Error(`--mode can only be specified once.`);if(e===``)throw Error(`--mode requires a non-empty value.`);return e}},"temporary-account":{type:`boolean`,description:`Create or reuse a temporary account when no Cloudflare credentials are available`,global:!0,default:!1,hidden:!0},"event-code":{type:`string`,description:`Specify the event code to use when creating a temporary account for an event`,requiresArg:!0,global:!0,hidden:!0,coerce:e=>{if(Array.isArray(e))throw Error(`--event-code expects a single value.`);let t=e.trim();if(!t)throw Error(`--event-code cannot be empty.`);return t}},local:{type:`boolean`,description:`Use local resource simulations`,global:!0,default:!1},"persist-to":{type:`string`,description:`Directory holding local persisted state (default: ~/.config/cloudflare/state)`,requiresArg:!0,global:!0}};function Hr(e,t){return Object.entries(Vr).some(([n,r])=>{if(r.type===`boolean`&&t!==`true`&&t!==`false`)return!1;let i=r.alias;return[n,...Array.isArray(i)?i:i===void 0?[]:[i]].some(t=>e===(t.length===1?`-${t}`:`--${t}`))})}const Ur=Br().map(e=>ee(i(e.command,e.describe,e.load,e.telemetry),e.dryRun)),Wr=new Set(Lr().map(Rr)),Gr=[`=== STOP: AGENT COMMAND DISCOVERY ===`,`AGENTS: Do not explore commands by chaining nested --help calls.`,`Your first port of call and the best way to discover commands is:`,`AGENTS: Keep cf cli search and cf docs search queries anonymous; describe the action and resource type only.`,`Never include names, email addresses, domains, account or resource IDs, tokens, or other identifying values.`,` cf cli search "<describe the task you want to accomplish>"`,`It returns five compact JSON matches with short descriptions. Pick the best match instead of repeating similar searches.`,"Run `<discovered command> --help` for detailed command help.","For API request details, replace the result's leading `cf` with `cf schema`.",`For Cloudflare documentation, guides, and examples, use cf docs search "<question>".`,`It returns ranked JSON results. Fetch a result's URL with Accept: text/markdown to read the full page.`,`=== END AGENT COMMAND DISCOVERY ===`].join(`
|
|
115
|
+
`);function Kr(e){return s().isAgentic?`${Gr}\n${e}`:e}function qr(e,t){return Kr(Fr(e,t))}async function Jr(e=!1){if(!process.stderr.isTTY||e||c(process.argv.slice(2))||Zr()===`complete`)return;let{readState:t,updateState:n}=await import(`./state-B3Uy1jPX.mjs`);if(t().completions?.prompted)return;let{log:r}=await import(`./log-DZfik9Jk.mjs`);r.info(`Tip: run ${o.code(`cf complete <bash|zsh|fish|powershell>`)} to install shell completions.`),n({completions:{prompted:!0}})}let Yr;function Xr(){return Yr??=import(`./telemetry-DKSJSLtq.mjs`),Yr}function Zr(e=process.argv.slice(2)){return Qr(e,1)[0]}function Qr(e=process.argv.slice(2),t=2){let n=[];for(let r=0;r<e.length&&n.length<t;r++){let t=e[r];if(t===void 0||t===`--`)break;Hr(t,e[r+1])?r++:t.startsWith(`-`)||n.push(t)}return n}async function $r(e=!1){if(!process.stderr.isTTY)return;let t=process.argv.slice(2);if(e||c(t)||t.includes(`--help`)||t.includes(`-h`)||oi(Qr(t).join(` `)))return;let{getBannerLastShown:n,getTelemetryDispatcher:r,setBannerLastShown:i}=await Xr();if(!r().enabled||n()===f)return;let{log:a}=await import(`./log-DZfik9Jk.mjs`);a.info(`Cloudflare collects anonymous cf usage telemetry. Run ${o.code(`cf cli telemetry disable`)} to opt out.`),i(f)}async function ei(){try{await Promise.race([re(),b(1e3,void 0,{ref:!1})])}catch{}}const ti=/^Unknown commands?: /,ni=/^Did you mean (.+)\?$/;function ri(e){return e instanceof Error&&e.message.startsWith(`Unknown command:`)}function ii(e,t){let n=ni.exec(t)?.[1],r;if(n!==void 0)r=`suggested-command`;else if(ti.test(t))r=`unknown-subcommand`;else if(t===`You need to specify a command`)r=`missing-command`;else return;try{let t=e,i=t.getInternalMethods(),a=i.getContext().commands,o=i.getCommandInstance().getCommands(),s=t.parsed?t.parsed.argv?._:void 0;if(!Array.isArray(a)||!a.every(e=>typeof e==`string`)||!Array.isArray(o))return;let c=a.length>0&&o.length===0;return{kind:r===`unknown-subcommand`&&c?`surplus-positional`:r,knownCommand:a,knownCommandIsLeaf:c,unknownTokens:Array.isArray(s)?s.slice(a.length).map(String):[],...n===void 0?{}:{suggestedCommand:n}}}catch{return}}function ai(e){try{let t=e.getInternalMethods().getContext().commands;return!Array.isArray(t)||t.length===0||!t.every(e=>typeof e==`string`)?void 0:t.join(` `)}catch{return}}function oi(e){let[t,n]=e.split(` `);return t===`complete`||t===`cli`&&n===`telemetry`}function si(e){let[t,...n]=e.unknownTokens,r=e.suggestedCommand??t;return[...e.knownCommand,...r===void 0?[]:[r],...n].join(` `).toLowerCase()}async function ci(e,t,n){if(v()||e instanceof l)return;let r=ri(e)||n?.knownCommand.length===0,i=r?void 0:t;if(!(i===void 0&&!r||oi(i??Qr().join(` `))||n!==void 0&&oi(si(n))))try{let{getTelemetryDispatcher:t,UNKNOWN_COMMAND_EVENT:r}=await Xr(),{sanitizeError:a}=await import(`./error-sanitization-Byb-_IS9.mjs`),o=t();if(!o.enabled)return;let s=n?await li(n):{argsUsed:[],argsCombination:``},c={command:i??r,sanitizedArgs:{},...s};o.sendCommandEvent(`cf command started`,c),o.sendCommandEvent(`cf command finished`,{...c,outcome:`error`,durationMs:0,...a(e)})}catch{}}async function li(e){let{loadCommandVocabulary:t,sanitizeCommandResolution:n}=await import(`./command-resolution-DAQ4PWUt.mjs`);return n(e,gt(process.argv),t(Object.keys(Vr)))}async function ui(e){if(e&&!oi(e))try{let{getTelemetryDispatcher:t}=await Xr();t().sendAdhocEvent(`cf help shown`,{command:e})}catch{}}function di(e){let t=process.argv.slice(2),n=t.indexOf(`--`),r=n===-1?t:t.slice(0,n);return!r.includes(`--version`)&&!r.includes(`-v`)?!1:(h(f,{quiet:c(r),update:e}),console.log(f),!0)}function fi(e){if(process.argv.slice(2).length>0)return!1;let t=[p(f,e),``,`The Cloudflare CLI — manage your account, zones, and developer platform.`,``,`${o.bold(`Get started:`)}`,` ${o.code(`cf auth login`)} ${o.muted(`Authenticate with Cloudflare`)}`,` ${o.code(`cf --help`)} ${o.muted(`Browse all commands`)}`,` ${o.code(`cf <command> --help`)} ${o.muted(`Per-command help`)}`,` ${o.code(`cf migrate`)} ${o.muted(`Migrate a Wrangler project to cf`)}`,` ${o.code(`cf complete bash`)} ${o.muted(`Install shell completions`)}`,``,`${o.bold(`Docs:`)} ${o.brand(`https://developers.cloudflare.com/`)}`,``];return console.log(t.join(`
|
|
116
|
+
`)),!0}function pi(e=!1,t){let n=process.argv.slice(2),r=n.indexOf(`--`),i=r===-1?n:n.slice(0,r);i.length!==0&&(i.includes(`--version`)||i.includes(`-v`)||Zr(i)!==`complete`&&h(f,{quiet:e||c(i),update:t}))}async function mi(){let e=process.argv.slice(2);if(c(e)||Zr(e)===`complete`||(e.length===0?process.stdout.isTTY!==!0:process.stderr.isTTY!==!0))return;let{isCI:t}=await import(`./interactive-CHcvofEp.mjs`);if(t)return;let{getUpdateNotice:n,maybeStartBackgroundUpdateCheck:r}=await import(`./update-check-BOF1hn_I.mjs`),i=!1;return{notice:n(f),start(){i||(i=!0,r())}}}function hi(e,t={}){let{onCommandResolved:n,onCommandResolutionFailed:r,onHelpShown:i,updateCheck:a}=t,s,c=e=>o.brand(e),l=e.indexOf(`--`),p=(l===-1?e:e.slice(0,l)).some(e=>e===`--local`||e===`--no-local`||e.startsWith(`--local=`)),h=Mr(e).scriptName(`cf`).parserConfiguration({"sort-commands":!0}).wrap(process.stdout.columns||80).usage(`$0 <command> [options]`).usage(`
|
|
117
|
+
The Cloudflare CLI - manage your Cloudflare resources`).updateStrings({"Commands:":c(`Commands`),"Options:":c(`Options`),"Positionals:":c(`Positionals`),"Examples:":c(`Examples`)}).help(`help`,`Show help`).alias(`h`,`help`).options(Vr).group([...Object.keys(Vr),`help`,`version`],c(`Global flags`));for(let e of Ur)h.command(e);for(let e of Nr)e.hideCommand?h.command({...e.command,describe:!1}):h.command(e.command);h.middleware(async e=>{pi(e.quiet,a?.notice),a?.start();let t=ai(h);t!==void 0&&n?.(t);try{await $r(e.quiet)}catch{}try{await Jr(e.quiet)}catch{}te(e.mode);let r=String(e._[0]??``),i=e.persistTo??e[`persist-to`];if(!e.help&&(r===`dev`&&p||e.local&&Wr.has(r)))throw Error(`--local is not supported by cf ${r}.`);if(!e.help&&r===`dev`&&i!==void 0)throw Error(`--persist-to is not supported by cf dev.`);if(i===``)throw Error(`--persist-to requires a non-empty directory.`);if(i!==void 0&&!e.local)throw Error(`--persist-to can only be used with --local.`);if(e[`temporary-account`]&&e.local)throw Error(`--temporary-account cannot be used with --local.`);let o=e[`event-code`];if(o!==void 0&&!e[`temporary-account`])throw Error(`--event-code requires --temporary-account.`);if(t!==void 0&&u(t,e.local)&&(s=await d(e)),!e.local){let{resolveProfile:t,setTemporaryAccountRequested:n}=await import(`./oauth-BN6_FpYp.mjs`);n(e[`temporary-account`],o===void 0?void 0:{eventCode:o});let r=t(e.profile);m(r)}}).demandCommand(1,`You need to specify a command`).strictCommands().strictOptions().recommendCommands().version(f).alias(`v`,`version`).epilogue(`For more information, visit https://developers.cloudflare.com/`).exitProcess(!1).fail((e,t,o)=>{pi(!1,a?.notice),a?.start();let s=ai(h);if(s!==void 0&&n?.(s),t)throw t;let c=ni.exec(e)?.[1];if(c&&!o.getCommands().some(([e])=>e.split(` `)[0]===c))return;if(e===`Please specify a subcommand`){s!==void 0&&i?.(s),o.showHelp(`log`);return}let l=Error(e),u=ii(h,e);throw u&&r?.(u,l),o.showHelp(`error`),l});let g=h.showHelp.bind(h);h.showHelp=e=>g(t=>{let r=ai(h);r!==void 0&&n?.(r),i?.(r??`cf`);let a=qr(t,r);typeof e==`function`?e(a):e===`log`?console.log(a):console.error(a)});let ee=h.getHelp.bind(h);return h.getHelp=async()=>qr(await ee(),ai(h)),{cli:h,dispose:()=>{s?.(),s=void 0}}}async function gi(e){let t=process.argv;process.argv=[`node`,`cf`,...e];try{await _i()}finally{process.argv=t}}async function _i(){te(void 0),ne();let e=await mi();if(di(e?.notice)||fi(e?.notice))throw e?.start(),new l(0);let t,n,r,{cli:i,dispose:a}=hi(gt(process.argv),{onCommandResolved:e=>{t=e},onCommandResolutionFailed:(e,t)=>{n={failure:e,error:t}},onHelpShown:e=>{r=e},updateCheck:e}),o=gt(process.argv),s=o.indexOf(`--`),c=s===-1?o:o.slice(0,s);if(c.includes(`--help`)||c.includes(`-h`)){pi(!1,e?.notice),e?.start();try{await Jr()}catch{}}try{await i.parse(gt(process.argv)),await ui(r)}catch(e){if(e instanceof l)throw e;if(t===void 0){try{await $r()}catch{}try{await Jr()}catch{}}let r=n!==void 0&&n.error===e?n.failure:void 0;throw await ci(e,t??ai(i),r),g(e)}finally{a(),await _(),await ei()}}export{_i as n,gi as r,hi as t};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-
|
|
2
|
+
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CSH3UMpD.mjs";import{n}from"./auth-BcNLQji1.mjs";import{a as r,i,t as a}from"./context-DVh8Wyfs.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-CtGsPOpV.mjs";import{t as l}from"./run-DnZGQbq_.mjs";import"./telemetry-CvZean4s.mjs";import{a as u,n as d,t as f}from"./body-parser-ChnyBsfm.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m,i as h,n as g}from"./prompt-YrI7ltMa.mjs";var _={method:`POST`,path:t=>e`/zones/${t.zone_id}/ssl/analyze`,body:`json`};function v(e){return e.usage(`$0 ssl analyze create
|
|
3
3
|
|
|
4
4
|
Returns the set of hostnames, the signature algorithm, and the expiration date of the certificate.`).option(`bundle-method`,{type:`string`,description:`A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it.`,choices:[`ubiquitous`,`optimal`,`force`],default:`ubiquitous`}).coerce(`bundle-method`,e=>p(e,`bundle-method`,`text`)).option(`certificate`,{type:`string`,description:`The zone's SSL certificate or certificate and the intermediate(s).`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ee={command:`create`,describe:`Analyze Certificate`,builder:v,handler:async e=>l({command:`ssl analyze create`,classification:{safeFlags:[`bundle-method`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl analyze create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/analyze`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({bundle_method:e[`bundle-method`],certificate:p(e.certificate,`certificate`,`text`)}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Creating`,async()=>t.send(_,{body:n,zone_id:r}));o(i,{successLabel:`Created`});return}let a=f({bundle_method:e[`bundle-method`],certificate:p(e.certificate,`certificate`,`text`)}),l=await c(`Creating`,async()=>t.send(_,{body:a,zone_id:r}));o(l,{successLabel:`Created`})})},te={command:`analyze`,describe:`Operations for analyze`,builder:e=>e.command(ee).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var y={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/settings/auto_origin_tls_kex`,body:`json`};function b(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 ne={command:`edit`,describe:`Patch Auto-Origin TLS KEX enrollment status for the given zone`,builder:b,handler:async e=>l({command:`ssl auto-origin-tls-kex edit`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl auto-origin-tls-kex edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/auto_origin_tls_kex`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({enabled:e.enabled}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Updating`,async()=>t.send(y,{body:n,zone_id:r}));o(i,{successLabel:`Updated`});return}if(e.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);let a=f({enabled:e.enabled}),l=await c(`Updating`,async()=>t.send(y,{body:a,zone_id:r}));o(l,{successLabel:`Updated`})})};var re={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/auto_origin_tls_kex`};function ie(e){return e.usage(`$0 ssl auto-origin-tls-kex get
|
|
5
5
|
|
|
@@ -15,8 +15,7 @@ Replace Hostname Associations.`).option(`hostnames`,{type:`string`,array:!0,desc
|
|
|
15
15
|
|
|
16
16
|
For a given zone, order an advanced certificate pack.`).option(`certificate-authority`,{type:`string`,description:`Certificate Authority selected for the order. For information on any certificate authority specific details or restrictions [see this page for more details](https://developers.cloudflare.com/ssl/reference/certificate-authorities).`,choices:[`google`,`lets_encrypt`,`ssl_com`]}).coerce(`certificate-authority`,e=>p(e,`certificate-authority`,`text`)).option(`cloudflare-branding`,{type:`boolean`,description:`Whether or not to add Cloudflare Branding for the order. This will add a subdomain of sni.cloudflaressl.com as the Common Name if set to true.`}).option(`hosts`,{type:`string`,array:!0,description:`Comma separated list of valid host names for the certificate packs. Must contain the zone apex, may not contain more than 50 hosts, and may not be empty.`}).option(`type`,{type:`string`,description:`Type of certificate pack.`,choices:[`advanced`]}).coerce(`type`,e=>p(e,`type`,`text`)).option(`validation-method`,{type:`string`,description:`Validation Method selected for the order.`,choices:[`txt`,`http`,`email`]}).coerce(`validation-method`,e=>p(e,`validation-method`,`text`)).option(`validity-days`,{type:`number`,description:`Validity Days selected for the order.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const D={command:`create`,describe:`Order Advanced Certificate Manager Certificate Pack`,builder:E,handler:async e=>l({command:`ssl certificate-packs create`,classification:{safeFlags:[`certificate-authority`,`cloudflare-branding`,`type`,`validation-method`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl certificate-packs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/certificate_packs/order`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({certificate_authority:e[`certificate-authority`],cloudflare_branding:e[`cloudflare-branding`],hosts:e.hosts,type:e.type,validation_method:e[`validation-method`],validity_days:e[`validity-days`]}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Creating`,async()=>t.send(T,{body:n,zone_id:r}));o(i,{successLabel:`Created`});return}if(e[`certificate-authority`]===void 0&&(e[`certificate-authority`]=await h(`certificate-authority`,`Certificate Authority selected for the order. For information on any certificate authority specific details or restrictions [see this page for more details](https://developers.cloudflare.com/ssl/reference/certificate-authorities).`,[`google`,`lets_encrypt`,`ssl_com`])),e.hosts===void 0)throw Error(`--hosts is required (or pass --body with this field set).`);if(e.type===void 0&&(e.type=await h(`type`,`Type of certificate pack.`,[`advanced`])),e[`validation-method`]===void 0&&(e[`validation-method`]=await h(`validation-method`,`Validation Method selected for the order.`,[`txt`,`http`,`email`])),e[`validity-days`]===void 0)throw Error(`--validity-days is required (or pass --body with this field set).`);let a=f({certificate_authority:e[`certificate-authority`],cloudflare_branding:e[`cloudflare-branding`],hosts:e.hosts,type:e.type,validation_method:e[`validation-method`],validity_days:e[`validity-days`]}),l=await c(`Creating`,async()=>t.send(T,{body:a,zone_id:r}));o(l,{successLabel:`Created`})})};var O={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/ssl/certificate_packs/${t.certificate_pack_id}`};function k(e){return e.usage(`$0 ssl certificate-packs delete <certificate-pack-id>
|
|
17
17
|
|
|
18
|
-
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 A={command:`delete <certificate-pack-id>`,describe:`Delete Advanced Certificate Manager Certificate Pack`,builder:k,handler:async e=>l({command:`ssl certificate-packs delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf ssl certificate-packs delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/certificate_packs/${e[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(e[`certificate-pack-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"certificate-pack-id":String(e[`certificate-pack-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force})){
|
|
19
|
-
`);return}let a=await c(`Deleting`,async()=>t.send(O,{zone_id:r,certificate_pack_id:e[`certificate-pack-id`]}));o(a,{successLabel:`Deleted`})})};var j={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/ssl/certificate_packs/${t.certificate_pack_id}`,body:`json`};function M(e){return e.usage(`$0 ssl certificate-packs edit <certificate-pack-id>
|
|
18
|
+
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 A={command:`delete <certificate-pack-id>`,describe:`Delete Advanced Certificate Manager Certificate Pack`,builder:k,handler:async e=>l({command:`ssl certificate-packs delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf ssl certificate-packs delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/certificate_packs/${e[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(e[`certificate-pack-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"certificate-pack-id":String(e[`certificate-pack-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force}))return;let a=await c(`Deleting`,async()=>t.send(O,{zone_id:r,certificate_pack_id:e[`certificate-pack-id`]}));o(a,{successLabel:`Deleted`})})};var j={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/ssl/certificate_packs/${t.certificate_pack_id}`,body:`json`};function M(e){return e.usage(`$0 ssl certificate-packs edit <certificate-pack-id>
|
|
20
19
|
|
|
21
20
|
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 N={command:`edit <certificate-pack-id>`,describe:`Restart Validation or Update Advanced Certificate Manager Certificate Pack`,builder:M,handler:async e=>l({command:`ssl certificate-packs edit`,classification:{safeFlags:[`cloudflare-branding`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl certificate-packs edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/certificate_packs/${e[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(e[`certificate-pack-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"certificate-pack-id":String(e[`certificate-pack-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({cloudflare_branding:e[`cloudflare-branding`]}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Updating`,async()=>t.send(j,{body:n,zone_id:r,certificate_pack_id:e[`certificate-pack-id`]}));o(i,{successLabel:`Updated`});return}let a=f({cloudflare_branding:e[`cloudflare-branding`]}),l=await c(`Updating`,async()=>t.send(j,{body:a,zone_id:r,certificate_pack_id:e[`certificate-pack-id`]}));o(l,{successLabel:`Updated`})})};var P={method:`GET`,path:t=>e`/zones/${t.zone_id}/ssl/certificate_packs/${t.certificate_pack_id}`};function F(e){return e.usage(`$0 ssl certificate-packs get <certificate-pack-id>
|
|
22
21
|
|
|
@@ -28,8 +27,7 @@ For a given zone, list certificate pack quotas.`).option(`dry-run`,{type:`boolea
|
|
|
28
27
|
|
|
29
28
|
Create a new API Shield mTLS Client Certificate.`).option(`csr`,{type:`string`,description:`The Certificate Signing Request (CSR). Must be newline-encoded.`}).option(`validity-days`,{type:`number`,description:`The number of days the Client Certificate will be valid after the issued_on date.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const De={command:`create`,describe:`Create Client Certificate`,builder:Ee,handler:async e=>l({command:`ssl client-certificates create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl client-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/client_certificates`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({csr:p(e.csr,`csr`,`text`),validity_days:e[`validity-days`]}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Creating`,async()=>t.send(L,{body:n,zone_id:r}));o(i,{successLabel:`Created`});return}if(e.csr===void 0&&(e.csr=await m(`csr`,`The Certificate Signing Request (CSR). Must be newline-encoded.`)),e[`validity-days`]===void 0)throw Error(`--validity-days is required (or pass --body with this field set).`);let a=f({csr:p(e.csr,`csr`,`text`),validity_days:e[`validity-days`]}),l=await c(`Creating`,async()=>t.send(L,{body:a,zone_id:r}));o(l,{successLabel:`Created`})})};var Oe={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/client_certificates/${t.client_certificate_id}`};function ke(e){return e.usage(`$0 ssl client-certificates delete <client-certificate-id>
|
|
30
29
|
|
|
31
|
-
Set a API Shield mTLS Client Certificate to pending_revocation status for processing to revoked status.`).positional(`client-certificate-id`,{type:`string`,description:`Client Certificate Tag`,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 Ae={command:`delete <client-certificate-id>`,describe:`Revoke Client Certificate`,builder:ke,handler:async e=>l({command:`ssl client-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf ssl client-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/client_certificates/${e[`client-certificate-id`]==null?`<client-certificate-id>`:encodeURIComponent(String(e[`client-certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"client-certificate-id":String(e[`client-certificate-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force})){
|
|
32
|
-
`);return}let a=await c(`Deleting`,async()=>t.send(Oe,{zone_id:r,client_certificate_id:e[`client-certificate-id`]}));o(a,{successLabel:`Deleted`})})};var R={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/client_certificates/${t.client_certificate_id}`,body:`json`};function je(e){return e.usage(`$0 ssl client-certificates edit <client-certificate-id>
|
|
30
|
+
Set a API Shield mTLS Client Certificate to pending_revocation status for processing to revoked status.`).positional(`client-certificate-id`,{type:`string`,description:`Client Certificate Tag`,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 Ae={command:`delete <client-certificate-id>`,describe:`Revoke Client Certificate`,builder:ke,handler:async e=>l({command:`ssl client-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf ssl client-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/client_certificates/${e[`client-certificate-id`]==null?`<client-certificate-id>`:encodeURIComponent(String(e[`client-certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"client-certificate-id":String(e[`client-certificate-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force}))return;let a=await c(`Deleting`,async()=>t.send(Oe,{zone_id:r,client_certificate_id:e[`client-certificate-id`]}));o(a,{successLabel:`Deleted`})})};var R={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/client_certificates/${t.client_certificate_id}`,body:`json`};function je(e){return e.usage(`$0 ssl client-certificates edit <client-certificate-id>
|
|
33
31
|
|
|
34
32
|
If a API Shield mTLS Client Certificate is in a pending_revocation state, you may reactivate it with this endpoint.`).positional(`client-certificate-id`,{type:`string`,description:`Client Certificate Tag`,demandOption:!0}).option(`reactivate`,{type:`boolean`,description:`The reactivate field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Me={command:`edit <client-certificate-id>`,describe:`Reactivate Client Certificate`,builder:je,handler:async e=>l({command:`ssl client-certificates edit`,classification:{safeFlags:[`reactivate`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl client-certificates edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/client_certificates/${e[`client-certificate-id`]==null?`<client-certificate-id>`:encodeURIComponent(String(e[`client-certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"client-certificate-id":String(e[`client-certificate-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({reactivate:e.reactivate}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Updating`,async()=>t.send(R,{body:n,zone_id:r,client_certificate_id:e[`client-certificate-id`]}));o(i,{successLabel:`Updated`});return}let a=f({reactivate:e.reactivate}),l=await c(`Updating`,async()=>t.send(R,{body:a,zone_id:r,client_certificate_id:e[`client-certificate-id`]}));o(l,{successLabel:`Updated`})})};var Ne={method:`GET`,path:t=>e`/zones/${t.zone_id}/client_certificates/${t.client_certificate_id}`};function Pe(e){return e.usage(`$0 ssl client-certificates get <client-certificate-id>
|
|
35
33
|
|
|
@@ -43,8 +41,7 @@ Retrieve the Certificate Transparency alerting subscription settings for a zone.
|
|
|
43
41
|
Upload a new SSL certificate for a zone.`).option(`bundle-method`,{type:`string`,description:`A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it.`,choices:[`ubiquitous`,`optimal`,`force`],default:`ubiquitous`}).coerce(`bundle-method`,e=>p(e,`bundle-method`,`text`)).option(`certificate`,{type:`string`,description:`The zone's SSL certificate or certificate and the intermediate(s).`}).option(`custom-csr-id`,{type:`string`,description:`The identifier for the Custom CSR that was used.`}).option(`deploy`,{type:`string`,description:`The environment to deploy the certificate to, defaults to production.`,choices:[`staging`,`production`],default:`production`}).coerce(`deploy`,e=>p(e,`deploy`,`text`)).option(`geo-restrictions-label`,{type:`string`,description:`The geo_restrictions.label field`,choices:[`us`,`eu`,`highest_security`]}).coerce(`geo-restrictions-label`,e=>p(e,`geo-restrictions-label`,`text`)).option(`policy`,{type:`string`,description:`Specify the policy that determines the region where your private key will be held locally. HTTPS connections to any excluded data center will still be fully encrypted, but will incur some latency while Keyless SSL is used to complete the handshake with the nearest allowed data center. Any combination of countries, specified by their two letter country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) can be chosen, such as 'country: IN', as well as 'region: EU' which refers to the EU region. If there are too few data centers satisfying the policy, it will be rejected.
|
|
44
42
|
Note: The API accepts this field as either "policy" or "policy_restrictions" in requests. Responses return this field as "policy_restrictions".`}).option(`private-key`,{type:`string`,description:`The zone's private key. Not required if custom_csr_id is provided, in which case the private key is retrieved from the CSR record held by Cloudflare.`}).option(`type`,{type:`string`,description:`The type 'legacy_custom' enables support for legacy clients which do not include SNI in the TLS handshake.`,choices:[`legacy_custom`,`sni_custom`],default:`legacy_custom`}).coerce(`type`,e=>p(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const qe={command:`create`,describe:`Create SSL Configuration`,builder:Ke,handler:async e=>l({command:`ssl custom-certificates create`,classification:{safeFlags:[`bundle-method`,`deploy`,`geo-restrictions-label`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl custom-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/custom_certificates`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({bundle_method:e[`bundle-method`],certificate:p(e.certificate,`certificate`,`text`),custom_csr_id:p(e[`custom-csr-id`],`custom-csr-id`,`text`),deploy:e.deploy,geo_restrictions:{label:e[`geo-restrictions-label`]},policy:p(e.policy,`policy`,`text`),private_key:p(e[`private-key`],`private-key`,`text`),type:e.type}):d(e.body),sensitiveBodyPaths:[[`private_key`]]});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Creating`,async()=>t.send(B,{body:n,zone_id:r}));o(i,{successLabel:`Created`});return}e.certificate===void 0&&(e.certificate=await m(`certificate`,`The zone's SSL certificate or certificate and the intermediate(s).`));let a=f({bundle_method:e[`bundle-method`],certificate:p(e.certificate,`certificate`,`text`),custom_csr_id:p(e[`custom-csr-id`],`custom-csr-id`,`text`),deploy:e.deploy,geo_restrictions:{label:e[`geo-restrictions-label`]},policy:p(e.policy,`policy`,`text`),private_key:p(e[`private-key`],`private-key`,`text`),type:e.type}),l=await c(`Creating`,async()=>t.send(B,{body:a,zone_id:r}));o(l,{successLabel:`Created`})})};var Je={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/custom_certificates/${t.custom_certificate_id}`};function Ye(e){return e.usage(`$0 ssl custom-certificates delete <custom-certificate-id>
|
|
45
43
|
|
|
46
|
-
Remove a SSL certificate from a zone.`).positional(`custom-certificate-id`,{type:`string`,description:`Custom certificate identifier tag.`,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 Xe={command:`delete <custom-certificate-id>`,describe:`Delete SSL Configuration`,builder:Ye,handler:async e=>l({command:`ssl custom-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf ssl custom-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/custom_certificates/${e[`custom-certificate-id`]==null?`<custom-certificate-id>`:encodeURIComponent(String(e[`custom-certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"custom-certificate-id":String(e[`custom-certificate-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force})){
|
|
47
|
-
`);return}let a=await c(`Deleting`,async()=>t.send(Je,{zone_id:r,custom_certificate_id:e[`custom-certificate-id`]}));o(a,{successLabel:`Deleted`})})};var V={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/custom_certificates/${t.custom_certificate_id}`,body:`json`};function Ze(e){return e.usage(`$0 ssl custom-certificates edit <custom-certificate-id>
|
|
44
|
+
Remove a SSL certificate from a zone.`).positional(`custom-certificate-id`,{type:`string`,description:`Custom certificate identifier tag.`,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 Xe={command:`delete <custom-certificate-id>`,describe:`Delete SSL Configuration`,builder:Ye,handler:async e=>l({command:`ssl custom-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf ssl custom-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/custom_certificates/${e[`custom-certificate-id`]==null?`<custom-certificate-id>`:encodeURIComponent(String(e[`custom-certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"custom-certificate-id":String(e[`custom-certificate-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force}))return;let a=await c(`Deleting`,async()=>t.send(Je,{zone_id:r,custom_certificate_id:e[`custom-certificate-id`]}));o(a,{successLabel:`Deleted`})})};var V={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/custom_certificates/${t.custom_certificate_id}`,body:`json`};function Ze(e){return e.usage(`$0 ssl custom-certificates edit <custom-certificate-id>
|
|
48
45
|
|
|
49
46
|
Upload a new private key and/or PEM/CRT for the SSL certificate. Note: PATCHing a configuration for sni_custom certificates will result in a new resource id being returned, and the previous one being deleted.`).positional(`custom-certificate-id`,{type:`string`,description:`Custom certificate identifier tag.`,demandOption:!0}).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`]}).coerce(`bundle-method`,e=>p(e,`bundle-method`,`text`)).option(`certificate`,{type:`string`,description:`The zone's SSL certificate or certificate and the intermediate(s).`}).option(`custom-csr-id`,{type:`string`,description:`The identifier for the Custom CSR that was used.`}).option(`deploy`,{type:`string`,description:`The environment to deploy the certificate to, defaults to production.`,choices:[`staging`,`production`]}).coerce(`deploy`,e=>p(e,`deploy`,`text`)).option(`geo-restrictions-label`,{type:`string`,description:`The geo_restrictions.label field`,choices:[`us`,`eu`,`highest_security`]}).coerce(`geo-restrictions-label`,e=>p(e,`geo-restrictions-label`,`text`)).option(`policy`,{type:`string`,description:`Specify the policy that determines the region where your private key will be held locally. HTTPS connections to any excluded data center will still be fully encrypted, but will incur some latency while Keyless SSL is used to complete the handshake with the nearest allowed data center. Any combination of countries, specified by their two letter country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) can be chosen, such as 'country: IN', as well as 'region: EU' which refers to the EU region. If there are too few data centers satisfying the policy, it will be rejected.
|
|
50
47
|
Note: The API accepts this field as either "policy" or "policy_restrictions" in requests. Responses return this field as "policy_restrictions".`}).option(`private-key`,{type:`string`,description:`The zone's private key. Not required if custom_csr_id is provided, in which case the private key is retrieved from the CSR record held by Cloudflare.`}).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 Qe={command:`edit <custom-certificate-id>`,describe:`Edit SSL Configuration`,builder:Ze,handler:async e=>l({command:`ssl custom-certificates edit`,classification:{safeFlags:[`bundle-method`,`deploy`,`geo-restrictions-label`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl custom-certificates edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/custom_certificates/${e[`custom-certificate-id`]==null?`<custom-certificate-id>`:encodeURIComponent(String(e[`custom-certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"custom-certificate-id":String(e[`custom-certificate-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({bundle_method:e[`bundle-method`],certificate:p(e.certificate,`certificate`,`text`),custom_csr_id:p(e[`custom-csr-id`],`custom-csr-id`,`text`),deploy:e.deploy,geo_restrictions:{label:e[`geo-restrictions-label`]},policy:p(e.policy,`policy`,`text`),private_key:p(e[`private-key`],`private-key`,`text`)}):d(e.body),sensitiveBodyPaths:[[`private_key`]]});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Updating`,async()=>t.send(V,{body:n,zone_id:r,custom_certificate_id:e[`custom-certificate-id`]}));o(i,{successLabel:`Updated`});return}let a=f({bundle_method:e[`bundle-method`],certificate:p(e.certificate,`certificate`,`text`),custom_csr_id:p(e[`custom-csr-id`],`custom-csr-id`,`text`),deploy:e.deploy,geo_restrictions:{label:e[`geo-restrictions-label`]},policy:p(e.policy,`policy`,`text`),private_key:p(e[`private-key`],`private-key`,`text`)}),l=await c(`Updating`,async()=>t.send(V,{body:a,zone_id:r,custom_certificate_id:e[`custom-certificate-id`]}));o(l,{successLabel:`Updated`})})};var $e={method:`GET`,path:t=>e`/zones/${t.zone_id}/custom_certificates/${t.custom_certificate_id}`};function et(e){return e.usage(`$0 ssl custom-certificates get <custom-certificate-id>
|
|
@@ -59,8 +56,7 @@ Retrieve the account and zone specific unique identifier used as part of the CNA
|
|
|
59
56
|
|
|
60
57
|
Creates a Keyless SSL configuration that allows SSL/TLS termination without exposing private keys to Cloudflare. Keys remain on your infrastructure.`).option(`bundle-method`,{type:`string`,description:`A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it.`,choices:[`ubiquitous`,`optimal`,`force`],default:`ubiquitous`}).coerce(`bundle-method`,e=>p(e,`bundle-method`,`text`)).option(`certificate`,{type:`string`,description:`The zone's SSL certificate or SSL certificate and intermediate(s).`}).option(`host`,{type:`string`,description:`The keyless SSL name.`}).option(`name`,{type:`string`,description:`The keyless SSL name.`}).option(`port`,{type:`number`,description:`The keyless SSL port used to communicate between Cloudflare and the client's Keyless SSL server.`,default:24008}).option(`tunnel-private-ip`,{type:`string`,description:`Private IP of the Key Server Host.`}).option(`tunnel-vnet-id`,{type:`string`,description:`Cloudflare Tunnel Virtual Network ID.`}).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)`}).check(e=>{if([`tunnel-private-ip`,`tunnel-vnet-id`].some(t=>e[t]!==void 0)){let t=[`tunnel-private-ip`,`tunnel-vnet-id`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --tunnel-* flag is set`)}return!0})}const mt={command:`create`,describe:`Create Keyless SSL Configuration`,builder:pt,handler:async e=>l({command:`ssl keyless-certificates create`,classification:{safeFlags:[`bundle-method`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl keyless-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/keyless_certificates`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({bundle_method:e[`bundle-method`],certificate:p(e.certificate,`certificate`,`text`),host:p(e.host,`host`,`text`),name:p(e.name,`name`,`text`),port:e.port,tunnel:{private_ip:p(e[`tunnel-private-ip`],`tunnel-private-ip`,`text`),vnet_id:p(e[`tunnel-vnet-id`],`tunnel-vnet-id`,`text`)}}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Creating`,async()=>t.send(U,{body:n,zone_id:r}));o(i,{successLabel:`Created`});return}if(e.certificate===void 0&&(e.certificate=await m(`certificate`,`The zone's SSL certificate or SSL certificate and intermediate(s).`)),e.host===void 0&&(e.host=await m(`host`,`The keyless SSL name.`)),e.port===void 0)throw Error(`--port is required (or pass --body with this field set).`);let a=f({bundle_method:e[`bundle-method`],certificate:p(e.certificate,`certificate`,`text`),host:p(e.host,`host`,`text`),name:p(e.name,`name`,`text`),port:e.port,tunnel:{private_ip:p(e[`tunnel-private-ip`],`tunnel-private-ip`,`text`),vnet_id:p(e[`tunnel-vnet-id`],`tunnel-vnet-id`,`text`)}}),l=await c(`Creating`,async()=>t.send(U,{body:a,zone_id:r}));o(l,{successLabel:`Created`})})};var ht={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/keyless_certificates/${t.keyless_certificate_id}`};function gt(e){return e.usage(`$0 ssl keyless-certificates delete <keyless-certificate-id>
|
|
61
58
|
|
|
62
|
-
Removes a Keyless SSL configuration. SSL connections will no longer use the keyless server for cryptographic operations.`).positional(`keyless-certificate-id`,{type:`string`,description:`Keyless certificate identifier tag.`,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 _t={command:`delete <keyless-certificate-id>`,describe:`Delete Keyless SSL Configuration`,builder:gt,handler:async e=>l({command:`ssl keyless-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf ssl keyless-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/keyless_certificates/${e[`keyless-certificate-id`]==null?`<keyless-certificate-id>`:encodeURIComponent(String(e[`keyless-certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"keyless-certificate-id":String(e[`keyless-certificate-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force})){
|
|
63
|
-
`);return}let a=await c(`Deleting`,async()=>t.send(ht,{zone_id:r,keyless_certificate_id:e[`keyless-certificate-id`]}));o(a,{successLabel:`Deleted`})})};var W={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/keyless_certificates/${t.keyless_certificate_id}`,body:`json`};function vt(e){return e.usage(`$0 ssl keyless-certificates edit <keyless-certificate-id>
|
|
59
|
+
Removes a Keyless SSL configuration. SSL connections will no longer use the keyless server for cryptographic operations.`).positional(`keyless-certificate-id`,{type:`string`,description:`Keyless certificate identifier tag.`,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 _t={command:`delete <keyless-certificate-id>`,describe:`Delete Keyless SSL Configuration`,builder:gt,handler:async e=>l({command:`ssl keyless-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf ssl keyless-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/keyless_certificates/${e[`keyless-certificate-id`]==null?`<keyless-certificate-id>`:encodeURIComponent(String(e[`keyless-certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"keyless-certificate-id":String(e[`keyless-certificate-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force}))return;let a=await c(`Deleting`,async()=>t.send(ht,{zone_id:r,keyless_certificate_id:e[`keyless-certificate-id`]}));o(a,{successLabel:`Deleted`})})};var W={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/keyless_certificates/${t.keyless_certificate_id}`,body:`json`};function vt(e){return e.usage(`$0 ssl keyless-certificates edit <keyless-certificate-id>
|
|
64
60
|
|
|
65
61
|
This will update attributes of a Keyless SSL. Consists of one or more of the following: host,name,port.`).positional(`keyless-certificate-id`,{type:`string`,description:`Keyless certificate identifier tag.`,demandOption:!0}).option(`enabled`,{type:`boolean`,description:`Whether or not the Keyless SSL is on or off.`}).option(`host`,{type:`string`,description:`The keyless SSL name.`}).option(`name`,{type:`string`,description:`The keyless SSL name.`}).option(`port`,{type:`number`,description:`The keyless SSL port used to communicate between Cloudflare and the client's Keyless SSL server.`}).option(`tunnel-private-ip`,{type:`string`,description:`Private IP of the Key Server Host.`}).option(`tunnel-vnet-id`,{type:`string`,description:`Cloudflare Tunnel Virtual Network ID.`}).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)`}).check(e=>{if([`tunnel-private-ip`,`tunnel-vnet-id`].some(t=>e[t]!==void 0)){let t=[`tunnel-private-ip`,`tunnel-vnet-id`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --tunnel-* flag is set`)}return!0})}const yt={command:`edit <keyless-certificate-id>`,describe:`Edit Keyless SSL Configuration`,builder:vt,handler:async e=>l({command:`ssl keyless-certificates edit`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl keyless-certificates edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/keyless_certificates/${e[`keyless-certificate-id`]==null?`<keyless-certificate-id>`:encodeURIComponent(String(e[`keyless-certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"keyless-certificate-id":String(e[`keyless-certificate-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({enabled:e.enabled,host:p(e.host,`host`,`text`),name:p(e.name,`name`,`text`),port:e.port,tunnel:{private_ip:p(e[`tunnel-private-ip`],`tunnel-private-ip`,`text`),vnet_id:p(e[`tunnel-vnet-id`],`tunnel-vnet-id`,`text`)}}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Updating`,async()=>t.send(W,{body:n,zone_id:r,keyless_certificate_id:e[`keyless-certificate-id`]}));o(i,{successLabel:`Updated`});return}let a=f({enabled:e.enabled,host:p(e.host,`host`,`text`),name:p(e.name,`name`,`text`),port:e.port,tunnel:{private_ip:p(e[`tunnel-private-ip`],`tunnel-private-ip`,`text`),vnet_id:p(e[`tunnel-vnet-id`],`tunnel-vnet-id`,`text`)}}),l=await c(`Updating`,async()=>t.send(W,{body:a,zone_id:r,keyless_certificate_id:e[`keyless-certificate-id`]}));o(l,{successLabel:`Updated`})})};var bt={method:`GET`,path:t=>e`/zones/${t.zone_id}/keyless_certificates/${t.keyless_certificate_id}`};function xt(e){return e.usage(`$0 ssl keyless-certificates get <keyless-certificate-id>
|
|
66
62
|
|
|
@@ -72,8 +68,7 @@ Lists all active associations between the certificate and Cloudflare services.`)
|
|
|
72
68
|
|
|
73
69
|
Upload a certificate that you want to use with mTLS-enabled Cloudflare services, such as Bring Your Own CA (BYO-CA) for mTLS. To create certificates issued by the Cloudflare managed CA, use the [Create Client Certificate endpoint](/api/resources/client_certificates/methods/create/).`).option(`ca`,{type:`boolean`,description:`Indicates whether the certificate is a CA or leaf certificate.`}).option(`certificates`,{type:`string`,description:`The uploaded root CA certificate.`}).option(`name`,{type:`string`,description:`Optional unique name for the certificate. Only used for human readability.`}).option(`private-key`,{type:`string`,description:`The private key for the certificate. This field is only needed for specific use cases such as using a custom certificate with Zero Trust's block page.`}).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 Mt={command:`create`,describe:`Upload mTLS certificate`,builder:jt,handler:async e=>l({command:`ssl mtls-certificates create`,classification:{safeFlags:[`ca`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf ssl mtls-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/mtls_certificates`,pathParams:{},bodyKind:`json`,body:e.body===void 0?f({ca:e.ca,certificates:p(e.certificates,`certificates`,`text`),name:p(e.name,`name`,`text`),private_key:p(e[`private-key`],`private-key`,`text`)}):d(e.body),sensitiveBodyPaths:[[`private_key`]]});return}let i=await n(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),n=await c(`Creating`,async()=>i.send(G,{body:t,account_id:l}));o(n,{successLabel:`Created`});return}if(e.ca===void 0)throw Error(`--ca is required (or pass --body with this field set).`);e.certificates===void 0&&(e.certificates=await m(`certificates`,`The uploaded root CA certificate.`));let u=f({ca:e.ca,certificates:p(e.certificates,`certificates`,`text`),name:p(e.name,`name`,`text`),private_key:p(e[`private-key`],`private-key`,`text`)}),h=await c(`Creating`,async()=>i.send(G,{body:u,account_id:l}));o(h,{successLabel:`Created`})})};var Nt={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/mtls_certificates/${t.mtls_certificate_id}`};function Pt(e){return e.usage(`$0 ssl mtls-certificates delete <mtls-certificate-id>
|
|
74
70
|
|
|
75
|
-
Deletes the mTLS certificate unless the certificate is in use by one or more Cloudflare services.`).positional(`mtls-certificate-id`,{type:`string`,description:`Certificate identifier tag.`,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 Ft={command:`delete <mtls-certificate-id>`,describe:`Delete mTLS certificate`,builder:Pt,handler:async e=>l({command:`ssl mtls-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf ssl mtls-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/mtls_certificates/${e[`mtls-certificate-id`]==null?`<mtls-certificate-id>`:encodeURIComponent(String(e[`mtls-certificate-id`]))}`,pathParams:{"mtls-certificate-id":String(e[`mtls-certificate-id`]??``)},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();if(e.accountId=l,!await g({force:!!e.force})){
|
|
76
|
-
`);return}let u=await c(`Deleting`,async()=>i.send(Nt,{account_id:l,mtls_certificate_id:e[`mtls-certificate-id`]}));o(u,{successLabel:`Deleted`})})};var It={method:`GET`,path:t=>e`/accounts/${t.account_id}/mtls_certificates/${t.mtls_certificate_id}`};function Lt(e){return e.usage(`$0 ssl mtls-certificates get <mtls-certificate-id>
|
|
71
|
+
Deletes the mTLS certificate unless the certificate is in use by one or more Cloudflare services.`).positional(`mtls-certificate-id`,{type:`string`,description:`Certificate identifier tag.`,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 Ft={command:`delete <mtls-certificate-id>`,describe:`Delete mTLS certificate`,builder:Pt,handler:async e=>l({command:`ssl mtls-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf ssl mtls-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/mtls_certificates/${e[`mtls-certificate-id`]==null?`<mtls-certificate-id>`:encodeURIComponent(String(e[`mtls-certificate-id`]))}`,pathParams:{"mtls-certificate-id":String(e[`mtls-certificate-id`]??``)},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();if(e.accountId=l,!await g({force:!!e.force}))return;let u=await c(`Deleting`,async()=>i.send(Nt,{account_id:l,mtls_certificate_id:e[`mtls-certificate-id`]}));o(u,{successLabel:`Deleted`})})};var It={method:`GET`,path:t=>e`/accounts/${t.account_id}/mtls_certificates/${t.mtls_certificate_id}`};function Lt(e){return e.usage(`$0 ssl mtls-certificates get <mtls-certificate-id>
|
|
77
72
|
|
|
78
73
|
Fetches a single mTLS certificate uploaded to your account. To get a certificate issued by the Cloudflare managed CA, use the [Client Certificate Details endpoint](/api/resources/client_certificates/methods/get/).`).positional(`mtls-certificate-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Rt={command:`get <mtls-certificate-id>`,describe:`Get mTLS certificate`,builder:Lt,handler:async e=>l({command:`ssl mtls-certificates get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf ssl mtls-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/mtls_certificates/${e[`mtls-certificate-id`]==null?`<mtls-certificate-id>`:encodeURIComponent(String(e[`mtls-certificate-id`]))}`,pathParams:{"mtls-certificate-id":String(e[`mtls-certificate-id`]??``)},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>i.send(It,{account_id:l,mtls_certificate_id:e[`mtls-certificate-id`]}));o(u,{successLabel:`Loaded`})})};var zt={method:`GET`,path:t=>e`/accounts/${t.account_id}/mtls_certificates`,query:[`type`],joined:[`type`]};function Bt(e){return e.usage(`$0 ssl mtls-certificates list
|
|
79
74
|
|
|
@@ -81,8 +76,7 @@ Lists all mTLS certificates uploaded to your account, such as Bring Your Own CA
|
|
|
81
76
|
|
|
82
77
|
Create an Origin CA certificate. You can use an Origin CA Key as your User Service Key or an API token when calling this endpoint ([see above](#requests)).`).option(`csr`,{type:`string`,description:`The Certificate Signing Request (CSR). Must be newline-encoded.`}).option(`hostnames`,{type:`string`,array:!0,description:"Array of hostnames or wildcard names bound to the certificate.\nHostnames must be fully qualified domain names (FQDNs) belonging to zones on your account (e.g., `example.com` or `sub.example.com`). Wildcards are supported only as a `*.` prefix for a single level (e.g., `*.example.com`). Double wildcards (`*.*.example.com`) and interior wildcards (`foo.*.example.com`) are not allowed. The wildcard suffix must be a multi-label domain (`*.example.com` is valid, but `*.com` is not). Unicode/IDN hostnames are accepted and automatically converted to punycode."}).option(`request-type`,{type:`string`,description:`Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers).`,choices:[`origin-rsa`,`origin-ecc`,`keyless-certificate`]}).coerce(`request-type`,e=>p(e,`request-type`,`text`)).option(`requested-validity`,{type:`number`,description:`The number of days for which the certificate should be valid.`,default:5475}).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 Wt={command:`create`,describe:`Create Certificate`,builder:Ut,handler:async e=>l({command:`ssl origin-ca-certificates create`,classification:{safeFlags:[`request-type`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl origin-ca-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/certificates`,pathParams:{},bodyKind:`json`,body:e.body===void 0?f({csr:p(e.csr,`csr`,`text`),hostnames:e.hostnames,request_type:e[`request-type`],requested_validity:e[`requested-validity`]}):d(e.body)});return}let t=await n(e);if(e.body){let n=d(e.body),r=await c(`Creating`,async()=>t.send(K,{body:n}));o(r,{successLabel:`Created`});return}if(e.csr===void 0&&(e.csr=await m(`csr`,`The Certificate Signing Request (CSR). Must be newline-encoded.`)),e.hostnames===void 0)throw Error(`--hostnames is required (or pass --body with this field set).`);e[`request-type`]===void 0&&(e[`request-type`]=await h(`request-type`,`Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers).`,[`origin-rsa`,`origin-ecc`,`keyless-certificate`]));let r=f({csr:p(e.csr,`csr`,`text`),hostnames:e.hostnames,request_type:e[`request-type`],requested_validity:e[`requested-validity`]}),i=await c(`Creating`,async()=>t.send(K,{body:r}));o(i,{successLabel:`Created`})})};var Gt={method:`DELETE`,path:t=>e`/certificates/${t.certificate_id}`};function Kt(e){return e.usage(`$0 ssl origin-ca-certificates delete <certificate-id>
|
|
83
78
|
|
|
84
|
-
Revoke an existing Origin CA certificate by its serial number. You can use an Origin CA Key as your User Service Key or an API token when calling this endpoint ([see above](#requests)).`).positional(`certificate-id`,{type:`string`,description:`The x509 serial number of the Origin CA certificate.`,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 qt={command:`delete <certificate-id>`,describe:`Revoke Certificate`,builder:Kt,handler:async e=>l({command:`ssl origin-ca-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf ssl origin-ca-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/certificates/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"certificate-id":String(e[`certificate-id`]??``)},bodyKind:`none`});return}let t=await n(e);if(!await g({force:!!e.force})){
|
|
85
|
-
`);return}let r=await c(`Deleting`,async()=>t.send(Gt,{certificate_id:e[`certificate-id`]}));o(r,{successLabel:`Deleted`})})};var Jt={method:`GET`,path:t=>e`/certificates/${t.certificate_id}`};function Yt(e){return e.usage(`$0 ssl origin-ca-certificates get <certificate-id>
|
|
79
|
+
Revoke an existing Origin CA certificate by its serial number. You can use an Origin CA Key as your User Service Key or an API token when calling this endpoint ([see above](#requests)).`).positional(`certificate-id`,{type:`string`,description:`The x509 serial number of the Origin CA certificate.`,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 qt={command:`delete <certificate-id>`,describe:`Revoke Certificate`,builder:Kt,handler:async e=>l({command:`ssl origin-ca-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf ssl origin-ca-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/certificates/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"certificate-id":String(e[`certificate-id`]??``)},bodyKind:`none`});return}let t=await n(e);if(!await g({force:!!e.force}))return;let r=await c(`Deleting`,async()=>t.send(Gt,{certificate_id:e[`certificate-id`]}));o(r,{successLabel:`Deleted`})})};var Jt={method:`GET`,path:t=>e`/certificates/${t.certificate_id}`};function Yt(e){return e.usage(`$0 ssl origin-ca-certificates get <certificate-id>
|
|
86
80
|
|
|
87
81
|
Get an existing Origin CA certificate by its serial number. You can use an Origin CA Key as your User Service Key or an API token when calling this endpoint ([see above](#requests)).`).positional(`certificate-id`,{type:`string`,description:`The x509 serial number of the Origin CA certificate.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Xt={command:`get <certificate-id>`,describe:`Get Certificate`,builder:Yt,handler:async e=>l({command:`ssl origin-ca-certificates get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl origin-ca-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/certificates/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"certificate-id":String(e[`certificate-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await c(`Loading`,async()=>t.send(Jt,{certificate_id:e[`certificate-id`]}));o(r,{successLabel:`Loaded`})})};var Zt={method:`GET`,path:()=>`/certificates`,query:[`zone_id`,`page`,`per_page`,`limit`,`offset`]};function Qt(e){return e.usage(`$0 ssl origin-ca-certificates list
|
|
88
82
|
|
|
@@ -92,8 +86,7 @@ List certificate ID - hostname associations for the given zone. Shows which host
|
|
|
92
86
|
|
|
93
87
|
Upload a certificate to be used for client authentication on a hostname. 10 hostname certificates per zone are allowed.`).option(`certificate`,{type:`string`,description:`The hostname certificate.`}).option(`private-key`,{type:`string`,description:`The hostname certificate's private key.`}).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 sn={command:`create`,describe:`Upload a Hostname Client Certificate`,builder:on,handler:async e=>l({command:`ssl origin-tls-client-auth hostname-certificates create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl origin-tls-client-auth hostname-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth/hostnames/certificates`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({certificate:p(e.certificate,`certificate`,`text`),private_key:p(e[`private-key`],`private-key`,`text`)}):d(e.body),sensitiveBodyPaths:[[`private_key`]]});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Creating`,async()=>t.send(q,{body:n,zone_id:r}));o(i,{successLabel:`Created`});return}e.certificate===void 0&&(e.certificate=await m(`certificate`,`The hostname certificate.`)),e[`private-key`]===void 0&&(e[`private-key`]=await m(`private-key`,`The hostname certificate's private key.`,{kind:`secret`}));let a=f({certificate:p(e.certificate,`certificate`,`text`),private_key:p(e[`private-key`],`private-key`,`text`)}),l=await c(`Creating`,async()=>t.send(q,{body:a,zone_id:r}));o(l,{successLabel:`Created`})})};var cn={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/origin_tls_client_auth/hostnames/certificates/${t.certificate_id}`};function ln(e){return e.usage(`$0 ssl origin-tls-client-auth hostname-certificates delete <certificate-id>
|
|
94
88
|
|
|
95
|
-
Removes a client certificate used for authenticated origin pulls on a specific hostname. Note: Before deleting the certificate, you must first invalidate the hostname for client authentication by sending a PUT request with \`enabled\` set to null. After invalidating the association, the certificate can be safely deleted.`).positional(`certificate-id`,{type:`string`,description:`Certificate identifier tag.`,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 un={command:`delete <certificate-id>`,describe:`Delete Hostname Client Certificate`,builder:ln,handler:async e=>l({command:`ssl origin-tls-client-auth hostname-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf ssl origin-tls-client-auth hostname-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth/hostnames/certificates/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"certificate-id":String(e[`certificate-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force})){
|
|
96
|
-
`);return}let a=await c(`Deleting`,async()=>t.send(cn,{zone_id:r,certificate_id:e[`certificate-id`]}));o(a,{successLabel:`Deleted`})})};var dn={method:`GET`,path:t=>e`/zones/${t.zone_id}/origin_tls_client_auth/hostnames/certificates/${t.certificate_id}`};function fn(e){return e.usage(`$0 ssl origin-tls-client-auth hostname-certificates get <certificate-id>
|
|
89
|
+
Removes a client certificate used for authenticated origin pulls on a specific hostname. Note: Before deleting the certificate, you must first invalidate the hostname for client authentication by sending a PUT request with \`enabled\` set to null. After invalidating the association, the certificate can be safely deleted.`).positional(`certificate-id`,{type:`string`,description:`Certificate identifier tag.`,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 un={command:`delete <certificate-id>`,describe:`Delete Hostname Client Certificate`,builder:ln,handler:async e=>l({command:`ssl origin-tls-client-auth hostname-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf ssl origin-tls-client-auth hostname-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth/hostnames/certificates/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"certificate-id":String(e[`certificate-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force}))return;let a=await c(`Deleting`,async()=>t.send(cn,{zone_id:r,certificate_id:e[`certificate-id`]}));o(a,{successLabel:`Deleted`})})};var dn={method:`GET`,path:t=>e`/zones/${t.zone_id}/origin_tls_client_auth/hostnames/certificates/${t.certificate_id}`};function fn(e){return e.usage(`$0 ssl origin-tls-client-auth hostname-certificates get <certificate-id>
|
|
97
90
|
|
|
98
91
|
Get the certificate by ID to be used for client authentication on a hostname.`).positional(`certificate-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const pn={command:`get <certificate-id>`,describe:`Get the Hostname Client Certificate`,builder:fn,handler:async e=>l({command:`ssl origin-tls-client-auth hostname-certificates get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl origin-tls-client-auth hostname-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth/hostnames/certificates/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"certificate-id":String(e[`certificate-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(dn,{zone_id:r,certificate_id:e[`certificate-id`]}));o(a,{successLabel:`Loaded`})})};var mn={method:`GET`,path:t=>e`/zones/${t.zone_id}/origin_tls_client_auth/hostnames/certificates`};function hn(e){return e.usage(`$0 ssl origin-tls-client-auth hostname-certificates list
|
|
99
92
|
|
|
@@ -109,8 +102,7 @@ Enable or disable zone-level authenticated origin pulls. 'enabled' should be set
|
|
|
109
102
|
|
|
110
103
|
Upload your own certificate you want Cloudflare to use for edge-to-origin communication to override the shared certificate. Please note that it is important to keep only one certificate active. Also, make sure to enable zone-level authenticated origin pulls by making a PUT call to settings endpoint to see the uploaded certificate in use.`).option(`certificate`,{type:`string`,description:`The zone's leaf certificate.`}).option(`private-key`,{type:`string`,description:`The zone's private key.`}).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 jn={command:`create`,describe:`Upload Certificate`,builder:An,handler:async e=>l({command:`ssl origin-tls-client-auth zone-certificates create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl origin-tls-client-auth zone-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({certificate:p(e.certificate,`certificate`,`text`),private_key:p(e[`private-key`],`private-key`,`text`)}):d(e.body),sensitiveBodyPaths:[[`private_key`]]});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Creating`,async()=>t.send(X,{body:n,zone_id:r}));o(i,{successLabel:`Created`});return}e.certificate===void 0&&(e.certificate=await m(`certificate`,`The zone's leaf certificate.`)),e[`private-key`]===void 0&&(e[`private-key`]=await m(`private-key`,`The zone's private key.`,{kind:`secret`}));let a=f({certificate:p(e.certificate,`certificate`,`text`),private_key:p(e[`private-key`],`private-key`,`text`)}),l=await c(`Creating`,async()=>t.send(X,{body:a,zone_id:r}));o(l,{successLabel:`Created`})})};var Mn={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/origin_tls_client_auth/${t.certificate_id}`};function Nn(e){return e.usage(`$0 ssl origin-tls-client-auth zone-certificates delete <certificate-id>
|
|
111
104
|
|
|
112
|
-
Removes a client certificate used for zone-level authenticated origin pulls.`).positional(`certificate-id`,{type:`string`,description:`Certificate identifier tag.`,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 Pn={command:`delete <certificate-id>`,describe:`Delete Certificate`,builder:Nn,handler:async e=>l({command:`ssl origin-tls-client-auth zone-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf ssl origin-tls-client-auth zone-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"certificate-id":String(e[`certificate-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force})){
|
|
113
|
-
`);return}let a=await c(`Deleting`,async()=>t.send(Mn,{zone_id:r,certificate_id:e[`certificate-id`]}));o(a,{successLabel:`Deleted`})})};var Fn={method:`GET`,path:t=>e`/zones/${t.zone_id}/origin_tls_client_auth/${t.certificate_id}`};function In(e){return e.usage(`$0 ssl origin-tls-client-auth zone-certificates get <certificate-id>
|
|
105
|
+
Removes a client certificate used for zone-level authenticated origin pulls.`).positional(`certificate-id`,{type:`string`,description:`Certificate identifier tag.`,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 Pn={command:`delete <certificate-id>`,describe:`Delete Certificate`,builder:Nn,handler:async e=>l({command:`ssl origin-tls-client-auth zone-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf ssl origin-tls-client-auth zone-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"certificate-id":String(e[`certificate-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force}))return;let a=await c(`Deleting`,async()=>t.send(Mn,{zone_id:r,certificate_id:e[`certificate-id`]}));o(a,{successLabel:`Deleted`})})};var Fn={method:`GET`,path:t=>e`/zones/${t.zone_id}/origin_tls_client_auth/${t.certificate_id}`};function In(e){return e.usage(`$0 ssl origin-tls-client-auth zone-certificates get <certificate-id>
|
|
114
106
|
|
|
115
107
|
Retrieves details for a specific client certificate used in zone-level authenticated origin pulls.`).positional(`certificate-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ln={command:`get <certificate-id>`,describe:`Get Certificate Details`,builder:In,handler:async e=>l({command:`ssl origin-tls-client-auth zone-certificates get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl origin-tls-client-auth zone-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"certificate-id":String(e[`certificate-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(Fn,{zone_id:r,certificate_id:e[`certificate-id`]}));o(a,{successLabel:`Loaded`})})};var Rn={method:`GET`,path:t=>e`/zones/${t.zone_id}/origin_tls_client_auth`};function zn(e){return e.usage(`$0 ssl origin-tls-client-auth zone-certificates list
|
|
116
108
|
|