cf 1.0.0-beta.12 → 1.0.0-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_meta/commands.json +4648 -3810
- package/dist/_meta/hand-written-commands.json +356 -23
- package/dist/_meta/schemas.json +2522 -2143
- package/dist/abuse-reports-CVv52Q2w.mjs +24 -0
- package/dist/access-k1QjF5rE.mjs +2 -0
- package/dist/account-tags-RhvWOkOf.mjs +15 -0
- package/dist/{accounts-BSd4b-1j.mjs → accounts--3lrEkmu.mjs} +67 -80
- package/dist/{acm-BfI0p2sX.mjs → acm-BJxINEcu.mjs} +2 -2
- package/dist/{addressing-lfeJf7YB.mjs → addressing-BqByG9JW.mjs} +55 -43
- package/dist/{agent-memory-CP1qpn-y.mjs → agent-memory-D4dQMGbh.mjs} +2 -2
- package/dist/{ai-jFzFBANM.mjs → ai-CRkQ4pjC.mjs} +18 -16
- package/dist/{ai-audit-B_tSl78A.mjs → ai-audit-fMSn4c5L.mjs} +1 -1
- package/dist/ai-gateway-CbhvQK4L.mjs +80 -0
- package/dist/ai-search-CvVSnOA0.mjs +79 -0
- package/dist/{ai-security-CKGE547U.mjs → ai-security-Z_qpI92I.mjs} +1 -1
- package/dist/{alerting-CuxoqG3S.mjs → alerting-CpbCB8br.mjs} +5 -5
- package/dist/analytics-DkY9dOP1.mjs +17 -0
- package/dist/{analytics_engine-BoapM9wd.mjs → analytics_engine-DE_jvlx_.mjs} +1 -1
- package/dist/{api-security-Nk_bg-Kg.mjs → api-security-BHnOU5MM.mjs} +25 -25
- package/dist/argo-DhC5L_aN.mjs +14 -0
- package/dist/{artifacts-BS6cEqCB.mjs → artifacts-CrIupY7P.mjs} +3 -3
- package/dist/{audit-logs-x5tLqeX2.mjs → audit-logs-BjeBxTox.mjs} +1 -1
- package/dist/{auth-CKotxfap.mjs → auth-BNYfOMl0.mjs} +1 -1
- package/dist/{auth-AobvBmz4.mjs → auth-CAWalgW0.mjs} +1 -1
- package/dist/auth-DOwC01PW.mjs +2 -0
- package/dist/{auth-token-CtguMdmF.mjs → auth-token-Dop0wLCw.mjs} +1 -1
- package/dist/{autoconfig-PfnbLuEO.mjs → autoconfig-RQ3HS4m1.mjs} +151 -151
- package/dist/{basin-catalog-Ddi-t3q9.mjs → basin-catalog-DZ7QV-_N.mjs} +3 -3
- package/dist/{billing-CDMc4tvX.mjs → billing-BFyte9fL.mjs} +3 -3
- package/dist/bot-management-DXcbV3am.mjs +9 -0
- package/dist/{botnet-feed-CVwRm42k.mjs → botnet-feed-bGGp_cwX.mjs} +1 -1
- package/dist/{brand-protection-DfNf5REj.mjs → brand-protection-DN36XkxH.mjs} +2 -2
- package/dist/browser-run-hHD1RT43.mjs +42 -0
- package/dist/build-BhpWYgNm.mjs +2 -0
- package/dist/{build-BKPVP5ip.mjs → build-CCe7IrWT.mjs} +1 -1
- package/dist/{builds-BG5DHqU3.mjs → builds-6aO61R9R.mjs} +4 -4
- package/dist/{cache-C05hHXUp.mjs → cache-C5YJpMqi.mjs} +6 -6
- package/dist/{certificate-authorities-DyCFmZwR.mjs → certificate-authorities-CbqDAktQ.mjs} +1 -1
- package/dist/cf-oRSQKirD.mjs +18 -0
- package/dist/chunk-DSGVRFIS-CPI5cYtB.mjs +2 -0
- package/dist/{chunk-FT2NMTJB-DQ7s3x7Q.mjs → chunk-NDZDTP46-Civns3WA.mjs} +3 -3
- package/dist/{chunk-AUSY7DKT-BJX6Fdc4.mjs → chunk-TAK63GWY-DdMktrgc.mjs} +9 -2
- package/dist/{cli-D9qlPB-6.mjs → cli-ht4q6i2y.mjs} +1 -1
- package/dist/{client-certificates-B-m8rfM9.mjs → client-certificates-balaN_my.mjs} +1 -1
- package/dist/{client-side-security-M4oIUqID.mjs → client-side-security-3_4Ermmg.mjs} +3 -3
- package/dist/{cloud-connector-B63Dwn6n.mjs → cloud-connector-avx27sLw.mjs} +1 -1
- package/dist/cloudflared-D83U8Yn3.mjs +2 -0
- package/dist/{cloudforce-one-Dlc1GNFy.mjs → cloudforce-one-CXdeqJ9l.mjs} +143 -185
- package/dist/{command-VuxpEvmH.mjs → command-9VAc7b30.mjs} +1 -1
- package/dist/{command-CUkXxZsc.mjs → command-B_Ixlz8Q.mjs} +1 -1
- package/dist/{command-ZBQ1WITj.mjs → command-Bpzp8Mz2.mjs} +1 -1
- package/dist/{command-DBaNgfA4.mjs → command-BtDY_MKv.mjs} +1 -1
- package/dist/command-CUNMrMou.mjs +2 -0
- package/dist/{command-SS1z_t68.mjs → command-Ckb9FufU.mjs} +1 -1
- package/dist/{command-BWlpCtHe.mjs → command-CtVUNm__.mjs} +1 -1
- package/dist/{command-DyE8v4sd.mjs → command-CyJQ40fc.mjs} +1 -1
- package/dist/{command-BlGILcTA.mjs → command-DPX9sJVi.mjs} +1 -1
- package/dist/{command-CXxh5Hce.mjs → command-DXaRn1ls.mjs} +1 -1
- package/dist/{command-CRl00uA2.mjs → command-DjEJaOwV.mjs} +1 -1
- package/dist/{command-Rv2MR-eh.mjs → command-DtgJilOK.mjs} +1 -1
- package/dist/{command-CKQlxypn.mjs → command-OHov3PEc.mjs} +1 -1
- package/dist/{command-DEQSv-S1.mjs → command-OWe3v69l.mjs} +1 -1
- package/dist/{command-BQpXcGKV.mjs → command-SmWD-MeI.mjs} +1 -1
- package/dist/{completions-lf50FBGm.mjs → completions-CuqAO3N_.mjs} +11 -11
- package/dist/{connector-interrupts-DHN1KtUE.mjs → connector-interrupts-ftd10Du-.mjs} +1 -1
- package/dist/{connector-telemetry-events-CHg7FmXh.mjs → connector-telemetry-events-TwDZYdEM.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-CSifYi9r.mjs → connector-telemetry-snapshots-CZxkOuC3.mjs} +1 -1
- package/dist/{connectors-0UwPUav-.mjs → connectors-6lVSr-fd.mjs} +1 -1
- package/dist/containers-Dqs_ZnO2.mjs +78 -0
- package/dist/containers-ncw3bd3a.mjs +376 -0
- package/dist/{content-scan-COyTz0Wb.mjs → content-scan-BWFbqfQ0.mjs} +3 -3
- package/dist/{context-Bwkz4Lm_.mjs → context-BBLtgdR1.mjs} +2 -2
- package/dist/cps-C5phNoVU.mjs +6 -0
- package/dist/{csamScanner-jez2EYXC.mjs → csamScanner-BwZNZu0A.mjs} +3 -3
- package/dist/{ct-alerting-CACDrY0E.mjs → ct-alerting-DPp3qLqO.mjs} +1 -1
- package/dist/{custom-certificates-BBd92YlF.mjs → custom-certificates-pfpZcr06.mjs} +5 -5
- package/dist/{custom-csrs-DTwBiNMX.mjs → custom-csrs-DrvGRAkl.mjs} +2 -2
- package/dist/{custom-hostnames-DIWlqvN9.mjs → custom-hostnames-wGtmFbz1.mjs} +4 -4
- package/dist/{custom-nameservers-DISy8v8u.mjs → custom-nameservers-HTG6MPKv.mjs} +1 -1
- package/dist/{custom-pages-BHXO_NFv.mjs → custom-pages-DqEHBSVt.mjs} +2 -2
- package/dist/d1-EQMUlHTJ.mjs +94 -0
- package/dist/{dcv-delegation-Buq0hcm_.mjs → dcv-delegation-D6nj0Z5N.mjs} +1 -1
- package/dist/deploy-B22sEVHd.mjs +2 -0
- package/dist/deploy-context-DmG9rgPO.mjs +56 -0
- package/dist/deploy-input-BCjcuP6u.mjs +2 -0
- package/dist/{dev-D8FGPKRt.mjs → dev-ClhhXuNU.mjs} +1 -1
- package/dist/diagnostics-tqHjq-Pl.mjs +15 -0
- package/dist/dialog-D4Y9ocuF.mjs +2 -0
- package/dist/dist-DmRM6WSZ.mjs +449 -0
- package/dist/dist-uRuGmkMB.mjs +60 -0
- package/dist/{dls-8D00tqvC.mjs → dls-BEHj4X9T.mjs} +1 -1
- package/dist/{dns-firewall-DIiF4pro.mjs → dns-firewall-zwbkutyf.mjs} +1 -1
- package/dist/{dns-C-A5pwf3.mjs → dns-n4mfYBZg.mjs} +7 -7
- package/dist/dry-run-DRj2_uV3.mjs +2 -0
- package/dist/{durable-objects-CnIqbj84.mjs → durable-objects-CQ2dHhho.mjs} +1 -1
- package/dist/{email-auth-v97Md32E.mjs → email-auth-DOi6yOt3.mjs} +1 -1
- package/dist/{email-routing-I29RG4hb.mjs → email-routing-WcSPt22u.mjs} +5 -5
- package/dist/{email-security-BCarmbky.mjs → email-security-BXu3OGay.mjs} +15 -15
- package/dist/{email-sending-CsHk2HAJ.mjs → email-sending-B9zTlIjt.mjs} +2 -2
- package/dist/{error-sanitization-BWnGnB73.mjs → error-sanitization-DE_zSrXw.mjs} +1 -1
- package/dist/error-sanitization-DOCQ9Ykh.mjs +2 -0
- package/dist/{fieldExtractors-GIVe9jZa.mjs → fieldExtractors-B37m2lKW.mjs} +1 -1
- package/dist/{firewall-DpgFqJr3.mjs → firewall-CRtYO0Ha.mjs} +7 -7
- package/dist/{flagship-BVaXXlsX.mjs → flagship-DvTFZSay.mjs} +3 -3
- package/dist/{fraud-B5GQdEF2.mjs → fraud-uSyibsit.mjs} +5 -5
- package/dist/{google-tag-gateway-C4O61lp-.mjs → google-tag-gateway-BFXiiokq.mjs} +1 -1
- package/dist/hand-written-dry-run-B82fRl2N.mjs +2 -0
- package/dist/{healthchecks-BwYMnKSF.mjs → healthchecks-27u7b7Jb.mjs} +5 -5
- package/dist/{hostnames-DhrGRFeI.mjs → hostnames-DvaUSzsj.mjs} +1 -1
- package/dist/hyperdrive-BzJvPdu6.mjs +37 -0
- package/dist/{iam-sRKDU2Z3.mjs → iam-Dl3cU9GI.mjs} +1 -1
- package/dist/{images-DXdekLVs.mjs → images-C2OkI1j7.mjs} +6 -6
- package/dist/index.mjs +1 -1
- package/dist/init-Da8pe296.mjs +43 -0
- package/dist/{intel-CnVeSjIS.mjs → intel-DoB1g_K7.mjs} +2 -2
- package/dist/interactive-BW9T1D1q.mjs +48 -0
- package/dist/interactive-DGUWZ2Gk.mjs +2 -0
- package/dist/{ips-COCUG8mk.mjs → ips-BRt68epr.mjs} +1 -1
- package/dist/k2-_eq5ZY2t.mjs +11 -0
- package/dist/{keyless-certificates-l2_S__h3.mjs → keyless-certificates-DaO2yqYu.mjs} +2 -2
- package/dist/{keys-CDZreums.mjs → keys-7BQ3Zq6Y.mjs} +1 -1
- package/dist/{kv-DkpKVimq.mjs → kv-BTYCXKML.mjs} +4 -4
- package/dist/{lazy-command-_vZGz6mv.mjs → lazy-command-CDWwCsD2.mjs} +1 -1
- package/dist/{leaked-credential-checks-edbapECI.mjs → leaked-credential-checks-CPHOK_dE.mjs} +1 -1
- package/dist/load-balancers-Bu9pd2SV.mjs +76 -0
- package/dist/{local-C0lQ9sTg.mjs → local-BcPM4I0s.mjs} +1 -1
- package/dist/local-BundUuDT.mjs +2 -0
- package/dist/{local-runtime-DtnWXN0a.mjs → local-runtime-BHKyRlCP.mjs} +1 -1
- package/dist/{login-DeOM4v0L.mjs → login-BBYC_BtH.mjs} +1 -1
- package/dist/{login-BrjOuHKu.mjs → login-D2uoWhWh.mjs} +1 -1
- package/dist/{logo-matches-CF8321pb.mjs → logo-matches-Bc1DQ4-g.mjs} +1 -1
- package/dist/{logos-Bd8xNRKW.mjs → logos-X5B8z7Iv.mjs} +1 -1
- package/dist/{logpush-BYk3qqwY.mjs → logpush-C2ENi1et.mjs} +7 -7
- package/dist/{logs-Jcj2NN8H.mjs → logs-BKDz7kBW.mjs} +1 -1
- package/dist/{magic-cloud-networking-Dgdb9H0f.mjs → magic-cloud-networking-B60Gld8A.mjs} +6 -6
- package/dist/{magic-network-monitoring-CxVU4MZB.mjs → magic-network-monitoring-CxXI3Y-H.mjs} +4 -4
- package/dist/{magic-transit-KDyfUgTv.mjs → magic-transit-ZCSaCbl8.mjs} +171 -168
- package/dist/{managed-defense-CxaDeNUd.mjs → managed-defense-DrxMb7xi.mjs} +1 -1
- package/dist/{managed-transforms-C7rT5E-x.mjs → managed-transforms-AI7KrRU1.mjs} +1 -1
- package/dist/{matches-BtKqG8T9.mjs → matches-rPMLS3Ip.mjs} +1 -1
- package/dist/mcp-DXUMvEWt.mjs +32 -0
- package/dist/mesh-MmBCQ37q.mjs +26 -0
- package/dist/{migrate-DHlfR_gZ.mjs → migrate-CZNq63Uj.mjs} +1 -1
- package/dist/{monetization-pLalYYMI.mjs → monetization-DQE5VtUO.mjs} +2 -2
- package/dist/{mtls-certificates-DYA9Wu-c.mjs → mtls-certificates-DwkEb-Hy.mjs} +2 -2
- package/dist/{network-DrJxPWXQ.mjs → network-BcfobxQY.mjs} +1 -1
- package/dist/{network-interconnects-D73MlYG8.mjs → network-interconnects-BU3tN_Ab.mjs} +10 -11
- package/dist/o11y-BBv7nedp.mjs +93 -0
- package/dist/{oauth-B08YQ4xq.mjs → oauth-BUr8bPwo.mjs} +1 -1
- package/dist/{oauth-clients-CkPDLFd-.mjs → oauth-clients-qWVImhHE.mjs} +3 -3
- package/dist/{oauth-TGbM1Q0V.mjs → oauth-n8um6MFk.mjs} +1 -1
- package/dist/{oauth-scopes-VgliqcQe.mjs → oauth-scopes-CdeIgJIx.mjs} +1 -1
- package/dist/organization-CJeOVWH7.mjs +71 -0
- package/dist/{organizations-Dk0D9ukm.mjs → organizations-BpfoqZcG.mjs} +1 -1
- package/dist/{origin-ca-certificates-BSFqMTn-.mjs → origin-ca-certificates-Bimf07RF.mjs} +2 -2
- package/dist/origin-post-quantum-encryption-CM-If38w.mjs +6 -0
- package/dist/{origin-tls-client-auth-BzE3WpcN.mjs → origin-tls-client-auth-BPwYPhc9.mjs} +3 -3
- package/dist/{output-BGqhvqe2.mjs → output-BOe-3AQG.mjs} +1 -1
- package/dist/{page-rules-BKaU37cM.mjs → page-rules-DOeekMrj.mjs} +4 -4
- package/dist/pages-Bn0Sg1ay.mjs +54 -0
- package/dist/pay-per-crawl-qJpseNNx.mjs +38 -0
- package/dist/pay-per-use-C1MWKJ4O.mjs +33 -0
- package/dist/pipelines-rCwXQw6S.mjs +44 -0
- package/dist/{precursor-DmQ32-Sp.mjs → precursor-Bk8Pp6jT.mjs} +2 -2
- package/dist/previews-BEheHO3T.mjs +4 -0
- package/dist/process-2wmDCy17.mjs +2 -0
- package/dist/{progress-BYVZuEcG.mjs → progress-CQqDtgmF.mjs} +1 -1
- package/dist/prompt-C8FyienX.mjs +3 -0
- package/dist/{queries-DPBkVynK.mjs → queries-DJ8looyq.mjs} +1 -1
- package/dist/{queues-CCXRs98q.mjs → queues-BBH9Q-Tt.mjs} +7 -7
- package/dist/{r2-BKuBSW8h.mjs → r2-CdJKpP2w.mjs} +52 -49
- package/dist/{radar-Gv1yFoRX.mjs → radar-CdvQL4xm.mjs} +1 -1
- package/dist/raw-fetch-DbXN3SlE.mjs +2 -0
- package/dist/{realtime-CVl-rvgx.mjs → realtime-onrXppzh.mjs} +9 -9
- package/dist/{registrar-swlnh22i.mjs → registrar-CbEBc5IE.mjs} +2 -2
- package/dist/{registrar-sandbox-cmOYDnkp.mjs → registrar-sandbox-BJhn1HFT.mjs} +3 -3
- package/dist/{registry-C20J1MW0.mjs → registry-PI6sO95I.mjs} +1 -1
- package/dist/{reporting-Bgwsvol1.mjs → reporting-bXZY6obP.mjs} +1 -1
- package/dist/{request-headers-CUee83pa.mjs → request-headers-D8L95bEQ.mjs} +1 -1
- package/dist/{request-tracers-BBiJvVDz.mjs → request-tracers-CihskC2A.mjs} +1 -1
- package/dist/{resolve-DvxgnWjL.mjs → resolve-CaTBV-c6.mjs} +1 -1
- package/dist/resolve-DCGSzUDQ.mjs +2 -0
- package/dist/{resource-sharing-C1JiYLbl.mjs → resource-sharing-DDqcCHVs.mjs} +11 -11
- package/dist/{resource-tagging-C9VOSlDR.mjs → resource-tagging-D63RpBce.mjs} +1 -1
- package/dist/{rules-BDunCGMj.mjs → rules-CAW0-Wde.mjs} +1 -1
- package/dist/rulesets-CPir63Qc.mjs +37 -0
- package/dist/{rum-B7XiECe9.mjs → rum-BfwTcuup.mjs} +1 -1
- package/dist/{run-CrZgB8L_.mjs → run-CW2Cgi0S.mjs} +1 -1
- package/dist/run-DEynXvCc.mjs +2 -0
- package/dist/{schema-DC0kdqgV.mjs → schema-elj12WOx.mjs} +1 -1
- package/dist/{schema-flags-BUZR9SLd.mjs → schema-flags-BTItUu1K.mjs} +1 -1
- package/dist/{scim-CORcs2wK.mjs → scim-CtZ1FeQE.mjs} +1 -1
- package/dist/{secrets-store-BoZQaFey.mjs → secrets-store-BIuBYUJT.mjs} +2 -2
- package/dist/{security-insights-DblK_6sg.mjs → security-insights-DfUus0bs.mjs} +3 -3
- package/dist/{security-txt-Dl7RPnRb.mjs → security-txt-CgZOsAIZ.mjs} +1 -1
- package/dist/{session-BWe9et4K.mjs → session-BcM8Vyyx.mjs} +1 -1
- package/dist/shared-CpS23WwR.mjs +2 -0
- package/dist/{smart-shield-DX0-8ruu.mjs → smart-shield-ClgB7r-9.mjs} +5 -5
- package/dist/{snippets-BFN-Lg3K.mjs → snippets-DLO3iFAg.mjs} +1 -1
- package/dist/spawn-D07wH-MH.mjs +10 -0
- package/dist/{spectrum-HYWLWB0X.mjs → spectrum-B6qkjR_Z.mjs} +5 -5
- package/dist/{speed-Dj0YhfRe.mjs → speed-DX5X2EIR.mjs} +1 -1
- package/dist/sql-CF044HDW.mjs +4 -0
- package/dist/src-BMATTZU_.mjs +125 -0
- package/dist/{ssl-BQL1fNtD.mjs → ssl-CM-rChEC.mjs} +5 -5
- package/dist/{startup-profile-0X5ebbng.mjs → startup-profile-CrtCP-6-.mjs} +1 -1
- package/dist/startup-profile-D662WI9s.mjs +2 -0
- package/dist/state-D7uNYnoi.mjs +2 -0
- package/dist/{state-Dy6-rKNd.mjs → state-DIiIGEtR.mjs} +1 -1
- package/dist/{stream-DKv2TtZN.mjs → stream-5EmUOQvy.mjs} +5 -5
- package/dist/{submit-Byt2KBGI.mjs → submit-lEAaRSMR.mjs} +1 -1
- package/dist/{tags-BIBsdG68.mjs → tags-CX23P4jg.mjs} +1 -1
- package/dist/telemetry-0Y5hAtCX.mjs +2 -0
- package/dist/{telemetry-bu3txnIR.mjs → telemetry-ZlCi5Xhc.mjs} +1 -1
- package/dist/{tenant-Bs4Ac4n3.mjs → tenant-DnI7QziH.mjs} +1 -1
- package/dist/{tenant-custom-nameservers-DcaELeCE.mjs → tenant-custom-nameservers-MR0dlcGm.mjs} +1 -1
- package/dist/{tools-BbTX7rlM.mjs → tools-CSc5DmFi.mjs} +1 -1
- package/dist/{tunnels-DWcrz9Sf.mjs → tunnels-NzYpsfi_.mjs} +15 -15
- package/dist/{turnstile-2MIGp2ce.mjs → turnstile-M7sKCEz3.mjs} +11 -11
- package/dist/{update-check-CfB0PNTY.mjs → update-check-HFkPml6x.mjs} +1 -1
- package/dist/update-check-aTutXNRd.mjs +2 -0
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-info-B8udoxlx.mjs → url-info-Dos9VOXV.mjs} +1 -1
- package/dist/{url-normalization-C6AdWtaE.mjs → url-normalization-CZbFOq_v.mjs} +2 -2
- package/dist/{url-scanner-Dg0c_yVb.mjs → url-scanner-B7quLPGW.mjs} +2 -2
- package/dist/{user-BLZ-0Bgv.mjs → user-rXca0J9M.mjs} +14 -14
- package/dist/values-D-rrZrDa.mjs +4 -0
- package/dist/{vectorize-DEUSEQXY.mjs → vectorize-D2tf_oA8.mjs} +4 -4
- package/dist/version-BGnqDvNR.mjs +2 -0
- package/dist/waiting-rooms-DrA3-0bw.mjs +53 -0
- package/dist/{web-assets-CLZdWOmN.mjs → web-assets-DQAfvPT9.mjs} +3 -3
- package/dist/{web3-DjeavuLg.mjs → web3-MI0GQDnu.mjs} +5 -5
- package/dist/workers-By6Pf8fv.mjs +40 -0
- package/dist/{workers-builds-COn5Ne5G.mjs → workers-builds-6YsWsCmC.mjs} +2 -2
- package/dist/{workers-for-platforms-tchCXwNF.mjs → workers-for-platforms-DL8fC1qR.mjs} +4 -6
- package/dist/workers-vpc-BYx6sbgd.mjs +13 -0
- package/dist/workflows-ByQLnV0E.mjs +52 -0
- package/dist/{wrangler-migration-BpJqCFAa.mjs → wrangler-migration-C6FKHER1.mjs} +1 -1
- package/dist/{zaraz-BvQZB0YY.mjs → zaraz-CgbpmA85.mjs} +1 -1
- package/dist/{zero-trust-FStq4uhn.mjs → zero-trust-CpjTkkWt.mjs} +418 -402
- package/dist/{zone-tymlghWb.mjs → zone-DnKIe6po.mjs} +1 -1
- package/dist/{zones-Bz6dgT9_.mjs → zones--5ZzsDmQ.mjs} +15 -15
- package/package.json +25 -26
- package/dist/abuse-reports-Cy9RcWPu.mjs +0 -24
- package/dist/access-DwJm1qet.mjs +0 -2
- package/dist/account-tags-d0RkEw6s.mjs +0 -15
- package/dist/ai-gateway-CJaUlfGc.mjs +0 -82
- package/dist/ai-search-PTlpY1T9.mjs +0 -79
- package/dist/analytics-NPND7aHB.mjs +0 -20
- package/dist/argo-DYfLQhd2.mjs +0 -10
- package/dist/auth-CBtzZ3Sw.mjs +0 -2
- package/dist/bot-management-UrCM3P8K.mjs +0 -9
- package/dist/browser-run-DVaiBLYX.mjs +0 -46
- package/dist/build-C4giET85.mjs +0 -2
- package/dist/cf-B9aqZZKD.mjs +0 -18
- package/dist/chunk-KKDV4JPS-D3kwd1Nq.mjs +0 -2
- package/dist/cloudflared-B48cfu95.mjs +0 -2
- package/dist/command-CzvlHvov.mjs +0 -2
- package/dist/containers-DRzgE46U.mjs +0 -375
- package/dist/containers-DuIsM7lM.mjs +0 -78
- package/dist/cps-B7_BJaAU.mjs +0 -6
- package/dist/d1-MvAQMvvo.mjs +0 -89
- package/dist/deploy-BS47vZvJ.mjs +0 -2
- package/dist/deploy-context-Cfushp8j.mjs +0 -56
- package/dist/deploy-input-BAhS5LYx.mjs +0 -2
- package/dist/diagnostics-ChDfJ-Gv.mjs +0 -15
- package/dist/dialog-CL1Zy4pn.mjs +0 -2
- package/dist/dist-8rP3V95o.mjs +0 -57
- package/dist/dist-CYFkGHYv.mjs +0 -487
- package/dist/dry-run-DmsbOMF1.mjs +0 -2
- package/dist/error-sanitization-C_a2LxOK.mjs +0 -2
- package/dist/hyperdrive-DAA8Fazg.mjs +0 -37
- package/dist/init-j47MT4Qe.mjs +0 -39
- package/dist/interactive-Dqv0RWVU.mjs +0 -42
- package/dist/interactive-Wpd3FcDc.mjs +0 -2
- package/dist/k2-CmHkArHL.mjs +0 -13
- package/dist/load-balancers-C5YMvhXD.mjs +0 -76
- package/dist/local-D5L5Bwju.mjs +0 -2
- package/dist/mcp-QDd1Iyc0.mjs +0 -32
- package/dist/mesh-DtrIzl5z.mjs +0 -26
- package/dist/observability-CvN9oxAo.mjs +0 -80
- package/dist/organization-DIwqRBBV.mjs +0 -75
- package/dist/origin-post-quantum-encryption-BOKWKDTY.mjs +0 -6
- package/dist/pages-2Xg-lrMf.mjs +0 -54
- package/dist/pay-per-crawl-5-KTQXRr.mjs +0 -65
- package/dist/pay-per-use-sGebKzNK.mjs +0 -6
- package/dist/pipelines-BM-T7mMK.mjs +0 -44
- package/dist/previews-DDQ9ACDJ.mjs +0 -4
- package/dist/prompt-F5wxc8zq.mjs +0 -3
- package/dist/raw-fetch-DyYWa923.mjs +0 -2
- package/dist/resolve-qwL1LmKN.mjs +0 -2
- package/dist/rulesets-BMGxrnv9.mjs +0 -37
- package/dist/run-nNxXb_Cv.mjs +0 -2
- package/dist/shared-0N31BXkY.mjs +0 -2
- package/dist/spawn-DZ9A-xXb.mjs +0 -10
- package/dist/src-CAiZlihY.mjs +0 -117
- package/dist/startup-profile-CXnsF4c7.mjs +0 -2
- package/dist/state-BA2CanJ_.mjs +0 -2
- package/dist/telemetry-DBXOMuLh.mjs +0 -2
- package/dist/update-check-B-CvDAUz.mjs +0 -2
- package/dist/values-BUK-m0Jg.mjs +0 -4
- package/dist/version-BZNc7Y3t.mjs +0 -2
- package/dist/waiting-rooms-BycGk2Y0.mjs +0 -53
- package/dist/workers-C_SfyU-v.mjs +0 -38
- package/dist/workers-vpc-CKts8Av0.mjs +0 -13
- package/dist/workflows-BibtWuOx.mjs +0 -43
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{A as e}from"./interactive-BW9T1D1q.mjs";import"node:fs";import"node:path";import t,{stdin as n,stdout as r}from"node:process";import{ReadStream as i}from"node:tty";import{styleText as a}from"node:util";import*as o from"node:readline";import s from"node:readline";const c=(()=>{let e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;return t=>{let n=0;for(e.lastIndex=0;e.test(t);)n+=1;return t.length-n}})(),l=e=>e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510,u=e=>e===8987||e===9001||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e>=131072&&e<=196605||e>=196608&&e<=262141,d=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y,f=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,p=/(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/uy,m=/\t{1,1000}/y,h=/[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/uy,g=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,_=/\p{M}+/gu,v={limit:1/0,ellipsis:``},y=(e,t={},n={})=>{let r=t.limit??1/0,i=t.ellipsis??``,a=t?.ellipsisWidth??(i?y(i,v,n).width:0),o=n.controlWidth??0,s=n.tabWidth??8,b=n.emojiWidth??2,x=n.regularWidth??1,S=n.wideWidth??2,C=[[g,x],[d,0],[f,o],[m,s],[h,b],[p,S]],w=0,T=0,E=e.length,D=0,O=!1,k=E,A=Math.max(0,r-a),j=0,M=0,N=0,P=0;outer:for(;;){if(M>j||T>=E&&T>w){let t=e.slice(j,M)||e.slice(w,T);D=0;for(let e of t.replaceAll(_,``)){let t=e.codePointAt(0)||0;if(P=l(t)?2:u(t)?S:x,N+P>A&&(k=Math.min(k,Math.max(j,w)+D)),N+P>r){O=!0;break outer}D+=e.length,N+=P}j=M=0}if(T>=E)break outer;for(let t=0,n=C.length;t<n;t++){let[n,i]=C[t];if(n.lastIndex=T,n.test(e)){if(D=n===p?c(e.slice(T,n.lastIndex)):n===h?1:n.lastIndex-T,P=D*i,N+P>A&&(k=Math.min(k,T+Math.floor((A-N)/i))),N+P>r){O=!0;break outer}N+=P,j=w,M=T,T=w=n.lastIndex;continue outer}}T+=1}return{width:O?A:N,index:O?k:E,truncated:O,ellipsed:O&&r>=a}},b={limit:1/0,ellipsis:``,ellipsisWidth:0},x=(e,t={})=>y(e,b,t).width,S=`]8;;`,C=RegExp(`(?:\\[(?<code>\\d+)m|\\${S}(?<uri>.*))`,`y`),w=e=>{if(e>=30&&e<=37||e>=90&&e<=97)return 39;if(e>=40&&e<=47||e>=100&&e<=107)return 49;if(e===1||e===2)return 22;if(e===3)return 23;if(e===4)return 24;if(e===7)return 27;if(e===8)return 28;if(e===9)return 29;if(e===0)return 0},T=e=>`[${e}m`,E=e=>`${S}${e}`,D=(e,t,n)=>{let r=t[Symbol.iterator](),i=!1,a=!1,o=e.at(-1),s=o===void 0?0:x(o),c=r.next(),l=r.next(),u=0;for(;!c.done;){let o=c.value,d=x(o);s+d<=n?e[e.length-1]+=o:(e.push(o),s=0),(o===`\x1B`||o===``)&&(i=!0,a=t.startsWith(S,u+1)),i?a?o===`\x07`&&(i=!1,a=!1):o===`m`&&(i=!1):(s+=d,s===n&&!l.done&&(e.push(``),s=0)),c=l,l=r.next(),u+=o.length}o=e.at(-1),!s&&o!==void 0&&o.length&&e.length>1&&(e[e.length-2]+=e.pop())},O=e=>{let t=e.split(` `),n=t.length;for(;n&&!x(t[n-1]);)n--;return n===t.length?e:t.slice(0,n).join(` `)+t.slice(n).join(``)},k=(e,t,n={})=>{if(n.trim!==!1&&e.trim()===``)return``;let r=``,i,a,o=e.split(` `),s=[``],c=0;for(let e=0;e<o.length;e++){let r=o[e];if(n.trim!==!1){let e=s.at(-1)??``,t=e.trimStart();e.length!==t.length&&(s[s.length-1]=t,c=x(t))}e!==0&&(c>=t&&(n.wordWrap===!1||n.trim===!1)&&(s.push(``),c=0),(c||n.trim===!1)&&(s[s.length-1]+=` `,c++));let i=x(r);if(n.hard&&i>t){let e=t-c,n=1+Math.floor((i-e-1)/t);Math.floor((i-1)/t)<n&&s.push(``),D(s,r,t),c=x(s.at(-1)??``);continue}if(c+i>t&&c&&i){if(n.wordWrap===!1&&c<t){D(s,r,t),c=x(s.at(-1)??``);continue}s.push(``),c=0}if(c+i>t&&n.wordWrap===!1){D(s,r,t),c=x(s.at(-1)??``);continue}s[s.length-1]+=r,c+=i}n.trim!==!1&&(s=s.map(e=>O(e)));let l=s.join(`
|
|
3
|
+
`),u=!1;for(let e=0;e<l.length;e++){let t=l[e];if(r+=t,u)u=!1;else if(u=t>=`\ud800`&&t<=`\udbff`,u)continue;if(t===`\x1B`||t===``){C.lastIndex=e+1;let t=C.exec(l)?.groups;if(t?.code!==void 0){let e=Number.parseFloat(t.code);i=e===39?void 0:e}else t?.uri!==void 0&&(a=t.uri.length===0?void 0:t.uri)}if(l[e+1]===`
|
|
4
|
+
`){a&&(r+=E(``));let e=i?w(i):void 0;i&&e&&(r+=T(e))}else t===`
|
|
5
|
+
`&&(i&&w(i)&&(r+=T(i)),a&&(r+=E(a)))}return r},A=/\r?\n/;function j(e,t,n){return String(e).normalize().split(A).map(e=>k(e,t,n)).join(`
|
|
6
|
+
`)}var M=e();function N(e,t,n){if(!n.some(e=>!e.disabled))return e;let r=e+t,i=Math.max(n.length-1,0),a=r<0?i:r>i?0:r;return n[a]?.disabled?N(a,t<0?-1:1,n):a}const P={actions:/* @__PURE__ */ new Set([`up`,`down`,`left`,`right`,`space`,`enter`,`cancel`]),aliases:/* @__PURE__ */ new Map([[`k`,`up`],[`j`,`down`],[`h`,`left`],[`l`,`right`],[``,`cancel`],[`escape`,`cancel`]]),messages:{cancel:`Canceled`,error:`Something went wrong`},withGuide:!0,accessible:void 0,date:{monthNames:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],messages:{required:`Please enter a valid date`,invalidMonth:`There are only 12 months in a year`,invalidDay:(e,t)=>`There are only ${e} days in ${t}`,afterMin:e=>`Date must be on or after ${e.toISOString().slice(0,10)}`,beforeMax:e=>`Date must be on or before ${e.toISOString().slice(0,10)}`}}};function ee(e){if(e!==void 0)return e;if(P.accessible!==void 0)return P.accessible;let t=process.env.ACCESSIBLE;return t!==void 0&&t!==``&&t!==`0`&&t!==`false`}function F(e,t){if(typeof e==`string`)return P.aliases.get(e)===t;for(let n of e)if(n!==void 0&&F(n,t))return!0;return!1}function te(e,t){if(e===t)return;let n=e.split(`
|
|
7
|
+
`),r=t.split(`
|
|
8
|
+
`),i=Math.max(n.length,r.length),a=[];for(let e=0;e<i;e++)n[e]!==r[e]&&a.push(e);return{lines:a,numLinesBefore:n.length,numLinesAfter:r.length,numLines:i}}const ne=globalThis.process.platform.startsWith(`win`),I=Symbol(`clack:cancel`);function re(e){return e===I}function L(e,t){let n=e;n.isTTY&&n.setRawMode(t)}function ie({input:e=n,output:t=r,overwrite:a=!0,hideCursor:s=!0}={}){let c=o.createInterface({input:e,output:t,prompt:``,tabSize:1});o.emitKeypressEvents(e,c),e instanceof i&&e.isTTY&&e.setRawMode(!0);let l=(n,{name:r,sequence:i})=>{if(F([String(n),r,i],`cancel`)){s&&t.write(M.cursor.show),process.exit(0);return}if(!a)return;let c=r===`return`?0:-1,u=r===`return`?-1:0;o.moveCursor(t,c,u,()=>{o.clearLine(t,1,()=>{e.once(`keypress`,l)})})};return s&&t.write(M.cursor.hide),e.once(`keypress`,l),()=>{e.off(`keypress`,l),s&&t.write(M.cursor.show),e instanceof i&&e.isTTY&&!ne&&e.setRawMode(!1),c.terminal=!1,c.close()}}const R=e=>`columns`in e&&typeof e.columns==`number`?e.columns:80,z=e=>`rows`in e&&typeof e.rows==`number`?e.rows:20;function B(e,t,n,i=n,a=n,o){return j(t,R(e??r)-n.length,{hard:!0,trim:!1}).split(`
|
|
9
|
+
`).map((e,t,r)=>{let s=o?o(e,t):e;return t===0?`${i}${s}`:t===r.length-1?`${a}${s}`:`${n}${s}`}).join(`
|
|
10
|
+
`)}function ae(e,t){if(`~standard`in e){let n=e[`~standard`].validate(t);return n instanceof Promise?n.then(e=>e.issues?.at(0)?.message):n.issues?.at(0)?.message}return e(t)}var V=class{input;output;_abortSignal;rl;opts;_render;_track=!1;_prevFrame=``;_subscribers=/* @__PURE__ */ new Map;_cursor=0;state=`initial`;error=``;value;userInput=``;get accessible(){return ee(this.opts.accessible)}constructor(e,t=!0){let{input:i=n,output:a=r,render:o,signal:s,...c}=e;this.opts=c,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=o.bind(this),this._track=t,this._abortSignal=s,this.input=i,this.output=a}unsubscribe(){this._subscribers.clear()}setSubscriber(e,t){let n=this._subscribers.get(e)??[];n.push(t),this._subscribers.set(e,n)}on(e,t){this.setSubscriber(e,{cb:t})}once(e,t){this.setSubscriber(e,{cb:t,once:!0})}emit(e,...t){let n=this._subscribers.get(e)??[],r=[];for(let e of n)e.cb(...t),e.once&&r.push(()=>n.splice(n.indexOf(e),1));for(let e of r)e()}prompt(){return new Promise(e=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state=`cancel`,this.close(),e(I);this._abortSignal.addEventListener(`abort`,()=>{this.state=`cancel`,this.close()},{once:!0})}this.rl=s.createInterface({input:this.input,tabSize:2,prompt:``,escapeCodeTimeout:50,terminal:!0}),this.rl.prompt(),this.opts.initialUserInput!==void 0&&this._setUserInput(this.opts.initialUserInput,!0),this.input.on(`keypress`,this.onKeypress),L(this.input,!0),this.output.on(`resize`,this.render),this.render(),this.once(`submit`,()=>{this.output.write(M.cursor.show),this.output.off(`resize`,this.render),L(this.input,!1),e(this.value)}),this.once(`cancel`,()=>{this.output.write(M.cursor.show),this.output.off(`resize`,this.render),L(this.input,!1),e(I)})})}_isActionKey(e,t){return e===` `}_shouldSubmit(e,t){return!0}_setValue(e){this.value=e,this.emit(`value`,this.value)}_setUserInput(e,t){this.userInput=e??``,this.emit(`userInput`,this.userInput),t&&this._track&&this.rl&&(this.rl.write(this.userInput),this._cursor=this.rl.cursor)}_clearUserInput(){this.rl?.write(null,{ctrl:!0,name:`u`}),this._setUserInput(``)}async onKeypress(e,t){if(this.state!==`validating`){if(this._track&&t.name!==`return`&&(t.name&&this._isActionKey(e,t)&&this.rl?.write(null,{ctrl:!0,name:`h`}),this._cursor=this.rl?.cursor??0,this._setUserInput(this.rl?.line)),this.state===`error`&&(this.state=`active`),t?.name&&(!this._track&&P.aliases.has(t.name)&&this.emit(`cursor`,P.aliases.get(t.name)),P.actions.has(t.name)&&this.emit(`cursor`,t.name)),e&&(e.toLowerCase()===`y`||e.toLowerCase()===`n`)&&this.emit(`confirm`,e.toLowerCase()===`y`),this.emit(`key`,e,t),t?.name===`return`&&this._shouldSubmit(e,t)){if(this.opts.validate){let e=ae(this.opts.validate,this.value),t;e instanceof Promise?(this.state=`validating`,this.render(),t=await e):t=e,t&&(this.error=t instanceof Error?t.message:t,this.state=`error`,this.rl?.write(this.userInput))}this.state!==`error`&&(this.state=`submit`)}F([e,t?.name,t?.sequence],`cancel`)&&(this.state=`cancel`),(this.state===`submit`||this.state===`cancel`)&&this.emit(`finalize`),this.render(),(this.state===`submit`||this.state===`cancel`)&&this.close()}}close(){this.input.unpipe(),this.input.removeListener(`keypress`,this.onKeypress),this.output.write(`
|
|
11
|
+
`),L(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let e=j(this._prevFrame,process.stdout.columns,{hard:!0,trim:!1}).split(`
|
|
12
|
+
`).length-1;this.output.write(M.cursor.move(-999,e*-1))}render(){let e=j(this._render(this)??``,process.stdout.columns,{hard:!0,trim:!1});if(e!==this._prevFrame){if(this.state===`initial`)this.output.write(M.cursor.hide);else{let t=te(this._prevFrame,e),n=z(this.output);if(this.restoreCursor(),t){let r=Math.max(0,t.numLinesAfter-n),i=Math.max(0,t.numLinesBefore-n),a=t.lines.find(e=>e>=r);if(a===void 0){this._prevFrame=e;return}if(t.lines.length===1){this.output.write(M.cursor.move(0,a-i)),this.output.write(M.erase.lines(1));let t=e.split(`
|
|
13
|
+
`);this.output.write(t[a]),this._prevFrame=e,this.output.write(M.cursor.move(0,t.length-a-1));return}if(t.lines.length>1){if(r<i)a=r;else{let e=a-i;e>0&&this.output.write(M.cursor.move(0,e))}this.output.write(M.erase.down());let t=e.split(`
|
|
14
|
+
`).slice(a);this.output.write(t.join(`
|
|
15
|
+
`)),this._prevFrame=e;return}}this.output.write(M.erase.down())}this.output.write(e),this.state===`initial`&&(this.state=`active`),this._prevFrame=e}}},oe=class extends V{get cursor(){return+!this.value}get _value(){return this.cursor===0}constructor(e){super(e,!1),this.value=!!e.initialValue,this.on(`userInput`,()=>{this.value=this._value}),this.on(`confirm`,e=>{this.output.write(M.cursor.move(0,-1)),this.value=e,this.state=`submit`,this.close()}),this.on(`cursor`,()=>{this.value=!this.value})}};let se=class extends V{_mask=`•`;get cursor(){return this._cursor}get masked(){return this.userInput.replaceAll(/./g,this._mask)}get userInputWithCursor(){if(this.state===`submit`||this.state===`cancel`)return this.masked;let e=this.userInput;if(this.cursor>=e.length)return`${this.masked}${a([`inverse`,`hidden`],`_`)}`;let t=this.masked,n=t.slice(0,this.cursor),r=t.slice(this.cursor,this.cursor+1),i=t.slice(this.cursor+1);return`${n}${a(`inverse`,r)}${i}`}clear(){this._clearUserInput()}constructor({mask:e,...t}){super(t),this._mask=e??`•`,this.on(`userInput`,e=>{this._setValue(e)}),this.on(`finalize`,()=>{this.value===void 0&&(this.value=``)})}},ce=class extends V{options;cursor=0;get _selectedValue(){return this.options[this.cursor]}changeValue(){let e=this._selectedValue;this.value=e===void 0?void 0:e.value}constructor(e){super(e,!1),this.options=e.options;let t=this.options.findIndex(({value:t})=>t===e.initialValue),n=t===-1?0:t;this.cursor=this.options[n]?.disabled?N(n,1,this.options):n,this.changeValue(),this.on(`cursor`,e=>{switch(e){case`left`:case`up`:this.cursor=N(this.cursor,-1,this.options);break;case`down`:case`right`:this.cursor=N(this.cursor,1,this.options)}this.changeValue()})}};var le=class extends V{get userInputWithCursor(){if(this.state===`submit`)return this.userInput;let e=this.userInput;if(this.cursor>=e.length)return`${this.userInput}\u2588`;let t=e.slice(0,this.cursor),n=e.slice(this.cursor,this.cursor+1),r=e.slice(this.cursor+1);return`${t}${a(`inverse`,n)}${r}`}get cursor(){return this._cursor}constructor(e){super({...e,initialUserInput:e.initialUserInput??e.initialValue}),this.on(`userInput`,e=>{this._setValue(e)}),this.on(`finalize`,()=>{this.value||=e.defaultValue,this.value===void 0&&(this.value=``)})}};function ue(){return t.platform===`win32`?!!t.env.CI||!!t.env.WT_SESSION||!!t.env.TERMINUS_SUBLIME||t.env.ConEmuTask===`{cmd::Cmder}`||t.env.TERM_PROGRAM===`Terminus-Sublime`||t.env.TERM_PROGRAM===`vscode`||t.env.TERM===`xterm-256color`||t.env.TERM===`alacritty`||t.env.TERMINAL_EMULATOR===`JetBrains-JediTerm`:t.env.TERM!==`linux`}const H=ue(),de=()=>process.env.CI===`true`,U=(e,t)=>H?e:t,W=U(`◆`,`*`),G=U(`■`,`x`),fe=U(`▲`,`x`),K=U(`◇`,`o`),q=U(`│`,`|`),J=U(`└`,`—`),Y=U(`●`,`>`),X=U(`○`,` `),pe=U(`▪`,`•`),me=U(`●`,`•`),he=U(`◆`,`*`),ge=U(`▲`,`!`),_e=U(`■`,`x`),Z=e=>{switch(e){case`initial`:case`active`:return a(`cyan`,W);case`cancel`:return a(`red`,G);case`error`:return a(`yellow`,fe);case`submit`:return a(`green`,K);case`validating`:return a(`dim`,W)}},ve=e=>{switch(e){case`initial`:case`active`:return a(`cyan`,q);case`cancel`:return a(`red`,q);case`error`:return a(`yellow`,q);case`submit`:return a(`green`,q)}};function ye(e,t){let n=[`${t?`${a(`cyan`,q)} `:``}${e.join(` • `)}`];return t&&n.push(a(`cyan`,J)),n}const be=(e,t,n,r,i,a=!1)=>{let o=t,s=0;if(a)for(let t=r-1;t>=n;t--){let n=e[t];if(n&&(o-=n.length),s++,o<=i)break}else for(let t=n;t<r;t++){let n=e[t];if(n&&(o-=n.length),s++,o<=i)break}return{lineCount:o,removals:s}},xe=({cursor:e,options:t,style:n,output:r=process.stdout,maxItems:i=1/0,columnPadding:o=0,rowPadding:s=4})=>{let c=R(r)-o,l=z(r),u=a(`dim`,`...`),d=Math.max(l-s,0),f=Math.max(Math.min(i,d),5),p=0;e>=f-3&&(p=Math.max(Math.min(e-f+3,t.length-f),0));let m=f<t.length&&p>0,h=f<t.length&&p+f<t.length,g=Math.min(p+f,t.length),_=[],v=0;m&&v++,h&&v++;let y=p+ +!!m,b=g-+!!h;for(let r=y;r<b;r++){let i=t[r],a=j(i?n(i,r===e):``,c,{hard:!0,trim:!1}).split(`
|
|
16
|
+
`);_.push(a),v+=a.length}if(v>d){let t=0,n=0,r=v,i=e-y,a=d,o=()=>be(_,r,0,i,a),s=()=>be(_,r,i+1,_.length,a,!0);m?({lineCount:r,removals:t}=o(),r>a&&(h||--a,{lineCount:r,removals:n}=s())):(h||--a,{lineCount:r,removals:n}=s(),r>a&&(--a,{lineCount:r,removals:t}=o())),t>0&&(m=!0,_.splice(0,t)),n>0&&(h=!0,_.splice(_.length-n,n))}let x=[];m&&x.push(u);for(let e of _)for(let t of e)x.push(t);return h&&x.push(u),x},Se=e=>{let t=e.active??`Yes`,n=e.inactive??`No`;return new oe({active:t,inactive:n,signal:e.signal,input:e.input,output:e.output,initialValue:e.initialValue??!0,render(){let r=e.withGuide??P.withGuide,i=`${Z(this.state)} `,o=r?`${a(`gray`,q)} `:``,s=B(e.output,e.message,o,i),c=`${r?`${a(`gray`,q)}
|
|
17
|
+
`:``}${s}
|
|
18
|
+
`,l=this.value?t:n;switch(this.state){case`submit`:return`${c}${r?`${a(`gray`,q)} `:``}${a(`dim`,l)}`;case`cancel`:return`${c}${r?`${a(`gray`,q)} `:``}${a([`strikethrough`,`dim`],l)}${r?`
|
|
19
|
+
${a(`gray`,q)}`:``}`;default:{let i=r?`${a(`cyan`,q)} `:``,o=r?a(`cyan`,J):``;return`${c}${i}${this.value?`${a(`green`,Y)} ${t}`:`${a(`dim`,X)} ${a(`dim`,t)}`}${e.vertical?r?`
|
|
20
|
+
${a(`cyan`,q)} `:`
|
|
21
|
+
`:` ${a(`dim`,`/`)} `}${this.value?`${a(`dim`,X)} ${a(`dim`,n)}`:`${a(`green`,Y)} ${n}`}
|
|
22
|
+
${o}
|
|
23
|
+
`}}}}).prompt()};`${a(`dim`,`↑/↓`)}`,`${a(`dim`,`Space:`)}`,`${a(`dim`,`Enter:`)}`;const Q={message:(e=[],{symbol:t=a(`gray`,q),secondarySymbol:n=a(`gray`,q),output:r=process.stdout,spacing:i=1,withGuide:o}={})=>{let s=[],c=o??P.withGuide,l=c?n:``,u=c?`${t} `:``,d=c?`${n} `:``;for(let e=0;e<i;e++)s.push(l);let f=Array.isArray(e)?e:e.split(`
|
|
24
|
+
`);if(f.length>0){let[e,...r]=f;e.length>0?s.push(`${u}${e}`):s.push(c?t:``);for(let e of r)e.length>0?s.push(`${d}${e}`):s.push(c?n:``)}r.write(`${s.join(`
|
|
25
|
+
`)}
|
|
26
|
+
`)},info:(e,t)=>{Q.message(e,{...t,symbol:a(`blue`,me)})},success:(e,t)=>{Q.message(e,{...t,symbol:a(`green`,he)})},step:(e,t)=>{Q.message(e,{...t,symbol:a(`green`,K)})},warn:(e,t)=>{Q.message(e,{...t,symbol:a(`yellow`,ge)})},warning:(e,t)=>{Q.warn(e,t)},error:(e,t)=>{Q.message(e,{...t,symbol:a(`red`,_e)})}},Ce=e=>new se({validate:e.validate,mask:e.mask??pe,signal:e.signal,input:e.input,output:e.output,render(){let t=e.withGuide??P.withGuide,n=`${t?`${a(`gray`,q)}
|
|
27
|
+
`:``}${Z(this.state)} ${e.message}
|
|
28
|
+
`,r=this.userInputWithCursor,i=this.masked;switch(this.state){case`error`:{let r=t?`${a(`yellow`,q)} `:``,o=t?`${a(`yellow`,J)} `:``,s=i??``;return e.clearOnError&&this.clear(),`${n.trim()}
|
|
29
|
+
${r}${s}
|
|
30
|
+
${o}${a(`yellow`,this.error)}
|
|
31
|
+
`}case`submit`:return`${n}${t?`${a(`gray`,q)} `:``}${i?a(`dim`,i):``}`;case`cancel`:return`${n}${t?`${a(`gray`,q)} `:``}${i?a([`strikethrough`,`dim`],i):``}${i&&t?`
|
|
32
|
+
${a(`gray`,q)}`:``}`;default:return`${n}${t?`${a(`cyan`,q)} `:``}${r}
|
|
33
|
+
${t?a(`cyan`,J):``}
|
|
34
|
+
`}}}).prompt(),we=e=>a(`magenta`,e),Te=({indicator:e=`dots`,onCancel:t,output:n=process.stdout,cancelMessage:r,errorMessage:i,frames:o=H?[`◒`,`◐`,`◓`,`◑`]:[`•`,`o`,`O`,`0`],delay:s=H?80:120,signal:c,...l}={})=>{let u=de(),d,f,p=!1,m=!1,h=``,g,_=performance.now(),v=R(n),y=l?.styleFrame??we,b=e=>{let n=e>1?i??P.messages.error:r??P.messages.cancel;m=e===1,p&&(A(n,e),m&&typeof t==`function`&&t())},x=()=>b(2),S=()=>b(1),C=()=>{process.on(`uncaughtExceptionMonitor`,x),process.on(`unhandledRejection`,x),process.on(`SIGINT`,S),process.on(`SIGTERM`,S),process.on(`exit`,b),c&&c.addEventListener(`abort`,S)},w=()=>{process.removeListener(`uncaughtExceptionMonitor`,x),process.removeListener(`unhandledRejection`,x),process.removeListener(`SIGINT`,S),process.removeListener(`SIGTERM`,S),process.removeListener(`exit`,b),c&&c.removeEventListener(`abort`,S)},T=()=>{if(g===void 0)return;u&&n.write(`
|
|
35
|
+
`);let e=j(g,v,{hard:!0,trim:!1}).split(`
|
|
36
|
+
`);e.length>1&&n.write(M.cursor.up(e.length-1)),n.write(M.cursor.to(0)),n.write(M.erase.down())},E=e=>e.replace(/\.+$/,``),D=e=>{let t=(performance.now()-e)/1e3,n=Math.floor(t/60),r=Math.floor(t%60);return n>0?`[${n}m ${r}s]`:`[${r}s]`},O=l.withGuide??P.withGuide,k=(t=``)=>{p=!0,d=ie({output:n}),h=E(t),_=performance.now(),O&&n.write(`${a(`gray`,q)}
|
|
37
|
+
`);let r=0,i=0;C(),f=setInterval(()=>{if(u&&h===g)return;T(),g=h;let t=y(o[r]),a;if(u)a=`${t} ${h}...`;else if(e===`timer`)a=`${t} ${h} ${D(_)}`;else{let e=`.`.repeat(Math.floor(i)).slice(0,3);a=`${t} ${h}${e}`}let s=j(a,v,{hard:!0,trim:!1});n.write(s),r=r+1<o.length?r+1:0,i=i<4?i+.125:0},s)},A=(t=``,r=0,i=!1)=>{if(!p)return;p=!1,clearInterval(f),T();let o=r===0?a(`green`,K):r===1?a(`red`,G):a(`red`,fe);h=t??h,i||(e===`timer`?n.write(`${o} ${h} ${D(_)}
|
|
38
|
+
`):n.write(`${o} ${h}
|
|
39
|
+
`)),w(),d()};return{start:k,stop:(e=``)=>A(e,0),message:(e=``)=>{h=E(e??h)},cancel:(e=``)=>A(e,1),error:(e=``)=>A(e,2),clear:()=>A(``,0,!0),get isCancelled(){return m}}},Ee=[`${a(`dim`,`↑/↓`)} to navigate`,`${a(`dim`,`Enter:`)} confirm`],$=(e,t)=>e.includes(`
|
|
40
|
+
`)?e.split(`
|
|
41
|
+
`).map(e=>t(e)).join(`
|
|
42
|
+
`):t(e),De=e=>{let t=(e,t)=>{if(e===void 0)return``;let n=e.label??String(e.value);switch(t){case`disabled`:return`${a(`gray`,X)} ${$(n,e=>a(`gray`,e))}${e.hint?` ${a(`dim`,`(${e.hint??`disabled`})`)}`:``}`;case`selected`:return`${$(n,e=>a(`dim`,e))}`;case`active`:return`${a(`green`,Y)} ${n}${e.hint?` ${a(`dim`,`(${e.hint})`)}`:``}`;case`cancelled`:return`${$(n,e=>a([`strikethrough`,`dim`],e))}`;default:return`${a(`dim`,X)} ${$(n,e=>a(`dim`,e))}`}},n=e.showInstructions??!0;return new ce({options:e.options,signal:e.signal,input:e.input,output:e.output,initialValue:e.initialValue,render(){let r=e.withGuide??P.withGuide,i=`${Z(this.state)} `,o=`${ve(this.state)} `,s=B(e.output,e.message,o,i),c=`${r?`${a(`gray`,q)}
|
|
43
|
+
`:``}${s}
|
|
44
|
+
`;switch(this.state){case`submit`:{let n=r?`${a(`gray`,q)} `:``;return`${c}${B(e.output,t(this.options[this.cursor],`selected`),n)}`}case`cancel`:{let n=r?`${a(`gray`,q)} `:``;return`${c}${B(e.output,t(this.options[this.cursor],`cancelled`),n)}${r?`
|
|
45
|
+
${a(`gray`,q)}`:``}`}default:{let i=r?`${a(`cyan`,q)} `:``,o=c.split(`
|
|
46
|
+
`).length,s=n?ye(Ee,r):r?[a(`cyan`,J)]:[],l=s.join(`
|
|
47
|
+
`),u=s.length+1;return`${c}${i}${xe({output:e.output,cursor:this.cursor,options:this.options,maxItems:e.maxItems,columnPadding:i.length,rowPadding:o+u,style:(e,n)=>t(e,e.disabled?`disabled`:n?`active`:`inactive`)}).join(`
|
|
48
|
+
${i}`)}
|
|
49
|
+
${l}
|
|
50
|
+
`}}}}).prompt()};`${a(`gray`,q)}`;const Oe=e=>new le({validate:e.validate,placeholder:e.placeholder,defaultValue:e.defaultValue,initialValue:e.initialValue,output:e.output,signal:e.signal,input:e.input,render(){let t=e?.withGuide??P.withGuide,n=`${`${t?`${a(`gray`,q)}
|
|
51
|
+
`:``}${Z(this.state)} `}${e.message}
|
|
52
|
+
`,r=e.placeholder&&e.placeholder.length>0?a(`inverse`,e.placeholder[0])+a(`dim`,e.placeholder.slice(1)):a([`inverse`,`hidden`],`_`),i=this.userInput?this.userInputWithCursor:r,o=this.value??``;switch(this.state){case`validating`:{let e=t?`${a(`cyan`,q)} `:``,r=t?a(`cyan`,J):``;return`${n}${e}${a(`dim`,i)}
|
|
53
|
+
${r} ${a(`dim`,`Validating...`)}
|
|
54
|
+
`}case`error`:{let e=this.error?` ${a(`yellow`,this.error)}`:``,r=t?`${a(`yellow`,q)} `:``,o=t?a(`yellow`,J):``;return`${n.trim()}
|
|
55
|
+
${r}${i}
|
|
56
|
+
${o}${e}
|
|
57
|
+
`}case`submit`:{let e=o?`${t?` `:``}${a(`dim`,o)}`:``;return`${n}${t?a(`gray`,q):``}${e}`}case`cancel`:{let e=o?` ${a([`strikethrough`,`dim`],o)}`:``,r=t?a(`gray`,q):``;return`${n}${r}${e}${o.trim()?`
|
|
58
|
+
${r}`:``}`}default:return`${n}${t?`${a(`cyan`,q)} `:``}${i}
|
|
59
|
+
${t?a(`cyan`,J):``}
|
|
60
|
+
`}}}).prompt();export{Te as a,De as i,Q as n,Oe as o,Ce as r,re as s,Se as t};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-BcPM4I0s.mjs";import{n as t}from"./auth-CAWalgW0.mjs";import{a as n,t as r}from"./context-BBLtgdR1.mjs";import{t as i}from"./output-BOe-3AQG.mjs";import{t as a}from"./dry-run-DRj2_uV3.mjs";import{t as o}from"./progress-CQqDtgmF.mjs";import{t as s}from"./run-CW2Cgi0S.mjs";import"./telemetry-0Y5hAtCX.mjs";import{n as c,t as l}from"./body-parser-DkHKPkJ7.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{a as d,n as f}from"./prompt-C8FyienX.mjs";import{t as p}from"./cli-types-9oYmRTHJ.mjs";function m(e){return e.usage(`$0 dls regional_services prefix_bindings create
|
|
3
3
|
|
|
4
4
|
Create a DLS prefix binding`).option(`cidr`,{type:`string`,description:`IP prefix in CIDR notation to bind.`}).option(`prefix-id`,{type:`string`,description:`The ID of the parent IP prefix that contains the CIDR.`}).option(`region-key`,{type:`string`,description:`Region key from managed regions (e.g., "us", "eu").`}).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 h={command:`create`,describe:`Create a DLS prefix binding`,builder:m,handler:async f=>s({command:`dls regional_services prefix_bindings create`,classification:{safeFlags:[`dry-run`]}},f,async()=>{if(f.dryRun){let e=await n();a({command:`cf dls regional_services prefix_bindings create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/dls/regional_services/prefix_bindings`,pathParams:{},bodyKind:`json`,body:f.body===void 0?l({cidr:u(f.cidr,`cidr`,`text`),prefix_id:u(f[`prefix-id`],`prefix-id`,`text`),region_key:u(f[`region-key`],`region-key`,`text`)}):c(f.body)});return}let s=await t(f),p=f.local?e:await r();if(f.accountId=p,f.body){let e=c(f.body),t=await o(`Creating`,async()=>s.dls.regionalServices.prefixBindings.create({...e,account_id:p}));i(t,{successLabel:`Created`});return}f.cidr===void 0&&(f.cidr=await d(`cidr`,`IP prefix in CIDR notation to bind.`)),f[`prefix-id`]===void 0&&(f[`prefix-id`]=await d(`prefix-id`,`The ID of the parent IP prefix that contains the CIDR.`)),f[`region-key`]===void 0&&(f[`region-key`]=await d(`region-key`,`Region key from managed regions (e.g., "us", "eu").`));let m=l({cidr:u(f.cidr,`cidr`,`text`),prefix_id:u(f[`prefix-id`],`prefix-id`,`text`),region_key:u(f[`region-key`],`region-key`,`text`)}),h=await o(`Creating`,async()=>s.dls.regionalServices.prefixBindings.create({...m,account_id:p}));i(h,{successLabel:`Created`})})};function g(e){return e.usage(`$0 dls regional_services prefix_bindings delete <binding-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-BcPM4I0s.mjs";import{n as t}from"./auth-CAWalgW0.mjs";import{a as n,t as r}from"./context-BBLtgdR1.mjs";import{t as i}from"./output-BOe-3AQG.mjs";import{t as a}from"./dry-run-DRj2_uV3.mjs";import{t as o}from"./progress-CQqDtgmF.mjs";import{t as s}from"./run-CW2Cgi0S.mjs";import"./telemetry-0Y5hAtCX.mjs";import{n as c,t as l}from"./body-parser-DkHKPkJ7.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{a as d,n as f}from"./prompt-C8FyienX.mjs";function p(e){return e.usage(`$0 dns-firewall create
|
|
3
3
|
|
|
4
4
|
Create a DNS Firewall cluster`).option(`attack-mitigation-enabled`,{type:`boolean`,description:`When enabled, automatically mitigate random-prefix attacks to protect upstream DNS servers`}).option(`attack-mitigation-only-when-upstream-unhealthy`,{type:`boolean`,description:`Only mitigate attacks when upstream servers seem unhealthy`}).option(`deprecate-any-requests`,{type:`boolean`,description:`Whether to refuse to answer queries for the ANY type`}).option(`ecs-fallback`,{type:`boolean`,description:`Whether to forward client IP (resolver) subnet if no EDNS Client Subnet is sent`}).option(`maximum-cache-ttl`,{type:`number`,description:`By default, Cloudflare attempts to cache responses for as long as
|
|
5
5
|
indicated by the TTL received from upstream nameservers. This setting
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-BcPM4I0s.mjs";import{i as t,n}from"./auth-CAWalgW0.mjs";import{a as r,i,t as a}from"./context-BBLtgdR1.mjs";import{t as o}from"./output-BOe-3AQG.mjs";import{t as s}from"./dry-run-DRj2_uV3.mjs";import{t as c}from"./progress-CQqDtgmF.mjs";import{t as l}from"./run-CW2Cgi0S.mjs";import"./telemetry-0Y5hAtCX.mjs";import{n as u,r as d,t as f}from"./body-parser-DkHKPkJ7.mjs";import{n as p,t as m}from"./input-validation-D7z60HJH.mjs";import{a as h,n as g}from"./prompt-C8FyienX.mjs";import{t as _}from"./cli-types-9oYmRTHJ.mjs";import{n as ee,t as te}from"./raw-fetch-DbXN3SlE.mjs";function v(e){return e.usage(`$0 dns dnssec delete
|
|
3
3
|
|
|
4
4
|
Delete DNSSEC.`).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`,describe:`Delete DNSSEC records`,builder:v,handler:async e=>l({command:`dns dnssec delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf dns dnssec delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dnssec`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force})){process.stderr.write(`Aborted.
|
|
5
5
|
`);return}let a=await c(`Deleting`,async()=>t.dns.dnssec.delete({zone_id:r}));o(a,{successLabel:`Deleted`})})};function b(e){return e.usage(`$0 dns dnssec edit
|
|
@@ -20,7 +20,7 @@ NSEC3 records when transferring in from an external provider.
|
|
|
20
20
|
If dnssec_presigned is instead set to false (default), NSEC3 records will be
|
|
21
21
|
generated and signed at request time.
|
|
22
22
|
|
|
23
|
-
See [DNSSEC with NSEC3](https://developers.cloudflare.com/dns/dnssec/enable-nsec3/) for details.`}).option(`status`,{type:`string`,description:`Status of DNSSEC, based on user-desired state and presence of necessary records.`,choices:[`active`,`disabled`]}).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 x={command:`edit`,describe:`Edit DNSSEC Status`,builder:b,handler:async e=>l({command:`dns dnssec edit`,classification:{safeFlags:[`dnssec-multi-signer`,`dnssec-presigned`,`dnssec-use-nsec3`,`status`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf dns dnssec edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dnssec`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({dnssec_multi_signer:e[`dnssec-multi-signer`],dnssec_presigned:e[`dnssec-presigned`],dnssec_use_nsec3:e[`dnssec-use-nsec3`],status:
|
|
23
|
+
See [DNSSEC with NSEC3](https://developers.cloudflare.com/dns/dnssec/enable-nsec3/) for details.`}).option(`status`,{type:`string`,description:`Status of DNSSEC, based on user-desired state and presence of necessary records.`,choices:[`active`,`disabled`]}).coerce(`status`,e=>p(e,`status`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const x={command:`edit`,describe:`Edit DNSSEC Status`,builder:b,handler:async e=>l({command:`dns dnssec edit`,classification:{safeFlags:[`dnssec-multi-signer`,`dnssec-presigned`,`dnssec-use-nsec3`,`status`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf dns dnssec edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dnssec`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({dnssec_multi_signer:e[`dnssec-multi-signer`],dnssec_presigned:e[`dnssec-presigned`],dnssec_use_nsec3:e[`dnssec-use-nsec3`],status:e.status}):u(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=u(e.body),i=await c(`Updating`,async()=>t.dns.dnssec.edit({...n,zone_id:r}));o(i,{successLabel:`Updated`});return}let a=f({dnssec_multi_signer:e[`dnssec-multi-signer`],dnssec_presigned:e[`dnssec-presigned`],dnssec_use_nsec3:e[`dnssec-use-nsec3`],status:e.status}),l=await c(`Updating`,async()=>t.dns.dnssec.edit({...a,zone_id:r}));o(l,{successLabel:`Updated`})})};function S(e){return e.usage(`$0 dns dnssec get
|
|
24
24
|
|
|
25
25
|
Details about DNSSEC status and configuration.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const C={command:`get`,describe:`DNSSEC Details`,builder:S,handler:async e=>l({command:`dns dnssec get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf dns dnssec get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dnssec`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.dns.dnssec.get({zone_id:r}));o(a,{successLabel:`Loaded`})})};function w(e){return e.usage(`$0 dns dnssec list zsks
|
|
26
26
|
|
|
@@ -41,7 +41,7 @@ Retrieves details for a specific DNS record in the zone.`).positional(`dns-recor
|
|
|
41
41
|
|
|
42
42
|
You can upload your [BIND config](https://en.wikipedia.org/wiki/Zone_file "Zone file") through this endpoint. It assumes that cURL is called from a location with bind_config.txt (valid BIND config) present. See [the documentation](https://developers.cloudflare.com/dns/manage-dns-records/how-to/import-and-export/ "Import and export records") for more information.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`}).option(`proxied`,{type:`string`,description:"Whether or not proxiable records should receive the performance and security benefits of Cloudflare. The value should be either `true` or `false`."})}const V={command:`import`,describe:`Import DNS Records`,builder:B,handler:async e=>l({command:`dns records import`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf dns records import`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records/import`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`multipart`,body:{body:e.body,file:e.file,proxied:e.proxied}});return}let r=await n(e);if(e.zoneId=await i({zone:e.zone},r,{quiet:e.quiet}),e.file!==void 0||e.body!==void 0||e.proxied!==void 0){let n=new FormData;if(e.file){let t=m(e.file);n.append(`file`,new Blob([t]),e.file.split(/[\\/]/).filter(Boolean).pop())}else e.body!==void 0&&n.append(`file`,e.body);e.proxied!==void 0&&n.append(`proxied`,String(p(e.proxied,`proxied`,`text`)??``));let i=await c(`Creating`,async()=>t(r,`POST`,`/zones/${e.zoneId}/dns_records/import`,{body:n}));o(i,{successLabel:`Created`});return}if(e.body){let n=p(e.body,`body`,`binary`),i=await c(`Creating`,async()=>t(r,`POST`,`/zones/${e.zoneId}/dns_records/import`,{body:n,headers:{"Content-Type":`multipart/form-data`}}));o(i,{successLabel:`Created`});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function H(e){return e.usage(`$0 dns records list
|
|
43
43
|
|
|
44
|
-
List, search, sort, and filter a zones' DNS records.`).option(`name`,{type:`string`,description:"Exact value of the DNS record name. This is a convenience alias for `name.exact`."}).option(`name-exact`,{type:`string`,description:`Exact value of the DNS record name. Name filters are case-insensitive.`}).option(`name-contains`,{type:`string`,description:`Substring of the DNS record name. Name filters are case-insensitive.`}).option(`name-startswith`,{type:`string`,description:`Prefix of the DNS record name. Name filters are case-insensitive.`}).option(`name-endswith`,{type:`string`,description:`Suffix of the DNS record name. Name filters are case-insensitive.`}).option(`type`,{type:`string`,description:`Record type.`,choices:[`A`,`AAAA`,`CAA`,`CERT`,`CNAME`,`DNSKEY`,`DS`,`HTTPS`,`LOC`,`MX`,`NAPTR`,`NS`,`OPENPGPKEY`,`PTR`,`SMIMEA`,`SRV`,`SSHFP`,`SVCB`,`TLSA`,`TXT`,`URI`]}).option(`content`,{type:`string`,description:"Exact value of the DNS record content. This is a convenience alias for `content.exact`."}).option(`content-exact`,{type:`string`,description:`Exact value of the DNS record content. Content filters are case-insensitive.`}).option(`content-contains`,{type:`string`,description:`Substring of the DNS record content. Content filters are case-insensitive.`}).option(`content-startswith`,{type:`string`,description:`Prefix of the DNS record content. Content filters are case-insensitive.`}).option(`content-endswith`,{type:`string`,description:`Suffix of the DNS record content. Content filters are case-insensitive.`}).option(`proxied`,{type:`boolean`,description:`Whether the record is receiving the performance and security benefits of Cloudflare.`}).option(`match`,{type:`string`,description:"Whether to match all search requirements or at least one (any). If set to `all`, acts like a logical AND between filters. If set to `any`, acts like a logical OR instead. Note that the interaction between tag filters is controlled by the `tag-match` parameter instead.",choices:[`any`,`all`]}).option(`comment`,{type:`string`,description:"Exact value of the DNS record comment. This is a convenience alias for `comment.exact`."}).option(`comment-present`,{type:`string`,description:`If this parameter is present, only records *with* a comment are returned.`}).option(`comment-absent`,{type:`string`,description:`If this parameter is present, only records *without* a comment are returned.`}).option(`comment-exact`,{type:`string`,description:`Exact value of the DNS record comment. Comment filters are case-insensitive.`}).option(`comment-contains`,{type:`string`,description:`Substring of the DNS record comment. Comment filters are case-insensitive.`}).option(`comment-startswith`,{type:`string`,description:`Prefix of the DNS record comment. Comment filters are case-insensitive.`}).option(`comment-endswith`,{type:`string`,description:`Suffix of the DNS record comment. Comment filters are case-insensitive.`}).option(`tag`,{type:`string`,description:"Condition on the DNS record tag.\n\nParameter values can be of the form `<tag-name>:<tag-value>` to search for an exact `name:value` pair, or just `<tag-name>` to search for records with a specific tag name regardless of its value.\n\nThis is a convenience shorthand for the more powerful `tag.<predicate>` parameters.\nExamples:\n- `tag=important` is equivalent to `tag.present=important`\n- `tag=team:DNS` is equivalent to `tag.exact=team:DNS`"}).option(`tag-present`,{type:`string`,description:`Name of a tag which must be present on the DNS record. Tag filters are case-insensitive.`}).option(`tag-absent`,{type:`string`,description:`Name of a tag which must *not* be present on the DNS record. Tag filters are case-insensitive.`}).option(`tag-exact`,{type:`string`,description:"A tag and value, of the form `<tag-name>:<tag-value>`. The API will only return DNS records that have a tag named `<tag-name>` whose value is `<tag-value>`. Tag filters are case-insensitive."}).option(`tag-contains`,{type:`string`,description:"A tag and value, of the form `<tag-name>:<tag-value>`. The API will only return DNS records that have a tag named `<tag-name>` whose value contains `<tag-value>`. Tag filters are case-insensitive."}).option(`tag-startswith`,{type:`string`,description:"A tag and value, of the form `<tag-name>:<tag-value>`. The API will only return DNS records that have a tag named `<tag-name>` whose value starts with `<tag-value>`. Tag filters are case-insensitive."}).option(`tag-endswith`,{type:`string`,description:"A tag and value, of the form `<tag-name>:<tag-value>`. The API will only return DNS records that have a tag named `<tag-name>` whose value ends with `<tag-value>`. Tag filters are case-insensitive."}).option(`search`,{type:`string`,description:"Allows searching in multiple properties of a DNS record simultaneously. This parameter is intended for human users, not automation. Its exact behavior is intentionally left unspecified and is subject to change in the future. This parameter works independently of the `match` setting. For automated searches, please use the other available parameters."}).option(`tag-match`,{type:`string`,description:"Whether to match all tag search requirements or at least one (any). If set to `all`, acts like a logical AND between tag filters. If set to `any`, acts like a logical OR instead. Note that the regular `match` parameter is still used to combine the resulting condition with other filters that aren't related to tags.",choices:[`any`,`all`]}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of DNS records per page.`}).option(`order`,{type:`string`,description:`Field to order DNS records by.`,choices:[`type`,`name`,`content`,`ttl`,`proxied`]}).option(`direction`,{type:`string`,description:`Direction to order DNS records in.`,choices:[`asc`,`desc`]}).option(`include-shadow-metadata`,{type:`boolean`,description:"Whether to include shadow metadata in the `meta` field of each record in the response. See [Shadowed records](https://developers.cloudflare.com/dns/manage-dns-records/reference/shadowed-records)."}).option(`shadowed-by-name`,{type:`string`,description:"Filters to records at or below the
|
|
44
|
+
List, search, sort, and filter a zones' DNS records.`).option(`name`,{type:`string`,description:"Exact value of the DNS record name. This is a convenience alias for `name.exact`."}).option(`name-exact`,{type:`string`,description:`Exact value of the DNS record name. Name filters are case-insensitive.`}).option(`name-contains`,{type:`string`,description:`Substring of the DNS record name. Name filters are case-insensitive.`}).option(`name-startswith`,{type:`string`,description:`Prefix of the DNS record name. Name filters are case-insensitive.`}).option(`name-endswith`,{type:`string`,description:`Suffix of the DNS record name. Name filters are case-insensitive.`}).option(`type`,{type:`string`,description:`Record type.`,choices:[`A`,`AAAA`,`CAA`,`CERT`,`CNAME`,`DNSKEY`,`DS`,`HTTPS`,`LOC`,`MX`,`NAPTR`,`NS`,`OPENPGPKEY`,`PTR`,`SMIMEA`,`SRV`,`SSHFP`,`SVCB`,`TLSA`,`TXT`,`URI`]}).option(`content`,{type:`string`,description:"Exact value of the DNS record content. This is a convenience alias for `content.exact`."}).option(`content-exact`,{type:`string`,description:`Exact value of the DNS record content. Content filters are case-insensitive.`}).option(`content-contains`,{type:`string`,description:`Substring of the DNS record content. Content filters are case-insensitive.`}).option(`content-startswith`,{type:`string`,description:`Prefix of the DNS record content. Content filters are case-insensitive.`}).option(`content-endswith`,{type:`string`,description:`Suffix of the DNS record content. Content filters are case-insensitive.`}).option(`proxied`,{type:`boolean`,description:`Whether the record is receiving the performance and security benefits of Cloudflare.`}).option(`match`,{type:`string`,description:"Whether to match all search requirements or at least one (any). If set to `all`, acts like a logical AND between filters. If set to `any`, acts like a logical OR instead. Note that the interaction between tag filters is controlled by the `tag-match` parameter instead.",choices:[`any`,`all`]}).option(`comment`,{type:`string`,description:"Exact value of the DNS record comment. This is a convenience alias for `comment.exact`."}).option(`comment-present`,{type:`string`,description:`If this parameter is present, only records *with* a comment are returned.`}).option(`comment-absent`,{type:`string`,description:`If this parameter is present, only records *without* a comment are returned.`}).option(`comment-exact`,{type:`string`,description:`Exact value of the DNS record comment. Comment filters are case-insensitive.`}).option(`comment-contains`,{type:`string`,description:`Substring of the DNS record comment. Comment filters are case-insensitive.`}).option(`comment-startswith`,{type:`string`,description:`Prefix of the DNS record comment. Comment filters are case-insensitive.`}).option(`comment-endswith`,{type:`string`,description:`Suffix of the DNS record comment. Comment filters are case-insensitive.`}).option(`tag`,{type:`string`,description:"Condition on the DNS record tag.\n\nParameter values can be of the form `<tag-name>:<tag-value>` to search for an exact `name:value` pair, or just `<tag-name>` to search for records with a specific tag name regardless of its value.\n\nThis is a convenience shorthand for the more powerful `tag.<predicate>` parameters.\nExamples:\n- `tag=important` is equivalent to `tag.present=important`\n- `tag=team:DNS` is equivalent to `tag.exact=team:DNS`"}).option(`tag-present`,{type:`string`,description:`Name of a tag which must be present on the DNS record. Tag filters are case-insensitive.`}).option(`tag-absent`,{type:`string`,description:`Name of a tag which must *not* be present on the DNS record. Tag filters are case-insensitive.`}).option(`tag-exact`,{type:`string`,description:"A tag and value, of the form `<tag-name>:<tag-value>`. The API will only return DNS records that have a tag named `<tag-name>` whose value is `<tag-value>`. Tag filters are case-insensitive."}).option(`tag-contains`,{type:`string`,description:"A tag and value, of the form `<tag-name>:<tag-value>`. The API will only return DNS records that have a tag named `<tag-name>` whose value contains `<tag-value>`. Tag filters are case-insensitive."}).option(`tag-startswith`,{type:`string`,description:"A tag and value, of the form `<tag-name>:<tag-value>`. The API will only return DNS records that have a tag named `<tag-name>` whose value starts with `<tag-value>`. Tag filters are case-insensitive."}).option(`tag-endswith`,{type:`string`,description:"A tag and value, of the form `<tag-name>:<tag-value>`. The API will only return DNS records that have a tag named `<tag-name>` whose value ends with `<tag-value>`. Tag filters are case-insensitive."}).option(`search`,{type:`string`,description:"Allows searching in multiple properties of a DNS record simultaneously. This parameter is intended for human users, not automation. Its exact behavior is intentionally left unspecified and is subject to change in the future. This parameter works independently of the `match` setting. For automated searches, please use the other available parameters."}).option(`tag-match`,{type:`string`,description:"Whether to match all tag search requirements or at least one (any). If set to `all`, acts like a logical AND between tag filters. If set to `any`, acts like a logical OR instead. Note that the regular `match` parameter is still used to combine the resulting condition with other filters that aren't related to tags.",choices:[`any`,`all`]}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of DNS records per page.`}).option(`order`,{type:`string`,description:`Field to order DNS records by.`,choices:[`type`,`name`,`content`,`ttl`,`proxied`]}).option(`direction`,{type:`string`,description:`Direction to order DNS records in.`,choices:[`asc`,`desc`]}).option(`include-shadow-metadata`,{type:`boolean`,description:"Whether to include shadow metadata in the `meta` field of each record in the response. See [Shadowed records](https://developers.cloudflare.com/dns/manage-dns-records/reference/shadowed-records)."}).option(`shadowed-by-name`,{type:`string`,description:"Filters the response to records at or below the specified NS delegation name. NS, DS, and NSEC records at the delegation name are excluded because they are not shadowed by that delegation. Those record types are included only when they exist below the delegation. The value must be a non-apex subdomain of the zone. Requires `include_shadow_metadata=true`. See [Shadowed records](https://developers.cloudflare.com/dns/manage-dns-records/reference/shadowed-records)."}).option(`shadowing-name`,{type:`string`,description:`Returns NS records that shadow the given name, searching at the name itself and each of its ancestor names within the zone, excluding the zone apex. The value must be a subdomain of the zone; the zone apex is not accepted. See [Shadowed records](https://developers.cloudflare.com/dns/manage-dns-records/reference/shadowed-records).`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const U={command:`list`,describe:`List DNS Records`,builder:_(H),handler:async e=>l({command:`dns records list`,classification:{safeFlags:[`type`,`proxied`,`match`,`tag-match`,`order`,`direction`,`include-shadow-metadata`,`dry-run`]}},e,async()=>{let t={name:e.name,"name.exact":e[`name-exact`],"name.contains":e[`name-contains`],"name.startswith":e[`name-startswith`],"name.endswith":e[`name-endswith`],type:e.type,content:e.content,"content.exact":e[`content-exact`],"content.contains":e[`content-contains`],"content.startswith":e[`content-startswith`],"content.endswith":e[`content-endswith`],proxied:e.proxied,match:e.match,comment:e.comment,"comment.present":e[`comment-present`],"comment.absent":e[`comment-absent`],"comment.exact":e[`comment-exact`],"comment.contains":e[`comment-contains`],"comment.startswith":e[`comment-startswith`],"comment.endswith":e[`comment-endswith`],tag:e.tag,"tag.present":e[`tag-present`],"tag.absent":e[`tag-absent`],"tag.exact":e[`tag-exact`],"tag.contains":e[`tag-contains`],"tag.startswith":e[`tag-startswith`],"tag.endswith":e[`tag-endswith`],search:e.search,tag_match:e[`tag-match`],page:e.page,per_page:e[`per-page`],order:e.order,direction:e.direction,include_shadow_metadata:e[`include-shadow-metadata`],shadowed_by_name:e[`shadowed-by-name`],shadowing_name:e[`shadowing-name`]};if(e.dryRun){s({command:`cf dns records list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`none`});return}let r=await n(e),a=await i({zone:e.zone},r,{quiet:e.quiet});e.zoneId=a;let l=await c(`Loading`,async()=>r.dns.records.list({zone_id:a,...t}));o(l,{successLabel:`Loaded`})})};function W(e){return e.usage(`$0 dns records scan-list
|
|
45
45
|
|
|
46
46
|
Retrieves the list of DNS records discovered up to this point by the asynchronous scan. These records are temporary until explicitly accepted or rejected via \`POST /scan/review\`. Additional records may be discovered by the scan later.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const G={command:`scan-list`,describe:`List Scanned DNS Records`,builder:W,handler:async e=>l({command:`dns records scan-list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf dns records scan-list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records/scan/review`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.dns.records.scanList({zone_id:r}));o(a,{successLabel:`Loaded`})})};function K(e){return e.usage(`$0 dns records scan-review
|
|
47
47
|
|
|
@@ -53,11 +53,11 @@ Scan for common DNS records on your domain and automatically add them to your zo
|
|
|
53
53
|
|
|
54
54
|
Overwrite an existing DNS record. Notes: - A/AAAA records cannot exist on the same name as CNAME records. - NS records cannot exist on the same name as any other record type. - Domain names are always represented in Punycode, even if Unicode characters were used when creating the record.`).positional(`dns-record-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`include-shadow-metadata`,{type:`boolean`,description:"Whether to include shadow metadata in the `meta` field of each record in the response. See [Shadowed records](https://developers.cloudflare.com/dns/manage-dns-records/reference/shadowed-records)."}).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 ne={command:`update <dns-record-id>`,describe:`Overwrite DNS Record`,builder:Q,handler:async e=>l({command:`dns records update`,classification:{safeFlags:[`include-shadow-metadata`,`dry-run`]}},e,async()=>{let t={include_shadow_metadata:e[`include-shadow-metadata`]};if(e.dryRun){s({command:`cf dns records update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records/${e[`dns-record-id`]==null?`<dns-record-id>`:encodeURIComponent(String(e[`dns-record-id`]))}`,pathParams:{"dns-record-id":String(e[`dns-record-id`]??``),"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`json`,body:e.body===void 0?void 0:u(e.body)});return}let r=await n(e),a=await i({zone:e.zone},r,{quiet:e.quiet});if(e.zoneId=a,e.body){let n=u(e.body);new URLSearchParams(Object.entries(t).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let i=await c(`Updating`,async()=>r.dns.records.update({body:n,zone_id:a,dns_record_id:e[`dns-record-id`],...t}));o(i,{successLabel:`Updated`});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})},re={command:`records`,describe:`Operations for records`,builder:e=>e.command(k).command(j).command(N).command(F).command(L).command(z).command(V).command(U).command(Z).command(G).command(q).command(Y).command(ne).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ie(e){return e.usage(`$0 dns settings account edit
|
|
55
55
|
|
|
56
|
-
Update DNS settings for an account or zone`).option(`enforce-dns-only`,{type:`boolean`,description:`When enabled, forces all proxied DNS records in the account to behave as DNS-only at the edge, regardless of each record's individual proxy setting. Note that this account-level override does not modify the records themselves; it only affects how they are served at the edge. See more on [Enforce DNS-only](https://developers.cloudflare.com/dns/proxy-status/enforce-dns-only).`}).option(`zone-defaults-flatten-all-cnames`,{type:`boolean`,description:`Whether to flatten all CNAME records in the zone. Note that, due to DNS limitations, a CNAME record at the zone apex will always be flattened.`}).option(`zone-defaults-foundation-dns`,{type:`boolean`,description:`Deprecated. Use nameservers.type to configure Advanced Nameservers.`}).option(`zone-defaults-internal-dns-reference-zone-id`,{type:`string`,description:`The ID of the zone to fallback to.`}).option(`zone-defaults-multi-provider`,{type:`boolean`,description:`Whether to enable multi-provider DNS, which causes Cloudflare to activate the zone even when non-Cloudflare NS records exist, and to respect NS records at the zone apex during outbound zone transfers.`}).option(`zone-defaults-ns-ttl`,{type:`number`,description:`The time to live (TTL) of the zone's nameserver (NS) records.`}).option(`zone-defaults-secondary-overrides`,{type:`boolean`,description:`Allows a Secondary DNS zone to use (proxied) override records and CNAME flattening at the zone apex.`}).option(`zone-defaults-soa-expire`,{type:`number`,description:`Time in seconds of being unable to query the primary server after which secondary servers should stop serving the zone.`}).option(`zone-defaults-soa-min-ttl`,{type:`number`,description:`The time to live (TTL) for negative caching of records within the zone.`}).option(`zone-defaults-soa-mname`,{type:`string`,description:`The primary nameserver, which may be used for outbound zone transfers. If null, a Cloudflare-assigned value will be used.`}).option(`zone-defaults-soa-refresh`,{type:`number`,description:`Time in seconds after which secondary servers should re-check the SOA record to see if the zone has been updated.`}).option(`zone-defaults-soa-retry`,{type:`number`,description:`Time in seconds after which secondary servers should retry queries after the primary server was unresponsive.`}).option(`zone-defaults-soa-rname`,{type:`string`,description:`The email address of the zone administrator, with the first label representing the local part of the email address.`}).option(`zone-defaults-soa-ttl`,{type:`number`,description:`The time to live (TTL) of the SOA record itself.`}).option(`zone-defaults-zone-mode`,{type:`string`,description:`Whether the zone mode is a regular or CDN/DNS only zone.`,choices:[`standard`,`cdn_only`,`dns_only`]}).option(`zone-defaults-nameservers-type`,{type:`string`,description:`Nameserver type`,choices:[`cloudflare.standard`,`cloudflare.advanced`,`cloudflare.standard.random`,`custom.account`,`custom.tenant`]}).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 ae={command:`edit`,describe:`Update DNS Settings`,builder:ie,handler:async t=>l({command:`dns settings account edit`,classification:{safeFlags:[`enforce-dns-only`,`zone-defaults-flatten-all-cnames`,`zone-defaults-foundation-dns`,`zone-defaults-multi-provider`,`zone-defaults-secondary-overrides`,`zone-defaults-zone-mode`,`zone-defaults-nameservers-type`,`dry-run`]}},t,async()=>{if(t.dryRun){let e=t.zone===void 0?await r():void 0,n=t.zone===void 0?`accounts`:`zones`,i=t.zone??e??`<account-id>`;s({command:`cf dns settings account edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/dns_settings`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i)},bodyKind:`json`,body:t.body===void 0?f({enforce_dns_only:t[`enforce-dns-only`],zone_defaults:{flatten_all_cnames:t[`zone-defaults-flatten-all-cnames`],foundation_dns:t[`zone-defaults-foundation-dns`],internal_dns:{reference_zone_id:p(t[`zone-defaults-internal-dns-reference-zone-id`],`zone-defaults-internal-dns-reference-zone-id`,`text`)},multi_provider:t[`zone-defaults-multi-provider`],ns_ttl:t[`zone-defaults-ns-ttl`],secondary_overrides:t[`zone-defaults-secondary-overrides`],soa:{expire:t[`zone-defaults-soa-expire`],min_ttl:t[`zone-defaults-soa-min-ttl`],mname:p(t[`zone-defaults-soa-mname`],`zone-defaults-soa-mname`,`text`),refresh:t[`zone-defaults-soa-refresh`],retry:t[`zone-defaults-soa-retry`],rname:p(t[`zone-defaults-soa-rname`],`zone-defaults-soa-rname`,`text`),ttl:t[`zone-defaults-soa-ttl`]},zone_mode:
|
|
56
|
+
Update DNS settings for an account or zone`).option(`enforce-dns-only`,{type:`boolean`,description:`When enabled, forces all proxied DNS records in the account to behave as DNS-only at the edge, regardless of each record's individual proxy setting. Note that this account-level override does not modify the records themselves; it only affects how they are served at the edge. See more on [Enforce DNS-only](https://developers.cloudflare.com/dns/proxy-status/enforce-dns-only).`}).option(`zone-defaults-flatten-all-cnames`,{type:`boolean`,description:`Whether to flatten all CNAME records in the zone. Note that, due to DNS limitations, a CNAME record at the zone apex will always be flattened.`}).option(`zone-defaults-foundation-dns`,{type:`boolean`,description:`Deprecated. Use nameservers.type to configure Advanced Nameservers.`}).option(`zone-defaults-internal-dns-reference-zone-id`,{type:`string`,description:`The ID of the zone to fallback to.`}).option(`zone-defaults-multi-provider`,{type:`boolean`,description:`Whether to enable multi-provider DNS, which causes Cloudflare to activate the zone even when non-Cloudflare NS records exist, and to respect NS records at the zone apex during outbound zone transfers.`}).option(`zone-defaults-ns-ttl`,{type:`number`,description:`The time to live (TTL) of the zone's nameserver (NS) records.`}).option(`zone-defaults-secondary-overrides`,{type:`boolean`,description:`Allows a Secondary DNS zone to use (proxied) override records and CNAME flattening at the zone apex.`}).option(`zone-defaults-soa-expire`,{type:`number`,description:`Time in seconds of being unable to query the primary server after which secondary servers should stop serving the zone.`}).option(`zone-defaults-soa-min-ttl`,{type:`number`,description:`The time to live (TTL) for negative caching of records within the zone.`}).option(`zone-defaults-soa-mname`,{type:`string`,description:`The primary nameserver, which may be used for outbound zone transfers. If null, a Cloudflare-assigned value will be used.`}).option(`zone-defaults-soa-refresh`,{type:`number`,description:`Time in seconds after which secondary servers should re-check the SOA record to see if the zone has been updated.`}).option(`zone-defaults-soa-retry`,{type:`number`,description:`Time in seconds after which secondary servers should retry queries after the primary server was unresponsive.`}).option(`zone-defaults-soa-rname`,{type:`string`,description:`The email address of the zone administrator, with the first label representing the local part of the email address.`}).option(`zone-defaults-soa-ttl`,{type:`number`,description:`The time to live (TTL) of the SOA record itself.`}).option(`zone-defaults-zone-mode`,{type:`string`,description:`Whether the zone mode is a regular or CDN/DNS only zone.`,choices:[`standard`,`cdn_only`,`dns_only`]}).coerce(`zone-defaults-zone-mode`,e=>p(e,`zone-defaults-zone-mode`,`text`)).option(`zone-defaults-nameservers-type`,{type:`string`,description:`Nameserver type`,choices:[`cloudflare.standard`,`cloudflare.advanced`,`cloudflare.standard.random`,`custom.account`,`custom.tenant`]}).coerce(`zone-defaults-nameservers-type`,e=>p(e,`zone-defaults-nameservers-type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ae={command:`edit`,describe:`Update DNS Settings`,builder:ie,handler:async t=>l({command:`dns settings account edit`,classification:{safeFlags:[`enforce-dns-only`,`zone-defaults-flatten-all-cnames`,`zone-defaults-foundation-dns`,`zone-defaults-multi-provider`,`zone-defaults-secondary-overrides`,`zone-defaults-zone-mode`,`zone-defaults-nameservers-type`,`dry-run`]}},t,async()=>{if(t.dryRun){let e=t.zone===void 0?await r():void 0,n=t.zone===void 0?`accounts`:`zones`,i=t.zone??e??`<account-id>`;s({command:`cf dns settings account edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/dns_settings`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i)},bodyKind:`json`,body:t.body===void 0?f({enforce_dns_only:t[`enforce-dns-only`],zone_defaults:{flatten_all_cnames:t[`zone-defaults-flatten-all-cnames`],foundation_dns:t[`zone-defaults-foundation-dns`],internal_dns:{reference_zone_id:p(t[`zone-defaults-internal-dns-reference-zone-id`],`zone-defaults-internal-dns-reference-zone-id`,`text`)},multi_provider:t[`zone-defaults-multi-provider`],ns_ttl:t[`zone-defaults-ns-ttl`],secondary_overrides:t[`zone-defaults-secondary-overrides`],soa:{expire:t[`zone-defaults-soa-expire`],min_ttl:t[`zone-defaults-soa-min-ttl`],mname:p(t[`zone-defaults-soa-mname`],`zone-defaults-soa-mname`,`text`),refresh:t[`zone-defaults-soa-refresh`],retry:t[`zone-defaults-soa-retry`],rname:p(t[`zone-defaults-soa-rname`],`zone-defaults-soa-rname`,`text`),ttl:t[`zone-defaults-soa-ttl`]},zone_mode:t[`zone-defaults-zone-mode`],nameservers:{type:t[`zone-defaults-nameservers-type`]}}}):u(t.body)});return}let l=await n(t),d=t.zone===void 0?`accounts`:`zones`,m=d===`zones`?await i({zone:t.zone},l,{quiet:t.quiet}):t.local?e:await a();if(d===`zones`?t.zoneId=m:t.accountId=m,t.body){let e=u(t.body),n=await c(`Updating`,async()=>l.dns.settings.account.edit({...e,account_or_zone:d,account_or_zone_id:m}));o(n,{successLabel:`Updated`});return}let h=f({enforce_dns_only:t[`enforce-dns-only`],zone_defaults:{flatten_all_cnames:t[`zone-defaults-flatten-all-cnames`],foundation_dns:t[`zone-defaults-foundation-dns`],internal_dns:{reference_zone_id:p(t[`zone-defaults-internal-dns-reference-zone-id`],`zone-defaults-internal-dns-reference-zone-id`,`text`)},multi_provider:t[`zone-defaults-multi-provider`],ns_ttl:t[`zone-defaults-ns-ttl`],secondary_overrides:t[`zone-defaults-secondary-overrides`],soa:{expire:t[`zone-defaults-soa-expire`],min_ttl:t[`zone-defaults-soa-min-ttl`],mname:p(t[`zone-defaults-soa-mname`],`zone-defaults-soa-mname`,`text`),refresh:t[`zone-defaults-soa-refresh`],retry:t[`zone-defaults-soa-retry`],rname:p(t[`zone-defaults-soa-rname`],`zone-defaults-soa-rname`,`text`),ttl:t[`zone-defaults-soa-ttl`]},zone_mode:t[`zone-defaults-zone-mode`],nameservers:{type:t[`zone-defaults-nameservers-type`]}}}),g=await c(`Updating`,async()=>l.dns.settings.account.edit({...h,account_or_zone:d,account_or_zone_id:m}));o(g,{successLabel:`Updated`})})};function oe(e){return e.usage(`$0 dns settings account get
|
|
57
57
|
|
|
58
58
|
Show DNS settings for an account or zone`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const se={command:`get`,describe:`Show DNS Settings`,builder:oe,handler:async t=>l({command:`dns settings account get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=t.zone===void 0?await r():void 0,n=t.zone===void 0?`accounts`:`zones`,i=t.zone??e??`<account-id>`;s({command:`cf dns settings account get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/dns_settings`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i)},bodyKind:`none`});return}let l=await n(t),u=t.zone===void 0?`accounts`:`zones`,d=u===`zones`?await i({zone:t.zone},l,{quiet:t.quiet}):t.local?e:await a();u===`zones`?t.zoneId=d:t.accountId=d;let f=await c(`Loading`,async()=>l.dns.settings.account.get({account_or_zone:u,account_or_zone_id:d}));o(f,{successLabel:`Loaded`})})};function ce(e){return e.usage(`$0 dns settings account nameserver-sets create
|
|
59
59
|
|
|
60
|
-
Creates an immutable Custom Nameserver Set. To change a set, create a new one, move any zone assignments, and delete the old set.`).option(`advanced`,{type:`boolean`,description:`Whether to allocate the nameservers from distinct Advanced anycast groups.`,default:!1}).option(`ip-set`,{type:`number`,description:"Selects the account-specific IP set that supplies the nameserver addresses.
|
|
60
|
+
Creates an immutable Custom Nameserver Set. To change a set, create a new one, move any zone assignments, and delete the old set.`).option(`advanced`,{type:`boolean`,description:`Whether to allocate the nameservers from distinct Advanced anycast groups.`,default:!1}).option(`ip-set`,{type:`number`,description:"Selects the account-specific IP set that supplies the nameserver addresses. Nameserver sets with the same `ip_set` and `advanced` value may reuse addresses; otherwise, they use disjoint address groups.",default:1}).option(`nameservers`,{type:`string`,description:`Lists each nameserver and the number of addresses to allocate to it. Requires a unique name for each entry in the set. 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 le={command:`create`,describe:`Create Custom Nameserver Set`,builder:ce,handler:async t=>l({command:`dns settings account nameserver-sets create`,classification:{safeFlags:[`advanced`,`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf dns settings account nameserver-sets create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/dns_settings/nameserver_sets`,pathParams:{},bodyKind:`json`,body:t.body===void 0?f({advanced:t.advanced,ip_set:t[`ip-set`],nameservers:d(t.nameservers,`nameservers`)}):u(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=u(t.body),n=await c(`Creating`,async()=>i.dns.settings.account.nameserverSets.create({...e,account_id:l}));o(n,{successLabel:`Created`});return}if(t.nameservers===void 0)throw Error(`--nameservers is required (or pass --body with this field set).`);let p=f({advanced:t.advanced,ip_set:t[`ip-set`],nameservers:d(t.nameservers,`nameservers`)}),m=await c(`Creating`,async()=>i.dns.settings.account.nameserverSets.create({...p,account_id:l}));o(m,{successLabel:`Created`})})};function ue(e){return e.usage(`$0 dns settings account nameserver-sets delete <nameserver-set-id>
|
|
61
61
|
|
|
62
62
|
Deletes an unassigned Custom Nameserver Set.`).positional(`nameserver-set-id`,{type:`string`,description:`Identifier for a nameserver set.`,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 de={command:`delete <nameserver-set-id>`,describe:`Delete Custom Nameserver Set`,builder:ue,handler:async t=>l({command:`dns settings account nameserver-sets delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf dns settings account nameserver-sets delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/dns_settings/nameserver_sets/${t[`nameserver-set-id`]==null?`<nameserver-set-id>`:encodeURIComponent(String(t[`nameserver-set-id`]))}`,pathParams:{"nameserver-set-id":String(t[`nameserver-set-id`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,!await g({force:!!t.force})){process.stderr.write(`Aborted.
|
|
63
63
|
`);return}let u=await c(`Deleting`,async()=>i.dns.settings.account.nameserverSets.delete({account_id:l,nameserver_set_id:t[`nameserver-set-id`]}));o(u,{successLabel:`Deleted`})})};function fe(e){return e.usage(`$0 dns settings account nameserver-sets get <nameserver-set-id>
|
|
@@ -132,7 +132,7 @@ List Peers.`).option(`dry-run`,{type:`boolean`,description:`Validate and show wh
|
|
|
132
132
|
|
|
133
133
|
Modify Peer.`).positional(`peer-id`,{type:`string`,description:`Peer ID`,demandOption:!0}).option(`ip`,{type:`string`,description:`IPv4/IPv6 address of primary or secondary nameserver, depending on what zone this peer is linked to. For primary zones this IP defines the IP of the secondary nameserver Cloudflare will NOTIFY upon zone changes. For secondary zones this IP defines the IP of the primary nameserver Cloudflare will send AXFR/IXFR requests to.`}).option(`ixfr-enable`,{type:`boolean`,description:`Enable IXFR transfer protocol, default is AXFR. Only applicable to secondary zones.`}).option(`name`,{type:`string`,description:`The name of the peer.`}).option(`port`,{type:`number`,description:`DNS port of primary or secondary nameserver, depending on what zone this peer is linked to.`}).option(`tsig-id`,{type:`string`,description:`TSIG authentication will be used for zone transfer if configured.`}).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 At={command:`update <peer-id>`,describe:`Update Peer`,builder:kt,handler:async t=>l({command:`dns zone-transfers peers update`,classification:{safeFlags:[`ixfr-enable`,`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf dns zone-transfers peers update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/secondary_dns/peers/${t[`peer-id`]==null?`<peer-id>`:encodeURIComponent(String(t[`peer-id`]))}`,pathParams:{"peer-id":String(t[`peer-id`]??``)},bodyKind:`json`,body:t.body===void 0?f({ip:p(t.ip,`ip`,`text`),ixfr_enable:t[`ixfr-enable`],name:p(t.name,`name`,`text`),port:t.port,tsig_id:p(t[`tsig-id`],`tsig-id`,`text`)}):u(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=u(t.body),n=await c(`Updating`,async()=>i.dns.zoneTransfers.peers.update({body:e,account_id:l,peer_id:t[`peer-id`]}));o(n,{successLabel:`Updated`});return}t.name===void 0&&(t.name=await h(`name`,`The name of the peer.`));let d=f({ip:p(t.ip,`ip`,`text`),ixfr_enable:t[`ixfr-enable`],name:p(t.name,`name`,`text`),port:t.port,tsig_id:p(t[`tsig-id`],`tsig-id`,`text`)}),m=await c(`Updating`,async()=>i.dns.zoneTransfers.peers.update({body:d,account_id:l,peer_id:t[`peer-id`]}));o(m,{successLabel:`Updated`})})},jt={command:`peers`,describe:`Operations for zone-transfers.peers`,builder:e=>e.command(St).command(wt).command(Et).command(Ot).command(At).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Mt(e){return e.usage(`$0 dns zone-transfers tsigs create
|
|
134
134
|
|
|
135
|
-
Create TSIG.`).option(`algo`,{type:`string`,description:`TSIG algorithm.`}).option(`name`,{type:`string`,description:`TSIG key name.`}).option(`secret`,{type:`string`,description:`TSIG secret.`}).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 Nt={command:`create`,describe:`Create TSIG`,builder:Mt,handler:async t=>l({command:`dns zone-transfers tsigs create`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf dns zone-transfers tsigs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/secondary_dns/tsigs`,pathParams:{},bodyKind:`json`,body:t.body===void 0?f({algo:p(t.algo,`algo`,`text`),name:p(t.name,`name`,`text`),secret:p(t.secret,`secret`,`text`)}):u(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=u(t.body),n=await c(`Creating`,async()=>i.dns.zoneTransfers.tsigs.create({body:e,account_id:l}));o(n,{successLabel:`Created`});return}t.algo===void 0&&(t.algo=await h(`algo`,`TSIG algorithm.`)),t.name===void 0&&(t.name=await h(`name`,`TSIG key name.`)),t.secret===void 0&&(t.secret=await h(`secret`,`TSIG secret.`,{kind:`secret`}));let d=f({algo:p(t.algo,`algo`,`text`),name:p(t.name,`name`,`text`),secret:p(t.secret,`secret`,`text`)}),m=await c(`Creating`,async()=>i.dns.zoneTransfers.tsigs.create({body:d,account_id:l}));o(m,{successLabel:`Created`})})};function $(e){return e.usage(`$0 dns zone-transfers tsigs delete <tsig-id>
|
|
135
|
+
Create TSIG.`).option(`algo`,{type:`string`,description:`TSIG algorithm.`}).option(`name`,{type:`string`,description:`TSIG key name.`}).option(`secret`,{type:`string`,description:`TSIG secret.`}).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 Nt={command:`create`,describe:`Create TSIG`,builder:Mt,handler:async t=>l({command:`dns zone-transfers tsigs create`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf dns zone-transfers tsigs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/secondary_dns/tsigs`,pathParams:{},bodyKind:`json`,body:t.body===void 0?f({algo:p(t.algo,`algo`,`text`),name:p(t.name,`name`,`text`),secret:p(t.secret,`secret`,`text`)}):u(t.body),sensitiveBodyPaths:[[`secret`]]});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=u(t.body),n=await c(`Creating`,async()=>i.dns.zoneTransfers.tsigs.create({body:e,account_id:l}));o(n,{successLabel:`Created`});return}t.algo===void 0&&(t.algo=await h(`algo`,`TSIG algorithm.`)),t.name===void 0&&(t.name=await h(`name`,`TSIG key name.`)),t.secret===void 0&&(t.secret=await h(`secret`,`TSIG secret.`,{kind:`secret`}));let d=f({algo:p(t.algo,`algo`,`text`),name:p(t.name,`name`,`text`),secret:p(t.secret,`secret`,`text`)}),m=await c(`Creating`,async()=>i.dns.zoneTransfers.tsigs.create({body:d,account_id:l}));o(m,{successLabel:`Created`})})};function $(e){return e.usage(`$0 dns zone-transfers tsigs delete <tsig-id>
|
|
136
136
|
|
|
137
137
|
Delete TSIG.`).positional(`tsig-id`,{type:`string`,description:`Tsig ID`,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 Pt={command:`delete <tsig-id>`,describe:`Delete TSIG`,builder:$,handler:async t=>l({command:`dns zone-transfers tsigs delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf dns zone-transfers tsigs delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/secondary_dns/tsigs/${t[`tsig-id`]==null?`<tsig-id>`:encodeURIComponent(String(t[`tsig-id`]))}`,pathParams:{"tsig-id":String(t[`tsig-id`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,!await g({force:!!t.force})){process.stderr.write(`Aborted.
|
|
138
138
|
`);return}let u=await c(`Deleting`,async()=>i.dns.zoneTransfers.tsigs.delete({account_id:l,tsig_id:t[`tsig-id`]}));o(u,{successLabel:`Deleted`})})};function Ft(e){return e.usage(`$0 dns zone-transfers tsigs get <tsig-id>
|
|
@@ -141,4 +141,4 @@ Get TSIG.`).positional(`tsig-id`,{type:`string`,description:`Tsig ID`,demandOpti
|
|
|
141
141
|
|
|
142
142
|
List TSIGs.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Rt={command:`list`,describe:`List TSIGs`,builder:Lt,handler:async t=>l({command:`dns zone-transfers tsigs list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf dns zone-transfers tsigs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/secondary_dns/tsigs`,pathParams:{},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l;let u=await c(`Loading`,async()=>i.dns.zoneTransfers.tsigs.list({account_id:l}));o(u,{successLabel:`Loaded`})})};function zt(e){return e.usage(`$0 dns zone-transfers tsigs update <tsig-id>
|
|
143
143
|
|
|
144
|
-
Modify TSIG.`).positional(`tsig-id`,{type:`string`,description:`Tsig ID`,demandOption:!0}).option(`algo`,{type:`string`,description:`TSIG algorithm.`}).option(`name`,{type:`string`,description:`TSIG key name.`}).option(`secret`,{type:`string`,description:`TSIG secret.`}).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 Bt={command:`update <tsig-id>`,describe:`Update TSIG`,builder:zt,handler:async t=>l({command:`dns zone-transfers tsigs update`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf dns zone-transfers tsigs update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/secondary_dns/tsigs/${t[`tsig-id`]==null?`<tsig-id>`:encodeURIComponent(String(t[`tsig-id`]))}`,pathParams:{"tsig-id":String(t[`tsig-id`]??``)},bodyKind:`json`,body:t.body===void 0?f({algo:p(t.algo,`algo`,`text`),name:p(t.name,`name`,`text`),secret:p(t.secret,`secret`,`text`)}):u(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=u(t.body),n=await c(`Updating`,async()=>i.dns.zoneTransfers.tsigs.update({body:e,account_id:l,tsig_id:t[`tsig-id`]}));o(n,{successLabel:`Updated`});return}t.algo===void 0&&(t.algo=await h(`algo`,`TSIG algorithm.`)),t.name===void 0&&(t.name=await h(`name`,`TSIG key name.`)),t.secret===void 0&&(t.secret=await h(`secret`,`TSIG secret.`,{kind:`secret`}));let d=f({algo:p(t.algo,`algo`,`text`),name:p(t.name,`name`,`text`),secret:p(t.secret,`secret`,`text`)}),m=await c(`Updating`,async()=>i.dns.zoneTransfers.tsigs.update({body:d,account_id:l,tsig_id:t[`tsig-id`]}));o(m,{successLabel:`Updated`})})},Vt={command:`tsigs`,describe:`Operations for zone-transfers.tsigs`,builder:e=>e.command(Nt).command(Pt).command(It).command(Rt).command(Bt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ht={command:`zone-transfers`,describe:`Operations for zone-transfers`,builder:e=>e.command(We).command(qe).command(nt).command(bt).command(jt).command(Vt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ut={command:`dns`,describe:`dns`,builder:e=>e.command(D).command(re).command(ke).command(Ne).command(Ht).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Ut as default};
|
|
144
|
+
Modify TSIG.`).positional(`tsig-id`,{type:`string`,description:`Tsig ID`,demandOption:!0}).option(`algo`,{type:`string`,description:`TSIG algorithm.`}).option(`name`,{type:`string`,description:`TSIG key name.`}).option(`secret`,{type:`string`,description:`TSIG secret.`}).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 Bt={command:`update <tsig-id>`,describe:`Update TSIG`,builder:zt,handler:async t=>l({command:`dns zone-transfers tsigs update`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();s({command:`cf dns zone-transfers tsigs update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/secondary_dns/tsigs/${t[`tsig-id`]==null?`<tsig-id>`:encodeURIComponent(String(t[`tsig-id`]))}`,pathParams:{"tsig-id":String(t[`tsig-id`]??``)},bodyKind:`json`,body:t.body===void 0?f({algo:p(t.algo,`algo`,`text`),name:p(t.name,`name`,`text`),secret:p(t.secret,`secret`,`text`)}):u(t.body),sensitiveBodyPaths:[[`secret`]]});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=u(t.body),n=await c(`Updating`,async()=>i.dns.zoneTransfers.tsigs.update({body:e,account_id:l,tsig_id:t[`tsig-id`]}));o(n,{successLabel:`Updated`});return}t.algo===void 0&&(t.algo=await h(`algo`,`TSIG algorithm.`)),t.name===void 0&&(t.name=await h(`name`,`TSIG key name.`)),t.secret===void 0&&(t.secret=await h(`secret`,`TSIG secret.`,{kind:`secret`}));let d=f({algo:p(t.algo,`algo`,`text`),name:p(t.name,`name`,`text`),secret:p(t.secret,`secret`,`text`)}),m=await c(`Updating`,async()=>i.dns.zoneTransfers.tsigs.update({body:d,account_id:l,tsig_id:t[`tsig-id`]}));o(m,{successLabel:`Updated`})})},Vt={command:`tsigs`,describe:`Operations for zone-transfers.tsigs`,builder:e=>e.command(Nt).command(Pt).command(It).command(Rt).command(Bt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ht={command:`zone-transfers`,describe:`Operations for zone-transfers`,builder:e=>e.command(We).command(qe).command(nt).command(bt).command(jt).command(Vt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ut={command:`dns`,describe:`dns`,builder:e=>e.command(D).command(re).command(ke).command(Ne).command(Ht).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Ut as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{t as e}from"./output-BOe-3AQG.mjs";function t(e,t){let n=(e,t)=>{let r=t[0];if(r===void 0||typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map(e=>n(e,t));let i=e[r];return i===void 0?e:{...e,[r]:t.length===1?`<redacted>`:n(i,t.slice(1))}},r=e;for(let e of t)r=n(r,e);return r}function n({sensitiveBodyPaths:n,...r}){if(!n?.length){e(r);return}e({...r,body:t(r.body,n)})}export{n as t};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-BcPM4I0s.mjs";import{n as t}from"./auth-CAWalgW0.mjs";import{a as n,t as r}from"./context-BBLtgdR1.mjs";import{t as i}from"./output-BOe-3AQG.mjs";import{t as a}from"./dry-run-DRj2_uV3.mjs";import{t as o}from"./progress-CQqDtgmF.mjs";import{t as s}from"./run-CW2Cgi0S.mjs";import"./telemetry-0Y5hAtCX.mjs";function c(e){return e.usage(`$0 durable-objects namespaces list
|
|
3
3
|
|
|
4
4
|
Returns the Durable Object namespaces owned by an account.`).option(`page`,{type:`number`,description:`Current page.`}).option(`per-page`,{type:`number`,description:`Items per-page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`list`,describe:`List Durable Object Namespaces`,builder:c,handler:async c=>s({command:`durable-objects namespaces list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`]};if(c.dryRun){let e=await n();a({command:`cf durable-objects namespaces list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/workers/durable_objects/namespaces`,pathParams:{},query:s,bodyKind:`none`});return}let l=await t(c),u=c.local?e:await r();c.accountId=u;let d=await o(`Loading`,async()=>l.durableObjects.namespaces.list({account_id:u,...s}));i(d,{successLabel:`Loaded`})})};function u(e){return e.usage(`$0 durable-objects namespaces objects list
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{n as e}from"./auth-
|
|
2
|
+
import{n as e}from"./auth-CAWalgW0.mjs";import{i as t}from"./context-BBLtgdR1.mjs";import{t as n}from"./output-BOe-3AQG.mjs";import{t as r}from"./dry-run-DRj2_uV3.mjs";import{t as i}from"./progress-CQqDtgmF.mjs";import{t as a}from"./run-CW2Cgi0S.mjs";import"./telemetry-0Y5hAtCX.mjs";import{n as o,t as s}from"./body-parser-DkHKPkJ7.mjs";function c(e){return e.usage("$0 email-auth dmarc-reports edit\n\nUpdates the DMARC report configuration for a zone. At least one of `enabled` or `skip_wizard` must be provided. When enabling, the handler will ensure the DMARC RUA record exists in DNS.").option(`enabled`,{type:`boolean`,description:`Enable or disable DMARC reports for this zone`}).option(`skip-wizard`,{type:`boolean`,description:`Skip the DMARC setup wizard`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for PATCH /dmarc-reports`})}const l={command:`edit`,describe:`Configure DMARC Reports`,builder:c,handler:async c=>a({command:`email-auth dmarc-reports edit`,classification:{safeFlags:[`enabled`,`skip-wizard`,`dry-run`]}},c,async()=>{if(c.dryRun){r({command:`cf email-auth dmarc-reports edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${c.zone??c.zoneId??`<zone>`}/email/auth/dmarc-reports`,pathParams:{"zone-id":String(c.zone??c[`zone-id`]??``)},bodyKind:`json`,body:c.body===void 0?s({enabled:c.enabled,skip_wizard:c[`skip-wizard`]}):o(c.body)});return}let a=await e(c),l=await t({zone:c.zone},a,{quiet:c.quiet});if(c.zoneId=l,c.body){let e=o(c.body),t=await i(`Updating`,async()=>a.emailAuth.dmarcReports.edit({...e,zone_id:l}));n(t,{successLabel:`Updated`});return}let u=s({enabled:c.enabled,skip_wizard:c[`skip-wizard`]}),d=await i(`Updating`,async()=>a.emailAuth.dmarcReports.edit({...u,zone_id:l}));n(d,{successLabel:`Updated`})})};function u(e){return e.usage(`$0 email-auth dmarc-reports get
|
|
3
3
|
|
|
4
4
|
Retrieves the current DMARC report configuration and status for a zone. Returns the RUA prefix, enabled status, approved sources, and DNS records.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const d={command:`get`,describe:`Get DMARC Report Status`,builder:u,handler:async o=>a({command:`email-auth dmarc-reports get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf email-auth dmarc-reports get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/email/auth/dmarc-reports`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s;let c=await i(`Loading`,async()=>a.emailAuth.dmarcReports.get({zone_id:s}));n(c,{successLabel:`Loaded`})})},f={command:`dmarc-reports`,describe:`Operations for dmarc-reports`,builder:e=>e.command(l).command(d).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function p(e){return e.usage(`$0 email-auth spf inspect
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-BcPM4I0s.mjs";import{n as t}from"./auth-CAWalgW0.mjs";import{a as n,i as r,t as i}from"./context-BBLtgdR1.mjs";import{t as a}from"./output-BOe-3AQG.mjs";import{t as o}from"./dry-run-DRj2_uV3.mjs";import{t as s}from"./progress-CQqDtgmF.mjs";import{t as c}from"./run-CW2Cgi0S.mjs";import"./telemetry-0Y5hAtCX.mjs";import{n as l,r as u,t as d}from"./body-parser-DkHKPkJ7.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,i as m,n as h}from"./prompt-C8FyienX.mjs";import{t as g}from"./cli-types-9oYmRTHJ.mjs";function _(e){return e.usage(`$0 email-routing addresses create
|
|
3
3
|
|
|
4
4
|
Create a destination address to forward your emails to. Destination addresses need to be verified before they can be used.`).option(`email`,{type:`string`,description:`The contact email address of the user.`}).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 v={command:`create`,describe:`Create a destination address`,builder:_,handler:async r=>c({command:`email-routing addresses create`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){let e=await n();o({command:`cf email-routing addresses create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/email/routing/addresses`,pathParams:{},bodyKind:`json`,body:r.body===void 0?d({email:f(r.email,`email`,`text`)}):l(r.body)});return}let c=await t(r),u=r.local?e:await i();if(r.accountId=u,r.body){let e=l(r.body),t=await s(`Creating`,async()=>c.emailRouting.addresses.create({...e,account_id:u}));a(t,{successLabel:`Created`});return}r.email===void 0&&(r.email=await p(`email`,`The contact email address of the user.`));let m=d({email:f(r.email,`email`,`text`)}),h=await s(`Creating`,async()=>c.emailRouting.addresses.create({...m,account_id:u}));a(h,{successLabel:`Created`})})};function y(e){return e.usage(`$0 email-routing addresses delete <destination-address-identifier>
|
|
5
5
|
|
|
@@ -10,7 +10,7 @@ Gets information for a specific destination email already created.`).positional(
|
|
|
10
10
|
|
|
11
11
|
Lists destination addresses configured for Email Routing in an account.`).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:`Sorts results in an ascending or descending order.`,choices:[`asc`,`desc`]}).option(`verified`,{type:`string`,description:`Filter by verified destination addresses.`,choices:[`true`,`false`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const w={command:`list`,describe:`List destination addresses`,builder:g(C),handler:async r=>c({command:`email-routing addresses list`,classification:{safeFlags:[`direction`,`verified`,`dry-run`]}},r,async()=>{let c={page:r.page,per_page:r[`per-page`],direction:r.direction,verified:r.verified};if(r.dryRun){let e=await n();o({command:`cf email-routing addresses list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/email/routing/addresses`,pathParams:{},query:c,bodyKind:`none`});return}let l=await t(r),u=r.local?e:await i();r.accountId=u;let d=await s(`Loading`,async()=>l.emailRouting.addresses.list({account_id:u,...c}));a(d,{successLabel:`Loaded`})})};function T(e){return e.usage(`$0 email-routing addresses update <destination-address-identifier>
|
|
12
12
|
|
|
13
|
-
Updates the status of a specific destination address.`).positional(`destination-address-identifier`,{type:`string`,description:`Destination address identifier.`,demandOption:!0}).option(`status`,{type:`string`,description:`Destination address status. Non-admin callers may only set verified addresses back to unverified; setting to verified requires admin privileges.`,choices:[`unverified`,`verified`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const E={command:`update <destination-address-identifier>`,describe:`Update destination address`,builder:T,handler:async r=>c({command:`email-routing addresses update`,classification:{safeFlags:[`status`,`dry-run`]}},r,async()=>{if(r.dryRun){let e=await n();o({command:`cf email-routing addresses update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/email/routing/addresses/${r[`destination-address-identifier`]==null?`<destination-address-identifier>`:encodeURIComponent(String(r[`destination-address-identifier`]))}`,pathParams:{"destination-address-identifier":String(r[`destination-address-identifier`]??``)},bodyKind:`json`,body:r.body===void 0?d({status:
|
|
13
|
+
Updates the status of a specific destination address.`).positional(`destination-address-identifier`,{type:`string`,description:`Destination address identifier.`,demandOption:!0}).option(`status`,{type:`string`,description:`Destination address status. Non-admin callers may only set verified addresses back to unverified; setting to verified requires admin privileges.`,choices:[`unverified`,`verified`]}).coerce(`status`,e=>f(e,`status`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const E={command:`update <destination-address-identifier>`,describe:`Update destination address`,builder:T,handler:async r=>c({command:`email-routing addresses update`,classification:{safeFlags:[`status`,`dry-run`]}},r,async()=>{if(r.dryRun){let e=await n();o({command:`cf email-routing addresses update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/email/routing/addresses/${r[`destination-address-identifier`]==null?`<destination-address-identifier>`:encodeURIComponent(String(r[`destination-address-identifier`]))}`,pathParams:{"destination-address-identifier":String(r[`destination-address-identifier`]??``)},bodyKind:`json`,body:r.body===void 0?d({status:r.status}):l(r.body)});return}let c=await t(r),u=r.local?e:await i();if(r.accountId=u,r.body){let e=l(r.body),t=await s(`Updating`,async()=>c.emailRouting.addresses.update({...e,account_id:u,destination_address_identifier:r[`destination-address-identifier`]}));a(t,{successLabel:`Updated`});return}r.status===void 0&&(r.status=await m(`status`,`Destination address status. Non-admin callers may only set verified addresses back to unverified; setting to verified requires admin privileges.`,[`unverified`,`verified`]));let f=d({status:r.status}),p=await s(`Updating`,async()=>c.emailRouting.addresses.update({...f,account_id:u,destination_address_identifier:r[`destination-address-identifier`]}));a(p,{successLabel:`Updated`})})},D={command:`addresses`,describe:`Verified destination email addresses that can receive forwarded mail`,builder:e=>e.command(v).command(b).command(S).command(w).command(E).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function O(e){return e.usage(`$0 email-routing disable
|
|
14
14
|
|
|
15
15
|
Disable your Email Routing zone. Also removes additional MX records previously required for Email Routing to work.`).option(`name`,{type:`string`,description:`Domain of your zone.`}).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}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const k={command:`disable`,describe:`Disable Email Routing`,builder:O,handler:async e=>c({command:`email-routing disable`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){o({command:`cf email-routing disable`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing/dns`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({name:f(e.name,`name`,`text`)}):l(e.body)});return}let n=await t(e),i=await r({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=i,!await h({force:!!e.force,message:`This operation disables Email Routing and removes its DNS records.`})){process.stderr.write(`Aborted.
|
|
16
16
|
`);return}if(e.body){let t=l(e.body),r=await s(`Deleting`,async()=>n.emailRouting.disable({body:t,zone_id:i}));a(r,{successLabel:`Deleted`});return}let c=d({name:f(e.name,`name`,`text`)}),u=await s(`Deleting`,async()=>n.emailRouting.disable({body:c,zone_id:i}));a(u,{successLabel:`Deleted`})})};function A(e){return e.usage(`$0 email-routing dns get
|
|
@@ -23,9 +23,9 @@ Enable your Email Routing zone. Add and lock the necessary MX and SPF records.`)
|
|
|
23
23
|
|
|
24
24
|
Get information on the default catch-all routing rule.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ee={command:`get`,describe:`Get catch-all rule`,builder:L,handler:async e=>c({command:`email-routing rules catch-all get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf email-routing rules catch-all get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing/rules/catch_all`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),i=await r({zone:e.zone},n,{quiet:e.quiet});e.zoneId=i;let c=await s(`Loading`,async()=>n.emailRouting.rules.catchAll.get({zone_id:i}));a(c,{successLabel:`Loaded`})})};function R(e){return e.usage(`$0 email-routing rules catch-all update
|
|
25
25
|
|
|
26
|
-
Enable or disable catch-all routing rule, or change action to forward to a specific destination address. Forward actions require exactly one verified destination address.`).option(`actions`,{type:`string`,description:`List actions for the catch-all routing rule. Provide as a JSON array of objects or @path/to/file.json.`}).option(`enabled`,{type:`boolean`,description:`Routing rule status.`}).option(`matchers`,{type:`string`,description:`List of matchers for the catch-all routing rule. Provide as a JSON array of objects or @path/to/file.json.`}).option(`name`,{type:`string`,description:`Routing rule name.`}).option(`owner-worker-tag`,{type:`string`,description:"Public tag (script_tag) of the Worker that owns this rule. Required when\n`source` is `wrangler`.\n"}).option(`source`,{type:`string`,description:"Who manages the rule. `api` covers dashboard, generic API, and Terraform;\n`wrangler` means the rule is managed by a Worker's wrangler.jsonc. Defaults\nto `api` when omitted on write.\n",choices:[`api`,`wrangler`]}).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:`update`,describe:`Update catch-all rule`,builder:R,handler:async e=>c({command:`email-routing rules catch-all update`,classification:{safeFlags:[`enabled`,`source`,`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf email-routing rules catch-all update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing/rules/catch_all`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({actions:u(e.actions,`actions`),enabled:e.enabled,matchers:u(e.matchers,`matchers`),name:f(e.name,`name`,`text`),owner_worker_tag:f(e[`owner-worker-tag`],`owner-worker-tag`,`text`),source:
|
|
26
|
+
Enable or disable catch-all routing rule, or change action to forward to a specific destination address. Forward actions require exactly one verified destination address.`).option(`actions`,{type:`string`,description:`List actions for the catch-all routing rule. Provide as a JSON array of objects or @path/to/file.json.`}).option(`enabled`,{type:`boolean`,description:`Routing rule status.`}).option(`matchers`,{type:`string`,description:`List of matchers for the catch-all routing rule. Provide as a JSON array of objects or @path/to/file.json.`}).option(`name`,{type:`string`,description:`Routing rule name.`}).option(`owner-worker-tag`,{type:`string`,description:"Public tag (script_tag) of the Worker that owns this rule. Required when\n`source` is `wrangler`.\n"}).option(`source`,{type:`string`,description:"Who manages the rule. `api` covers dashboard, generic API, and Terraform;\n`wrangler` means the rule is managed by a Worker's wrangler.jsonc. Defaults\nto `api` when omitted on write.\n",choices:[`api`,`wrangler`]}).coerce(`source`,e=>f(e,`source`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const z={command:`update`,describe:`Update catch-all rule`,builder:R,handler:async e=>c({command:`email-routing rules catch-all update`,classification:{safeFlags:[`enabled`,`source`,`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf email-routing rules catch-all update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing/rules/catch_all`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({actions:u(e.actions,`actions`),enabled:e.enabled,matchers:u(e.matchers,`matchers`),name:f(e.name,`name`,`text`),owner_worker_tag:f(e[`owner-worker-tag`],`owner-worker-tag`,`text`),source:e.source}):l(e.body)});return}let n=await t(e),i=await r({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=i,e.body){let t=l(e.body),r=await s(`Updating`,async()=>n.emailRouting.rules.catchAll.update({...t,zone_id:i}));a(r,{successLabel:`Updated`});return}if(e.actions===void 0)throw Error(`--actions is required (or pass --body with this field set).`);if(e.matchers===void 0)throw Error(`--matchers is required (or pass --body with this field set).`);let c=d({actions:u(e.actions,`actions`),enabled:e.enabled,matchers:u(e.matchers,`matchers`),name:f(e.name,`name`,`text`),owner_worker_tag:f(e[`owner-worker-tag`],`owner-worker-tag`,`text`),source:e.source}),p=await s(`Updating`,async()=>n.emailRouting.rules.catchAll.update({...c,zone_id:i}));a(p,{successLabel:`Updated`})})},B={command:`catch-all`,describe:`Operations for rules.catch-all`,builder:e=>e.command(ee).command(z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function V(e){return e.usage(`$0 email-routing rules create
|
|
27
27
|
|
|
28
|
-
Rules consist of a set of criteria for matching emails (such as an email being sent to a specific custom email address) plus a set of actions to take on the email (like forwarding it to a specific destination address). Forward actions require exactly one verified destination address.`).option(`actions`,{type:`string`,description:`List actions patterns. Provide as a JSON array of objects or @path/to/file.json.`}).option(`enabled`,{type:`boolean`,description:`Routing rule status.`,default:!0}).option(`matchers`,{type:`string`,description:`Matching patterns to forward to your actions. Provide as a JSON array of objects or @path/to/file.json.`}).option(`name`,{type:`string`,description:`Routing rule name.`}).option(`owner-worker-tag`,{type:`string`,description:"Public tag (script_tag) of the Worker that owns this rule. Required when\n`source` is `wrangler`.\n"}).option(`priority`,{type:`number`,description:`Priority of the routing rule.`,default:0}).option(`source`,{type:`string`,description:"Who manages the rule. `api` covers dashboard, generic API, and Terraform;\n`wrangler` means the rule is managed by a Worker's wrangler.jsonc. Defaults\nto `api` when omitted on write.\n",choices:[`api`,`wrangler`],default:`api`}).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 H={command:`create`,describe:`Create routing rule`,builder:V,handler:async e=>c({command:`email-routing rules create`,classification:{safeFlags:[`enabled`,`source`,`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf email-routing rules create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing/rules`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({actions:u(e.actions,`actions`),enabled:e.enabled,matchers:u(e.matchers,`matchers`),name:f(e.name,`name`,`text`),owner_worker_tag:f(e[`owner-worker-tag`],`owner-worker-tag`,`text`),priority:e.priority,source:
|
|
28
|
+
Rules consist of a set of criteria for matching emails (such as an email being sent to a specific custom email address) plus a set of actions to take on the email (like forwarding it to a specific destination address). Forward actions require exactly one verified destination address.`).option(`actions`,{type:`string`,description:`List actions patterns. Provide as a JSON array of objects or @path/to/file.json.`}).option(`enabled`,{type:`boolean`,description:`Routing rule status.`,default:!0}).option(`matchers`,{type:`string`,description:`Matching patterns to forward to your actions. Provide as a JSON array of objects or @path/to/file.json.`}).option(`name`,{type:`string`,description:`Routing rule name.`}).option(`owner-worker-tag`,{type:`string`,description:"Public tag (script_tag) of the Worker that owns this rule. Required when\n`source` is `wrangler`.\n"}).option(`priority`,{type:`number`,description:`Priority of the routing rule.`,default:0}).option(`source`,{type:`string`,description:"Who manages the rule. `api` covers dashboard, generic API, and Terraform;\n`wrangler` means the rule is managed by a Worker's wrangler.jsonc. Defaults\nto `api` when omitted on write.\n",choices:[`api`,`wrangler`],default:`api`}).coerce(`source`,e=>f(e,`source`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const H={command:`create`,describe:`Create routing rule`,builder:V,handler:async e=>c({command:`email-routing rules create`,classification:{safeFlags:[`enabled`,`source`,`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf email-routing rules create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing/rules`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({actions:u(e.actions,`actions`),enabled:e.enabled,matchers:u(e.matchers,`matchers`),name:f(e.name,`name`,`text`),owner_worker_tag:f(e[`owner-worker-tag`],`owner-worker-tag`,`text`),priority:e.priority,source:e.source}):l(e.body)});return}let n=await t(e),i=await r({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=i,e.body){let t=l(e.body),r=await s(`Creating`,async()=>n.emailRouting.rules.create({...t,zone_id:i}));a(r,{successLabel:`Created`});return}if(e.actions===void 0)throw Error(`--actions is required (or pass --body with this field set).`);if(e.matchers===void 0)throw Error(`--matchers is required (or pass --body with this field set).`);let c=d({actions:u(e.actions,`actions`),enabled:e.enabled,matchers:u(e.matchers,`matchers`),name:f(e.name,`name`,`text`),owner_worker_tag:f(e[`owner-worker-tag`],`owner-worker-tag`,`text`),priority:e.priority,source:e.source}),p=await s(`Creating`,async()=>n.emailRouting.rules.create({...c,zone_id:i}));a(p,{successLabel:`Created`})})};function U(e){return e.usage(`$0 email-routing rules delete <rule-identifier>
|
|
29
29
|
|
|
30
30
|
Deletes a routing rule so matching incoming messages are no longer forwarded by it.`).positional(`rule-identifier`,{type:`string`,description:`Routing rule identifier.`,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 W={command:`delete <rule-identifier>`,describe:`Delete routing rule`,builder:U,handler:async e=>c({command:`email-routing rules delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){o({command:`cf email-routing rules delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing/rules/${e[`rule-identifier`]==null?`<rule-identifier>`:encodeURIComponent(String(e[`rule-identifier`]))}`,pathParams:{"rule-identifier":String(e[`rule-identifier`]??``),"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),i=await r({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=i,!await h({force:!!e.force,message:`This operation permanently deletes an Email Routing rule.`})){process.stderr.write(`Aborted.
|
|
31
31
|
`);return}let c=await s(`Deleting`,async()=>n.emailRouting.rules.delete({zone_id:i,rule_identifier:e[`rule-identifier`]}));a(c,{successLabel:`Deleted`})})};function G(e){return e.usage(`$0 email-routing rules get <rule-identifier>
|
|
@@ -36,7 +36,7 @@ Lists existing routing rules across all zones in the account or zone.`).option(`
|
|
|
36
36
|
|
|
37
37
|
Computes the Email Routing rule changes that would be needed to reconcile a Wrangler-managed desired ruleset. This endpoint is read-only and does not create, update, or delete rules.`).option(`catch-all-rules`,{type:`string`,description:`Desired catch-all Email Routing rules managed by the deploying Worker. Provide as a JSON array of objects or @path/to/file.json.`}).option(`owner-worker-tag`,{type:`string`,description:"Public tag (script_tag) of the Worker that owns this rule. Required when\n`source` is `wrangler`.\n"}).option(`rules`,{type:`string`,description:`Desired normal Email Routing rules managed by the deploying Worker. 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 X={command:`plan`,describe:`Plan account routing rule changes`,builder:Y,handler:async r=>c({command:`email-routing rules plan`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){let e=await n();o({command:`cf email-routing rules plan`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/email/routing/rules/plan`,pathParams:{},bodyKind:`json`,body:r.body===void 0?d({catch_all_rules:u(r[`catch-all-rules`],`catch-all-rules`),owner_worker_tag:f(r[`owner-worker-tag`],`owner-worker-tag`,`text`),rules:u(r.rules,`rules`)}):l(r.body)});return}let c=await t(r),m=r.local?e:await i();if(r.accountId=m,r.body){let e=l(r.body),t=await s(`Creating`,async()=>c.emailRouting.rules.plan({...e,account_id:m}));a(t,{successLabel:`Created`});return}r[`owner-worker-tag`]===void 0&&(r[`owner-worker-tag`]=await p(`owner-worker-tag`,"Public tag (script_tag) of the Worker that owns this rule. Required when `source` is `wrangler`. "));let h=d({catch_all_rules:u(r[`catch-all-rules`],`catch-all-rules`),owner_worker_tag:f(r[`owner-worker-tag`],`owner-worker-tag`,`text`),rules:u(r.rules,`rules`)}),g=await s(`Creating`,async()=>c.emailRouting.rules.plan({...h,account_id:m}));a(g,{successLabel:`Created`})})};function Z(e){return e.usage(`$0 email-routing rules update <rule-identifier>
|
|
38
38
|
|
|
39
|
-
Update actions and matches, or enable/disable specific routing rules. Forward actions require exactly one verified destination address.`).positional(`rule-identifier`,{type:`string`,description:`Routing rule identifier.`,demandOption:!0}).option(`actions`,{type:`string`,description:`List actions patterns. Provide as a JSON array of objects or @path/to/file.json.`}).option(`enabled`,{type:`boolean`,description:`Routing rule status.`}).option(`matchers`,{type:`string`,description:`Matching patterns to forward to your actions. Provide as a JSON array of objects or @path/to/file.json.`}).option(`name`,{type:`string`,description:`Routing rule name.`}).option(`owner-worker-tag`,{type:`string`,description:"Public tag (script_tag) of the Worker that owns this rule. Required when\n`source` is `wrangler`.\n"}).option(`priority`,{type:`number`,description:`Priority of the routing rule.`}).option(`source`,{type:`string`,description:"Who manages the rule. `api` covers dashboard, generic API, and Terraform;\n`wrangler` means the rule is managed by a Worker's wrangler.jsonc. Defaults\nto `api` when omitted on write.\n",choices:[`api`,`wrangler`]}).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 Q={command:`update <rule-identifier>`,describe:`Update routing rule`,builder:Z,handler:async e=>c({command:`email-routing rules update`,classification:{safeFlags:[`enabled`,`source`,`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf email-routing rules update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing/rules/${e[`rule-identifier`]==null?`<rule-identifier>`:encodeURIComponent(String(e[`rule-identifier`]))}`,pathParams:{"rule-identifier":String(e[`rule-identifier`]??``),"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({actions:u(e.actions,`actions`),enabled:e.enabled,matchers:u(e.matchers,`matchers`),name:f(e.name,`name`,`text`),owner_worker_tag:f(e[`owner-worker-tag`],`owner-worker-tag`,`text`),priority:e.priority,source:
|
|
39
|
+
Update actions and matches, or enable/disable specific routing rules. Forward actions require exactly one verified destination address.`).positional(`rule-identifier`,{type:`string`,description:`Routing rule identifier.`,demandOption:!0}).option(`actions`,{type:`string`,description:`List actions patterns. Provide as a JSON array of objects or @path/to/file.json.`}).option(`enabled`,{type:`boolean`,description:`Routing rule status.`}).option(`matchers`,{type:`string`,description:`Matching patterns to forward to your actions. Provide as a JSON array of objects or @path/to/file.json.`}).option(`name`,{type:`string`,description:`Routing rule name.`}).option(`owner-worker-tag`,{type:`string`,description:"Public tag (script_tag) of the Worker that owns this rule. Required when\n`source` is `wrangler`.\n"}).option(`priority`,{type:`number`,description:`Priority of the routing rule.`}).option(`source`,{type:`string`,description:"Who manages the rule. `api` covers dashboard, generic API, and Terraform;\n`wrangler` means the rule is managed by a Worker's wrangler.jsonc. Defaults\nto `api` when omitted on write.\n",choices:[`api`,`wrangler`]}).coerce(`source`,e=>f(e,`source`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Q={command:`update <rule-identifier>`,describe:`Update routing rule`,builder:Z,handler:async e=>c({command:`email-routing rules update`,classification:{safeFlags:[`enabled`,`source`,`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf email-routing rules update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing/rules/${e[`rule-identifier`]==null?`<rule-identifier>`:encodeURIComponent(String(e[`rule-identifier`]))}`,pathParams:{"rule-identifier":String(e[`rule-identifier`]??``),"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({actions:u(e.actions,`actions`),enabled:e.enabled,matchers:u(e.matchers,`matchers`),name:f(e.name,`name`,`text`),owner_worker_tag:f(e[`owner-worker-tag`],`owner-worker-tag`,`text`),priority:e.priority,source:e.source}):l(e.body)});return}let n=await t(e),i=await r({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=i,e.body){let t=l(e.body),r=await s(`Updating`,async()=>n.emailRouting.rules.update({...t,zone_id:i,rule_identifier:e[`rule-identifier`]}));a(r,{successLabel:`Updated`});return}if(e.actions===void 0)throw Error(`--actions is required (or pass --body with this field set).`);if(e.matchers===void 0)throw Error(`--matchers is required (or pass --body with this field set).`);let c=d({actions:u(e.actions,`actions`),enabled:e.enabled,matchers:u(e.matchers,`matchers`),name:f(e.name,`name`,`text`),owner_worker_tag:f(e[`owner-worker-tag`],`owner-worker-tag`,`text`),priority:e.priority,source:e.source}),p=await s(`Updating`,async()=>n.emailRouting.rules.update({...c,zone_id:i,rule_identifier:e[`rule-identifier`]}));a(p,{successLabel:`Updated`})})},$={command:`rules`,describe:`Match incoming email addresses and forward messages to destination mailboxes or Workers`,builder:e=>e.command(H).command(W).command(K).command(J).command(X).command(Q).command(B).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function te(e){return e.usage(`$0 email-routing settings apply
|
|
40
40
|
|
|
41
41
|
Apply the provided settings to your Email Routing zone. Omitted settings retain their current values, as with PATCH.`).option(`enabled`,{type:`boolean`,description:"State of your zone Email Routing settings. No-op on this endpoint - use `POST`/`DELETE /zones/{zone_id}/email/routing/dns`."}).option(`skip-wizard`,{type:`boolean`,description:`Flag to check if the user skipped the configuration wizard.`}).option(`support-subaddress`,{type:`boolean`,description:`Whether subaddressing (plus-addressing) is honored when matching incoming mail against routing rules.`}).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 ne={command:`apply`,describe:`Apply Email Routing settings`,builder:te,handler:async e=>c({command:`email-routing settings apply`,classification:{safeFlags:[`enabled`,`skip-wizard`,`support-subaddress`,`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf email-routing settings apply`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({enabled:e.enabled,skip_wizard:e[`skip-wizard`],support_subaddress:e[`support-subaddress`]}):l(e.body)});return}let n=await t(e),i=await r({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=i,e.body){let t=l(e.body),r=await s(`Updating`,async()=>n.emailRouting.settings.apply({...t,zone_id:i}));a(r,{successLabel:`Updated`});return}let c=d({enabled:e.enabled,skip_wizard:e[`skip-wizard`],support_subaddress:e[`support-subaddress`]}),u=await s(`Updating`,async()=>n.emailRouting.settings.apply({...c,zone_id:i}));a(u,{successLabel:`Updated`})})};function re(e){return e.usage(`$0 email-routing settings get
|
|
42
42
|
|