cf 1.0.0-beta.0 → 1.0.0-beta.2
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 +11 -0
- package/dist/_meta/commands.json +10140 -10626
- package/dist/_meta/hand-written-commands.json +546 -1
- package/dist/_meta/schemas.json +6391 -7002
- package/dist/{abuse-reports-BwsJLiPN.mjs → abuse-reports-JcwSaW-c.mjs} +11 -11
- package/dist/access-B3TvAe5h.mjs +27 -0
- package/dist/{account-DBLarar2.mjs → account-CLsfIk5j.mjs} +5 -5
- package/dist/{account-tags-BNrSShjj.mjs → account-tags-BJdDiyDi.mjs} +4 -4
- package/dist/{accounts-CCAnDjFk.mjs → accounts-6eXqIqSW.mjs} +59 -59
- package/dist/{acm-ZPYQbZQr.mjs → acm-ChNLnPqM.mjs} +3 -3
- package/dist/{addressing-BFpzLfTn.mjs → addressing-z8ei_TCh.mjs} +49 -49
- package/dist/agent-context-GRiQ4zRU.mjs +2 -0
- package/dist/{agent-memory-DEvy2dLU.mjs → agent-memory-Un0usAVF.mjs} +15 -15
- package/dist/{ai-BF0_0NtS.mjs → ai-Bj8kgDf7.mjs} +14 -14
- package/dist/{ai-audit-Dn03zntn.mjs → ai-audit-FR6QuDK_.mjs} +1 -1
- package/dist/{ai-gateway-CVABbCjv.mjs → ai-gateway-DrQhTvKf.mjs} +68 -68
- package/dist/{ai-search-g0tR8Cut.mjs → ai-search-BvMeOKK6.mjs} +37 -37
- package/dist/{ai-security-BXXA0Jnk.mjs → ai-security-BHvDKoM1.mjs} +1 -1
- package/dist/{alerting-Bst10SOG.mjs → alerting-DmRZCAjg.mjs} +26 -26
- package/dist/{analytics-DgEaxta8.mjs → analytics-DqidJ4qc.mjs} +9 -9
- package/dist/{analytics_engine-B4DvcYmB.mjs → analytics_engine-I7N0I6yP.mjs} +2 -2
- package/dist/{api-security-Dkx1Codr.mjs → api-security-BMNhdDyR.mjs} +61 -61
- package/dist/{argo-BvswWPlP.mjs → argo-U5TIBcub.mjs} +1 -1
- package/dist/args-CXgkQKK7.mjs +2 -0
- package/dist/{artifacts-D8kZKJq0.mjs → artifacts-Byw1W73U.mjs} +20 -20
- package/dist/{audit-logs-Bp_yQpXJ.mjs → audit-logs-C6zyFeKM.mjs} +2 -2
- package/dist/auth-B5p3SIhO.mjs +8 -0
- package/dist/auth-CosaKfuk.mjs +2 -0
- package/dist/autoconfig-DED3bWob.mjs +511 -0
- package/dist/banner-Xk4xBN8U.mjs +2 -0
- package/dist/{billing-Cqj64fqz.mjs → billing-BS1raRJt.mjs} +10 -10
- package/dist/{bot-management-CzZx_aml.mjs → bot-management-Cn6xfGzJ.mjs} +1 -1
- package/dist/{botnet-feed-Co0c8Xdj.mjs → botnet-feed-DtWOPNfw.mjs} +5 -5
- package/dist/{brand-protection-CDsGaPIl.mjs → brand-protection-BcEQ66bT.mjs} +13 -13
- package/dist/browser-extension-D_siSsD9.mjs +2 -0
- package/dist/{browser-run-DFrohJ1p.mjs → browser-run-RZ7ZPRop.mjs} +23 -23
- package/dist/build-DG8NfVjJ.mjs +2 -0
- package/dist/build-kgS7iKwi.mjs +2 -0
- package/dist/{builds-CamhClyb.mjs → builds-AOCMH4CE.mjs} +31 -31
- package/dist/{cache-BiTk4-Zc.mjs → cache-D_EBxDff.mjs} +1 -1
- package/dist/{certificate-authorities-Dal9DNjW.mjs → certificate-authorities-B6rtjuaT.mjs} +1 -1
- package/dist/cf--3tGe71B.mjs +18 -0
- package/dist/chunk-M77HNR46-BqG3fjQz.mjs +2 -0
- package/dist/chunk-RV27PEH3-C8_6bMgi.mjs +97 -0
- package/dist/chunk-U6NEESU5-CAnOLcsu.mjs +2 -0
- package/dist/chunk-WMOON6TZ-D3H84qpM.mjs +2 -0
- package/dist/cli-Ct980dyx.mjs +3 -0
- package/dist/cli-exit-Dqoo6Jgb.mjs +2 -0
- package/dist/client-certificates-uBOjGcgo.mjs +13 -0
- package/dist/{client-side-security-CIO_YPtN.mjs → client-side-security-Bm7JwGaG.mjs} +1 -1
- package/dist/{cloud-connector-vwdixea0.mjs → cloud-connector-69M2Dx8h.mjs} +1 -1
- package/dist/{cloudflared-DhItYrCq.mjs → cloudflared-Ba5LySkU.mjs} +1 -1
- package/dist/{cloudforce-one-C1cFVBGK.mjs → cloudforce-one-Xn2mlAPv.mjs} +214 -214
- package/dist/command-B7SzqjQM.mjs +2 -0
- package/dist/command-BLHcNQ8m.mjs +2 -0
- package/dist/command-BxQbIQWT.mjs +2 -0
- package/dist/command-C0SMCHZp.mjs +2 -0
- package/dist/command-CE8k5TuK.mjs +2 -0
- package/dist/command-CPiCDUth.mjs +2 -0
- package/dist/command-Cb0pS8T5.mjs +2 -0
- package/dist/command-Cz_bKDWf.mjs +2 -0
- package/dist/command-DCpX9Cem.mjs +2 -0
- package/dist/command-DEC5PwJo.mjs +2 -0
- package/dist/command-DHjsstFb.mjs +2 -0
- package/dist/command-MTUsmZU5.mjs +2 -0
- package/dist/command-Sb9lOxWT.mjs +2 -0
- package/dist/command-sQ8yswii.mjs +2 -0
- package/dist/{completions-xPLd1cvL.mjs → completions-DZDltM9V.mjs} +3 -3
- package/dist/{config-B4vIa0zp.mjs → config-DcppJ5D2.mjs} +1 -1
- package/dist/{connector-interrupts-DQ5T-HMN.mjs → connector-interrupts-DTy6laab.mjs} +3 -3
- package/dist/{connector-telemetry-events-DWam38_9.mjs → connector-telemetry-events-CJqGGvFJ.mjs} +3 -3
- package/dist/{connector-telemetry-snapshots-DX6AJf9Q.mjs → connector-telemetry-snapshots-BPxhPhr6.mjs} +3 -3
- package/dist/{connectors-CBhLWVd-.mjs → connectors-CdfCcZuA.mjs} +7 -7
- package/dist/{containers-Bx_44bmJ.mjs → containers-C7z53QcY.mjs} +86 -86
- package/dist/{containers-C7blN-pe.mjs → containers-VMqcxH5a.mjs} +17 -17
- package/dist/{content-scan-CC91dAlv.mjs → content-scan-BirgZrmr.mjs} +1 -1
- package/dist/context-Dzzbc9RK.mjs +7 -0
- package/dist/{cps-D9a4N_bH.mjs → cps-DzFm3zKp.mjs} +1 -1
- package/dist/{csamScanner-T7nbCnep.mjs → csamScanner-D2_OO5-1.mjs} +1 -1
- package/dist/{ct-alerting-CkjNJlla.mjs → ct-alerting-B7wQkFVl.mjs} +1 -1
- package/dist/{custom-certificates-DnWnt9oJ.mjs → custom-certificates-BKcCfbH8.mjs} +4 -4
- package/dist/{custom-csrs-Db2pF9Ib.mjs → custom-csrs-CXoOxir4.mjs} +5 -5
- package/dist/{custom-hostnames-B_N-uSIa.mjs → custom-hostnames-CNYfnCOd.mjs} +6 -6
- package/dist/{custom-nameservers-DPA_sFY8.mjs → custom-nameservers-BlLM7a4L.mjs} +5 -5
- package/dist/{custom-pages-D6fxEBoh.mjs → custom-pages-BcWoypet.mjs} +10 -10
- package/dist/{d1-DXs1xVmH.mjs → d1-CvrHsqYY.mjs} +14 -14
- package/dist/{data-security-CVZAIzhe.mjs → data-security-BxzLSdGk.mjs} +33 -33
- package/dist/{dcv-delegation-as1ue_wx.mjs → dcv-delegation-9_Hl-5v-.mjs} +1 -1
- package/dist/{delegate-GctF_lrq.mjs → delegate-CCGgla7X.mjs} +1 -1
- package/dist/delegate.mjs +1 -1
- package/dist/{deploy-D2XXCkqk.mjs → deploy-BlXYtvTd.mjs} +1 -1
- package/dist/{deploy-input-BCYyKXpp.mjs → deploy-input-DTXVZ2QJ.mjs} +1 -1
- package/dist/dev-reqdKM28.mjs +4 -0
- package/dist/{diagnostics-BKH1Oh-C.mjs → diagnostics-BxHs1EJB.mjs} +7 -7
- package/dist/dialog-ClHoC_cG.mjs +2 -0
- package/dist/dist-CmyJy57B.mjs +48 -0
- package/dist/{dist-BpadEMNY.mjs → dist-Cpb7_h4N.mjs} +35 -35
- package/dist/dist-cGGV-p_F.mjs +366 -0
- package/dist/{dls-C5kAQsN6.mjs → dls-D7GXW-N3.mjs} +8 -8
- package/dist/{dns-CYwXrdJO.mjs → dns-B0mdWJO5.mjs} +63 -63
- package/dist/{dns-firewall-BEw4QcXj.mjs → dns-firewall-BG0bzuL3.mjs} +8 -8
- package/dist/dot-prop-IITUZ2XW-BO5KJUwL.mjs +2 -0
- package/dist/dry-run-BmzTxDtZ.mjs +2 -0
- package/dist/{durable-objects-3jvUgzKd.mjs → durable-objects-DW0CsJzR.mjs} +4 -4
- package/dist/{email-auth-B3MD8FrJ.mjs → email-auth-Ls-7Yijm.mjs} +1 -1
- package/dist/{email-routing-C4YhZGPw.mjs → email-routing-DVaFhg-3.mjs} +24 -24
- package/dist/{email-security-BcFyWNby.mjs → email-security-vnwkqlgp.mjs} +77 -79
- package/dist/{email-sending-BO1GOAho.mjs → email-sending-CbMUicJz.mjs} +23 -23
- package/dist/error-sanitization-TV6O0aCD.mjs +2 -0
- package/dist/error-sanitization-cyGBhW1Z.mjs +2 -0
- package/dist/{fieldExtractors-BJDnzNCN.mjs → fieldExtractors-2EkDoJg8.mjs} +4 -4
- package/dist/firewall-BK4QYqRe.mjs +36 -0
- package/dist/{flagship-BJYMb7hb.mjs → flagship--lHQ0H3n.mjs} +13 -13
- package/dist/{fraud-C7kS7kP9.mjs → fraud-CaoRrQ8W.mjs} +1 -1
- package/dist/generate-CrKNH6ms.mjs +3 -0
- package/dist/generate-Djb5Af37.mjs +2 -0
- package/dist/{google-tag-gateway-8VR-j0sa.mjs → google-tag-gateway-DDzLPmk5.mjs} +1 -1
- package/dist/{healthchecks-BJleItOD.mjs → healthchecks-Q2uXvt4m.mjs} +1 -1
- package/dist/{hostnames-CHajvoHa.mjs → hostnames-CsaYnis6.mjs} +1 -1
- package/dist/{hyperdrive-DlxQrok-.mjs → hyperdrive-DDr6sAkw.mjs} +9 -9
- package/dist/{iam-B7oTr6vW.mjs → iam-CmzocepZ.mjs} +24 -24
- package/dist/{images-xLAYe436.mjs → images-Ux0Phsbi.mjs} +38 -38
- package/dist/index.mjs +1 -1
- package/dist/init-Nx4RRgfT.mjs +39 -0
- package/dist/{intel-DwZXY1YE.mjs → intel-bgS4g7nx.mjs} +38 -38
- package/dist/interactive-B_dcVghB.mjs +2 -0
- package/dist/interactive-D80kbTap.mjs +32 -0
- package/dist/{ips-BC_9nKE7.mjs → ips-BDiolgWF.mjs} +1 -1
- package/dist/keyless-certificates-C_TwTMql.mjs +13 -0
- package/dist/{keys-K-GFzhku.mjs → keys-Cr8AqQDY.mjs} +2 -2
- package/dist/{kv-Bfwz_ULu.mjs → kv-DmAQCqXl.mjs} +10 -10
- package/dist/lazy-command-B_bwSa2F.mjs +2 -0
- package/dist/{leaked-credential-checks-D8UuxztO.mjs → leaked-credential-checks-De7ph4VA.mjs} +1 -1
- package/dist/{load-balancers-B0XeGLhT.mjs → load-balancers-DXt4ndF4.mjs} +39 -39
- package/dist/local-CFd107fr.mjs +2 -0
- package/dist/{local-B6b2OIBW.mjs → local-OKXweFsd.mjs} +1 -1
- package/dist/{local-runtime-DD8DAIlm.mjs → local-runtime-tTYpniPS.mjs} +1 -1
- package/dist/login-BurQ63Ws.mjs +5 -0
- package/dist/login-CmlHvH5k.mjs +2 -0
- package/dist/{logo-matches-DWg5ezsM.mjs → logo-matches-CQ60P96J.mjs} +3 -3
- package/dist/{logos-6A6gJC5C.mjs → logos-u7UwT8MH.mjs} +3 -3
- package/dist/{logpush-DwehajAw.mjs → logpush-IoIe8e80.mjs} +23 -23
- package/dist/{logs-BWg7YymF.mjs → logs-ih5tyXEE.mjs} +16 -16
- package/dist/{magic-cloud-networking--14hNj2F.mjs → magic-cloud-networking-CWNFnjcY.mjs} +34 -34
- package/dist/{magic-network-monitoring-Dzo4L6kd.mjs → magic-network-monitoring-ClfZleF8.mjs} +17 -17
- package/dist/{magic-transit-DDO0A5v4.mjs → magic-transit-D69pkEVW.mjs} +139 -139
- package/dist/{managed-defense-DQ0iwWdG.mjs → managed-defense-BHdmL0vx.mjs} +9 -9
- package/dist/{managed-transforms-DDIdcPG0.mjs → managed-transforms-DbCR4LUg.mjs} +1 -1
- package/dist/{matches-D6ahHNaP.mjs → matches-Cou6RVkh.mjs} +3 -3
- package/dist/{mcp-BcIrLbRv.mjs → mcp-CQYfM19s.mjs} +15 -15
- package/dist/{mesh-wLiPcWyN.mjs → mesh-CXqaAFS4.mjs} +12 -12
- package/dist/migrate-CXMbQPyC.mjs +2 -0
- package/dist/mtls-certificates-DNeId8xS.mjs +13 -0
- package/dist/{network-DZsrs_sw.mjs → network-B7V3JbU7.mjs} +24 -24
- package/dist/{network-interconnects-Cjbu4EMv.mjs → network-interconnects-BNon8iUs.mjs} +17 -17
- package/dist/oauth-CeXh-ACI.mjs +9 -0
- package/dist/{oauth-Cu1twz9z.mjs → oauth-DM8q-TYg.mjs} +1 -1
- package/dist/{oauth-clients-DR0hzakz.mjs → oauth-clients-gGmWIWHl.mjs} +7 -7
- package/dist/{oauth-scopes-BDNpJJ32.mjs → oauth-scopes-DSEu331u.mjs} +1 -1
- package/dist/{observability-BnHy2M6p.mjs → observability-_VJhfwM1.mjs} +44 -44
- package/dist/open-PCXX3ZDZ-DobJT1Mj.mjs +4 -0
- package/dist/{organization-iasRm69J.mjs → organization-DW4EpwGl.mjs} +1 -1
- package/dist/{organizations-CUzCIKXV.mjs → organizations-DE1g2wVq.mjs} +1 -1
- package/dist/{origin-ca-certificates-iQXSqBI0.mjs → origin-ca-certificates-D3ULDV__.mjs} +3 -3
- package/dist/{origin-post-quantum-encryption-DcMDK6Tz.mjs → origin-post-quantum-encryption-BLropaz7.mjs} +1 -1
- package/dist/{origin-tls-client-auth-D1X26X7y.mjs → origin-tls-client-auth-C87TG2i_.mjs} +5 -5
- package/dist/output-CZt-berV.mjs +2 -0
- package/dist/{page-rules-CXa8EYcP.mjs → page-rules-tlb9P-7V.mjs} +1 -1
- package/dist/{pages-Cu0m9GSH.mjs → pages-CjPErYik.mjs} +24 -24
- package/dist/{pay-per-crawl-DmF8xlm_.mjs → pay-per-crawl-C50wI-Iz.mjs} +32 -32
- package/dist/{pay-per-use-DIp2fwJU.mjs → pay-per-use-DHHIvynU.mjs} +3 -3
- package/dist/{pipelines-MmXlsxYO.mjs → pipelines-Y2icOwuf.mjs} +20 -20
- package/dist/precursor-DeyurJSC.mjs +4 -0
- package/dist/previews-Dj_LcGRd.mjs +4 -0
- package/dist/progress-C9dWgc3J.mjs +2 -0
- package/dist/prompt-Mh69ni1N.mjs +3 -0
- package/dist/{queries-VzdcSR5H.mjs → queries-DyUJefwL.mjs} +4 -4
- package/dist/{queues-BZYl2emH.mjs → queues-CdNe4tGY.mjs} +29 -35
- package/dist/{r2-omcKF8_A.mjs → r2-C0W2J4sT.mjs} +52 -52
- package/dist/{r2-data-catalog-DISnPFPY.mjs → r2-data-catalog-D_zDlmVD.mjs} +16 -16
- package/dist/{radar-JzBTD249.mjs → radar-CSguicKC.mjs} +1 -1
- package/dist/raw-fetch-1ygCOcT_.mjs +2 -0
- package/dist/{realtime-yIdAJ0Yf.mjs → realtime-CvWs5pi3.mjs} +78 -78
- package/dist/{registrar-D-Li9gNk.mjs → registrar-DQUxn0FK.mjs} +8 -8
- package/dist/{registrar-sandbox-CKSSHAyv.mjs → registrar-sandbox-Q7ZEmg2x.mjs} +6 -6
- package/dist/{registry-vreNkX6u.mjs → registry-4Sw95M5_.mjs} +1 -1
- package/dist/{reporting-Cf-pnw6h.mjs → reporting-DJShxeDv.mjs} +7 -7
- package/dist/request-headers-DFBBErJg.mjs +2 -0
- package/dist/{request-tracers-BegIQTzt.mjs → request-tracers-DD8HlG61.mjs} +2 -2
- package/dist/resolve-BVxXAYG7.mjs +2 -0
- package/dist/{resource-sharing-DEVgiYzM.mjs → resource-sharing-J46JMWQP.mjs} +14 -14
- package/dist/{resource-tagging-Cm2yJkU9.mjs → resource-tagging-DLZJLIqy.mjs} +2 -2
- package/dist/{rules-DDCa7cYF.mjs → rules-D068LfBR.mjs} +8 -8
- package/dist/{rulesets-BhS7Hvtu.mjs → rulesets-Cz6P7Oje.mjs} +17 -17
- package/dist/{rum-EIj9ViSn.mjs → rum-C6GQC2vI.mjs} +14 -14
- package/dist/run-C_qUgBTs.mjs +2 -0
- package/dist/run-DK1d9BJz.mjs +2 -0
- package/dist/schema-VZPw_2CY.mjs +2 -0
- package/dist/{schema-flags--GosoCMU.mjs → schema-flags-BmY0Nzp0.mjs} +2 -2
- package/dist/{scim-DA83eNe-.mjs → scim-DMTp_Zhc.mjs} +10 -10
- package/dist/{sdk-CvIO3tWS.mjs → sdk-BuF3fTHr.mjs} +2 -2
- package/dist/{secrets-store-BTd3eGIB.mjs → secrets-store-C2epk0sQ.mjs} +11 -11
- package/dist/{security-center-DbH_7h-T.mjs → security-center-DwMdQ02Y.mjs} +15 -15
- package/dist/{security-txt-DSrHhVEN.mjs → security-txt-CORQfMul.mjs} +1 -1
- package/dist/session-BEXskZi2.mjs +2 -0
- package/dist/shared--lvrXmXY.mjs +2 -0
- package/dist/{smart-shield-DnSTo-OI.mjs → smart-shield-BZ0xjy_6.mjs} +1 -1
- package/dist/{snippets-An5kQs33.mjs → snippets-LSkJGDOc.mjs} +1 -1
- package/dist/source-38bULAR8.mjs +6 -0
- package/dist/spawn-Da3HnlmB.mjs +10 -0
- package/dist/{spectrum-Ci79n7fd.mjs → spectrum-zU8_GFTV.mjs} +1 -1
- package/dist/{speed-BBL7LrLn.mjs → speed-4XbFmeYM.mjs} +1 -1
- package/dist/src-BLLpnbzC.mjs +109 -0
- package/dist/{ssl-B2psFIRm.mjs → ssl-DiCsMY_a.mjs} +4 -4
- package/dist/startup-profile-6fCkD04r.mjs +17 -0
- package/dist/startup-profile-Cw-_akjQ.mjs +2 -0
- package/dist/state-CcktNox9.mjs +2 -0
- package/dist/{state-BxCejn42.mjs → state-DiHwKWTy.mjs} +1 -1
- package/dist/{stream-Du0Q7UOh.mjs → stream-BG3NUAVE.mjs} +45 -45
- package/dist/{submit-CU8S2jBT.mjs → submit-CKSaSFS1.mjs} +2 -2
- package/dist/{tags-C3l5aZSi.mjs → tags-uT9Mi-bX.mjs} +2 -2
- package/dist/telemetry-C0k8vfbq.mjs +2 -0
- package/dist/telemetry-Dh-8kdfY.mjs +5 -0
- package/dist/{telemetry-PHe8XxA2.mjs → telemetry-IrDBqbQW.mjs} +1 -1
- package/dist/{tenant-BZ0ysR9L.mjs → tenant--UrYFHM0.mjs} +1 -1
- package/dist/{tenant-custom-nameservers-DtKeyM5J.mjs → tenant-custom-nameservers-8Z4TVJtr.mjs} +1 -1
- package/dist/{theme-BiIYWOed.mjs → theme-BIWQFmZ0.mjs} +2 -2
- package/dist/tools-DNGD0l7I.mjs +2 -0
- package/dist/{tunnels-D1tRWQQi.mjs → tunnels-5lGSXYpl.mjs} +15 -15
- package/dist/turnstile-CT3AkMPV.mjs +33 -0
- package/dist/ui-D1hhIDIs.mjs +5 -0
- package/dist/update-check-BYJnL8J8.mjs +2 -0
- package/dist/update-check-DFoSm5GT.mjs +2 -0
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-info-BRA0XGT2.mjs → url-info-DvpNcNl8.mjs} +2 -2
- package/dist/{url-normalization-B6N2m5s6.mjs → url-normalization-C9URZnpq.mjs} +1 -1
- package/dist/{url-scanner-CeKkzkhe.mjs → url-scanner-CIwK3wB5.mjs} +8 -8
- package/dist/{user-CftksgmF.mjs → user-DGA7cqdf.mjs} +1 -1
- package/dist/{values-m7w9PX3o.mjs → values-BzS0b25w.mjs} +2 -2
- package/dist/{vectorize-BWBEtsgZ.mjs → vectorize-DtDjl2fJ.mjs} +15 -15
- package/dist/version-B47pK_PZ.mjs +2 -0
- package/dist/{waiting-rooms-BVZSYTNJ.mjs → waiting-rooms-CjTh4F3B.mjs} +25 -25
- package/dist/{web-assets-CLU5vAgP.mjs → web-assets-4l1B5V9b.mjs} +1 -1
- package/dist/{web3-Dkd4XRNH.mjs → web3-C0Z4AJjC.mjs} +1 -1
- package/dist/{workers-BQi4_SBS.mjs → workers-CNBv6GxE.mjs} +20 -20
- package/dist/{workers-builds-BgtPSDYJ.mjs → workers-builds-DYGeoxmX.mjs} +7 -7
- package/dist/{workers-for-platforms-actLCM6Q.mjs → workers-for-platforms-CSw0K8Nl.mjs} +11 -11
- package/dist/{workers-vpc-DjGfJgQn.mjs → workers-vpc-DJ7Couct.mjs} +6 -6
- package/dist/{workflows-Cm7WsAgB.mjs → workflows-Dm03QT8U.mjs} +20 -20
- package/dist/{zaraz-DurWe32F.mjs → zaraz-DJbWUUe3.mjs} +1 -1
- package/dist/zero-trust-DiMY-pN5.mjs +685 -0
- package/dist/{zone-B3AEAfcd.mjs → zone-BWjBv1yy.mjs} +1 -1
- package/dist/{zones-DiX5LoSU.mjs → zones-zGqcQvcY.mjs} +1 -1
- package/dist/zt-Bt4Q6iM1.mjs +110 -0
- package/package.json +13 -11
- package/dist/access-BVbIajYr.mjs +0 -27
- package/dist/auth-B9w55oRg.mjs +0 -2
- package/dist/auth-C80y97yu.mjs +0 -8
- package/dist/browser-extension-BRHJm3Qf.mjs +0 -15
- package/dist/build-BbjcJxKq.mjs +0 -2
- package/dist/build-DQh5-KK4.mjs +0 -2
- package/dist/cf-oadujOtC.mjs +0 -18
- package/dist/chunk-6EUZQHAF-QVTL_mC-.mjs +0 -2
- package/dist/chunk-DL5FNmn1.mjs +0 -2
- package/dist/chunk-Q72B4Q5Z-Cr1H_iK6.mjs +0 -2
- package/dist/chunk-Q72B4Q5Z-DKhx_4ok.mjs +0 -2
- package/dist/chunk-QBZBEHZB-Byagrlop.mjs +0 -2
- package/dist/chunk-XLADBZ7F-BXKOjWbx.mjs +0 -374
- package/dist/client-certificates-DDisXoTE.mjs +0 -13
- package/dist/command-BP7ldws1.mjs +0 -2
- package/dist/command-BtNRBTP6.mjs +0 -2
- package/dist/command-CF0giIIc.mjs +0 -3
- package/dist/command-Ck9rbHA4.mjs +0 -2
- package/dist/dev-nsNxyg2D.mjs +0 -4
- package/dist/dialog-Dx4rRcKM.mjs +0 -2
- package/dist/dist-BDOzKthe.mjs +0 -48
- package/dist/dist-dc4E1u01.mjs +0 -272
- package/dist/dot-prop-6SRZBKHT-Dj7YOlwR.mjs +0 -2
- package/dist/dry-run-CLX6Pbtq.mjs +0 -2
- package/dist/error-sanitization-BkgUhGVc.mjs +0 -2
- package/dist/error-sanitization-DOlqWkNu.mjs +0 -2
- package/dist/firewall-BSMa9aH3.mjs +0 -56
- package/dist/interactive-B6woOLo-.mjs +0 -32
- package/dist/interactive-DnUvQHjc.mjs +0 -2
- package/dist/keyless-certificates-CtsCsbZ2.mjs +0 -13
- package/dist/local-BrfySqnx.mjs +0 -2
- package/dist/login-CAsRUF4c.mjs +0 -2
- package/dist/login-DaglE6WA.mjs +0 -5
- package/dist/mtls-certificates-AEuNOERQ.mjs +0 -13
- package/dist/oauth-C-QCVfWz.mjs +0 -14
- package/dist/open-PBXRGS4R-C4CKEADM.mjs +0 -4
- package/dist/open-PBXRGS4R-C_-G_4DC.mjs +0 -4
- package/dist/output-Bia1u2k5.mjs +0 -2
- package/dist/precursor-jqeEG_mJ.mjs +0 -4
- package/dist/previews-Cg6lc24N.mjs +0 -4
- package/dist/progress-Bpp73hIu.mjs +0 -2
- package/dist/prompt-CpZztV8c.mjs +0 -3
- package/dist/raw-fetch-DxGs_eRm.mjs +0 -2
- package/dist/request-headers-DaXBfmVn.mjs +0 -2
- package/dist/resolve-BXemCSyA.mjs +0 -2
- package/dist/run-CSFE1qVX.mjs +0 -2
- package/dist/run-ChM_YpZ0.mjs +0 -2
- package/dist/schema-DCBb3Fcs.mjs +0 -2
- package/dist/shared-CtBkOWGN.mjs +0 -2
- package/dist/source-BR4_k2ad.mjs +0 -6
- package/dist/spawn-7IW1UyoH.mjs +0 -523
- package/dist/src-CNHNCZpy.mjs +0 -108
- package/dist/startup-profile-CYEokTVe.mjs +0 -2
- package/dist/startup-profile-CgWHy4rE.mjs +0 -17
- package/dist/state-DSzkxXML.mjs +0 -2
- package/dist/telemetry-CNt8H3aA.mjs +0 -2
- package/dist/telemetry-Dk1GcQ0u.mjs +0 -5
- package/dist/tools-BMKpYraQ.mjs +0 -2
- package/dist/turnstile-DBa4_Vyz.mjs +0 -33
- package/dist/ui-DH95w1Qk.mjs +0 -5
- package/dist/undici-DTSBJHNS.mjs +0 -96
- package/dist/update-check-AAn7EXw8.mjs +0 -2
- package/dist/update-check-BbIXBq1o.mjs +0 -2
- package/dist/version-cPq-WKL8.mjs +0 -2
- package/dist/zero-trust-D8SVU8YZ.mjs +0 -795
- /package/dist/{Page-C-JHZnIy.mjs → Page-BchtVjAO.mjs} +0 -0
- /package/dist/{alerts-CstOk8n0.mjs → alerts-DY_7Nknx.mjs} +0 -0
- /package/dist/{autorag-PRTwXGgn.mjs → autorag-K396-M2S.mjs} +0 -0
- /package/dist/{body-parser-CUWbw_Tq.mjs → body-parser-BpPZBRMr.mjs} +0 -0
- /package/dist/{brands-BHRXlWDm.mjs → brands-Uy0Cmv1w.mjs} +0 -0
- /package/dist/{clear-UvKESVx3.mjs → clear-CpcO2ExU.mjs} +0 -0
- /package/dist/{cli-types-tt_LZMbn.mjs → cli-types-B6tm-8uL.mjs} +0 -0
- /package/dist/{connector-telemetry-events-latest-DwnFeZg0.mjs → connector-telemetry-events-latest-oguk5Zyj.mjs} +0 -0
- /package/dist/{connector-telemetry-snapshots-latest-Dv6rZlxs.mjs → connector-telemetry-snapshots-latest-B6zuxkr0.mjs} +0 -0
- /package/dist/{domain-info-BqTDXNBo.mjs → domain-info-aiwP60Fo.mjs} +0 -0
- /package/dist/{health-CwPzzrV6.mjs → health-Bz33n-_F.mjs} +0 -0
- /package/dist/{input-validation-Ch4Vllrm.mjs → input-validation-D3e278L_.mjs} +0 -0
- /package/dist/{internal-WLHfxX64.mjs → internal-BHrJbbdA.mjs} +0 -0
- /package/dist/{lifecycle-Ichnb2x1.mjs → lifecycle-Cyc3fmyN.mjs} +0 -0
- /package/dist/{live-D_k7eHdv.mjs → live-a01OfPf9.mjs} +0 -0
- /package/dist/{metadata-APBiectA.mjs → metadata-C33s4rc-.mjs} +0 -0
- /package/dist/{project-settings-DSXevRvj.mjs → project-settings-Bf6rReo1.mjs} +0 -0
- /package/dist/{rate-limit-analytics-CDTPxSET.mjs → rate-limit-analytics-Bw9qmxMx.mjs} +0 -0
- /package/dist/{rate-limits-C3K9smdl.mjs → rate-limits-CDm_xzKt.mjs} +0 -0
- /package/dist/{ready-CvwvbdTX.mjs → ready-BXGqY1Wi.mjs} +0 -0
- /package/dist/{recent-submissions-CjzcT-iH.mjs → recent-submissions-AhGZD3a3.mjs} +0 -0
- /package/dist/{refute-CIAFMj00.mjs → refute-D_w5Gw20.mjs} +0 -0
- /package/dist/{resolve-CUDKxUrW.mjs → resolve-qPFfBMrn.mjs} +0 -0
- /package/dist/{scan-logo-zFkphtQ3.mjs → scan-logo-BZzFam-Q.mjs} +0 -0
- /package/dist/{scan-page-CLl2MAkZ.mjs → scan-page-BPA8nSPM.mjs} +0 -0
- /package/dist/{search-12jA1b4l.mjs → search-De0UlXYN.mjs} +0 -0
- /package/dist/{signed-url-U0T_PEMR.mjs → signed-url-ziDz9frX.mjs} +0 -0
- /package/dist/{submission-info-CZ84a3Nb.mjs → submission-info-83D2DCCG.mjs} +0 -0
- /package/dist/{total-queries-CJTc9Pde.mjs → total-queries-Dhol31Kn.mjs} +0 -0
- /package/dist/{tracked-domains-BKLxnnSv.mjs → tracked-domains-DoOPs6Vd.mjs} +0 -0
- /package/dist/{verify-CZW5Fo1q.mjs → verify-CxpGEnJb.mjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{
|
|
2
|
+
import{i as e}from"./context-Dzzbc9RK.mjs";import{r as t}from"./auth-B5p3SIhO.mjs";import{t as n}from"./output-CZt-berV.mjs";import{t as r}from"./dry-run-BmzTxDtZ.mjs";import{t as i}from"./progress-C9dWgc3J.mjs";import{t as a}from"./run-DK1d9BJz.mjs";import"./telemetry-C0k8vfbq.mjs";import{n as o,t as s}from"./body-parser-BpPZBRMr.mjs";import{n as c}from"./input-validation-D3e278L_.mjs";import{a as l,n as u}from"./prompt-Mh69ni1N.mjs";function d(e){return e.usage(`$0 healthchecks create
|
|
3
3
|
|
|
4
4
|
Create a new health check.`).option(`address`,{type:`string`,description:`The hostname or IP address of the origin server to run health checks on.`}).option(`check-regions`,{type:`string`,array:!0,description:`A list of regions from which to run health checks. Null means Cloudflare will pick a default region.`}).option(`consecutive-fails`,{type:`number`,description:`The number of consecutive fails required from a health check before changing the health to unhealthy.`,default:1}).option(`consecutive-successes`,{type:`number`,description:`The number of consecutive successes required from a health check before changing the health to healthy.`,default:1}).option(`description`,{type:`string`,description:`A human-readable description of the health check.`}).option(`http-config-allow-insecure`,{type:`boolean`,description:`Do not validate the certificate when the health check uses HTTPS.`}).option(`http-config-expected-body`,{type:`string`,description:`A case-insensitive sub-string to look for in the response body. If this string is not found, the origin will be marked as unhealthy.`}).option(`http-config-expected-codes`,{type:`string`,array:!0,description:`The expected HTTP response codes (e.g. "200") or code ranges (e.g. "2xx" for all codes starting with 2) of the health check.`}).option(`http-config-follow-redirects`,{type:`boolean`,description:`Follow redirects if the origin returns a 3xx status code.`}).option(`http-config-method`,{type:`string`,description:`The HTTP method to use for the health check.`,choices:[`GET`,`HEAD`]}).option(`http-config-path`,{type:`string`,description:`The endpoint path to health check against.`}).option(`http-config-port`,{type:`number`,description:`Port number to connect to for the health check. Defaults to 80 if type is HTTP or 443 if type is HTTPS.`}).option(`interval`,{type:`number`,description:`The interval between each health check. Shorter intervals may give quicker notifications if the origin status changes, but will increase load on the origin as we check from multiple locations.`,default:60}).option(`name`,{type:`string`,description:`A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed.`}).option(`retries`,{type:`number`,description:`The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately.`,default:2}).option(`suspended`,{type:`boolean`,description:`If suspended, no health checks are sent to the origin.`,default:!1}).option(`tcp-config-method`,{type:`string`,description:`The TCP connection method to use for the health check.`,choices:[`connection_established`]}).option(`tcp-config-port`,{type:`number`,description:`Port number to connect to for the health check. Defaults to 80.`}).option(`timeout`,{type:`number`,description:`The timeout (in seconds) before marking the health check as failed.`,default:5}).option(`type`,{type:`string`,description:`The protocol to use for the health check. Currently supported protocols are 'HTTP', 'HTTPS' and 'TCP'.`,default:`HTTP`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const f={command:`create`,describe:`Create Health Check`,builder:d,handler:async u=>a({command:`healthchecks create`,classification:{safeFlags:[`http-config-allow-insecure`,`http-config-follow-redirects`,`http-config-method`,`suspended`,`tcp-config-method`,`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf healthchecks create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/healthchecks`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({address:c(u.address,`address`,`text`),check_regions:u[`check-regions`],consecutive_fails:u[`consecutive-fails`],consecutive_successes:u[`consecutive-successes`],description:c(u.description,`description`,`text`),http_config:{allow_insecure:u[`http-config-allow-insecure`],expected_body:c(u[`http-config-expected-body`],`http-config-expected-body`,`text`),expected_codes:u[`http-config-expected-codes`],follow_redirects:u[`http-config-follow-redirects`],method:c(u[`http-config-method`],`http-config-method`,`text`),path:c(u[`http-config-path`],`http-config-path`,`text`),port:u[`http-config-port`]},interval:u.interval,name:c(u.name,`name`,`text`),retries:u.retries,suspended:u.suspended,tcp_config:{method:c(u[`tcp-config-method`],`tcp-config-method`,`text`),port:u[`tcp-config-port`]},timeout:u.timeout,type:c(u.type,`type`,`text`)}):o(u.body)});return}let a=await t(u),d=await e({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,u.body){let e=o(u.body);n(await i(`Creating`,async()=>a.healthchecks.create({body:e,zone_id:d})),{successLabel:`Created`});return}u.address===void 0&&(u.address=await l(`address`,`The hostname or IP address of the origin server to run health checks on.`)),u.name===void 0&&(u.name=await l(`name`,`A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed.`));let f=s({address:c(u.address,`address`,`text`),check_regions:u[`check-regions`],consecutive_fails:u[`consecutive-fails`],consecutive_successes:u[`consecutive-successes`],description:c(u.description,`description`,`text`),http_config:{allow_insecure:u[`http-config-allow-insecure`],expected_body:c(u[`http-config-expected-body`],`http-config-expected-body`,`text`),expected_codes:u[`http-config-expected-codes`],follow_redirects:u[`http-config-follow-redirects`],method:c(u[`http-config-method`],`http-config-method`,`text`),path:c(u[`http-config-path`],`http-config-path`,`text`),port:u[`http-config-port`]},interval:u.interval,name:c(u.name,`name`,`text`),retries:u.retries,suspended:u.suspended,tcp_config:{method:c(u[`tcp-config-method`],`tcp-config-method`,`text`),port:u[`tcp-config-port`]},timeout:u.timeout,type:c(u.type,`type`,`text`)});n(await i(`Creating`,async()=>a.healthchecks.create({body:f,zone_id:d})),{successLabel:`Created`})})};function p(e){return e.usage(`$0 healthchecks delete <healthcheck-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{
|
|
2
|
+
import{i as e}from"./context-Dzzbc9RK.mjs";import{a as t,r as n}from"./auth-B5p3SIhO.mjs";import{t as r}from"./output-CZt-berV.mjs";import{t as i}from"./dry-run-BmzTxDtZ.mjs";import{t as a}from"./progress-C9dWgc3J.mjs";import{t as o}from"./run-DK1d9BJz.mjs";import"./telemetry-C0k8vfbq.mjs";import{n as s}from"./body-parser-BpPZBRMr.mjs";import{n as c}from"./prompt-Mh69ni1N.mjs";function l(e){return e.usage(`$0 hostnames settings tls-single get <hostname>
|
|
3
3
|
|
|
4
4
|
Get the requested TLS setting for the hostname.`).positional(`hostname`,{type:`string`,description:`The hostname for which the tls settings are set.`,demandOption:!0}).option(`setting-id`,{type:`string`,description:'The TLS Setting name.\nThe value type depends on the setting:\n- `ciphers`: value is an array of cipher suite strings (e.g., `["ECDHE-RSA-AES128-GCM-SHA256", "AES128-GCM-SHA256"]`).\n- `min_tls_version`: value is a TLS version string (`"1.0"`, `"1.1"`, `"1.2"`, or `"1.3"`).\n- `http2`: value is `"on"` or `"off"`.',demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const u={command:`get <hostname>`,describe:`Get TLS setting for hostname`,builder:l,handler:async t=>o({command:`hostnames settings tls-single get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){i({command:`cf hostnames settings tls-single get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${t.zone??t.zoneId??`<zone>`}/hostnames/settings/${t[`setting-id`]==null?`<setting-id>`:encodeURIComponent(String(t[`setting-id`]))}/${t.hostname==null?`<hostname>`:encodeURIComponent(String(t.hostname))}`,pathParams:{"zone-id":String(t.zone??t[`zone-id`]??``),"setting-id":String(t[`setting-id`]??``),hostname:String(t.hostname??``)},bodyKind:`none`});return}let o=await n(t),s=await e({zone:t.zone},o,{quiet:t.quiet});t.zoneId=s,r(await a(`Loading`,async()=>o.hostnames.settings.tlsSingle.get({zone_id:s,setting_id:t[`setting-id`],hostname:t.hostname})),{successLabel:`Loaded`})})},d={command:`tls-single`,describe:`Operations for settings.tls-single`,builder:e=>e.command(u).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function f(e){return e.usage(`$0 hostnames settings tls delete <hostname>
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-OKXweFsd.mjs";import{a as t,t as n}from"./context-Dzzbc9RK.mjs";import{r}from"./auth-B5p3SIhO.mjs";import{t as i}from"./output-CZt-berV.mjs";import{t as a}from"./dry-run-BmzTxDtZ.mjs";import{t as o}from"./progress-C9dWgc3J.mjs";import{t as s}from"./run-DK1d9BJz.mjs";import"./telemetry-C0k8vfbq.mjs";import{n as c,t as l}from"./body-parser-BpPZBRMr.mjs";import{n as u}from"./input-validation-D3e278L_.mjs";import{a as d,i as f,n as p}from"./prompt-Mh69ni1N.mjs";function m(e){return e.usage(`$0 hyperdrive create-database-signature <integration>
|
|
3
3
|
|
|
4
|
-
Returns a short-lived signed authorization for creating a database that is billed through Cloudflare. The caller passes these values to the integration partner's own CLI, which verifies the signature before creating the database. Requires the account to be entitled to Cloudflare-billed databases for the integration.`).positional(`integration`,{type:`string`,description:`The database integration to authorize against. This value is case-insensitive.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const h={command:`create-database-signature <integration>`,describe:`Create Database Signature`,builder:m,handler:async c=>s({command:`hyperdrive create-database-signature`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf hyperdrive create-database-signature`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
4
|
+
Returns a short-lived signed authorization for creating a database that is billed through Cloudflare. The caller passes these values to the integration partner's own CLI, which verifies the signature before creating the database. Requires the account to be entitled to Cloudflare-billed databases for the integration.`).positional(`integration`,{type:`string`,description:`The database integration to authorize against. This value is case-insensitive.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const h={command:`create-database-signature <integration>`,describe:`Create Database Signature`,builder:m,handler:async c=>s({command:`hyperdrive create-database-signature`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf hyperdrive create-database-signature`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/hyperdrive/integrationsOperations/${c.integration==null?`<integration>`:encodeURIComponent(String(c.integration))}/createDatabaseSignature`,pathParams:{integration:String(c.integration??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Creating`,async()=>s.hyperdrive.createDatabaseSignature({account_id:l,integration:c.integration})),{successLabel:`Created`})})};function g(e){return e.usage(`$0 hyperdrive create
|
|
5
5
|
|
|
6
6
|
Creates and returns a new Hyperdrive configuration. For a PlanetScale integration, the Cloudflare account must already be linked to PlanetScale in the Hyperdrive dashboard.`).option(`mtls-ca-certificate-id`,{type:`string`,description:`Define CA certificate ID obtained after uploading CA cert.`}).option(`mtls-mtls-certificate-id`,{type:`string`,description:`Define mTLS certificate ID obtained after uploading client cert.`}).option(`mtls-sslmode`,{type:`string`,description:"PostgreSQL accepts `require`, `verify-ca`, and `verify-full`. MySQL accepts `REQUIRED`, `VERIFY_CA`, and `VERIFY_IDENTITY`. The verify modes require a CA certificate; the require modes cannot be used with a CA certificate.",choices:[`require`,`verify-ca`,`verify-full`,`REQUIRED`,`VERIFY_CA`,`VERIFY_IDENTITY`]}).option(`name`,{type:`string`,description:`The name of the Hyperdrive configuration. Used to identify the configuration in the Cloudflare dashboard and API.`}).option(`origin-connection-limit`,{type:`number`,description:`The (soft) maximum number of connections the Hyperdrive is allowed to make to the origin database.
|
|
7
7
|
|
|
@@ -9,14 +9,14 @@ Maximum allowed: 20 for free tier accounts, 100 for paid tier accounts.
|
|
|
9
9
|
If not specified, defaults to 20 for free tier and 60 for paid tier.
|
|
10
10
|
Certain Cloudflare-managed origins may be permitted a higher limit.
|
|
11
11
|
Contact Cloudflare if you need a higher limit.
|
|
12
|
-
`}).option(`integration-custom-database-name`,{type:`string`,description:"The database name to use when connecting. Defaults to `postgres` for PostgreSQL and `mysql` for MySQL."}).option(`integration-database-branch-name`,{type:`string`,description:`The name of the PlanetScale database branch.`}).option(`integration-database-name`,{type:`string`,description:`The name of the PlanetScale database.`}).option(`integration-integration`,{type:`string`,description:`The database integration used by this operation.`,choices:[`planetscale`]}).option(`integration-organization-name`,{type:`string`,description:`The name of the PlanetScale organization.`}).option(`integration-scheme`,{type:`string`,description:`Specifies the URL scheme used to connect to your origin database.`,choices:[`postgres`,`postgresql`,`mysql`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`A request to create a Hyperdrive configuration using exactly one of caller-supplied origin credentials or a managed integration.`})}const _={command:`create`,describe:`Create Hyperdrive`,builder:g,handler:async f=>s({command:`hyperdrive create`,classification:{safeFlags:[`mtls-sslmode`,`integration-integration`,`integration-scheme`,`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf hyperdrive create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
12
|
+
`}).option(`integration-custom-database-name`,{type:`string`,description:"The database name to use when connecting. Defaults to `postgres` for PostgreSQL and `mysql` for MySQL."}).option(`integration-database-branch-name`,{type:`string`,description:`The name of the PlanetScale database branch.`}).option(`integration-database-name`,{type:`string`,description:`The name of the PlanetScale database.`}).option(`integration-integration`,{type:`string`,description:`The database integration used by this operation.`,choices:[`planetscale`]}).option(`integration-organization-name`,{type:`string`,description:`The name of the PlanetScale organization.`}).option(`integration-scheme`,{type:`string`,description:`Specifies the URL scheme used to connect to your origin database.`,choices:[`postgres`,`postgresql`,`mysql`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`A request to create a Hyperdrive configuration using exactly one of caller-supplied origin credentials or a managed integration.`})}const _={command:`create`,describe:`Create Hyperdrive`,builder:g,handler:async f=>s({command:`hyperdrive create`,classification:{safeFlags:[`mtls-sslmode`,`integration-integration`,`integration-scheme`,`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf hyperdrive create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/hyperdrive/configs`,pathParams:{},bodyKind:`json`,body:f.body===void 0?l({mtls:{ca_certificate_id:u(f[`mtls-ca-certificate-id`],`mtls-ca-certificate-id`,`text`),mtls_certificate_id:u(f[`mtls-mtls-certificate-id`],`mtls-mtls-certificate-id`,`text`),sslmode:u(f[`mtls-sslmode`],`mtls-sslmode`,`text`)},name:u(f.name,`name`,`text`),origin_connection_limit:f[`origin-connection-limit`],integration:{custom_database_name:u(f[`integration-custom-database-name`],`integration-custom-database-name`,`text`),database_branch_name:u(f[`integration-database-branch-name`],`integration-database-branch-name`,`text`),database_name:u(f[`integration-database-name`],`integration-database-name`,`text`),integration:u(f[`integration-integration`],`integration-integration`,`text`),organization_name:u(f[`integration-organization-name`],`integration-organization-name`,`text`),scheme:u(f[`integration-scheme`],`integration-scheme`,`text`)}}):c(f.body)});return}let s=await r(f),p=f.local?e:await n();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Creating`,async()=>s.hyperdrive.create({body:e,account_id:p})),{successLabel:`Created`});return}f.name===void 0&&(f.name=await d(`name`,`The name of the Hyperdrive configuration. Used to identify the configuration in the Cloudflare dashboard and API.`));let m=l({mtls:{ca_certificate_id:u(f[`mtls-ca-certificate-id`],`mtls-ca-certificate-id`,`text`),mtls_certificate_id:u(f[`mtls-mtls-certificate-id`],`mtls-mtls-certificate-id`,`text`),sslmode:u(f[`mtls-sslmode`],`mtls-sslmode`,`text`)},name:u(f.name,`name`,`text`),origin_connection_limit:f[`origin-connection-limit`],integration:{custom_database_name:u(f[`integration-custom-database-name`],`integration-custom-database-name`,`text`),database_branch_name:u(f[`integration-database-branch-name`],`integration-database-branch-name`,`text`),database_name:u(f[`integration-database-name`],`integration-database-name`,`text`),integration:u(f[`integration-integration`],`integration-integration`,`text`),organization_name:u(f[`integration-organization-name`],`integration-organization-name`,`text`),scheme:u(f[`integration-scheme`],`integration-scheme`,`text`)}});i(await o(`Creating`,async()=>s.hyperdrive.create({body:m,account_id:p})),{successLabel:`Created`})})};function v(e){return e.usage(`$0 hyperdrive delete <hyperdrive-id>
|
|
13
13
|
|
|
14
|
-
Deletes the specified Hyperdrive.`).positional(`hyperdrive-id`,{type:`string`,description:`The unique identifier of the Hyperdrive configuration.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const y={command:`delete <hyperdrive-id>`,describe:`Delete Hyperdrive`,builder:v,handler:async c=>s({command:`hyperdrive delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf hyperdrive delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
14
|
+
Deletes the specified Hyperdrive.`).positional(`hyperdrive-id`,{type:`string`,description:`The unique identifier of the Hyperdrive configuration.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const y={command:`delete <hyperdrive-id>`,describe:`Delete Hyperdrive`,builder:v,handler:async c=>s({command:`hyperdrive delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf hyperdrive delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/hyperdrive/configs/${c[`hyperdrive-id`]==null?`<hyperdrive-id>`:encodeURIComponent(String(c[`hyperdrive-id`]))}`,pathParams:{"hyperdrive-id":String(c[`hyperdrive-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();if(c.accountId=l,!await p({force:!!c.force,message:`This operation deletes an existing Hyperdrive configuration.`})){process.stderr.write(`Aborted.
|
|
15
15
|
`);return}i(await o(`Deleting`,async()=>s.hyperdrive.delete({account_id:l,hyperdrive_id:c[`hyperdrive-id`]})),{successLabel:`Deleted`})})};function b(e){return e.usage(`$0 hyperdrive get <hyperdrive-id>
|
|
16
16
|
|
|
17
|
-
Returns the specified Hyperdrive configuration.`).positional(`hyperdrive-id`,{type:`string`,description:`The unique identifier of the Hyperdrive configuration.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`get <hyperdrive-id>`,describe:`Get Hyperdrive`,builder:b,handler:async c=>s({command:`hyperdrive get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf hyperdrive get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
17
|
+
Returns the specified Hyperdrive configuration.`).positional(`hyperdrive-id`,{type:`string`,description:`The unique identifier of the Hyperdrive configuration.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`get <hyperdrive-id>`,describe:`Get Hyperdrive`,builder:b,handler:async c=>s({command:`hyperdrive get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf hyperdrive get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/hyperdrive/configs/${c[`hyperdrive-id`]==null?`<hyperdrive-id>`:encodeURIComponent(String(c[`hyperdrive-id`]))}`,pathParams:{"hyperdrive-id":String(c[`hyperdrive-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.hyperdrive.get({account_id:l,hyperdrive_id:c[`hyperdrive-id`]})),{successLabel:`Loaded`})})};function S(e){return e.usage(`$0 hyperdrive list
|
|
18
18
|
|
|
19
|
-
Returns a list of Hyperdrives.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const C={command:`list`,describe:`List Hyperdrives`,builder:S,handler:async c=>s({command:`hyperdrive list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`]};if(c.dryRun){a({command:`cf hyperdrive list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
19
|
+
Returns a list of Hyperdrives.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const C={command:`list`,describe:`List Hyperdrives`,builder:S,handler:async c=>s({command:`hyperdrive list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`]};if(c.dryRun){a({command:`cf hyperdrive list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/hyperdrive/configs`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.hyperdrive.list({account_id:u,...s})),{successLabel:`Loaded`})})};function w(e){return e.usage(`$0 hyperdrive replace <hyperdrive-id>
|
|
20
20
|
|
|
21
21
|
Replaces and returns the specified Hyperdrive configuration. The request must include the name and complete origin connection details. Omitted caching settings are reset to their defaults, while omitted mTLS settings and origin connection limits are preserved. Use the update operation to modify only selected fields.`).positional(`hyperdrive-id`,{type:`string`,description:`The unique identifier of the Hyperdrive configuration.`,demandOption:!0}).option(`caching-disabled`,{type:`boolean`,description:`Set to true to disable caching of SQL responses. Default is false.`}).option(`caching-max-age`,{type:`number`,description:`Specify the maximum duration (in seconds) items should persist in the cache. Defaults to 60 seconds if not specified.`}).option(`caching-stale-while-revalidate`,{type:`number`,description:`Specify the number of seconds the cache may serve a stale response. Defaults to 15 seconds if not specified.`}).option(`mtls-ca-certificate-id`,{type:`string`,description:`Define CA certificate ID obtained after uploading CA cert.`}).option(`mtls-mtls-certificate-id`,{type:`string`,description:`Define mTLS certificate ID obtained after uploading client cert.`}).option(`mtls-sslmode`,{type:`string`,description:"PostgreSQL accepts `require`, `verify-ca`, and `verify-full`. MySQL accepts `REQUIRED`, `VERIFY_CA`, and `VERIFY_IDENTITY`. The verify modes require a CA certificate; the require modes cannot be used with a CA certificate.",choices:[`require`,`verify-ca`,`verify-full`,`REQUIRED`,`VERIFY_CA`,`VERIFY_IDENTITY`]}).option(`name`,{type:`string`,description:`The name of the Hyperdrive configuration. Used to identify the configuration in the Cloudflare dashboard and API.`}).option(`origin-database`,{type:`string`,description:`Set the name of your origin database.`}).option(`origin-password`,{type:`string`,description:`Set the password needed to access your origin database. The API never returns this write-only value.`}).option(`origin-scheme`,{type:`string`,description:`Specifies the URL scheme used to connect to your origin database.`,choices:[`postgres`,`postgresql`,`mysql`]}).option(`origin-user`,{type:`string`,description:`Set the user of your origin database.`}).option(`origin-host`,{type:`string`,description:`Defines the publicly reachable hostname or IP of your origin database. Private, loopback, and link-local IP addresses are not allowed.`}).option(`origin-port`,{type:`number`,description:`Defines the port of your origin database. Defaults to 5432 for PostgreSQL or 3306 for MySQL if not specified.`}).option(`origin-access-client-id`,{type:`string`,description:`Defines the Client ID of the Access token to use when connecting to the origin database.`}).option(`origin-access-client-secret`,{type:`string`,description:`Defines the Client Secret of the Access Token to use when connecting to the origin database. The API never returns this write-only value.`}).option(`origin-service-id`,{type:`string`,description:`The identifier of the Workers VPC Service to connect through. Hyperdrive will egress through the specified VPC Service to reach the origin database.`}).option(`origin-connection-limit`,{type:`number`,description:`The (soft) maximum number of connections the Hyperdrive is allowed to make to the origin database.
|
|
22
22
|
|
|
@@ -24,9 +24,9 @@ Maximum allowed: 20 for free tier accounts, 100 for paid tier accounts.
|
|
|
24
24
|
If not specified, defaults to 20 for free tier and 60 for paid tier.
|
|
25
25
|
Certain Cloudflare-managed origins may be permitted a higher limit.
|
|
26
26
|
Contact Cloudflare if you need a higher limit.
|
|
27
|
-
`}).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)`}).conflicts(`origin-host`,[`origin-service-id`]).conflicts(`origin-port`,[`origin-access-client-id`,`origin-access-client-secret`,`origin-service-id`]).implies(`origin-port`,[`origin-host`]).conflicts(`origin-access-client-id`,[`origin-port`,`origin-service-id`]).implies(`origin-access-client-id`,[`origin-host`,`origin-access-client-secret`]).conflicts(`origin-access-client-secret`,[`origin-port`,`origin-service-id`]).implies(`origin-access-client-secret`,[`origin-host`,`origin-access-client-id`]).conflicts(`origin-service-id`,[`origin-host`,`origin-port`,`origin-access-client-id`,`origin-access-client-secret`])}const T={command:`replace <hyperdrive-id>`,describe:`Replace Hyperdrive`,builder:w,handler:async p=>s({command:`hyperdrive replace`,classification:{safeFlags:[`caching-disabled`,`mtls-sslmode`,`origin-scheme`,`dry-run`]}},p,async()=>{if(p.dryRun){a({command:`cf hyperdrive replace`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
27
|
+
`}).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)`}).conflicts(`origin-host`,[`origin-service-id`]).conflicts(`origin-port`,[`origin-access-client-id`,`origin-access-client-secret`,`origin-service-id`]).implies(`origin-port`,[`origin-host`]).conflicts(`origin-access-client-id`,[`origin-port`,`origin-service-id`]).implies(`origin-access-client-id`,[`origin-host`,`origin-access-client-secret`]).conflicts(`origin-access-client-secret`,[`origin-port`,`origin-service-id`]).implies(`origin-access-client-secret`,[`origin-host`,`origin-access-client-id`]).conflicts(`origin-service-id`,[`origin-host`,`origin-port`,`origin-access-client-id`,`origin-access-client-secret`])}const T={command:`replace <hyperdrive-id>`,describe:`Replace Hyperdrive`,builder:w,handler:async p=>s({command:`hyperdrive replace`,classification:{safeFlags:[`caching-disabled`,`mtls-sslmode`,`origin-scheme`,`dry-run`]}},p,async()=>{if(p.dryRun){a({command:`cf hyperdrive replace`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/hyperdrive/configs/${p[`hyperdrive-id`]==null?`<hyperdrive-id>`:encodeURIComponent(String(p[`hyperdrive-id`]))}`,pathParams:{"hyperdrive-id":String(p[`hyperdrive-id`]??``)},bodyKind:`json`,body:p.body===void 0?l({caching:{disabled:p[`caching-disabled`],max_age:p[`caching-max-age`],stale_while_revalidate:p[`caching-stale-while-revalidate`]},mtls:{ca_certificate_id:u(p[`mtls-ca-certificate-id`],`mtls-ca-certificate-id`,`text`),mtls_certificate_id:u(p[`mtls-mtls-certificate-id`],`mtls-mtls-certificate-id`,`text`),sslmode:u(p[`mtls-sslmode`],`mtls-sslmode`,`text`)},name:u(p.name,`name`,`text`),origin:{database:u(p[`origin-database`],`origin-database`,`text`),password:u(p[`origin-password`],`origin-password`,`text`),scheme:u(p[`origin-scheme`],`origin-scheme`,`text`),user:u(p[`origin-user`],`origin-user`,`text`),host:u(p[`origin-host`],`origin-host`,`text`),port:p[`origin-port`],access_client_id:u(p[`origin-access-client-id`],`origin-access-client-id`,`text`),access_client_secret:u(p[`origin-access-client-secret`],`origin-access-client-secret`,`text`),service_id:u(p[`origin-service-id`],`origin-service-id`,`text`)},origin_connection_limit:p[`origin-connection-limit`]}):c(p.body)});return}let s=await r(p),m=p.local?e:await n();if(p.accountId=m,p.body){let e=c(p.body);i(await o(`Updating`,async()=>s.hyperdrive.replace({...e,account_id:m,hyperdrive_id:p[`hyperdrive-id`]})),{successLabel:`Updated`});return}p.name===void 0&&(p.name=await d(`name`,`The name of the Hyperdrive configuration. Used to identify the configuration in the Cloudflare dashboard and API.`)),p[`origin-database`]===void 0&&(p[`origin-database`]=await d(`origin-database`,`Set the name of your origin database.`)),p[`origin-password`]===void 0&&(p[`origin-password`]=await d(`origin-password`,`Set the password needed to access your origin database. The API never returns this write-only value.`,{kind:`secret`})),p[`origin-scheme`]===void 0&&(p[`origin-scheme`]=await f(`origin-scheme`,`Specifies the URL scheme used to connect to your origin database.`,[`postgres`,`postgresql`,`mysql`])),p[`origin-user`]===void 0&&(p[`origin-user`]=await d(`origin-user`,`Set the user of your origin database.`));let h=l({caching:{disabled:p[`caching-disabled`],max_age:p[`caching-max-age`],stale_while_revalidate:p[`caching-stale-while-revalidate`]},mtls:{ca_certificate_id:u(p[`mtls-ca-certificate-id`],`mtls-ca-certificate-id`,`text`),mtls_certificate_id:u(p[`mtls-mtls-certificate-id`],`mtls-mtls-certificate-id`,`text`),sslmode:u(p[`mtls-sslmode`],`mtls-sslmode`,`text`)},name:u(p.name,`name`,`text`),origin:{database:u(p[`origin-database`],`origin-database`,`text`),password:u(p[`origin-password`],`origin-password`,`text`),scheme:u(p[`origin-scheme`],`origin-scheme`,`text`),user:u(p[`origin-user`],`origin-user`,`text`),host:u(p[`origin-host`],`origin-host`,`text`),port:p[`origin-port`],access_client_id:u(p[`origin-access-client-id`],`origin-access-client-id`,`text`),access_client_secret:u(p[`origin-access-client-secret`],`origin-access-client-secret`,`text`),service_id:u(p[`origin-service-id`],`origin-service-id`,`text`)},origin_connection_limit:p[`origin-connection-limit`]});i(await o(`Updating`,async()=>s.hyperdrive.replace({...h,account_id:m,hyperdrive_id:p[`hyperdrive-id`]})),{successLabel:`Updated`})})};function E(e){return e.usage(`$0 hyperdrive restart <hyperdrive-id>
|
|
28
28
|
|
|
29
|
-
Restarts the connection pool for the specified Hyperdrive configuration without changing its configuration. Existing connections are drained and a new pool is established at the edge.`).positional(`hyperdrive-id`,{type:`string`,description:`The unique identifier of the Hyperdrive configuration.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const D={command:`restart <hyperdrive-id>`,describe:`Restart Hyperdrive`,builder:E,handler:async c=>s({command:`hyperdrive restart`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf hyperdrive restart`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
29
|
+
Restarts the connection pool for the specified Hyperdrive configuration without changing its configuration. Existing connections are drained and a new pool is established at the edge.`).positional(`hyperdrive-id`,{type:`string`,description:`The unique identifier of the Hyperdrive configuration.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const D={command:`restart <hyperdrive-id>`,describe:`Restart Hyperdrive`,builder:E,handler:async c=>s({command:`hyperdrive restart`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf hyperdrive restart`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/hyperdrive/configs/${c[`hyperdrive-id`]==null?`<hyperdrive-id>`:encodeURIComponent(String(c[`hyperdrive-id`]))}/restart`,pathParams:{"hyperdrive-id":String(c[`hyperdrive-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Creating`,async()=>s.hyperdrive.restart({account_id:l,hyperdrive_id:c[`hyperdrive-id`]})),{successLabel:`Created`})})};function O(e){return e.usage(`$0 hyperdrive update <hyperdrive-id>
|
|
30
30
|
|
|
31
31
|
Updates and returns the specified fields of the Hyperdrive configuration. Custom caching settings are not kept if caching is disabled.`).positional(`hyperdrive-id`,{type:`string`,description:`The unique identifier of the Hyperdrive configuration.`,demandOption:!0}).option(`caching-disabled`,{type:`boolean`,description:`Set to true to disable caching of SQL responses. Default is false.`}).option(`caching-max-age`,{type:`number`,description:`Specify the maximum duration (in seconds) items should persist in the cache. Defaults to 60 seconds if not specified.`}).option(`caching-stale-while-revalidate`,{type:`number`,description:`Specify the number of seconds the cache may serve a stale response. Defaults to 15 seconds if not specified.`}).option(`mtls-ca-certificate-id`,{type:`string`,description:`Define CA certificate ID obtained after uploading CA cert.`}).option(`mtls-mtls-certificate-id`,{type:`string`,description:`Define mTLS certificate ID obtained after uploading client cert.`}).option(`mtls-sslmode`,{type:`string`,description:"PostgreSQL accepts `require`, `verify-ca`, and `verify-full`. MySQL accepts `REQUIRED`, `VERIFY_CA`, and `VERIFY_IDENTITY`. The verify modes require a CA certificate; the require modes cannot be used with a CA certificate.",choices:[`require`,`verify-ca`,`verify-full`,`REQUIRED`,`VERIFY_CA`,`VERIFY_IDENTITY`]}).option(`name`,{type:`string`,description:`The name of the Hyperdrive configuration. Used to identify the configuration in the Cloudflare dashboard and API. An empty value leaves the name unchanged.`}).option(`origin-connection-limit`,{type:`number`,description:`The (soft) maximum number of connections the Hyperdrive is allowed to make to the origin database.
|
|
32
32
|
|
|
@@ -34,4 +34,4 @@ Maximum allowed: 20 for free tier accounts, 100 for paid tier accounts.
|
|
|
34
34
|
If not specified, defaults to 20 for free tier and 60 for paid tier.
|
|
35
35
|
Certain Cloudflare-managed origins may be permitted a higher limit.
|
|
36
36
|
Contact Cloudflare if you need a higher limit.
|
|
37
|
-
`}).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 k={command:`update <hyperdrive-id>`,describe:`Update Hyperdrive`,builder:O,handler:async d=>s({command:`hyperdrive update`,classification:{safeFlags:[`caching-disabled`,`mtls-sslmode`,`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf hyperdrive update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
37
|
+
`}).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 k={command:`update <hyperdrive-id>`,describe:`Update Hyperdrive`,builder:O,handler:async d=>s({command:`hyperdrive update`,classification:{safeFlags:[`caching-disabled`,`mtls-sslmode`,`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf hyperdrive update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/hyperdrive/configs/${d[`hyperdrive-id`]==null?`<hyperdrive-id>`:encodeURIComponent(String(d[`hyperdrive-id`]))}`,pathParams:{"hyperdrive-id":String(d[`hyperdrive-id`]??``)},bodyKind:`json`,body:d.body===void 0?l({caching:{disabled:d[`caching-disabled`],max_age:d[`caching-max-age`],stale_while_revalidate:d[`caching-stale-while-revalidate`]},mtls:{ca_certificate_id:u(d[`mtls-ca-certificate-id`],`mtls-ca-certificate-id`,`text`),mtls_certificate_id:u(d[`mtls-mtls-certificate-id`],`mtls-mtls-certificate-id`,`text`),sslmode:u(d[`mtls-sslmode`],`mtls-sslmode`,`text`)},name:u(d.name,`name`,`text`),origin_connection_limit:d[`origin-connection-limit`]}):c(d.body)});return}let s=await r(d),f=d.local?e:await n();if(d.accountId=f,d.body){let e=c(d.body);i(await o(`Updating`,async()=>s.hyperdrive.update({...e,account_id:f,hyperdrive_id:d[`hyperdrive-id`]})),{successLabel:`Updated`});return}let p=l({caching:{disabled:d[`caching-disabled`],max_age:d[`caching-max-age`],stale_while_revalidate:d[`caching-stale-while-revalidate`]},mtls:{ca_certificate_id:u(d[`mtls-ca-certificate-id`],`mtls-ca-certificate-id`,`text`),mtls_certificate_id:u(d[`mtls-mtls-certificate-id`],`mtls-mtls-certificate-id`,`text`),sslmode:u(d[`mtls-sslmode`],`mtls-sslmode`,`text`)},name:u(d.name,`name`,`text`),origin_connection_limit:d[`origin-connection-limit`]});i(await o(`Updating`,async()=>s.hyperdrive.update({...p,account_id:f,hyperdrive_id:d[`hyperdrive-id`]})),{successLabel:`Updated`})})},A={command:`hyperdrive`,describe:`Accelerate access to existing databases by caching queries and pooling connections at the edge`,builder:e=>e.command(_).command(h).command(y).command(x).command(C).command(T).command(D).command(k).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{A as default};
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-OKXweFsd.mjs";import{a as t,t as n}from"./context-Dzzbc9RK.mjs";import{r}from"./auth-B5p3SIhO.mjs";import{t as i}from"./output-CZt-berV.mjs";import{t as a}from"./dry-run-BmzTxDtZ.mjs";import{t as o}from"./progress-C9dWgc3J.mjs";import{t as s}from"./run-DK1d9BJz.mjs";import"./telemetry-C0k8vfbq.mjs";import{n as c,r as l,t as u}from"./body-parser-BpPZBRMr.mjs";import{n as d}from"./input-validation-D3e278L_.mjs";import{a as f,n as p}from"./prompt-Mh69ni1N.mjs";import{t as m}from"./cli-types-B6tm-8uL.mjs";function h(e){return e.usage(`$0 iam permission-groups get <permission-group-id>
|
|
3
3
|
|
|
4
|
-
Get information about a specific permission group in an account.`).positional(`permission-group-id`,{type:`string`,description:`Permission Group identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ee={command:`get <permission-group-id>`,describe:`Permission Group Details`,builder:h,handler:async c=>s({command:`iam permission-groups get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf iam permission-groups get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
4
|
+
Get information about a specific permission group in an account.`).positional(`permission-group-id`,{type:`string`,description:`Permission Group identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ee={command:`get <permission-group-id>`,describe:`Permission Group Details`,builder:h,handler:async c=>s({command:`iam permission-groups get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf iam permission-groups get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/iam/permission_groups/${c[`permission-group-id`]==null?`<permission-group-id>`:encodeURIComponent(String(c[`permission-group-id`]))}`,pathParams:{"permission-group-id":String(c[`permission-group-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.iam.permissionGroups.get({account_id:l,permission_group_id:c[`permission-group-id`]})),{successLabel:`Loaded`})})};function g(e){return e.usage(`$0 iam permission-groups list
|
|
5
5
|
|
|
6
|
-
List all the permissions groups for an account.`).option(`id`,{type:`string`,description:`ID of the permission group to be fetched.`}).option(`name`,{type:`string`,description:`Name of the permission group to be fetched.`}).option(`label`,{type:`string`,description:`Label of the permission group to be fetched.`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _={command:`list`,describe:`List Account Permission Groups`,builder:g,handler:async c=>s({command:`iam permission-groups list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={id:c.id,name:c.name,label:c.label,page:c.page,per_page:c[`per-page`]};if(c.dryRun){a({command:`cf iam permission-groups list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
6
|
+
List all the permissions groups for an account.`).option(`id`,{type:`string`,description:`ID of the permission group to be fetched.`}).option(`name`,{type:`string`,description:`Name of the permission group to be fetched.`}).option(`label`,{type:`string`,description:`Label of the permission group to be fetched.`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _={command:`list`,describe:`List Account Permission Groups`,builder:g,handler:async c=>s({command:`iam permission-groups list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={id:c.id,name:c.name,label:c.label,page:c.page,per_page:c[`per-page`]};if(c.dryRun){a({command:`cf iam permission-groups list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/iam/permission_groups`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.iam.permissionGroups.list({account_id:u,...s})),{successLabel:`Loaded`})})},v={command:`permission-groups`,describe:`View the permission groups that can be assigned to API tokens and policies`,builder:e=>e.command(ee).command(_).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function y(e){return e.usage(`$0 iam resource-groups create
|
|
7
7
|
|
|
8
|
-
Create a new Resource Group under the specified account.`).option(`name`,{type:`string`,description:`Name of the resource group`}).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 b={command:`create`,describe:`Create Resource Group`,builder:y,handler:async l=>s({command:`iam resource-groups create`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf iam resource-groups create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
8
|
+
Create a new Resource Group under the specified account.`).option(`name`,{type:`string`,description:`Name of the resource group`}).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 b={command:`create`,describe:`Create Resource Group`,builder:y,handler:async l=>s({command:`iam resource-groups create`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf iam resource-groups create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/iam/resource_groups`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({name:d(l.name,`name`,`text`)}):c(l.body)});return}let s=await r(l),p=l.local?e:await n();if(l.accountId=p,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.iam.resourceGroups.create({...e,account_id:p})),{successLabel:`Created`});return}l.name===void 0&&(l.name=await f(`name`,`Name of the resource group`));let m=u({name:d(l.name,`name`,`text`)});i(await o(`Creating`,async()=>s.iam.resourceGroups.create({...m,account_id:p})),{successLabel:`Created`})})};function x(e){return e.usage(`$0 iam resource-groups delete <resource-group-id>
|
|
9
9
|
|
|
10
|
-
Remove a resource group from an account.`).positional(`resource-group-id`,{type:`string`,description:`Resource Group 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 S={command:`delete <resource-group-id>`,describe:`Remove Resource Group`,builder:x,handler:async c=>s({command:`iam resource-groups delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf iam resource-groups delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
10
|
+
Remove a resource group from an account.`).positional(`resource-group-id`,{type:`string`,description:`Resource Group 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 S={command:`delete <resource-group-id>`,describe:`Remove Resource Group`,builder:x,handler:async c=>s({command:`iam resource-groups delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf iam resource-groups delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/iam/resource_groups/${c[`resource-group-id`]==null?`<resource-group-id>`:encodeURIComponent(String(c[`resource-group-id`]))}`,pathParams:{"resource-group-id":String(c[`resource-group-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();if(c.accountId=l,!await p({force:!!c.force,message:`Are you sure? This action cannot be undone.`})){process.stderr.write(`Aborted.
|
|
11
11
|
`);return}i(await o(`Deleting`,async()=>s.iam.resourceGroups.delete({account_id:l,resource_group_id:c[`resource-group-id`]})),{successLabel:`Deleted`})})};function C(e){return e.usage(`$0 iam resource-groups get <resource-group-id>
|
|
12
12
|
|
|
13
|
-
Get information about a specific resource group in an account.`).positional(`resource-group-id`,{type:`string`,description:`Resource Group identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const w={command:`get <resource-group-id>`,describe:`Resource Group Details`,builder:C,handler:async c=>s({command:`iam resource-groups get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf iam resource-groups get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
13
|
+
Get information about a specific resource group in an account.`).positional(`resource-group-id`,{type:`string`,description:`Resource Group identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const w={command:`get <resource-group-id>`,describe:`Resource Group Details`,builder:C,handler:async c=>s({command:`iam resource-groups get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf iam resource-groups get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/iam/resource_groups/${c[`resource-group-id`]==null?`<resource-group-id>`:encodeURIComponent(String(c[`resource-group-id`]))}`,pathParams:{"resource-group-id":String(c[`resource-group-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.iam.resourceGroups.get({account_id:l,resource_group_id:c[`resource-group-id`]})),{successLabel:`Loaded`})})};function T(e){return e.usage(`$0 iam resource-groups list
|
|
14
14
|
|
|
15
|
-
List all the resource groups for an account.`).option(`id`,{type:`string`,description:`ID of the resource group to be fetched.`}).option(`name`,{type:`string`,description:`Name of the resource group to be fetched.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`list`,describe:`List Resource Groups`,builder:T,handler:async c=>s({command:`iam resource-groups list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={id:c.id,name:c.name};if(c.dryRun){a({command:`cf iam resource-groups list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
15
|
+
List all the resource groups for an account.`).option(`id`,{type:`string`,description:`ID of the resource group to be fetched.`}).option(`name`,{type:`string`,description:`Name of the resource group to be fetched.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`list`,describe:`List Resource Groups`,builder:T,handler:async c=>s({command:`iam resource-groups list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={id:c.id,name:c.name};if(c.dryRun){a({command:`cf iam resource-groups list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/iam/resource_groups`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.iam.resourceGroups.list({account_id:u,...s})),{successLabel:`Loaded`})})};function D(e){return e.usage(`$0 iam resource-groups update <resource-group-id>
|
|
16
16
|
|
|
17
|
-
Modify an existing resource group.`).positional(`resource-group-id`,{type:`string`,description:`Resource Group identifier tag.`,demandOption:!0}).option(`name`,{type:`string`,description:`Name of the resource group`}).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 O={command:`update <resource-group-id>`,describe:`Update Resource Group`,builder:D,handler:async l=>s({command:`iam resource-groups update`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf iam resource-groups update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
17
|
+
Modify an existing resource group.`).positional(`resource-group-id`,{type:`string`,description:`Resource Group identifier tag.`,demandOption:!0}).option(`name`,{type:`string`,description:`Name of the resource group`}).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 O={command:`update <resource-group-id>`,describe:`Update Resource Group`,builder:D,handler:async l=>s({command:`iam resource-groups update`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf iam resource-groups update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/iam/resource_groups/${l[`resource-group-id`]==null?`<resource-group-id>`:encodeURIComponent(String(l[`resource-group-id`]))}`,pathParams:{"resource-group-id":String(l[`resource-group-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({name:d(l.name,`name`,`text`)}):c(l.body)});return}let s=await r(l),f=l.local?e:await n();if(l.accountId=f,l.body){let e=c(l.body);i(await o(`Updating`,async()=>s.iam.resourceGroups.update({...e,account_id:f,resource_group_id:l[`resource-group-id`]})),{successLabel:`Updated`});return}let p=u({name:d(l.name,`name`,`text`)});i(await o(`Updating`,async()=>s.iam.resourceGroups.update({...p,account_id:f,resource_group_id:l[`resource-group-id`]})),{successLabel:`Updated`})})},k={command:`resource-groups`,describe:`Define scopes that limit which account resources a policy or token can access`,builder:e=>e.command(b).command(S).command(w).command(E).command(O).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function A(e){return e.usage(`$0 iam sso begin-verification <sso-connector-id>
|
|
18
18
|
|
|
19
|
-
Validates the user has added the DNS TXT record required for validating ownership of the domain they are trying to set up a connector for.`).positional(`sso-connector-id`,{type:`string`,description:`SSO Connector identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const j={command:`begin-verification <sso-connector-id>`,describe:`Begin SSO connector verification`,builder:A,handler:async c=>s({command:`iam sso begin-verification`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf iam sso begin-verification`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
19
|
+
Validates the user has added the DNS TXT record required for validating ownership of the domain they are trying to set up a connector for.`).positional(`sso-connector-id`,{type:`string`,description:`SSO Connector identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const j={command:`begin-verification <sso-connector-id>`,describe:`Begin SSO connector verification`,builder:A,handler:async c=>s({command:`iam sso begin-verification`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf iam sso begin-verification`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/sso_connectors/${c[`sso-connector-id`]==null?`<sso-connector-id>`:encodeURIComponent(String(c[`sso-connector-id`]))}/begin_verification`,pathParams:{"sso-connector-id":String(c[`sso-connector-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Creating`,async()=>s.iam.sso.beginVerification({account_id:l,sso_connector_id:c[`sso-connector-id`]})),{successLabel:`Created`})})};function M(e){return e.usage(`$0 iam sso create
|
|
20
20
|
|
|
21
|
-
Creates a new SSO connector for logging into Cloudflare through an identity provider.`).option(`begin-verification`,{type:`boolean`,description:`Begin the verification process after creation`,default:!0}).option(`email-domain`,{type:`string`,description:`Email domain of the new SSO connector`}).option(`use-fedramp-language`,{type:`boolean`,description:`Controls the display of FedRAMP language to the user during SSO login`,default:!1}).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:`create`,describe:`Initialize new SSO connector`,builder:M,handler:async l=>s({command:`iam sso create`,classification:{safeFlags:[`begin-verification`,`use-fedramp-language`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf iam sso create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
21
|
+
Creates a new SSO connector for logging into Cloudflare through an identity provider.`).option(`begin-verification`,{type:`boolean`,description:`Begin the verification process after creation`,default:!0}).option(`email-domain`,{type:`string`,description:`Email domain of the new SSO connector`}).option(`use-fedramp-language`,{type:`boolean`,description:`Controls the display of FedRAMP language to the user during SSO login`,default:!1}).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:`create`,describe:`Initialize new SSO connector`,builder:M,handler:async l=>s({command:`iam sso create`,classification:{safeFlags:[`begin-verification`,`use-fedramp-language`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf iam sso create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/sso_connectors`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({begin_verification:l[`begin-verification`],email_domain:d(l[`email-domain`],`email-domain`,`text`),use_fedramp_language:l[`use-fedramp-language`]}):c(l.body)});return}let s=await r(l),p=l.local?e:await n();if(l.accountId=p,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.iam.sso.create({...e,account_id:p})),{successLabel:`Created`});return}l[`email-domain`]===void 0&&(l[`email-domain`]=await f(`email-domain`,`Email domain of the new SSO connector`));let m=u({begin_verification:l[`begin-verification`],email_domain:d(l[`email-domain`],`email-domain`,`text`),use_fedramp_language:l[`use-fedramp-language`]});i(await o(`Creating`,async()=>s.iam.sso.create({...m,account_id:p})),{successLabel:`Created`})})};function P(e){return e.usage(`$0 iam sso delete <sso-connector-id>
|
|
22
22
|
|
|
23
|
-
Deletes an SSO connector from the account.`).positional(`sso-connector-id`,{type:`string`,description:`SSO Connector 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 F={command:`delete <sso-connector-id>`,describe:`Delete SSO connector`,builder:P,handler:async c=>s({command:`iam sso delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf iam sso delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
23
|
+
Deletes an SSO connector from the account.`).positional(`sso-connector-id`,{type:`string`,description:`SSO Connector 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 F={command:`delete <sso-connector-id>`,describe:`Delete SSO connector`,builder:P,handler:async c=>s({command:`iam sso delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf iam sso delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/sso_connectors/${c[`sso-connector-id`]==null?`<sso-connector-id>`:encodeURIComponent(String(c[`sso-connector-id`]))}`,pathParams:{"sso-connector-id":String(c[`sso-connector-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();if(c.accountId=l,!await p({force:!!c.force,message:`Are you sure? This action cannot be undone.`})){process.stderr.write(`Aborted.
|
|
24
24
|
`);return}i(await o(`Deleting`,async()=>s.iam.sso.delete({account_id:l,sso_connector_id:c[`sso-connector-id`]})),{successLabel:`Deleted`})})};function I(e){return e.usage(`$0 iam sso get <sso-connector-id>
|
|
25
25
|
|
|
26
|
-
Retrieves details for a specific SSO connector.`).positional(`sso-connector-id`,{type:`string`,description:`SSO Connector identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const L={command:`get <sso-connector-id>`,describe:`Get single SSO connector`,builder:I,handler:async c=>s({command:`iam sso get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf iam sso get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
26
|
+
Retrieves details for a specific SSO connector.`).positional(`sso-connector-id`,{type:`string`,description:`SSO Connector identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const L={command:`get <sso-connector-id>`,describe:`Get single SSO connector`,builder:I,handler:async c=>s({command:`iam sso get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf iam sso get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/sso_connectors/${c[`sso-connector-id`]==null?`<sso-connector-id>`:encodeURIComponent(String(c[`sso-connector-id`]))}`,pathParams:{"sso-connector-id":String(c[`sso-connector-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.iam.sso.get({account_id:l,sso_connector_id:c[`sso-connector-id`]})),{successLabel:`Loaded`})})};function R(e){return e.usage(`$0 iam sso list
|
|
27
27
|
|
|
28
|
-
Lists all SSO connectors configured for the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const z={command:`list`,describe:`Get all SSO connectors`,builder:R,handler:async c=>s({command:`iam sso list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf iam sso list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
28
|
+
Lists all SSO connectors configured for the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const z={command:`list`,describe:`Get all SSO connectors`,builder:R,handler:async c=>s({command:`iam sso list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf iam sso list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/sso_connectors`,pathParams:{},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.iam.sso.list({account_id:l})),{successLabel:`Loaded`})})};function te(e){return e.usage(`$0 iam sso update <sso-connector-id>
|
|
29
29
|
|
|
30
|
-
Updates the state or configuration of an SSO connector.`).positional(`sso-connector-id`,{type:`string`,description:`SSO Connector identifier tag.`,demandOption:!0}).option(`enabled`,{type:`boolean`,description:`SSO Connector enabled state`}).option(`use-fedramp-language`,{type:`boolean`,description:`Controls the display of FedRAMP language to the user during SSO login`}).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 B={command:`update <sso-connector-id>`,describe:`Update SSO connector state`,builder:te,handler:async l=>s({command:`iam sso update`,classification:{safeFlags:[`enabled`,`use-fedramp-language`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf iam sso update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
30
|
+
Updates the state or configuration of an SSO connector.`).positional(`sso-connector-id`,{type:`string`,description:`SSO Connector identifier tag.`,demandOption:!0}).option(`enabled`,{type:`boolean`,description:`SSO Connector enabled state`}).option(`use-fedramp-language`,{type:`boolean`,description:`Controls the display of FedRAMP language to the user during SSO login`}).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 B={command:`update <sso-connector-id>`,describe:`Update SSO connector state`,builder:te,handler:async l=>s({command:`iam sso update`,classification:{safeFlags:[`enabled`,`use-fedramp-language`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf iam sso update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/sso_connectors/${l[`sso-connector-id`]==null?`<sso-connector-id>`:encodeURIComponent(String(l[`sso-connector-id`]))}`,pathParams:{"sso-connector-id":String(l[`sso-connector-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({enabled:l.enabled,use_fedramp_language:l[`use-fedramp-language`]}):c(l.body)});return}let s=await r(l),d=l.local?e:await n();if(l.accountId=d,l.body){let e=c(l.body);i(await o(`Updating`,async()=>s.iam.sso.update({...e,account_id:d,sso_connector_id:l[`sso-connector-id`]})),{successLabel:`Updated`});return}let f=u({enabled:l.enabled,use_fedramp_language:l[`use-fedramp-language`]});i(await o(`Updating`,async()=>s.iam.sso.update({...f,account_id:d,sso_connector_id:l[`sso-connector-id`]})),{successLabel:`Updated`})})},V={command:`sso`,describe:`Configure single sign-on connectors to authenticate account members through an external identity provider`,builder:e=>e.command(j).command(N).command(F).command(L).command(z).command(B).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function H(e){return e.usage(`$0 iam user-groups create
|
|
31
31
|
|
|
32
|
-
Create a new user group under the specified account.`).option(`name`,{type:`string`,description:`Name of the User group.`}).option(`policies`,{type:`string`,description:`Policies attached to the User group. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const U={command:`create`,describe:`Create User Group`,builder:H,handler:async p=>s({command:`iam user-groups create`,classification:{safeFlags:[`dry-run`]}},p,async()=>{if(p.dryRun){a({command:`cf iam user-groups create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
32
|
+
Create a new user group under the specified account.`).option(`name`,{type:`string`,description:`Name of the User group.`}).option(`policies`,{type:`string`,description:`Policies attached to the User group. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const U={command:`create`,describe:`Create User Group`,builder:H,handler:async p=>s({command:`iam user-groups create`,classification:{safeFlags:[`dry-run`]}},p,async()=>{if(p.dryRun){a({command:`cf iam user-groups create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/iam/user_groups`,pathParams:{},bodyKind:`json`,body:p.body===void 0?u({name:d(p.name,`name`,`text`),policies:l(p.policies,`policies`)}):c(p.body)});return}let s=await r(p),m=p.local?e:await n();if(p.accountId=m,p.body){let e=c(p.body);i(await o(`Creating`,async()=>s.iam.userGroups.create({...e,account_id:m})),{successLabel:`Created`});return}p.name===void 0&&(p.name=await f(`name`,`Name of the User group.`));let h=u({name:d(p.name,`name`,`text`),policies:l(p.policies,`policies`)});i(await o(`Creating`,async()=>s.iam.userGroups.create({...h,account_id:m})),{successLabel:`Created`})})};function W(e){return e.usage(`$0 iam user-groups delete <user-group-id>
|
|
33
33
|
|
|
34
|
-
Remove a user group from an account.`).positional(`user-group-id`,{type:`string`,description:`User Group 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 G={command:`delete <user-group-id>`,describe:`Remove User Group`,builder:W,handler:async c=>s({command:`iam user-groups delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf iam user-groups delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
34
|
+
Remove a user group from an account.`).positional(`user-group-id`,{type:`string`,description:`User Group 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 G={command:`delete <user-group-id>`,describe:`Remove User Group`,builder:W,handler:async c=>s({command:`iam user-groups delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf iam user-groups delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/iam/user_groups/${c[`user-group-id`]==null?`<user-group-id>`:encodeURIComponent(String(c[`user-group-id`]))}`,pathParams:{"user-group-id":String(c[`user-group-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();if(c.accountId=l,!await p({force:!!c.force,message:`Are you sure? This action cannot be undone.`})){process.stderr.write(`Aborted.
|
|
35
35
|
`);return}i(await o(`Deleting`,async()=>s.iam.userGroups.delete({account_id:l,user_group_id:c[`user-group-id`]})),{successLabel:`Deleted`})})};function K(e){return e.usage(`$0 iam user-groups get <user-group-id>
|
|
36
36
|
|
|
37
|
-
Get information about a specific user group in an account.`).positional(`user-group-id`,{type:`string`,description:`User Group identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const q={command:`get <user-group-id>`,describe:`User Group Details`,builder:K,handler:async c=>s({command:`iam user-groups get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf iam user-groups get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
37
|
+
Get information about a specific user group in an account.`).positional(`user-group-id`,{type:`string`,description:`User Group identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const q={command:`get <user-group-id>`,describe:`User Group Details`,builder:K,handler:async c=>s({command:`iam user-groups get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf iam user-groups get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/iam/user_groups/${c[`user-group-id`]==null?`<user-group-id>`:encodeURIComponent(String(c[`user-group-id`]))}`,pathParams:{"user-group-id":String(c[`user-group-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.iam.userGroups.get({account_id:l,user_group_id:c[`user-group-id`]})),{successLabel:`Loaded`})})};function J(e){return e.usage(`$0 iam user-groups list
|
|
38
38
|
|
|
39
|
-
List all the user groups for an account.`).option(`id`,{type:`string`,description:`ID of the user group to be fetched.`}).option(`name`,{type:`string`,description:`Name of the user group to be fetched.`}).option(`fuzzy-name`,{type:`string`,description:`A string used for searching for user groups containing that substring.`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`direction`,{type:`string`,description:`The sort order of returned user groups by name (ascending or descending).`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Y={command:`list`,describe:`List User Groups`,builder:m(J),handler:async c=>s({command:`iam user-groups list`,classification:{safeFlags:[`direction`,`dry-run`]}},c,async()=>{let s={id:c.id,name:c.name,fuzzyName:c[`fuzzy-name`],page:c.page,per_page:c[`per-page`],direction:c.direction};if(c.dryRun){a({command:`cf iam user-groups list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
39
|
+
List all the user groups for an account.`).option(`id`,{type:`string`,description:`ID of the user group to be fetched.`}).option(`name`,{type:`string`,description:`Name of the user group to be fetched.`}).option(`fuzzy-name`,{type:`string`,description:`A string used for searching for user groups containing that substring.`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`direction`,{type:`string`,description:`The sort order of returned user groups by name (ascending or descending).`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Y={command:`list`,describe:`List User Groups`,builder:m(J),handler:async c=>s({command:`iam user-groups list`,classification:{safeFlags:[`direction`,`dry-run`]}},c,async()=>{let s={id:c.id,name:c.name,fuzzyName:c[`fuzzy-name`],page:c.page,per_page:c[`per-page`],direction:c.direction};if(c.dryRun){a({command:`cf iam user-groups list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/iam/user_groups`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.iam.userGroups.list({account_id:u,...s})),{successLabel:`Loaded`})})};function X(e){return e.usage(`$0 iam user-groups members create <user-group-id>
|
|
40
40
|
|
|
41
|
-
Add members to a User Group.`).positional(`user-group-id`,{type:`string`,description:`User Group identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Z={command:`create <user-group-id>`,describe:`Add User Group Members`,builder:X,handler:async l=>s({command:`iam user-groups members create`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf iam user-groups members create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
41
|
+
Add members to a User Group.`).positional(`user-group-id`,{type:`string`,description:`User Group identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Z={command:`create <user-group-id>`,describe:`Add User Group Members`,builder:X,handler:async l=>s({command:`iam user-groups members create`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf iam user-groups members create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/iam/user_groups/${l[`user-group-id`]==null?`<user-group-id>`:encodeURIComponent(String(l[`user-group-id`]))}/members`,pathParams:{"user-group-id":String(l[`user-group-id`]??``)},bodyKind:`json`,body:l.body===void 0?void 0:c(l.body)});return}let s=await r(l),u=l.local?e:await n();if(l.accountId=u,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.iam.userGroups.members.create({body:e,account_id:u,user_group_id:l[`user-group-id`]})),{successLabel:`Created`});return}if(l.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function Q(e){return e.usage(`$0 iam user-groups members delete <member-id>
|
|
42
42
|
|
|
43
|
-
Remove a member from User Group`).positional(`member-id`,{type:`string`,description:`The identifier of an existing account Member.`,demandOption:!0}).option(`user-group-id`,{type:`string`,description:`User Group 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 ne={command:`delete <member-id>`,describe:`Remove User Group Member`,builder:Q,handler:async c=>s({command:`iam user-groups members delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf iam user-groups members delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
43
|
+
Remove a member from User Group`).positional(`member-id`,{type:`string`,description:`The identifier of an existing account Member.`,demandOption:!0}).option(`user-group-id`,{type:`string`,description:`User Group 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 ne={command:`delete <member-id>`,describe:`Remove User Group Member`,builder:Q,handler:async c=>s({command:`iam user-groups members delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf iam user-groups members delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/iam/user_groups/${c[`user-group-id`]==null?`<user-group-id>`:encodeURIComponent(String(c[`user-group-id`]))}/members/${c[`member-id`]==null?`<member-id>`:encodeURIComponent(String(c[`member-id`]))}`,pathParams:{"user-group-id":String(c[`user-group-id`]??``),"member-id":String(c[`member-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();if(c.accountId=l,!await p({force:!!c.force,message:`Are you sure? This action cannot be undone.`})){process.stderr.write(`Aborted.
|
|
44
44
|
`);return}i(await o(`Deleting`,async()=>s.iam.userGroups.members.delete({account_id:l,user_group_id:c[`user-group-id`],member_id:c[`member-id`]})),{successLabel:`Deleted`})})};function re(e){return e.usage(`$0 iam user-groups members get <member-id>
|
|
45
45
|
|
|
46
|
-
Get details of a specific member in a user group.`).positional(`member-id`,{type:`string`,description:`The identifier of an existing account Member.`,demandOption:!0}).option(`user-group-id`,{type:`string`,description:`User Group identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ie={command:`get <member-id>`,describe:`Get User Group Member`,builder:re,handler:async c=>s({command:`iam user-groups members get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf iam user-groups members get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
46
|
+
Get details of a specific member in a user group.`).positional(`member-id`,{type:`string`,description:`The identifier of an existing account Member.`,demandOption:!0}).option(`user-group-id`,{type:`string`,description:`User Group identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ie={command:`get <member-id>`,describe:`Get User Group Member`,builder:re,handler:async c=>s({command:`iam user-groups members get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf iam user-groups members get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/iam/user_groups/${c[`user-group-id`]==null?`<user-group-id>`:encodeURIComponent(String(c[`user-group-id`]))}/members/${c[`member-id`]==null?`<member-id>`:encodeURIComponent(String(c[`member-id`]))}`,pathParams:{"user-group-id":String(c[`user-group-id`]??``),"member-id":String(c[`member-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.iam.userGroups.members.get({account_id:l,user_group_id:c[`user-group-id`],member_id:c[`member-id`]})),{successLabel:`Loaded`})})};function ae(e){return e.usage(`$0 iam user-groups members list
|
|
47
47
|
|
|
48
|
-
List all the members attached to a user group.`).option(`user-group-id`,{type:`string`,description:`User Group identifier tag.`,demandOption:!0}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`fuzzy-email`,{type:`string`,description:`A string used for filtering members by partial email match.`}).option(`direction`,{type:`string`,description:`The sort order of returned user group members by email.`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const oe={command:`list`,describe:`List User Group Members`,builder:m(ae),handler:async c=>s({command:`iam user-groups members list`,classification:{safeFlags:[`direction`,`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`],fuzzyEmail:c[`fuzzy-email`],direction:c.direction};if(c.dryRun){a({command:`cf iam user-groups members list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
48
|
+
List all the members attached to a user group.`).option(`user-group-id`,{type:`string`,description:`User Group identifier tag.`,demandOption:!0}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`fuzzy-email`,{type:`string`,description:`A string used for filtering members by partial email match.`}).option(`direction`,{type:`string`,description:`The sort order of returned user group members by email.`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const oe={command:`list`,describe:`List User Group Members`,builder:m(ae),handler:async c=>s({command:`iam user-groups members list`,classification:{safeFlags:[`direction`,`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`],fuzzyEmail:c[`fuzzy-email`],direction:c.direction};if(c.dryRun){a({command:`cf iam user-groups members list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/iam/user_groups/${c[`user-group-id`]==null?`<user-group-id>`:encodeURIComponent(String(c[`user-group-id`]))}/members`,pathParams:{"user-group-id":String(c[`user-group-id`]??``)},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.iam.userGroups.members.list({account_id:u,user_group_id:c[`user-group-id`],...s})),{successLabel:`Loaded`})})};function $(e){return e.usage(`$0 iam user-groups members update <user-group-id>
|
|
49
49
|
|
|
50
|
-
Replace the set of members attached to a User Group.`).positional(`user-group-id`,{type:`string`,description:`User Group identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Set/Replace members to a user group.`})}const se={command:`update <user-group-id>`,describe:`Update User Group Members`,builder:$,handler:async l=>s({command:`iam user-groups members update`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf iam user-groups members update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
50
|
+
Replace the set of members attached to a User Group.`).positional(`user-group-id`,{type:`string`,description:`User Group identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Set/Replace members to a user group.`})}const se={command:`update <user-group-id>`,describe:`Update User Group Members`,builder:$,handler:async l=>s({command:`iam user-groups members update`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf iam user-groups members update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/iam/user_groups/${l[`user-group-id`]==null?`<user-group-id>`:encodeURIComponent(String(l[`user-group-id`]))}/members`,pathParams:{"user-group-id":String(l[`user-group-id`]??``)},bodyKind:`json`,body:l.body===void 0?void 0:c(l.body)});return}let s=await r(l),u=l.local?e:await n();if(l.accountId=u,l.body){let e=c(l.body);i(await o(`Updating`,async()=>s.iam.userGroups.members.update({body:e,account_id:u,user_group_id:l[`user-group-id`]})),{successLabel:`Updated`});return}if(l.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})},ce={command:`members`,describe:`Operations for user-groups.members`,builder:e=>e.command(Z).command(ne).command(ie).command(oe).command(se).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function le(e){return e.usage(`$0 iam user-groups update <user-group-id>
|
|
51
51
|
|
|
52
|
-
Modify an existing user group.`).positional(`user-group-id`,{type:`string`,description:`User Group identifier tag.`,demandOption:!0}).option(`name`,{type:`string`,description:`Name of the User group.`}).option(`policies`,{type:`string`,description:`Policies attached to the User group. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ue={command:`update <user-group-id>`,describe:`Update User Group`,builder:le,handler:async f=>s({command:`iam user-groups update`,classification:{safeFlags:[`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf iam user-groups update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
52
|
+
Modify an existing user group.`).positional(`user-group-id`,{type:`string`,description:`User Group identifier tag.`,demandOption:!0}).option(`name`,{type:`string`,description:`Name of the User group.`}).option(`policies`,{type:`string`,description:`Policies attached to the User group. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ue={command:`update <user-group-id>`,describe:`Update User Group`,builder:le,handler:async f=>s({command:`iam user-groups update`,classification:{safeFlags:[`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf iam user-groups update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/iam/user_groups/${f[`user-group-id`]==null?`<user-group-id>`:encodeURIComponent(String(f[`user-group-id`]))}`,pathParams:{"user-group-id":String(f[`user-group-id`]??``)},bodyKind:`json`,body:f.body===void 0?u({name:d(f.name,`name`,`text`),policies:l(f.policies,`policies`)}):c(f.body)});return}let s=await r(f),p=f.local?e:await n();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Updating`,async()=>s.iam.userGroups.update({...e,account_id:p,user_group_id:f[`user-group-id`]})),{successLabel:`Updated`});return}let m=u({name:d(f.name,`name`,`text`),policies:l(f.policies,`policies`)});i(await o(`Updating`,async()=>s.iam.userGroups.update({...m,account_id:p,user_group_id:f[`user-group-id`]})),{successLabel:`Updated`})})},de={command:`user-groups`,describe:`Organize account members into groups for easier permission assignment`,builder:e=>e.command(U).command(G).command(q).command(Y).command(ue).command(ce).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},fe={command:`iam`,describe:`Identity and access management — permission groups, resource groups, user groups, and SSO connectors`,builder:e=>e.command(v).command(k).command(V).command(de).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{fe as default};
|