cf 1.0.0-beta.16 → 1.0.0-beta.18
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 +6117 -4540
- package/dist/_meta/schemas.json +5016 -3257
- package/dist/{abuse-reports-17K-TRhO.mjs → abuse-reports-Ce-g5uZP.mjs} +6 -6
- package/dist/{access-BwB7sg1D.mjs → access-BtsMwesh.mjs} +1 -1
- package/dist/{accounts-BnIGu_ac.mjs → accounts-X5QVzEUW.mjs} +27 -21
- package/dist/{acm-CQRcu_zw.mjs → acm-C_NepMi6.mjs} +1 -1
- package/dist/{addressing-Qcm9jd3C.mjs → addressing-BkQY1hoA.mjs} +18 -18
- package/dist/{agent-memory-B3xN9I6-.mjs → agent-memory-1OPgC3lK.mjs} +6 -6
- package/dist/{ai-BRKOCckA.mjs → ai-Bb0_Zknm.mjs} +1 -1
- package/dist/{ai-audit-Cd9Rc2Fc.mjs → ai-audit-DuEjVdML.mjs} +1 -1
- package/dist/{ai-gateway-BWU5064V.mjs → ai-gateway-Cm2vWMSI.mjs} +42 -42
- package/dist/ai-search-DDRpxyOM.mjs +79 -0
- package/dist/{ai-security-Dn0Ee6QS.mjs → ai-security-A2STvE1b.mjs} +5 -5
- package/dist/{alerting-BXTiMfXo.mjs → alerting-CIwSk-Ks.mjs} +1 -1
- package/dist/{analytics-Jyd04TRW.mjs → analytics-H--uM3DA.mjs} +7 -7
- package/dist/{analytics-engine-CzrNfUeh.mjs → analytics-engine-Alu7cllT.mjs} +1 -1
- package/dist/{api-security-DRBHZaf_.mjs → api-security-D-pcnhUL.mjs} +26 -26
- package/dist/{argo-DiQt0pSb.mjs → argo-Lvmcx3am.mjs} +1 -1
- package/dist/{artifacts-eBZ4YN53.mjs → artifacts-xT5S-mVa.mjs} +1 -1
- package/dist/{audit-logs-Bb4HTZay.mjs → audit-logs-DEoRBLkU.mjs} +1 -1
- package/dist/{auth-C6My1gI6.mjs → auth-B73lQS2h.mjs} +1 -1
- package/dist/auth-DMzEmOhG.mjs +2 -0
- package/dist/{auth-eVI_UEt8.mjs → auth-Db1KT0vm.mjs} +1 -1
- package/dist/{auth-token-Cfj2yehs.mjs → auth-token-D9XIPlwf.mjs} +1 -1
- package/dist/{autoconfig-B0ESZ8DJ.mjs → autoconfig-9po_tqsS.mjs} +1 -1
- package/dist/{basin-catalog-Cwk1RSMX.mjs → basin-catalog-DFHt3cWi.mjs} +1 -1
- package/dist/{billing-CfV8oi6A.mjs → billing-Bm2JNSGa.mjs} +6 -6
- package/dist/body-parser-DnBfDdx3.mjs +2 -0
- package/dist/{bot-management-CH4_Kewx.mjs → bot-management-CSr38g-O.mjs} +4 -4
- package/dist/{botnet-feed-Cg_Wp8ei.mjs → botnet-feed-ebeWWSJj.mjs} +1 -1
- package/dist/{brand-protection-Cp2ckWou.mjs → brand-protection-BCn9Mv-d.mjs} +5 -5
- package/dist/browser-run-BcWxzhAn.mjs +42 -0
- package/dist/build-BRJnyeu8.mjs +2 -0
- package/dist/{build-sBpqm9ga.mjs → build-i8l2qGVZ.mjs} +1 -1
- package/dist/{builds-B2RBgVL9.mjs → builds-BMwDzi7G.mjs} +39 -39
- package/dist/{cache-yvrYPvRI.mjs → cache-_VaTLC5T.mjs} +1 -1
- package/dist/chunk-JP6R7L72-C0kFUelb.mjs +2 -0
- package/dist/cli-P3q5DG3W.mjs +6 -0
- package/dist/{client-side-security-D50iZjd_.mjs → client-side-security-CjSXrpa9.mjs} +1 -1
- package/dist/{cloud-connector-wvSGdxWT.mjs → cloud-connector-BPJBeP06.mjs} +1 -1
- package/dist/{cloudforce-one-j6vlmaMB.mjs → cloudforce-one-DXX31GMi.mjs} +189 -189
- package/dist/{command-CM_f48gs.mjs → command-BXiA79DP.mjs} +1 -1
- package/dist/{command-CmUtmu5j.mjs → command-BbsPxJBT.mjs} +1 -1
- package/dist/{command-BDpm-U8z.mjs → command-Bkc04OyY.mjs} +1 -1
- package/dist/{command-BSbhJRmu.mjs → command-BtTc28ql.mjs} +1 -1
- package/dist/{command-DFRsim8q.mjs → command-CBZhxmKD.mjs} +1 -1
- package/dist/{command-BbO3sBQ2.mjs → command-CL7LLXM7.mjs} +1 -1
- package/dist/{command-DQojhTEQ.mjs → command-CYyfigfC.mjs} +1 -1
- package/dist/{command-DiqRELHF.mjs → command-CxWLFv5Y.mjs} +1 -1
- package/dist/{command-74P4_CTx.mjs → command-DDcBC4px.mjs} +1 -1
- package/dist/{command-Dr4PEvB2.mjs → command-NoxvOARP.mjs} +1 -1
- package/dist/{completions-oD1EcuHk.mjs → completions-CrDmwKnK.mjs} +1 -1
- package/dist/{connector-interrupts-DP4rbOe8.mjs → connector-interrupts-V4HGULCM.mjs} +1 -1
- package/dist/{connector-telemetry-events-BQGBQwzR.mjs → connector-telemetry-events-D9mTcfbJ.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-DBO0Mdcj.mjs → connector-telemetry-snapshots-COrPVKol.mjs} +1 -1
- package/dist/{connectors-BSVr3Kz1.mjs → connectors-DvVlxGDx.mjs} +1 -1
- package/dist/{containers-BTqAeVV2.mjs → containers-Bt2zFsFd.mjs} +8 -8
- package/dist/{containers-BOpKpipz.mjs → containers-BtcOgwm5.mjs} +2 -2
- package/dist/{content-scan-B9Keyxe-.mjs → content-scan-DldLmTjy.mjs} +1 -1
- package/dist/{context-B-vEsyrK.mjs → context-C_a8oSY9.mjs} +1 -1
- package/dist/cps-REo1OWP1.mjs +6 -0
- package/dist/csam-scanner-CIbbdoJK.mjs +10 -0
- package/dist/{custom-csrs-DM5X-K6H.mjs → custom-csrs-iGNc3rSZ.mjs} +1 -1
- package/dist/{custom-hostnames-BBjqaiFF.mjs → custom-hostnames-BNxYbTyu.mjs} +15 -15
- package/dist/{custom-nameservers-C0NDMLPJ.mjs → custom-nameservers-BMJoTSlQ.mjs} +1 -1
- package/dist/custom-pages-Qdemt1Fm.mjs +21 -0
- package/dist/{d1-hin5PmxW.mjs → d1-DvCiQibO.mjs} +8 -8
- package/dist/{deploy-Bo7FtE44.mjs → deploy-K664XPOb.mjs} +1 -1
- package/dist/{deploy-context-ClvBD87y.mjs → deploy-context-ClNVJYlR.mjs} +13 -13
- package/dist/{deploy-input-BqJ7GVZ-.mjs → deploy-input-KK6yyBN_.mjs} +1 -1
- package/dist/{dev-EtnMYA7K.mjs → dev-CnoMHxf4.mjs} +1 -1
- package/dist/{diagnostics-LZuMrGjK.mjs → diagnostics-Cw0mtcep.mjs} +2 -2
- package/dist/{dls-Bq8k3iy-.mjs → dls-DoqfqutH.mjs} +1 -1
- package/dist/{dns-ry5E2Bsa.mjs → dns-DC6WcO3m.mjs} +21 -21
- package/dist/{dns-firewall-zavP5Qxj.mjs → dns-firewall-DpQH9BCE.mjs} +9 -9
- package/dist/{docs-B08YtL0U.mjs → docs-CqNRBHab.mjs} +1 -1
- package/dist/{durable-objects-B9fo41B1.mjs → durable-objects-CJDDy3CC.mjs} +1 -1
- package/dist/{email-auth-D9LGjFlh.mjs → email-auth--NHg1TjG.mjs} +1 -1
- package/dist/{email-routing-6iDnNPhY.mjs → email-routing-COjENK55.mjs} +13 -13
- package/dist/{email-security-ty4ufRnJ.mjs → email-security-rdjH95T2.mjs} +38 -38
- package/dist/{email-sending-d7LO_Cz_.mjs → email-sending-26VJhR6Q.mjs} +18 -18
- package/dist/{field-extractors-DkgQ7PSw.mjs → field-extractors-DBOvGOwz.mjs} +2 -2
- package/dist/{firewall-Q88YyEwD.mjs → firewall-D8K93ffF.mjs} +20 -20
- package/dist/{flagship-CzI8zhd6.mjs → flagship-CHdmCmvQ.mjs} +11 -11
- package/dist/{fraud-CvFXTR0w.mjs → fraud-CY4TV5Vc.mjs} +1 -1
- package/dist/{google-tag-gateway-Y2zbyey8.mjs → google-tag-gateway-DzSt4wlz.mjs} +1 -1
- package/dist/healthchecks-B52Mf3uL.mjs +22 -0
- package/dist/{hostnames-B3k7fIUL.mjs → hostnames-BMITIM8P.mjs} +1 -1
- package/dist/{hyperdrive-BWGYz95H.mjs → hyperdrive-CHsW0r6Z.mjs} +1 -1
- package/dist/{iam-AXco_qmt.mjs → iam-o1n9eUXf.mjs} +9 -9
- package/dist/{images-BzYh8y0u.mjs → images-CJHAGxX6.mjs} +37 -37
- package/dist/index.mjs +1 -1
- package/dist/{init-DlenHBtS.mjs → init-CqQDL6i3.mjs} +1 -1
- package/dist/{intel-BBi3i_GU.mjs → intel-B3S1gxUg.mjs} +1 -1
- package/dist/{ips-CWG2b7AM.mjs → ips-q_UJMiy8.mjs} +1 -1
- package/dist/{k2-DXdMe3Cb.mjs → k2-BNqVZnDN.mjs} +2 -2
- package/dist/{kv-FUd7UdDu.mjs → kv-B0nXSOcW.mjs} +1 -1
- package/dist/{lazy-command-BC8rIlHu.mjs → lazy-command-4ccdBqrc.mjs} +1 -1
- package/dist/{leaked-credential-checks-BufVA9vL.mjs → leaked-credential-checks-BXwIjlTs.mjs} +1 -1
- package/dist/load-balancers-DJtMztJ0.mjs +76 -0
- package/dist/{login-DVbXZ_Tv.mjs → login-D-1FiBNv.mjs} +1 -1
- package/dist/{login-BJr2PBaJ.mjs → login-chQP8825.mjs} +1 -1
- package/dist/{logo-matches-BluaPvMa.mjs → logo-matches-qVYq8tWL.mjs} +1 -1
- package/dist/{logos-CXtmYWEJ.mjs → logos-tnIahhcu.mjs} +1 -1
- package/dist/{logpush-DCYgrqz0.mjs → logpush-D4s3pJRw.mjs} +24 -24
- package/dist/{logs-as60IP29.mjs → logs-cw7UL5V2.mjs} +3 -3
- package/dist/{magic-cloud-networking-0RsHugUF.mjs → magic-cloud-networking-CLEHztNY.mjs} +1 -1
- package/dist/{magic-network-monitoring-CPqvZdcb.mjs → magic-network-monitoring-DRwygeVq.mjs} +9 -9
- package/dist/{magic-transit-ClPyGzOE.mjs → magic-transit-BFopRdPs.mjs} +170 -170
- package/dist/{managed-defense-P4_QWSbK.mjs → managed-defense-D5kpmq0T.mjs} +9 -9
- package/dist/{managed-transforms-CUwQXMij.mjs → managed-transforms-CT4jjnzJ.mjs} +2 -2
- package/dist/{matches-BjckDBW1.mjs → matches-ClJ_24EY.mjs} +1 -1
- package/dist/{mcp-C2EG2c7L.mjs → mcp-50os3IRG.mjs} +10 -10
- package/dist/{mesh-CpMZA7Xt.mjs → mesh-jxtQP8sS.mjs} +2 -2
- package/dist/{migrate-6e5mJ79R.mjs → migrate-DerOyuv2.mjs} +1 -1
- package/dist/{monetization-DypuCZmU.mjs → monetization-D6cCDi-h.mjs} +4 -4
- package/dist/{network-DQ5Ridgy.mjs → network-dnWHB2uY.mjs} +27 -25
- package/dist/{network-interconnects-ifU4JhGE.mjs → network-interconnects-Cf8qSVdt.mjs} +1 -1
- package/dist/{o11y-CzssfRHt.mjs → o11y-oMSg1pG4.mjs} +49 -49
- package/dist/{oauth-BNTiErBG.mjs → oauth-BfBdHhPS.mjs} +1 -1
- package/dist/{oauth-BDdhqasa.mjs → oauth-DDOiiH7h.mjs} +1 -1
- package/dist/{oauth-clients-gknNcBdV.mjs → oauth-clients-XDmoe-b4.mjs} +1 -1
- package/dist/{oauth-scopes-BJeSanuF.mjs → oauth-scopes-D9VYGuTs.mjs} +1 -1
- package/dist/open-PCXX3ZDZ-5J5IU2MX-CKla-jDt.mjs +4 -0
- package/dist/organization-94lHeeOs.mjs +75 -0
- package/dist/{organizations-kfFFW4uO.mjs → organizations-BJf3UTFi.mjs} +1 -1
- package/dist/{origin-post-quantum-encryption-DfrnptJ1.mjs → origin-post-quantum-encryption-DMytVSUZ.mjs} +1 -1
- package/dist/{page-rules-ByrDMDBZ.mjs → page-rules-BUI-50oz.mjs} +4 -4
- package/dist/pages-CcdpCzHs.mjs +54 -0
- package/dist/pay-per-crawl-B1uHZn9j.mjs +38 -0
- package/dist/{pay-per-use-49EXt75f.mjs → pay-per-use-t066I5wm.mjs} +7 -7
- package/dist/{pipelines-Bvgh1BQZ.mjs → pipelines-Co6S044l.mjs} +8 -8
- package/dist/precursor-BftyvS86.mjs +4 -0
- package/dist/previews-BLhnhElx.mjs +7 -0
- package/dist/{progress-R-1tIuep.mjs → progress-Q5w9PNTT.mjs} +1 -1
- package/dist/{prompt-dgLm0iFJ.mjs → prompt-C0hKSr-R.mjs} +1 -1
- package/dist/{queries-EbIadtC5.mjs → queries-4MubO6Sz.mjs} +3 -3
- package/dist/{queues-C4GZ-O3f.mjs → queues-CteS5M92.mjs} +17 -17
- package/dist/{r2-DEuFfWBR.mjs → r2-2QpT_Gso.mjs} +24 -24
- package/dist/{radar-CDOERVcR.mjs → radar-ODKaK4FJ.mjs} +1 -1
- package/dist/{raw-fetch-BapeoreV.mjs → raw-fetch-CEOuoKl9.mjs} +1 -1
- package/dist/{realtime-D_A9Qgly.mjs → realtime-DkfU8uEX.mjs} +84 -84
- package/dist/registrar-DM6JTVPS.mjs +43 -0
- package/dist/{registrar-sandbox-BF3cYO3n.mjs → registrar-sandbox-BPNGf65G.mjs} +11 -9
- package/dist/{reporting-BWm9jIF8.mjs → reporting-5yFNXbJg.mjs} +1 -1
- package/dist/{request-headers-BRxv6NkA.mjs → request-headers-DXvswze2.mjs} +1 -1
- package/dist/request-tracers-BarLZY95.mjs +4 -0
- package/dist/{resource-sharing-C186jZv0.mjs → resource-sharing-BVEwBPs8.mjs} +19 -19
- package/dist/{rules-DYnGIU_0.mjs → rules-_C31X4Jz.mjs} +6 -6
- package/dist/{rulesets-BcNrbVcq.mjs → rulesets-8RwxoFhG.mjs} +6 -6
- package/dist/{rum-BDyRecfp.mjs → rum-CAUcpXpM.mjs} +6 -6
- package/dist/{run-BvDCuZ8q.mjs → run-DtFLvOHB.mjs} +1 -1
- package/dist/run-LcOb9rhI.mjs +2 -0
- package/dist/{schema-flags-DcKjAxI1.mjs → schema-flags-DibfxEF6.mjs} +1 -1
- package/dist/{scim-zn-CNCsc.mjs → scim-DX5XrQ4w.mjs} +1 -1
- package/dist/{secrets-store-CFhyQUV6.mjs → secrets-store-DSqqrr25.mjs} +1 -1
- package/dist/{security-insights-D8XgtCed.mjs → security-insights-FSktO04S.mjs} +1 -1
- package/dist/{security-txt-CCM-Vro0.mjs → security-txt-D2g3lQdg.mjs} +1 -1
- package/dist/{shared-ouAF7o4S.mjs → shared-eefMO8R4.mjs} +1 -1
- package/dist/smart-shield-IVb2sR0C.mjs +24 -0
- package/dist/{snippets-B2jBY0m_.mjs → snippets-cWwWficN.mjs} +2 -2
- package/dist/{spawn-DQttFH05.mjs → spawn-BW2bJmKO.mjs} +1 -1
- package/dist/{spectrum-Cf_4cGE8.mjs → spectrum-DYiIBYRB.mjs} +1 -1
- package/dist/{speed-DoXdyIYK.mjs → speed-C7uiW2Wf.mjs} +1 -1
- package/dist/{sql-Bze4h80q.mjs → sql-TGV8qQMj.mjs} +1 -1
- package/dist/{src-BguQDHjS.mjs → src-BUH-P_zd.mjs} +5 -5
- package/dist/ssl-xQP_HbWN.mjs +139 -0
- package/dist/{stream-BcReYIHJ.mjs → stream-CfWgj8Cr.mjs} +55 -55
- package/dist/{submit-ldFVNfNC.mjs → submit-DxGr1T40.mjs} +1 -1
- package/dist/tags-LEJ2VYhQ.mjs +23 -0
- package/dist/{telemetry-Cojgz4Sv.mjs → telemetry-BHne10Yy.mjs} +1 -1
- package/dist/telemetry-BavSU4ku.mjs +2 -0
- package/dist/{tenant-AZ0EAsmT.mjs → tenant-7d5vwc6K.mjs} +1 -1
- package/dist/{tenant-custom-nameservers-aozjaasc.mjs → tenant-custom-nameservers-BkxlPr5O.mjs} +1 -1
- package/dist/{tunnels-CXez5LPB.mjs → tunnels-DlGODvwT.mjs} +4 -4
- package/dist/{turnstile-B2NQ8Nsk.mjs → turnstile-DhLkdhij.mjs} +5 -5
- package/dist/update-check-nLfkSfdz.mjs +2 -0
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{update-check-BlyKN8m0.mjs → update-check-wvjOsnGK.mjs} +1 -1
- package/dist/{url-info-D_UqGiWD.mjs → url-info-CeoV5dBc.mjs} +1 -1
- package/dist/{url-normalization-CF1YHpIN.mjs → url-normalization-9NoaoRNh.mjs} +1 -1
- package/dist/{url-scanner-ChF3GO2U.mjs → url-scanner-w_-Sumz-.mjs} +8 -8
- package/dist/{user-BfWRsdJh.mjs → user-D33B3alX.mjs} +59 -59
- package/dist/{vectorize-CRYbWKg5.mjs → vectorize-Wp9De13y.mjs} +17 -17
- package/dist/version-B2RUUqGT.mjs +2 -0
- package/dist/{waiting-rooms-Crp7MVd9.mjs → waiting-rooms-BE8FloRd.mjs} +13 -13
- package/dist/{web-assets-CgyrPnT-.mjs → web-assets-ew0iaP7c.mjs} +35 -35
- package/dist/{web3-Cd0Yd0eQ.mjs → web3-BUyXBaqq.mjs} +6 -6
- package/dist/{workers-builds-f2nVw7EZ.mjs → workers-builds-DzU9NGno.mjs} +7 -7
- package/dist/{workers-for-platforms-DjeKp2uy.mjs → workers-for-platforms-B4xzFNxJ.mjs} +25 -22
- package/dist/{workers-CTwJpTfJ.mjs → workers-pP5tsDbD.mjs} +25 -22
- package/dist/{workers-vpc-B_L3TEg2.mjs → workers-vpc-Bre_t9Al.mjs} +1 -1
- package/dist/{workflows-CBPGf65x.mjs → workflows-DXYGKtqq.mjs} +1 -1
- package/dist/wrangler-migration-R9TQ_4Qd.mjs +946 -0
- package/dist/zaraz-DoH4QD0u.mjs +22 -0
- package/dist/{zero-trust-B9xY8zcn.mjs → zero-trust-DKt20rzE.mjs} +461 -458
- package/dist/{zone-CmwVqTI2.mjs → zone-BXM3p0JR.mjs} +1 -1
- package/dist/{zones-Bf0VVpMf.mjs → zones-CJdtqEBx.mjs} +21 -21
- package/package.json +11 -11
- package/dist/account-tags-povXTDAu.mjs +0 -15
- package/dist/ai-search-CJ3b8eot.mjs +0 -79
- package/dist/auth-OFqV2M4q.mjs +0 -2
- package/dist/body-parser-DkHKPkJ7.mjs +0 -2
- package/dist/browser-run-CfQ30dB6.mjs +0 -42
- package/dist/build-Bm6kGyzo.mjs +0 -2
- package/dist/certificate-authorities-BdMRaOnD.mjs +0 -6
- package/dist/cli-CsnoQloF.mjs +0 -6
- package/dist/client-certificates-CuWGvZSr.mjs +0 -13
- package/dist/cps-VRP794c5.mjs +0 -6
- package/dist/csam-scanner-C1jOgXVu.mjs +0 -10
- package/dist/ct-alerting-Y9vfa6Fo.mjs +0 -5
- package/dist/custom-certificates-CojTEC0E.mjs +0 -17
- package/dist/custom-pages-M4RUxcn6.mjs +0 -21
- package/dist/dcv-delegation-KOO8syyQ.mjs +0 -4
- package/dist/healthchecks-4Hz-6xYi.mjs +0 -22
- package/dist/keyless-certificates-B4ta_OGS.mjs +0 -13
- package/dist/keys-B9zvFzrf.mjs +0 -4
- package/dist/load-balancers-CWd9mSWM.mjs +0 -76
- package/dist/mtls-certificates-B5AWTU6u.mjs +0 -13
- package/dist/organization-CXAM41sd.mjs +0 -71
- package/dist/origin-ca-certificates-DwhYV3m_.mjs +0 -11
- package/dist/origin-tls-client-auth-COSxTc2q.mjs +0 -30
- package/dist/pages-DuGcBC6k.mjs +0 -54
- package/dist/pay-per-crawl-B3_Gn9Cj.mjs +0 -38
- package/dist/precursor-VobQf--m.mjs +0 -4
- package/dist/previews-DkwFHNRx.mjs +0 -7
- package/dist/registrar-X1YLlnmg.mjs +0 -43
- package/dist/request-tracers-CHWpiejG.mjs +0 -4
- package/dist/resource-tagging-BTagOZli.mjs +0 -4
- package/dist/run-roYb_Odh.mjs +0 -2
- package/dist/smart-shield-DwW7N92r.mjs +0 -24
- package/dist/ssl-u_0gUhPA.mjs +0 -45
- package/dist/tags-D_Hc_A-r.mjs +0 -4
- package/dist/telemetry-Ct_2AaO4.mjs +0 -2
- package/dist/update-check-BnGDxswi.mjs +0 -2
- package/dist/values-CLfxkAUJ.mjs +0 -4
- package/dist/version-CVlh2Zaq.mjs +0 -2
- package/dist/wrangler-migration-DxTB5yPT.mjs +0 -2
- package/dist/zaraz-3VDxl0gF.mjs +0 -22
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{s as e}from"./build-
|
|
2
|
+
import{s as e}from"./build-i8l2qGVZ.mjs";import{existsSync as t,readFileSync as n,statSync as r}from"node:fs";import{dirname as i,join as a,sep as o}from"node:path";const s={esm:`esm`,cjs:`commonjs`,python:`python`,"python-requirement":`python-requirement`,wasm:`compiled-wasm`,text:`text`,data:`buffer`,json:`text`};function c(e,t,n,r,a){let o=process.cwd(),s=t.main??``;return{entry:{file:s,projectRoot:o,configPath:e.configPath,format:`modules`,moduleRoot:s?i(s):e.bundleDir??``,exports:[]},name:e.config.name,compatibilityDate:t.compatibility_date,compatibilityFlags:t.compatibility_flags??[],assetsDir:p(e,t),main:t.main??void 0,keepVars:t.keep_vars??!1,dryRun:r[`dry-run`],env:void 0,outfile:void 0,tag:r.tag,message:r.message,secretsFile:r[`secrets-file`],experimentalAutoCreate:!0,accountId:n,sendMetrics:!1,resourcesProvision:!0,skipProvisioningConfigWriteback:!0,skipLastDeployedFromApiCheck:!1,containers:a,cliVars:{},isWorkersSite:!1,useServiceEnvApiPath:!1}}function l(e,t,n,r,i){return{...c(e,t,n,r,i),command:`deploy`,resourcesProvision:r.provision??!0,containersRollout:r[`containers-rollout`],triggers:t.triggers?.crons,routes:f(t),logpush:t.logpush,dispatchNamespace:r[`dispatch-namespace`],strict:!0,legacyAssetPaths:void 0,oldAssetTtl:void 0}}function u(e,t,n,r,i){return{...c(e,t,n,r,i),command:`versions upload`,strict:!0,previewAlias:r[`preview-alias`]}}function d(e,t,n,r){return{config:t,accountId:n,scriptName:t.name??e.config.name,crons:t.triggers?.crons,routes:f(t),firstDeploy:!1,dryRun:r[`dry-run`],validated:!1}}function f(e){return e.routes?e.routes:e.route?[e.route]:[]}function p(t,n){let r=t.assetsDir;if(!r)return;let i=!!n.main,a=n.assets?.run_worker_first;if(!i&&a)throw new e(`assets.run_worker_first requires a Worker entrypoint, but no main module is configured.`);return{directory:r,binding:n.assets?.binding,directoryExists:!0}}function m(i,o){if(!o.manifest||!i.bundleDir)return{modules:[],sourceMaps:void 0,dependencies:{},resolvedEntryPointPath:``,bundleType:`esm`,content:``};let{mainModule:c,modules:l}=o.manifest;h(c,i.bundleDir);let u=a(i.bundleDir,c);if(!t(u))throw new e(`Main module not found: ${u}`);let d=l?.[c]?.type??`esm`;if(d===`sourcemap`)throw new e(`Main module "${c}" cannot be a sourcemap.`);let f=n(u,`utf8`),p=s[d],m=[],g=[],_={};if(_[u]={bytesInOutput:r(u).size},l)for(let[o,u]of Object.entries(l)){if(o===c)continue;h(o,i.bundleDir);let l=a(i.bundleDir,o);if(u.type===`sourcemap`){if(!t(l))throw new e(`Module not found: ${l}`);g.push({name:o,content:n(l,`utf8`)});continue}if(!t(l))throw new e(`Module not found: ${l}`);let d=u.type===`wasm`||u.type===`data`?n(l):n(l,`utf8`);m.push({name:`./${o}`,filePath:l,content:d,type:s[u.type]}),_[l]={bytesInOutput:r(l).size}}return{modules:m,sourceMaps:g.length>0?g:void 0,dependencies:_,resolvedEntryPointPath:u,bundleType:p,content:f}}function h(t,n){let r=a(n,t);if(r!==n&&!r.startsWith(n+o))throw new e(`Module path "${t}" escapes the bundle directory.`)}export{u as i,l as n,d as r,m as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{r as e}from"./theme-BGHWSKCw.mjs";import{t}from"./cli-exit-CstFZ1eJ.mjs";import{i as n,r}from"./autoconfig-
|
|
2
|
+
import{r as e}from"./theme-BGHWSKCw.mjs";import{t}from"./cli-exit-CstFZ1eJ.mjs";import{i as n,r}from"./autoconfig-9po_tqsS.mjs";import"./ui-BtIBQeaG.mjs";import{n as i,t as a}from"./spawn-BW2bJmKO.mjs";import{t as o}from"./registry-CRnk93ur.mjs";const s={command:`dev [implArgs..]`,describe:`Run the project's Cloudflare dev server`,builder:t=>t.positional(`implArgs`,{type:`string`,array:!0,describe:`Arguments forwarded to the dev-server implementation`}).parserConfiguration({"unknown-options-as-args":!0,"camel-case-expansion":!1}).epilogue(`cf dev starts the appropriate development server for your project. It runs your framework's dev command when available, falling back to an installed Cloudflare dev server.
|
|
3
3
|
|
|
4
4
|
Only ${e.brand(`--mode`)} is forwarded to supported framework development servers. Other arguments are forwarded only to Cloudflare dev-server implementations.`),handler:async e=>{let s=process.cwd(),{details:c}=await r(s),l=(e.implArgs??[]).map(String),u=e.mode?[`--mode`,e.mode]:[];if(c?.devCommand){if(l.length>0)throw Error(`Arguments cannot currently be forwarded to the detected dev command \`${c.devCommand}\`. Run that command directly with the required arguments.`);if(e.mode&&!c.framework?.supportsMode)throw Error(`The detected command \`${c.devCommand}\` does not currently support \`--mode\`.`);let r=await n(c.devCommand,s,{env:{...c.env,...o()},args:u});throw new t(r.exitCode,{signal:r.signal})}let d=i(s),f=await a(d,`dev`,[...u,...l]);throw new t(f.exitCode,{signal:f.signal})}};export{s as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-
|
|
2
|
+
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-Db1KT0vm.mjs";import{a as r,t as i}from"./context-C_a8oSY9.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-Q5w9PNTT.mjs";import{t as c}from"./run-DtFLvOHB.mjs";import"./telemetry-BavSU4ku.mjs";import{n as l,t as u}from"./body-parser-DnBfDdx3.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,i as p,n as m}from"./prompt-C0hKSr-R.mjs";var h={method:`POST`,path:t=>e`/accounts/${t.account_id}/diagnostics/endpoint-healthchecks`,body:`json`,constants:{check_type:`icmp`}};function g(e){return e.usage(`$0 diagnostics endpoint-healthchecks create
|
|
3
3
|
|
|
4
4
|
Create Endpoint Health Check.`).option(`check-type`,{type:`string`,description:`type of check to perform`,choices:[`icmp`],default:`icmp`}).coerce(`check-type`,e=>d(e,`check-type`,`text`)).option(`endpoint`,{type:`string`,description:`the IP address of the host to perform checks against`}).option(`name`,{type:`string`,description:`Optional name associated with this check`}).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 _={command:`create`,describe:`Endpoint Health Check`,builder:g,handler:async e=>c({command:`diagnostics endpoint-healthchecks create`,classification:{safeFlags:[`check-type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf diagnostics endpoint-healthchecks create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/diagnostics/endpoint-healthchecks`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({check_type:e[`check-type`],endpoint:d(e.endpoint,`endpoint`,`text`),name:d(e.name,`name`,`text`)}):l(e.body)});return}let c=await n(e),m=e.local?t:await i();if(e.accountId=m,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(h,{body:t,account_id:m}));a(n,{successLabel:`Created`});return}e[`check-type`]===void 0&&(e[`check-type`]=await p(`check-type`,`type of check to perform`,[`icmp`])),e.endpoint===void 0&&(e.endpoint=await f(`endpoint`,`the IP address of the host to perform checks against`));let g=u({check_type:e[`check-type`],endpoint:d(e.endpoint,`endpoint`,`text`),name:d(e.name,`name`,`text`)}),_=await s(`Creating`,async()=>c.send(h,{body:g,account_id:m}));a(_,{successLabel:`Created`})})};var v={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/diagnostics/endpoint-healthchecks/${t.id}`};function y(e){return e.usage(`$0 diagnostics endpoint-healthchecks delete <id>
|
|
5
5
|
|
|
@@ -10,6 +10,6 @@ Get a single Endpoint Health Check.`).positional(`id`,{type:`string`,description
|
|
|
10
10
|
|
|
11
11
|
List Endpoint Health Checks.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`list`,describe:`List Endpoint Health Checks`,builder:T,handler:async e=>c({command:`diagnostics endpoint-healthchecks list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await r();o({command:`cf diagnostics endpoint-healthchecks list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/diagnostics/endpoint-healthchecks`,pathParams:{},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(w,{account_id:l}));a(u,{successLabel:`Loaded`})})};var D={method:`PUT`,path:t=>e`/accounts/${t.account_id}/diagnostics/endpoint-healthchecks/${t.id}`,body:`json`,constants:{check_type:`icmp`}};function O(e){return e.usage(`$0 diagnostics endpoint-healthchecks update <id>
|
|
12
12
|
|
|
13
|
-
Update
|
|
13
|
+
Update an Endpoint Health Check.`).positional(`id`,{type:`string`,description:`UUID.`,demandOption:!0}).option(`check-type`,{type:`string`,description:`type of check to perform`,choices:[`icmp`]}).coerce(`check-type`,e=>d(e,`check-type`,`text`)).option(`endpoint`,{type:`string`,description:`the IP address of the host to perform checks against`}).option(`name`,{type:`string`,description:`Optional name associated with this check`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const k={command:`update <id>`,describe:`Update Endpoint Health Check`,builder:O,handler:async e=>c({command:`diagnostics endpoint-healthchecks update`,classification:{safeFlags:[`check-type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf diagnostics endpoint-healthchecks update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/diagnostics/endpoint-healthchecks/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}`,pathParams:{id:String(e.id??``)},bodyKind:`json`,body:e.body===void 0?u({check_type:e[`check-type`],endpoint:d(e.endpoint,`endpoint`,`text`),name:d(e.name,`name`,`text`)}):l(e.body)});return}let c=await n(e),m=e.local?t:await i();if(e.accountId=m,e.body){let t=l(e.body),n=await s(`Updating`,async()=>c.send(D,{body:t,account_id:m,id:e.id}));a(n,{successLabel:`Updated`});return}e[`check-type`]===void 0&&(e[`check-type`]=await p(`check-type`,`type of check to perform`,[`icmp`])),e.endpoint===void 0&&(e.endpoint=await f(`endpoint`,`the IP address of the host to perform checks against`));let h=u({check_type:e[`check-type`],endpoint:d(e.endpoint,`endpoint`,`text`),name:d(e.name,`name`,`text`)}),g=await s(`Updating`,async()=>c.send(D,{body:h,account_id:m,id:e.id}));a(g,{successLabel:`Updated`})})},A={command:`endpoint-healthchecks`,describe:`Monitor endpoint reachability from Cloudflare with periodic ICMP health checks`,builder:e=>e.command(_).command(b).command(C).command(E).command(k).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var j={method:`POST`,path:t=>e`/accounts/${t.account_id}/diagnostics/traceroute`,body:`json`};function M(e){return e.usage(`$0 diagnostics traceroutes create
|
|
14
14
|
|
|
15
15
|
Run traceroutes from Cloudflare colos.`).option(`colos`,{type:`string`,array:!0,description:`If no source colo names specified, all colos will be used. China colos are unavailable for traceroutes.`}).option(`options-max-ttl`,{type:`number`,description:`Max TTL.`}).option(`options-packet-type`,{type:`string`,description:`Type of packet sent.`,choices:[`icmp`,`tcp`,`udp`,`gre`,`gre+icmp`]}).coerce(`options-packet-type`,e=>d(e,`options-packet-type`,`text`)).option(`options-packets-per-ttl`,{type:`number`,description:`Number of packets sent at each TTL.`}).option(`options-port`,{type:`number`,description:`For UDP and TCP, specifies the destination port. For ICMP, specifies the initial ICMP sequence value. Default value 0 will choose the best value to use for each protocol.`}).option(`options-wait-time`,{type:`number`,description:`Set the time (in seconds) to wait for a response to a probe.`}).option(`targets`,{type:`string`,array:!0,description:`The targets field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const N={command:`create`,describe:`Traceroute`,builder:M,handler:async e=>c({command:`diagnostics traceroutes create`,classification:{safeFlags:[`options-packet-type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf diagnostics traceroutes create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/diagnostics/traceroute`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({colos:e.colos,options:{max_ttl:e[`options-max-ttl`],packet_type:e[`options-packet-type`],packets_per_ttl:e[`options-packets-per-ttl`],port:e[`options-port`],wait_time:e[`options-wait-time`]},targets:e.targets}):l(e.body)});return}let c=await n(e),d=e.local?t:await i();if(e.accountId=d,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(j,{body:t,account_id:d}));a(n,{successLabel:`Created`});return}if(e.targets===void 0)throw Error(`--targets is required (or pass --body with this field set).`);let f=u({colos:e.colos,options:{max_ttl:e[`options-max-ttl`],packet_type:e[`options-packet-type`],packets_per_ttl:e[`options-packets-per-ttl`],port:e[`options-port`],wait_time:e[`options-wait-time`]},targets:e.targets}),p=await s(`Creating`,async()=>c.send(j,{body:f,account_id:d}));a(p,{successLabel:`Created`})})},P={command:`traceroutes`,describe:`Run traceroutes from Cloudflare data centers to diagnose network path issues`,builder:e=>e.command(N).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},F={command:`diagnostics`,describe:`Network diagnostic tools — traceroutes from Cloudflare's edge and endpoint health checks`,builder:e=>e.command(A).command(P).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{F as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-
|
|
2
|
+
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-Db1KT0vm.mjs";import{a as r,t as i}from"./context-C_a8oSY9.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-Q5w9PNTT.mjs";import{t as c}from"./run-DtFLvOHB.mjs";import"./telemetry-BavSU4ku.mjs";import{n as l,t as u}from"./body-parser-DnBfDdx3.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,n as p}from"./prompt-C0hKSr-R.mjs";var m={method:`POST`,path:t=>e`/accounts/${t.account_id}/dls/regional_services/prefix_bindings`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,409:`ConflictError`,500:`InternalServerError`}};function h(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 g={command:`create`,describe:`Create a DLS prefix binding`,builder:h,handler:async e=>c({command:`dls regional-services prefix-bindings create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf dls regional-services prefix-bindings create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dls/regional_services/prefix_bindings`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({cidr:d(e.cidr,`cidr`,`text`),prefix_id:d(e[`prefix-id`],`prefix-id`,`text`),region_key:d(e[`region-key`],`region-key`,`text`)}):l(e.body)});return}let c=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(m,{body:t,account_id:p}));a(n,{successLabel:`Created`});return}e.cidr===void 0&&(e.cidr=await f(`cidr`,`IP prefix in CIDR notation to bind.`)),e[`prefix-id`]===void 0&&(e[`prefix-id`]=await f(`prefix-id`,`The ID of the parent IP prefix that contains the CIDR.`)),e[`region-key`]===void 0&&(e[`region-key`]=await f(`region-key`,`Region key from managed regions (e.g., "us", "eu").`));let h=u({cidr:d(e.cidr,`cidr`,`text`),prefix_id:d(e[`prefix-id`],`prefix-id`,`text`),region_key:d(e[`region-key`],`region-key`,`text`)}),g=await s(`Creating`,async()=>c.send(m,{body:h,account_id:p}));a(g,{successLabel:`Created`})})};var _={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/dls/regional_services/prefix_bindings/${t.binding_id}`,errors:{401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function v(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"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{i as n,n as r}from"./auth-
|
|
2
|
+
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{i as n,n as r}from"./auth-Db1KT0vm.mjs";import{a as i,i as a,t as o}from"./context-C_a8oSY9.mjs";import{t as s}from"./output-Co4xdFf6.mjs";import{t as c}from"./dry-run-C2KjGX10.mjs";import{t as l}from"./progress-Q5w9PNTT.mjs";import{t as u}from"./run-DtFLvOHB.mjs";import"./telemetry-BavSU4ku.mjs";import{i as d,n as f,t as p}from"./body-parser-DnBfDdx3.mjs";import{n as m,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g,n as _}from"./prompt-C0hKSr-R.mjs";import{n as ee,t as te}from"./raw-fetch-CEOuoKl9.mjs";var ne={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/dnssec`};function re(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 ie={command:`delete`,describe:`Delete DNSSEC records`,builder:re,handler:async e=>u({command:`dns dnssec delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){c({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 r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,!await _({force:!!e.force})){process.stderr.write(`Aborted.
|
|
5
5
|
`);return}let i=await l(`Deleting`,async()=>t.send(ne,{zone_id:n}));s(i,{successLabel:`Deleted`})})};var v={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/dnssec`,body:`json`};function ae(e){return e.usage(`$0 dns dnssec edit
|
|
@@ -20,20 +20,20 @@ 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`]}).coerce(`status`,e=>m(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 oe={command:`edit`,describe:`Edit DNSSEC Status`,builder:ae,handler:async e=>u({command:`dns dnssec edit`,classification:{safeFlags:[`dnssec-multi-signer`,`dnssec-presigned`,`dnssec-use-nsec3`,`status`,`dry-run`]}},e,async()=>{if(e.dryRun){c({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?p({dnssec_multi_signer:e[`dnssec-multi-signer`],dnssec_presigned:e[`dnssec-presigned`],dnssec_use_nsec3:e[`dnssec-use-nsec3`],status:e.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=>m(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 oe={command:`edit`,describe:`Edit DNSSEC Status`,builder:ae,handler:async e=>u({command:`dns dnssec edit`,classification:{safeFlags:[`dnssec-multi-signer`,`dnssec-presigned`,`dnssec-use-nsec3`,`status`,`dry-run`]}},e,async()=>{if(e.dryRun){c({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?p({dnssec_multi_signer:e[`dnssec-multi-signer`],dnssec_presigned:e[`dnssec-presigned`],dnssec_use_nsec3:e[`dnssec-use-nsec3`],status:e.status}):f(e.body)});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,e.body){let r=f(e.body),i=await l(`Updating`,async()=>t.send(v,{body:r,zone_id:n}));s(i,{successLabel:`Updated`});return}let i=p({dnssec_multi_signer:e[`dnssec-multi-signer`],dnssec_presigned:e[`dnssec-presigned`],dnssec_use_nsec3:e[`dnssec-use-nsec3`],status:e.status}),o=await l(`Updating`,async()=>t.send(v,{body:i,zone_id:n}));s(o,{successLabel:`Updated`})})};var se={method:`GET`,path:t=>e`/zones/${t.zone_id}/dnssec`};function ce(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 le={command:`get`,describe:`DNSSEC Details`,builder:ce,handler:async e=>u({command:`dns dnssec get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({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 r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n;let i=await l(`Loading`,async()=>t.send(se,{zone_id:n}));s(i,{successLabel:`Loaded`})})};var ue={method:`GET`,path:t=>e`/zones/${t.zone_id}/dnssec/zsk`};function de(e){return e.usage(`$0 dns dnssec list zsks
|
|
26
26
|
|
|
27
27
|
List the Zone Signing Keys (ZSKs) that DNSSEC uses for the zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const fe={command:`zsks`,describe:`List DNSSEC ZSKs`,builder:de,handler:async e=>u({command:`dns dnssec list zsks`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns dnssec list zsks`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dnssec/zsk`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n;let i=await l(`Loading`,async()=>t.send(ue,{zone_id:n}));s(i,{successLabel:`Loaded`})})},pe={command:`list`,describe:`Operations for dnssec.list`,builder:e=>e.command(fe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},me={command:`dnssec`,describe:`Operations for dnssec`,builder:e=>e.command(ie).command(oe).command(le).command(pe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var y={method:`POST`,path:t=>e`/zones/${t.zone_id}/dns_records/batch`,query:[`include_shadow_metadata`],body:`json`};function he(e){return e.usage(`$0 dns records batch
|
|
28
28
|
|
|
29
|
-
Send a Batch of DNS Record API calls to be executed together. Notes: - Although Cloudflare will execute the batched operations in a single database transaction, Cloudflare's distributed KV store must treat each record change as a single key-value pair. This means that the propagation of changes is not atomic. See [the documentation](https://developers.cloudflare.com/dns/manage-dns-records/how-to/batch-record-changes/ "Batch DNS records") for more information. - The operations you specify within the /batch request body are always executed in the following order: - Deletes - Patches - Puts - Posts`).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(`deletes`,{type:`string`,description:`The deletes field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`patches`,{type:`string`,description:`The patches field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`posts`,{type:`string`,description:`The posts field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`puts`,{type:`string`,description:`The puts field. 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 ge={command:`batch`,describe:`Batch DNS Records`,builder:he,handler:async e=>u({command:`dns records batch`,classification:{safeFlags:[`include-shadow-metadata`,`dry-run`]}},e,async()=>{let t={include_shadow_metadata:e[`include-shadow-metadata`]};if(e.dryRun){c({command:`cf dns records batch`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records/batch`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`json`,body:e.body===void 0?p({deletes:
|
|
29
|
+
Send a Batch of DNS Record API calls to be executed together. Notes: - Although Cloudflare will execute the batched operations in a single database transaction, Cloudflare's distributed KV store must treat each record change as a single key-value pair. This means that the propagation of changes is not atomic. See [the documentation](https://developers.cloudflare.com/dns/manage-dns-records/how-to/batch-record-changes/ "Batch DNS records") for more information. - The operations you specify within the /batch request body are always executed in the following order: - Deletes - Patches - Puts - Posts`).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(`deletes`,{type:`string`,description:`The deletes field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`patches`,{type:`string`,description:`The patches field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`posts`,{type:`string`,description:`The posts field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`puts`,{type:`string`,description:`The puts field. 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 ge={command:`batch`,describe:`Batch DNS Records`,builder:he,handler:async e=>u({command:`dns records batch`,classification:{safeFlags:[`include-shadow-metadata`,`dry-run`]}},e,async()=>{let t={include_shadow_metadata:e[`include-shadow-metadata`]};if(e.dryRun){c({command:`cf dns records batch`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records/batch`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`json`,body:e.body===void 0?p({deletes:d(e.deletes,`deletes`),patches:d(e.patches,`patches`),posts:d(e.posts,`posts`),puts:d(e.puts,`puts`)}):f(e.body)});return}let n=await r(e),i=await a({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=i,e.body){let r=f(e.body);new URLSearchParams(Object.entries(t).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let a=await l(`Creating`,async()=>n.send(y,{body:r,zone_id:i,...t}));s(a,{successLabel:`Created`});return}let o=p({deletes:d(e.deletes,`deletes`),patches:d(e.patches,`patches`),posts:d(e.posts,`posts`),puts:d(e.puts,`puts`)});new URLSearchParams(Object.entries(t).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let u=await l(`Creating`,async()=>n.send(y,{body:o,zone_id:i,...t}));s(u,{successLabel:`Created`})})};var b={method:`POST`,path:t=>e`/zones/${t.zone_id}/dns_records`,query:[`include_shadow_metadata`],body:`json`};function x(e){return e.usage(`$0 dns records create
|
|
30
30
|
|
|
31
|
-
Create a new DNS record for a zone. 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.`).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 S={command:`create`,describe:`Create DNS Record`,builder:x,handler:async e=>u({command:`dns records create`,classification:{safeFlags:[`include-shadow-metadata`,`dry-run`]}},e,async()=>{let t={include_shadow_metadata:e[`include-shadow-metadata`]};if(e.dryRun){c({command:`cf dns records create`,method:`POST`,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:`json`,body:e.body===void 0?void 0:
|
|
31
|
+
Create a new DNS record for a zone. 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.`).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 S={command:`create`,describe:`Create DNS Record`,builder:x,handler:async e=>u({command:`dns records create`,classification:{safeFlags:[`include-shadow-metadata`,`dry-run`]}},e,async()=>{let t={include_shadow_metadata:e[`include-shadow-metadata`]};if(e.dryRun){c({command:`cf dns records create`,method:`POST`,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:`json`,body:e.body===void 0?void 0:f(e.body)});return}let n=await r(e),i=await a({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=i,e.body){let r=f(e.body);new URLSearchParams(Object.entries(t).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let a=await l(`Creating`,async()=>n.send(b,{body:r,zone_id:i,...t}));s(a,{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.`)})};var C={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/dns_records/${t.dns_record_id}`};function w(e){return e.usage(`$0 dns records delete <dns-record-id>
|
|
32
32
|
|
|
33
33
|
Permanently removes a DNS record from the zone.`).positional(`dns-record-id`,{type:`string`,description:`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 T={command:`delete <dns-record-id>`,describe:`Delete DNS Record`,builder:w,handler:async e=>u({command:`dns records delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){c({command:`cf dns records delete`,method:`DELETE`,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:{"zone-id":String(e.zone??e[`zone-id`]??``),"dns-record-id":String(e[`dns-record-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,!await _({force:!!e.force})){process.stderr.write(`Aborted.
|
|
34
34
|
`);return}let i=await l(`Deleting`,async()=>t.send(C,{zone_id:n,dns_record_id:e[`dns-record-id`]}));s(i,{successLabel:`Deleted`})})};var E={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/dns_records/${t.dns_record_id}`,query:[`include_shadow_metadata`],body:`json`};function D(e){return e.usage(`$0 dns records edit <dns-record-id>
|
|
35
35
|
|
|
36
|
-
Update 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 O={command:`edit <dns-record-id>`,describe:`Update DNS Record`,builder:D,handler:async e=>u({command:`dns records edit`,classification:{safeFlags:[`include-shadow-metadata`,`dry-run`]}},e,async()=>{let t={include_shadow_metadata:e[`include-shadow-metadata`]};if(e.dryRun){c({command:`cf dns records edit`,method:`PATCH`,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:{"zone-id":String(e.zone??e[`zone-id`]??``),"dns-record-id":String(e[`dns-record-id`]??``)},query:t,bodyKind:`json`,body:e.body===void 0?void 0:
|
|
36
|
+
Update 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 O={command:`edit <dns-record-id>`,describe:`Update DNS Record`,builder:D,handler:async e=>u({command:`dns records edit`,classification:{safeFlags:[`include-shadow-metadata`,`dry-run`]}},e,async()=>{let t={include_shadow_metadata:e[`include-shadow-metadata`]};if(e.dryRun){c({command:`cf dns records edit`,method:`PATCH`,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:{"zone-id":String(e.zone??e[`zone-id`]??``),"dns-record-id":String(e[`dns-record-id`]??``)},query:t,bodyKind:`json`,body:e.body===void 0?void 0:f(e.body)});return}let n=await r(e),i=await a({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=i,e.body){let r=f(e.body);new URLSearchParams(Object.entries(t).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let a=await l(`Updating`,async()=>n.send(E,{body:r,zone_id:i,dns_record_id:e[`dns-record-id`],...t}));s(a,{successLabel:`Updated`});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function k(e){return e.usage(`$0 dns records export
|
|
37
37
|
|
|
38
38
|
You can export your [BIND config](https://en.wikipedia.org/wiki/Zone_file "Zone file") through this endpoint. 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})}const A={command:`export`,describe:`Export DNS Records`,builder:k,handler:async e=>u({command:`dns records export`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns records export`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records/export`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await r(e);e.zoneId=await a({zone:e.zone},t,{quiet:e.quiet});let n=await l(`Loading`,async()=>te(`/zones/${e.zoneId}/dns_records/export`,{method:`GET`,local:e.local===!0,persistTo:e.persistTo}));ee(n.toString(`utf-8`))})};var j={method:`GET`,path:t=>e`/zones/${t.zone_id}/dns_records/${t.dns_record_id}`,query:[`include_shadow_metadata`]};function M(e){return e.usage(`$0 dns records get <dns-record-id>
|
|
39
39
|
|
|
@@ -45,19 +45,19 @@ List, search, sort, and filter a zones' DNS records.`).option(`name`,{type:`stri
|
|
|
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 be={command:`scan-list`,describe:`List Scanned DNS Records`,builder:ye,handler:async e=>u({command:`dns records scan-list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({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 r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n;let i=await l(`Loading`,async()=>t.send(ve,{zone_id:n}));s(i,{successLabel:`Loaded`})})};var R={method:`POST`,path:t=>e`/zones/${t.zone_id}/dns_records/scan/review`,body:`json`};function xe(e){return e.usage(`$0 dns records scan-review
|
|
47
47
|
|
|
48
|
-
Accept or reject DNS records found by the DNS records scan. Accepted records will be permanently added to the zone, while rejected records will be permanently deleted.`).option(`accepts`,{type:`string`,description:`The accepts field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`rejects`,{type:`string`,description:`The rejects field. 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 Se={command:`scan-review`,describe:`Review Scanned DNS Records`,builder:xe,handler:async e=>u({command:`dns records scan-review`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns records scan-review`,method:`POST`,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:`json`,body:e.body===void 0?p({accepts:
|
|
48
|
+
Accept or reject DNS records found by the DNS records scan. Accepted records will be permanently added to the zone, while rejected records will be permanently deleted.`).option(`accepts`,{type:`string`,description:`The accepts field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`rejects`,{type:`string`,description:`The rejects field. 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 Se={command:`scan-review`,describe:`Review Scanned DNS Records`,builder:xe,handler:async e=>u({command:`dns records scan-review`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns records scan-review`,method:`POST`,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:`json`,body:e.body===void 0?p({accepts:d(e.accepts,`accepts`),rejects:d(e.rejects,`rejects`)}):f(e.body)});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,e.body){let r=f(e.body),i=await l(`Creating`,async()=>t.send(R,{body:r,zone_id:n}));s(i,{successLabel:`Created`});return}let i=p({accepts:d(e.accepts,`accepts`),rejects:d(e.rejects,`rejects`)}),o=await l(`Creating`,async()=>t.send(R,{body:i,zone_id:n}));s(o,{successLabel:`Created`})})};var Ce={method:`POST`,path:t=>e`/zones/${t.zone_id}/dns_records/scan/trigger`};function we(e){return e.usage(`$0 dns records scan-trigger
|
|
49
49
|
|
|
50
50
|
Initiates an asynchronous scan for common DNS records on your domain. Note that this **does not** automatically add records to your zone. The scan runs in the background, and results can be reviewed later using the \`/scan/review\` endpoints. Useful if you haven't updated your nameservers yet.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Te={command:`scan-trigger`,describe:`Trigger DNS Record Scan`,builder:we,handler:async e=>u({command:`dns records scan-trigger`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns records scan-trigger`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records/scan/trigger`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n;let i=await l(`Creating`,async()=>t.send(Ce,{zone_id:n}));s(i,{successLabel:`Created`})})};var Ee={method:`POST`,path:t=>e`/zones/${t.zone_id}/dns_records/scan`};function De(e){return e.usage(`$0 dns records scan
|
|
51
51
|
|
|
52
52
|
Scan for common DNS records on your domain and automatically add them to your zone. Useful if you haven't updated your nameservers yet.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Oe={command:`scan`,describe:`Scan DNS Records`,builder:De,handler:async e=>u({command:`dns records scan`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns records scan`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dns_records/scan`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n;let i=await l(`Creating`,async()=>t.send(Ee,{zone_id:n}));s(i,{successLabel:`Created`})})};var ke={method:`PUT`,path:t=>e`/zones/${t.zone_id}/dns_records/${t.dns_record_id}`,query:[`include_shadow_metadata`],body:`json`};function Ae(e){return e.usage(`$0 dns records update <dns-record-id>
|
|
53
53
|
|
|
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 je={command:`update <dns-record-id>`,describe:`Overwrite DNS Record`,builder:Ae,handler:async e=>u({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){c({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:{"zone-id":String(e.zone??e[`zone-id`]??``),"dns-record-id":String(e[`dns-record-id`]??``)},query:t,bodyKind:`json`,body:e.body===void 0?void 0:
|
|
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 je={command:`update <dns-record-id>`,describe:`Overwrite DNS Record`,builder:Ae,handler:async e=>u({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){c({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:{"zone-id":String(e.zone??e[`zone-id`]??``),"dns-record-id":String(e[`dns-record-id`]??``)},query:t,bodyKind:`json`,body:e.body===void 0?void 0:f(e.body)});return}let n=await r(e),i=await a({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=i,e.body){let r=f(e.body);new URLSearchParams(Object.entries(t).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let a=await l(`Updating`,async()=>n.send(ke,{body:r,zone_id:i,dns_record_id:e[`dns-record-id`],...t}));s(a,{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.`)})},Me={command:`records`,describe:`Operations for records`,builder:e=>e.command(ge).command(S).command(T).command(O).command(A).command(N).command(F).command(_e).command(Oe).command(be).command(Se).command(Te).command(je).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var z={method:`PATCH`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/dns_settings`,body:`json`};function Ne(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`]}).coerce(`zone-defaults-zone-mode`,e=>m(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=>m(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 Pe={command:`edit`,describe:`Update DNS Settings`,builder:Ne,handler:async e=>u({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`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf dns settings account edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/dns_settings`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`json`,body:e.body===void 0?p({enforce_dns_only:e[`enforce-dns-only`],zone_defaults:{flatten_all_cnames:e[`zone-defaults-flatten-all-cnames`],foundation_dns:e[`zone-defaults-foundation-dns`],internal_dns:{reference_zone_id:m(e[`zone-defaults-internal-dns-reference-zone-id`],`zone-defaults-internal-dns-reference-zone-id`,`text`)},multi_provider:e[`zone-defaults-multi-provider`],ns_ttl:e[`zone-defaults-ns-ttl`],secondary_overrides:e[`zone-defaults-secondary-overrides`],soa:{expire:e[`zone-defaults-soa-expire`],min_ttl:e[`zone-defaults-soa-min-ttl`],mname:m(e[`zone-defaults-soa-mname`],`zone-defaults-soa-mname`,`text`),refresh:e[`zone-defaults-soa-refresh`],retry:e[`zone-defaults-soa-retry`],rname:m(e[`zone-defaults-soa-rname`],`zone-defaults-soa-rname`,`text`),ttl:e[`zone-defaults-soa-ttl`]},zone_mode:e[`zone-defaults-zone-mode`],nameservers:{type:e[`zone-defaults-nameservers-type`]}}}):
|
|
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=>m(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=>m(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 Pe={command:`edit`,describe:`Update DNS Settings`,builder:Ne,handler:async e=>u({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`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf dns settings account edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/dns_settings`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`json`,body:e.body===void 0?p({enforce_dns_only:e[`enforce-dns-only`],zone_defaults:{flatten_all_cnames:e[`zone-defaults-flatten-all-cnames`],foundation_dns:e[`zone-defaults-foundation-dns`],internal_dns:{reference_zone_id:m(e[`zone-defaults-internal-dns-reference-zone-id`],`zone-defaults-internal-dns-reference-zone-id`,`text`)},multi_provider:e[`zone-defaults-multi-provider`],ns_ttl:e[`zone-defaults-ns-ttl`],secondary_overrides:e[`zone-defaults-secondary-overrides`],soa:{expire:e[`zone-defaults-soa-expire`],min_ttl:e[`zone-defaults-soa-min-ttl`],mname:m(e[`zone-defaults-soa-mname`],`zone-defaults-soa-mname`,`text`),refresh:e[`zone-defaults-soa-refresh`],retry:e[`zone-defaults-soa-retry`],rname:m(e[`zone-defaults-soa-rname`],`zone-defaults-soa-rname`,`text`),ttl:e[`zone-defaults-soa-ttl`]},zone_mode:e[`zone-defaults-zone-mode`],nameservers:{type:e[`zone-defaults-nameservers-type`]}}}):f(e.body)});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send(z,{body:t,account_or_zone:u,account_or_zone_id:d}));s(r,{successLabel:`Updated`});return}let h=p({enforce_dns_only:e[`enforce-dns-only`],zone_defaults:{flatten_all_cnames:e[`zone-defaults-flatten-all-cnames`],foundation_dns:e[`zone-defaults-foundation-dns`],internal_dns:{reference_zone_id:m(e[`zone-defaults-internal-dns-reference-zone-id`],`zone-defaults-internal-dns-reference-zone-id`,`text`)},multi_provider:e[`zone-defaults-multi-provider`],ns_ttl:e[`zone-defaults-ns-ttl`],secondary_overrides:e[`zone-defaults-secondary-overrides`],soa:{expire:e[`zone-defaults-soa-expire`],min_ttl:e[`zone-defaults-soa-min-ttl`],mname:m(e[`zone-defaults-soa-mname`],`zone-defaults-soa-mname`,`text`),refresh:e[`zone-defaults-soa-refresh`],retry:e[`zone-defaults-soa-retry`],rname:m(e[`zone-defaults-soa-rname`],`zone-defaults-soa-rname`,`text`),ttl:e[`zone-defaults-soa-ttl`]},zone_mode:e[`zone-defaults-zone-mode`],nameservers:{type:e[`zone-defaults-nameservers-type`]}}}),g=await l(`Updating`,async()=>n.send(z,{body:h,account_or_zone:u,account_or_zone_id:d}));s(g,{successLabel:`Updated`})})};var Fe={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/dns_settings`};function Ie(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 Le={command:`get`,describe:`Show DNS Settings`,builder:Ie,handler:async e=>u({command:`dns settings account get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf dns settings account get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/dns_settings`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();u===`zones`?e.zoneId=d:e.accountId=d;let f=await l(`Loading`,async()=>n.send(Fe,{account_or_zone:u,account_or_zone_id:d}));s(f,{successLabel:`Loaded`})})};var B={method:`POST`,path:t=>e`/accounts/${t.account_id}/dns_settings/nameserver_sets`,body:`json`};function Re(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. 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 ze={command:`create`,describe:`Create Custom Nameserver Set`,builder:Re,handler:async e=>u({command:`dns settings account nameserver-sets create`,classification:{safeFlags:[`advanced`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns settings account nameserver-sets create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_settings/nameserver_sets`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({advanced:e.advanced,ip_set:e[`ip-set`],nameservers:
|
|
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 ze={command:`create`,describe:`Create Custom Nameserver Set`,builder:Re,handler:async e=>u({command:`dns settings account nameserver-sets create`,classification:{safeFlags:[`advanced`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns settings account nameserver-sets create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_settings/nameserver_sets`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({advanced:e.advanced,ip_set:e[`ip-set`],nameservers:d(e.nameservers,`nameservers`)}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(B,{body:t,account_id:a}));s(r,{successLabel:`Created`});return}if(e.nameservers===void 0)throw Error(`--nameservers is required (or pass --body with this field set).`);let u=p({advanced:e.advanced,ip_set:e[`ip-set`],nameservers:d(e.nameservers,`nameservers`)}),m=await l(`Creating`,async()=>n.send(B,{body:u,account_id:a}));s(m,{successLabel:`Created`})})};var Be={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/dns_settings/nameserver_sets/${t.nameserver_set_id}`};function Ve(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 He={command:`delete <nameserver-set-id>`,describe:`Delete Custom Nameserver Set`,builder:Ve,handler:async e=>u({command:`dns settings account nameserver-sets delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns settings account nameserver-sets delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_settings/nameserver_sets/${e[`nameserver-set-id`]==null?`<nameserver-set-id>`:encodeURIComponent(String(e[`nameserver-set-id`]))}`,pathParams:{"nameserver-set-id":String(e[`nameserver-set-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force})){process.stderr.write(`Aborted.
|
|
63
63
|
`);return}let u=await l(`Deleting`,async()=>n.send(Be,{account_id:a,nameserver_set_id:e[`nameserver-set-id`]}));s(u,{successLabel:`Deleted`})})};var Ue={method:`GET`,path:t=>e`/accounts/${t.account_id}/dns_settings/nameserver_sets/${t.nameserver_set_id}`};function We(e){return e.usage(`$0 dns settings account nameserver-sets get <nameserver-set-id>
|
|
@@ -66,12 +66,12 @@ Gets a Custom Nameserver Set owned by an account.`).positional(`nameserver-set-i
|
|
|
66
66
|
|
|
67
67
|
Lists an account's Custom Nameserver Sets.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Je={command:`list`,describe:`List Custom Nameserver Sets`,builder:qe,handler:async e=>u({command:`dns settings account nameserver-sets list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={page:e.page,per_page:e[`per-page`]};if(e.dryRun){let e=await i();c({command:`cf dns settings account nameserver-sets list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/dns_settings/nameserver_sets`,pathParams:{},query:n,bodyKind:`none`});return}let a=await r(e),u=e.local?t:await o();e.accountId=u;let d=await l(`Loading`,async()=>a.send(Ke,{account_id:u,...n}));s(d,{successLabel:`Loaded`})})},Ye={command:`nameserver-sets`,describe:`Operations for settings.account.nameserver-sets`,builder:e=>e.command(ze).command(He).command(Ge).command(Je).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var V={method:`POST`,path:t=>e`/accounts/${t.account_id}/dns_settings/views`,body:`json`};function Xe(e){return e.usage(`$0 dns settings account views create
|
|
68
68
|
|
|
69
|
-
Create Internal DNS View for an account`).option(`name`,{type:`string`,description:`The name of the view.`}).option(`zones`,{type:`string`,array:!0,description:`The list of zones linked to this view.`}).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 Ze={command:`create`,describe:`Create Internal DNS View`,builder:Xe,handler:async e=>u({command:`dns settings account views create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns settings account views create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_settings/views`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({name:m(e.name,`name`,`text`),zones:e.zones}):
|
|
69
|
+
Create Internal DNS View for an account`).option(`name`,{type:`string`,description:`The name of the view.`}).option(`zones`,{type:`string`,array:!0,description:`The list of zones linked to this view.`}).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 Ze={command:`create`,describe:`Create Internal DNS View`,builder:Xe,handler:async e=>u({command:`dns settings account views create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns settings account views create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_settings/views`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({name:m(e.name,`name`,`text`),zones:e.zones}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(V,{body:t,account_id:a}));s(r,{successLabel:`Created`});return}if(e.name===void 0&&(e.name=await g(`name`,`The name of the view.`)),e.zones===void 0)throw Error(`--zones is required (or pass --body with this field set).`);let u=p({name:m(e.name,`name`,`text`),zones:e.zones}),d=await l(`Creating`,async()=>n.send(V,{body:u,account_id:a}));s(d,{successLabel:`Created`})})};var Qe={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/dns_settings/views/${t.view_id}`};function $e(e){return e.usage(`$0 dns settings account views delete <view-id>
|
|
70
70
|
|
|
71
71
|
Delete an existing Internal DNS View`).positional(`view-id`,{type:`string`,description:`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 et={command:`delete <view-id>`,describe:`Delete Internal DNS View`,builder:$e,handler:async e=>u({command:`dns settings account views delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns settings account views delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_settings/views/${e[`view-id`]==null?`<view-id>`:encodeURIComponent(String(e[`view-id`]))}`,pathParams:{"view-id":String(e[`view-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force})){process.stderr.write(`Aborted.
|
|
72
72
|
`);return}let u=await l(`Deleting`,async()=>n.send(Qe,{account_id:a,view_id:e[`view-id`]}));s(u,{successLabel:`Deleted`})})};var H={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/dns_settings/views/${t.view_id}`,body:`json`};function tt(e){return e.usage(`$0 dns settings account views edit <view-id>
|
|
73
73
|
|
|
74
|
-
Update an existing Internal DNS View`).positional(`view-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`name`,{type:`string`,description:`The name of the view.`}).option(`zones`,{type:`string`,array:!0,description:`The list of zones linked to this view.`}).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:`edit <view-id>`,describe:`Update Internal DNS View`,builder:tt,handler:async e=>u({command:`dns settings account views edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns settings account views edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_settings/views/${e[`view-id`]==null?`<view-id>`:encodeURIComponent(String(e[`view-id`]))}`,pathParams:{"view-id":String(e[`view-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({name:m(e.name,`name`,`text`),zones:e.zones}):
|
|
74
|
+
Update an existing Internal DNS View`).positional(`view-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`name`,{type:`string`,description:`The name of the view.`}).option(`zones`,{type:`string`,array:!0,description:`The list of zones linked to this view.`}).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:`edit <view-id>`,describe:`Update Internal DNS View`,builder:tt,handler:async e=>u({command:`dns settings account views edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns settings account views edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_settings/views/${e[`view-id`]==null?`<view-id>`:encodeURIComponent(String(e[`view-id`]))}`,pathParams:{"view-id":String(e[`view-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({name:m(e.name,`name`,`text`),zones:e.zones}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send(H,{body:t,account_id:a,view_id:e[`view-id`]}));s(r,{successLabel:`Updated`});return}let u=p({name:m(e.name,`name`,`text`),zones:e.zones}),d=await l(`Updating`,async()=>n.send(H,{body:u,account_id:a,view_id:e[`view-id`]}));s(d,{successLabel:`Updated`})})};var rt={method:`GET`,path:t=>e`/accounts/${t.account_id}/dns_settings/views/${t.view_id}`};function it(e){return e.usage(`$0 dns settings account views get <view-id>
|
|
75
75
|
|
|
76
76
|
Get DNS Internal View`).positional(`view-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const at={command:`get <view-id>`,describe:`DNS Internal View Details`,builder:it,handler:async e=>u({command:`dns settings account views get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns settings account views get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_settings/views/${e[`view-id`]==null?`<view-id>`:encodeURIComponent(String(e[`view-id`]))}`,pathParams:{"view-id":String(e[`view-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(rt,{account_id:a,view_id:e[`view-id`]}));s(u,{successLabel:`Loaded`})})};var ot={method:`GET`,path:t=>e`/accounts/${t.account_id}/dns_settings/views`,query:[`name`,`name.exact`,`name.contains`,`name.startswith`,`name.endswith`,`zone_id`,`zone_name`,`match`,`page`,`per_page`,`order`,`direction`]};function st(e){return e.usage(`$0 dns settings account views list
|
|
77
77
|
|
|
@@ -79,7 +79,7 @@ List DNS Internal Views for an Account`).option(`name`,{type:`string`,descriptio
|
|
|
79
79
|
|
|
80
80
|
Get the current DNS record usage and quota for an account or zone. May include internal DNS usage and quota.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const mt={command:`get`,describe:`Get DNS Record Usage for account or zone`,builder:pt,handler:async e=>u({command:`dns usage account get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf dns usage account get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/dns_records/usage`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();u===`zones`?e.zoneId=d:e.accountId=d;let f=await l(`Loading`,async()=>n.send(ft,{account_or_zone:u,account_or_zone_id:d}));s(f,{successLabel:`Loaded`})})},ht={command:`account`,describe:`Operations for usage.account`,builder:e=>e.command(mt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},gt={command:`usage`,describe:`Operations for usage`,builder:e=>e.command(ht).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var U={method:`POST`,path:t=>e`/accounts/${t.account_id}/secondary_dns/acls`,body:`json`};function _t(e){return e.usage(`$0 dns zone-transfers acls create
|
|
81
81
|
|
|
82
|
-
Create ACL.`).option(`ip-range`,{type:`string`,description:`Allowed IPv4/IPv6 address range of primary or secondary nameservers. This will be applied for the entire account. The IP range is used to allow additional NOTIFY IPs for secondary zones and IPs Cloudflare allows AXFR/IXFR requests from for primary zones. CIDRs are limited to a maximum of /24 for IPv4 and /64 for IPv6 respectively.`}).option(`name`,{type:`string`,description:`The name of the acl.`}).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 vt={command:`create`,describe:`Create ACL`,builder:_t,handler:async e=>u({command:`dns zone-transfers acls create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns zone-transfers acls create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/acls`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({ip_range:m(e[`ip-range`],`ip-range`,`text`),name:m(e.name,`name`,`text`)}):
|
|
82
|
+
Create ACL.`).option(`ip-range`,{type:`string`,description:`Allowed IPv4/IPv6 address range of primary or secondary nameservers. This will be applied for the entire account. The IP range is used to allow additional NOTIFY IPs for secondary zones and IPs Cloudflare allows AXFR/IXFR requests from for primary zones. CIDRs are limited to a maximum of /24 for IPv4 and /64 for IPv6 respectively.`}).option(`name`,{type:`string`,description:`The name of the acl.`}).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 vt={command:`create`,describe:`Create ACL`,builder:_t,handler:async e=>u({command:`dns zone-transfers acls create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns zone-transfers acls create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/acls`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({ip_range:m(e[`ip-range`],`ip-range`,`text`),name:m(e.name,`name`,`text`)}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(U,{body:t,account_id:a}));s(r,{successLabel:`Created`});return}e[`ip-range`]===void 0&&(e[`ip-range`]=await g(`ip-range`,`Allowed IPv4/IPv6 address range of primary or secondary nameservers. This will be applied for the entire account. The IP range is used to allow additional NOTIFY IPs for secondary zones and IPs Cloudflare allows AXFR/IXFR requests from for primary zones. CIDRs are limited to a maximum of /24 for IPv4 and /64 for IPv6 respectively.`)),e.name===void 0&&(e.name=await g(`name`,`The name of the acl.`));let u=p({ip_range:m(e[`ip-range`],`ip-range`,`text`),name:m(e.name,`name`,`text`)}),d=await l(`Creating`,async()=>n.send(U,{body:u,account_id:a}));s(d,{successLabel:`Created`})})};var yt={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/secondary_dns/acls/${t.acl_id}`};function bt(e){return e.usage(`$0 dns zone-transfers acls delete <acl-id>
|
|
83
83
|
|
|
84
84
|
Delete ACL.`).positional(`acl-id`,{type:`string`,description:`Acl 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 xt={command:`delete <acl-id>`,describe:`Delete ACL`,builder:bt,handler:async e=>u({command:`dns zone-transfers acls delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns zone-transfers acls delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/acls/${e[`acl-id`]==null?`<acl-id>`:encodeURIComponent(String(e[`acl-id`]))}`,pathParams:{"acl-id":String(e[`acl-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force})){process.stderr.write(`Aborted.
|
|
85
85
|
`);return}let u=await l(`Deleting`,async()=>n.send(yt,{account_id:a,acl_id:e[`acl-id`]}));s(u,{successLabel:`Deleted`})})};var St={method:`GET`,path:t=>e`/accounts/${t.account_id}/secondary_dns/acls/${t.acl_id}`};function Ct(e){return e.usage(`$0 dns zone-transfers acls get <acl-id>
|
|
@@ -88,12 +88,12 @@ Get ACL.`).positional(`acl-id`,{type:`string`,description:`Acl ID`,demandOption:
|
|
|
88
88
|
|
|
89
89
|
List ACLs.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Dt={command:`list`,describe:`List ACLs`,builder:Et,handler:async e=>u({command:`dns zone-transfers acls list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();c({command:`cf dns zone-transfers acls list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/secondary_dns/acls`,pathParams:{},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(Tt,{account_id:a}));s(u,{successLabel:`Loaded`})})};var W={method:`PUT`,path:t=>e`/accounts/${t.account_id}/secondary_dns/acls/${t.acl_id}`,body:`json`};function Ot(e){return e.usage(`$0 dns zone-transfers acls update <acl-id>
|
|
90
90
|
|
|
91
|
-
Modify ACL.`).positional(`acl-id`,{type:`string`,description:`Acl ID`,demandOption:!0}).option(`ip-range`,{type:`string`,description:`Allowed IPv4/IPv6 address range of primary or secondary nameservers. This will be applied for the entire account. The IP range is used to allow additional NOTIFY IPs for secondary zones and IPs Cloudflare allows AXFR/IXFR requests from for primary zones. CIDRs are limited to a maximum of /24 for IPv4 and /64 for IPv6 respectively.`}).option(`name`,{type:`string`,description:`The name of the acl.`}).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 kt={command:`update <acl-id>`,describe:`Update ACL`,builder:Ot,handler:async e=>u({command:`dns zone-transfers acls update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns zone-transfers acls update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/acls/${e[`acl-id`]==null?`<acl-id>`:encodeURIComponent(String(e[`acl-id`]))}`,pathParams:{"acl-id":String(e[`acl-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({ip_range:m(e[`ip-range`],`ip-range`,`text`),name:m(e.name,`name`,`text`)}):
|
|
91
|
+
Modify ACL.`).positional(`acl-id`,{type:`string`,description:`Acl ID`,demandOption:!0}).option(`ip-range`,{type:`string`,description:`Allowed IPv4/IPv6 address range of primary or secondary nameservers. This will be applied for the entire account. The IP range is used to allow additional NOTIFY IPs for secondary zones and IPs Cloudflare allows AXFR/IXFR requests from for primary zones. CIDRs are limited to a maximum of /24 for IPv4 and /64 for IPv6 respectively.`}).option(`name`,{type:`string`,description:`The name of the acl.`}).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 kt={command:`update <acl-id>`,describe:`Update ACL`,builder:Ot,handler:async e=>u({command:`dns zone-transfers acls update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns zone-transfers acls update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/acls/${e[`acl-id`]==null?`<acl-id>`:encodeURIComponent(String(e[`acl-id`]))}`,pathParams:{"acl-id":String(e[`acl-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({ip_range:m(e[`ip-range`],`ip-range`,`text`),name:m(e.name,`name`,`text`)}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send(W,{body:t,account_id:a,acl_id:e[`acl-id`]}));s(r,{successLabel:`Updated`});return}e[`ip-range`]===void 0&&(e[`ip-range`]=await g(`ip-range`,`Allowed IPv4/IPv6 address range of primary or secondary nameservers. This will be applied for the entire account. The IP range is used to allow additional NOTIFY IPs for secondary zones and IPs Cloudflare allows AXFR/IXFR requests from for primary zones. CIDRs are limited to a maximum of /24 for IPv4 and /64 for IPv6 respectively.`)),e.name===void 0&&(e.name=await g(`name`,`The name of the acl.`));let u=p({ip_range:m(e[`ip-range`],`ip-range`,`text`),name:m(e.name,`name`,`text`)}),d=await l(`Updating`,async()=>n.send(W,{body:u,account_id:a,acl_id:e[`acl-id`]}));s(d,{successLabel:`Updated`})})},At={command:`acls`,describe:`Operations for zone-transfers.acls`,builder:e=>e.command(vt).command(xt).command(wt).command(Dt).command(kt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var jt={method:`POST`,path:t=>e`/zones/${t.zone_id}/secondary_dns/force_axfr`};function Mt(e){return e.usage(`$0 dns zone-transfers force-axfr create
|
|
92
92
|
|
|
93
93
|
Sends AXFR zone transfer request to primary nameserver(s).`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Nt={command:`create`,describe:`Force AXFR`,builder:Mt,handler:async e=>u({command:`dns zone-transfers force-axfr create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns zone-transfers force-axfr create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/force_axfr`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n;let i=await l(`Creating`,async()=>t.send(jt,{zone_id:n}));s(i,{successLabel:`Created`})})},Pt={command:`force-axfr`,describe:`Operations for zone-transfers.force-axfr`,builder:e=>e.command(Nt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var G={method:`POST`,path:t=>e`/zones/${t.zone_id}/secondary_dns/incoming`,body:`json`};function Ft(e){return e.usage(`$0 dns zone-transfers incoming create
|
|
94
94
|
|
|
95
95
|
Create secondary zone configuration for incoming zone transfers.`).option(`auto-refresh-seconds`,{type:`number`,description:`How often should a secondary zone auto refresh regardless of DNS NOTIFY.
|
|
96
|
-
Not applicable for primary zones.`,default:86400}).option(`name`,{type:`string`,description:`Zone name.`}).option(`peers`,{type:`string`,array:!0,description:`A list of peer tags.`}).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 It={command:`create`,describe:`Create Secondary Zone Configuration`,builder:Ft,handler:async e=>u({command:`dns zone-transfers incoming create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns zone-transfers incoming create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/incoming`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({auto_refresh_seconds:e[`auto-refresh-seconds`],name:m(e.name,`name`,`text`),peers:e.peers}):
|
|
96
|
+
Not applicable for primary zones.`,default:86400}).option(`name`,{type:`string`,description:`Zone name.`}).option(`peers`,{type:`string`,array:!0,description:`A list of peer tags.`}).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 It={command:`create`,describe:`Create Secondary Zone Configuration`,builder:Ft,handler:async e=>u({command:`dns zone-transfers incoming create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns zone-transfers incoming create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/incoming`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({auto_refresh_seconds:e[`auto-refresh-seconds`],name:m(e.name,`name`,`text`),peers:e.peers}):f(e.body)});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,e.body){let r=f(e.body),i=await l(`Creating`,async()=>t.send(G,{body:r,zone_id:n}));s(i,{successLabel:`Created`});return}if(e[`auto-refresh-seconds`]===void 0)throw Error(`--auto-refresh-seconds is required (or pass --body with this field set).`);if(e.name===void 0&&(e.name=await g(`name`,`Zone name.`)),e.peers===void 0)throw Error(`--peers is required (or pass --body with this field set).`);let i=p({auto_refresh_seconds:e[`auto-refresh-seconds`],name:m(e.name,`name`,`text`),peers:e.peers}),o=await l(`Creating`,async()=>t.send(G,{body:i,zone_id:n}));s(o,{successLabel:`Created`})})};var Lt={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/secondary_dns/incoming`};function Rt(e){return e.usage(`$0 dns zone-transfers incoming delete
|
|
97
97
|
|
|
98
98
|
Delete secondary zone configuration for incoming zone transfers.`).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 zt={command:`delete`,describe:`Delete Secondary Zone Configuration`,builder:Rt,handler:async e=>u({command:`dns zone-transfers incoming delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){c({command:`cf dns zone-transfers incoming delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/incoming`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,!await _({force:!!e.force})){process.stderr.write(`Aborted.
|
|
99
99
|
`);return}let i=await l(`Deleting`,async()=>t.send(Lt,{zone_id:n}));s(i,{successLabel:`Deleted`})})};var Bt={method:`GET`,path:t=>e`/zones/${t.zone_id}/secondary_dns/incoming`};function Vt(e){return e.usage(`$0 dns zone-transfers incoming get
|
|
@@ -101,9 +101,9 @@ Delete secondary zone configuration for incoming zone transfers.`).option(`dry-r
|
|
|
101
101
|
Get secondary zone configuration for incoming zone transfers.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ht={command:`get`,describe:`Secondary Zone Configuration Details`,builder:Vt,handler:async e=>u({command:`dns zone-transfers incoming get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns zone-transfers incoming get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/incoming`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n;let i=await l(`Loading`,async()=>t.send(Bt,{zone_id:n}));s(i,{successLabel:`Loaded`})})};var K={method:`PUT`,path:t=>e`/zones/${t.zone_id}/secondary_dns/incoming`,body:`json`};function Ut(e){return e.usage(`$0 dns zone-transfers incoming update
|
|
102
102
|
|
|
103
103
|
Update secondary zone configuration for incoming zone transfers.`).option(`auto-refresh-seconds`,{type:`number`,description:`How often should a secondary zone auto refresh regardless of DNS NOTIFY.
|
|
104
|
-
Not applicable for primary zones.`}).option(`name`,{type:`string`,description:`Zone name.`}).option(`peers`,{type:`string`,array:!0,description:`A list of peer tags.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Wt={command:`update`,describe:`Update Secondary Zone Configuration`,builder:Ut,handler:async e=>u({command:`dns zone-transfers incoming update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns zone-transfers incoming update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/incoming`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({auto_refresh_seconds:e[`auto-refresh-seconds`],name:m(e.name,`name`,`text`),peers:e.peers}):
|
|
104
|
+
Not applicable for primary zones.`}).option(`name`,{type:`string`,description:`Zone name.`}).option(`peers`,{type:`string`,array:!0,description:`A list of peer tags.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Wt={command:`update`,describe:`Update Secondary Zone Configuration`,builder:Ut,handler:async e=>u({command:`dns zone-transfers incoming update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns zone-transfers incoming update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/incoming`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({auto_refresh_seconds:e[`auto-refresh-seconds`],name:m(e.name,`name`,`text`),peers:e.peers}):f(e.body)});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,e.body){let r=f(e.body),i=await l(`Updating`,async()=>t.send(K,{body:r,zone_id:n}));s(i,{successLabel:`Updated`});return}if(e[`auto-refresh-seconds`]===void 0)throw Error(`--auto-refresh-seconds is required (or pass --body with this field set).`);if(e.name===void 0&&(e.name=await g(`name`,`Zone name.`)),e.peers===void 0)throw Error(`--peers is required (or pass --body with this field set).`);let i=p({auto_refresh_seconds:e[`auto-refresh-seconds`],name:m(e.name,`name`,`text`),peers:e.peers}),o=await l(`Updating`,async()=>t.send(K,{body:i,zone_id:n}));s(o,{successLabel:`Updated`})})},Gt={command:`incoming`,describe:`Operations for zone-transfers.incoming`,builder:e=>e.command(It).command(zt).command(Ht).command(Wt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var q={method:`POST`,path:t=>e`/zones/${t.zone_id}/secondary_dns/outgoing`,body:`json`};function Kt(e){return e.usage(`$0 dns zone-transfers outgoing create
|
|
105
105
|
|
|
106
|
-
Create primary zone configuration for outgoing zone transfers.`).option(`name`,{type:`string`,description:`Zone name.`}).option(`peers`,{type:`string`,array:!0,description:`A list of peer tags.`}).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 qt={command:`create`,describe:`Create Primary Zone Configuration`,builder:Kt,handler:async e=>u({command:`dns zone-transfers outgoing create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns zone-transfers outgoing create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/outgoing`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({name:m(e.name,`name`,`text`),peers:e.peers}):
|
|
106
|
+
Create primary zone configuration for outgoing zone transfers.`).option(`name`,{type:`string`,description:`Zone name.`}).option(`peers`,{type:`string`,array:!0,description:`A list of peer tags.`}).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 qt={command:`create`,describe:`Create Primary Zone Configuration`,builder:Kt,handler:async e=>u({command:`dns zone-transfers outgoing create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns zone-transfers outgoing create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/outgoing`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({name:m(e.name,`name`,`text`),peers:e.peers}):f(e.body)});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,e.body){let r=f(e.body),i=await l(`Creating`,async()=>t.send(q,{body:r,zone_id:n}));s(i,{successLabel:`Created`});return}if(e.name===void 0&&(e.name=await g(`name`,`Zone name.`)),e.peers===void 0)throw Error(`--peers is required (or pass --body with this field set).`);let i=p({name:m(e.name,`name`,`text`),peers:e.peers}),o=await l(`Creating`,async()=>t.send(q,{body:i,zone_id:n}));s(o,{successLabel:`Created`})})};var Jt={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/secondary_dns/outgoing`};function Yt(e){return e.usage(`$0 dns zone-transfers outgoing delete
|
|
107
107
|
|
|
108
108
|
Delete primary zone configuration for outgoing zone transfers.`).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 Xt={command:`delete`,describe:`Delete Primary Zone Configuration`,builder:Yt,handler:async e=>u({command:`dns zone-transfers outgoing delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){c({command:`cf dns zone-transfers outgoing delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/outgoing`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,!await _({force:!!e.force})){process.stderr.write(`Aborted.
|
|
109
109
|
`);return}let i=await l(`Deleting`,async()=>t.send(Jt,{zone_id:n}));s(i,{successLabel:`Deleted`})})};var Zt={method:`POST`,path:t=>e`/zones/${t.zone_id}/secondary_dns/outgoing/disable`};function Qt(e){return e.usage(`$0 dns zone-transfers outgoing disable
|
|
@@ -119,9 +119,9 @@ Get primary zone configuration for outgoing zone transfers.`).option(`dry-run`,{
|
|
|
119
119
|
|
|
120
120
|
Get primary zone transfer status.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const fn={command:`get`,describe:`Get Outgoing Zone Transfer Status`,builder:dn,handler:async e=>u({command:`dns zone-transfers outgoing status get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns zone-transfers outgoing status get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/outgoing/status`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n;let i=await l(`Loading`,async()=>t.send(un,{zone_id:n}));s(i,{successLabel:`Loaded`})})},pn={command:`status`,describe:`Operations for zone-transfers.outgoing.status`,builder:e=>e.command(fn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var J={method:`PUT`,path:t=>e`/zones/${t.zone_id}/secondary_dns/outgoing`,body:`json`};function mn(e){return e.usage(`$0 dns zone-transfers outgoing update
|
|
121
121
|
|
|
122
|
-
Update primary zone configuration for outgoing zone transfers.`).option(`name`,{type:`string`,description:`Zone name.`}).option(`peers`,{type:`string`,array:!0,description:`A list of peer tags.`}).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 hn={command:`update`,describe:`Update Primary Zone Configuration`,builder:mn,handler:async e=>u({command:`dns zone-transfers outgoing update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns zone-transfers outgoing update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/outgoing`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({name:m(e.name,`name`,`text`),peers:e.peers}):
|
|
122
|
+
Update primary zone configuration for outgoing zone transfers.`).option(`name`,{type:`string`,description:`Zone name.`}).option(`peers`,{type:`string`,array:!0,description:`A list of peer tags.`}).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 hn={command:`update`,describe:`Update Primary Zone Configuration`,builder:mn,handler:async e=>u({command:`dns zone-transfers outgoing update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf dns zone-transfers outgoing update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/secondary_dns/outgoing`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({name:m(e.name,`name`,`text`),peers:e.peers}):f(e.body)});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,e.body){let r=f(e.body),i=await l(`Updating`,async()=>t.send(J,{body:r,zone_id:n}));s(i,{successLabel:`Updated`});return}if(e.name===void 0&&(e.name=await g(`name`,`Zone name.`)),e.peers===void 0)throw Error(`--peers is required (or pass --body with this field set).`);let i=p({name:m(e.name,`name`,`text`),peers:e.peers}),o=await l(`Updating`,async()=>t.send(J,{body:i,zone_id:n}));s(o,{successLabel:`Updated`})})},gn={command:`outgoing`,describe:`Operations for zone-transfers.outgoing`,builder:e=>e.command(qt).command(Xt).command($t).command(nn).command(on).command(ln).command(hn).command(pn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Y={method:`POST`,path:t=>e`/accounts/${t.account_id}/secondary_dns/peers`,body:`json`};function _n(e){return e.usage(`$0 dns zone-transfers peers create
|
|
123
123
|
|
|
124
|
-
Create Peer.`).option(`name`,{type:`string`,description:`The name of the peer.`}).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 vn={command:`create`,describe:`Create Peer`,builder:_n,handler:async e=>u({command:`dns zone-transfers peers create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns zone-transfers peers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/peers`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({name:m(e.name,`name`,`text`)}):
|
|
124
|
+
Create Peer.`).option(`name`,{type:`string`,description:`The name of the peer.`}).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 vn={command:`create`,describe:`Create Peer`,builder:_n,handler:async e=>u({command:`dns zone-transfers peers create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns zone-transfers peers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/peers`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({name:m(e.name,`name`,`text`)}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(Y,{body:t,account_id:a}));s(r,{successLabel:`Created`});return}e.name===void 0&&(e.name=await g(`name`,`The name of the peer.`));let u=p({name:m(e.name,`name`,`text`)}),d=await l(`Creating`,async()=>n.send(Y,{body:u,account_id:a}));s(d,{successLabel:`Created`})})};var yn={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/secondary_dns/peers/${t.peer_id}`};function bn(e){return e.usage(`$0 dns zone-transfers peers delete <peer-id>
|
|
125
125
|
|
|
126
126
|
Delete Peer.`).positional(`peer-id`,{type:`string`,description:`Peer 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 xn={command:`delete <peer-id>`,describe:`Delete Peer`,builder:bn,handler:async e=>u({command:`dns zone-transfers peers delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns zone-transfers peers delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/peers/${e[`peer-id`]==null?`<peer-id>`:encodeURIComponent(String(e[`peer-id`]))}`,pathParams:{"peer-id":String(e[`peer-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force})){process.stderr.write(`Aborted.
|
|
127
127
|
`);return}let u=await l(`Deleting`,async()=>n.send(yn,{account_id:a,peer_id:e[`peer-id`]}));s(u,{successLabel:`Deleted`})})};var Sn={method:`GET`,path:t=>e`/accounts/${t.account_id}/secondary_dns/peers/${t.peer_id}`};function Cn(e){return e.usage(`$0 dns zone-transfers peers get <peer-id>
|
|
@@ -130,9 +130,9 @@ Get Peer.`).positional(`peer-id`,{type:`string`,description:`Peer ID`,demandOpti
|
|
|
130
130
|
|
|
131
131
|
List Peers.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Dn={command:`list`,describe:`List Peers`,builder:En,handler:async e=>u({command:`dns zone-transfers peers list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();c({command:`cf dns zone-transfers peers list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/secondary_dns/peers`,pathParams:{},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(Tn,{account_id:a}));s(u,{successLabel:`Loaded`})})};var X={method:`PUT`,path:t=>e`/accounts/${t.account_id}/secondary_dns/peers/${t.peer_id}`,body:`json`};function On(e){return e.usage(`$0 dns zone-transfers peers update <peer-id>
|
|
132
132
|
|
|
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 Z={command:`update <peer-id>`,describe:`Update Peer`,builder:On,handler:async e=>u({command:`dns zone-transfers peers update`,classification:{safeFlags:[`ixfr-enable`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns zone-transfers peers update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/peers/${e[`peer-id`]==null?`<peer-id>`:encodeURIComponent(String(e[`peer-id`]))}`,pathParams:{"peer-id":String(e[`peer-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({ip:m(e.ip,`ip`,`text`),ixfr_enable:e[`ixfr-enable`],name:m(e.name,`name`,`text`),port:e.port,tsig_id:m(e[`tsig-id`],`tsig-id`,`text`)}):
|
|
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 Z={command:`update <peer-id>`,describe:`Update Peer`,builder:On,handler:async e=>u({command:`dns zone-transfers peers update`,classification:{safeFlags:[`ixfr-enable`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns zone-transfers peers update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/peers/${e[`peer-id`]==null?`<peer-id>`:encodeURIComponent(String(e[`peer-id`]))}`,pathParams:{"peer-id":String(e[`peer-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({ip:m(e.ip,`ip`,`text`),ixfr_enable:e[`ixfr-enable`],name:m(e.name,`name`,`text`),port:e.port,tsig_id:m(e[`tsig-id`],`tsig-id`,`text`)}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send(X,{body:t,account_id:a,peer_id:e[`peer-id`]}));s(r,{successLabel:`Updated`});return}e.name===void 0&&(e.name=await g(`name`,`The name of the peer.`));let u=p({ip:m(e.ip,`ip`,`text`),ixfr_enable:e[`ixfr-enable`],name:m(e.name,`name`,`text`),port:e.port,tsig_id:m(e[`tsig-id`],`tsig-id`,`text`)}),d=await l(`Updating`,async()=>n.send(X,{body:u,account_id:a,peer_id:e[`peer-id`]}));s(d,{successLabel:`Updated`})})},kn={command:`peers`,describe:`Operations for zone-transfers.peers`,builder:e=>e.command(vn).command(xn).command(wn).command(Dn).command(Z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Q={method:`POST`,path:t=>e`/accounts/${t.account_id}/secondary_dns/tsigs`,body:`json`};function An(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 jn={command:`create`,describe:`Create TSIG`,builder:An,handler:async e=>u({command:`dns zone-transfers tsigs create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns zone-transfers tsigs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/tsigs`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({algo:m(e.algo,`algo`,`text`),name:m(e.name,`name`,`text`),secret:m(e.secret,`secret`,`text`)}):
|
|
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 jn={command:`create`,describe:`Create TSIG`,builder:An,handler:async e=>u({command:`dns zone-transfers tsigs create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns zone-transfers tsigs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/tsigs`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({algo:m(e.algo,`algo`,`text`),name:m(e.name,`name`,`text`),secret:m(e.secret,`secret`,`text`)}):f(e.body),sensitiveBodyPaths:[[`secret`]]});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(Q,{body:t,account_id:a}));s(r,{successLabel:`Created`});return}e.algo===void 0&&(e.algo=await g(`algo`,`TSIG algorithm.`)),e.name===void 0&&(e.name=await g(`name`,`TSIG key name.`)),e.secret===void 0&&(e.secret=await g(`secret`,`TSIG secret.`,{kind:`secret`}));let u=p({algo:m(e.algo,`algo`,`text`),name:m(e.name,`name`,`text`),secret:m(e.secret,`secret`,`text`)}),d=await l(`Creating`,async()=>n.send(Q,{body:u,account_id:a}));s(d,{successLabel:`Created`})})};var Mn={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/secondary_dns/tsigs/${t.tsig_id}`};function Nn(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 Pn={command:`delete <tsig-id>`,describe:`Delete TSIG`,builder:Nn,handler:async e=>u({command:`dns zone-transfers tsigs delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns zone-transfers tsigs delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/tsigs/${e[`tsig-id`]==null?`<tsig-id>`:encodeURIComponent(String(e[`tsig-id`]))}`,pathParams:{"tsig-id":String(e[`tsig-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force})){process.stderr.write(`Aborted.
|
|
138
138
|
`);return}let u=await l(`Deleting`,async()=>n.send(Mn,{account_id:a,tsig_id:e[`tsig-id`]}));s(u,{successLabel:`Deleted`})})};var Fn={method:`GET`,path:t=>e`/accounts/${t.account_id}/secondary_dns/tsigs/${t.tsig_id}`};function In(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 Bn={command:`list`,describe:`List TSIGs`,builder:zn,handler:async e=>u({command:`dns zone-transfers tsigs list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();c({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 n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(Rn,{account_id:a}));s(u,{successLabel:`Loaded`})})};var $={method:`PUT`,path:t=>e`/accounts/${t.account_id}/secondary_dns/tsigs/${t.tsig_id}`,body:`json`};function Vn(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 Hn={command:`update <tsig-id>`,describe:`Update TSIG`,builder:Vn,handler:async e=>u({command:`dns zone-transfers tsigs update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns zone-transfers tsigs update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/tsigs/${e[`tsig-id`]==null?`<tsig-id>`:encodeURIComponent(String(e[`tsig-id`]))}`,pathParams:{"tsig-id":String(e[`tsig-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({algo:m(e.algo,`algo`,`text`),name:m(e.name,`name`,`text`),secret:m(e.secret,`secret`,`text`)}):
|
|
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 Hn={command:`update <tsig-id>`,describe:`Update TSIG`,builder:Vn,handler:async e=>u({command:`dns zone-transfers tsigs update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf dns zone-transfers tsigs update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/secondary_dns/tsigs/${e[`tsig-id`]==null?`<tsig-id>`:encodeURIComponent(String(e[`tsig-id`]))}`,pathParams:{"tsig-id":String(e[`tsig-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({algo:m(e.algo,`algo`,`text`),name:m(e.name,`name`,`text`),secret:m(e.secret,`secret`,`text`)}):f(e.body),sensitiveBodyPaths:[[`secret`]]});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send($,{body:t,account_id:a,tsig_id:e[`tsig-id`]}));s(r,{successLabel:`Updated`});return}e.algo===void 0&&(e.algo=await g(`algo`,`TSIG algorithm.`)),e.name===void 0&&(e.name=await g(`name`,`TSIG key name.`)),e.secret===void 0&&(e.secret=await g(`secret`,`TSIG secret.`,{kind:`secret`}));let u=p({algo:m(e.algo,`algo`,`text`),name:m(e.name,`name`,`text`),secret:m(e.secret,`secret`,`text`)}),d=await l(`Updating`,async()=>n.send($,{body:u,account_id:a,tsig_id:e[`tsig-id`]}));s(d,{successLabel:`Updated`})})},Un={command:`tsigs`,describe:`Operations for zone-transfers.tsigs`,builder:e=>e.command(jn).command(Pn).command(Ln).command(Bn).command(Hn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Wn={command:`zone-transfers`,describe:`Operations for zone-transfers`,builder:e=>e.command(At).command(Pt).command(Gt).command(gn).command(kn).command(Un).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Gn={command:`dns`,describe:`dns`,builder:e=>e.command(me).command(Me).command(dt).command(gt).command(Wn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Gn as default};
|