cf 1.0.0-beta.30 → 1.0.0-beta.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/_meta/commands.json +2404 -1420
- package/dist/_meta/schemas.json +1875 -956
- package/dist/{abuse-reports-Dzop8iDe.mjs → abuse-reports-DYm1nDLb.mjs} +1 -1
- package/dist/{access-2NeD3Gu8.mjs → access-Be_7nPz4.mjs} +1 -1
- package/dist/{accounts-CeJbhhX4.mjs → accounts-DXULGfnh.mjs} +3 -3
- package/dist/{acm-Dub0B14J.mjs → acm-Btsz5gzV.mjs} +1 -1
- package/dist/{addressing-BzWJU8m6.mjs → addressing-DBQ5dUBd.mjs} +1 -1
- package/dist/{agent-memory-2l9zyQFA.mjs → agent-memory-Df0q-68_.mjs} +1 -1
- package/dist/{ai-laLv3daG.mjs → ai-CJfI9JI2.mjs} +1 -1
- package/dist/{ai-audit-rgNePq5W.mjs → ai-audit-Dv37OLES.mjs} +1 -1
- package/dist/{ai-gateway-e9b8CcL6.mjs → ai-gateway-BRSUY1QZ.mjs} +5 -5
- package/dist/{ai-search-DZ0AqoPe.mjs → ai-search-Bxv4hDG9.mjs} +3 -3
- package/dist/{ai-security-CQuBTtmw.mjs → ai-security-ByNRXyJv.mjs} +1 -1
- package/dist/{alerting-_4ra-f_v.mjs → alerting-UkiCzqAq.mjs} +2 -4
- package/dist/{analytics-DLNn4bJ4.mjs → analytics-B4Wq2vJx.mjs} +1 -1
- package/dist/{analytics-engine-CY45yWuL.mjs → analytics-engine-BbwIXL0f.mjs} +1 -1
- package/dist/{api-security-BSvJAjJV.mjs → api-security-B6YETCDG.mjs} +1 -1
- package/dist/{argo-xzl0p--1.mjs → argo-CHSOLyFh.mjs} +1 -1
- package/dist/{artifacts-DAS14gcM.mjs → artifacts-1xMBpJLr.mjs} +1 -1
- package/dist/{audit-logs-3nYyCGQA.mjs → audit-logs-Cz__6-PH.mjs} +1 -1
- package/dist/auth-Byb5Y3o4.mjs +2 -0
- package/dist/{auth-cj71dGxS.mjs → auth-CRq9OQKr.mjs} +1 -1
- package/dist/{auth-B0mFB6nU.mjs → auth-CrBQca61.mjs} +1 -1
- package/dist/{auth-token-D9MnaZ-L.mjs → auth-token-BEkR6ulS.mjs} +1 -1
- package/dist/{autoconfig-DoLQ5ct8.mjs → autoconfig-BDEt9orA.mjs} +386 -120
- package/dist/{basin-catalog-BbCsAKyZ.mjs → basin-catalog-DRVVY1Ff.mjs} +1 -1
- package/dist/{billing-BsiLsjWJ.mjs → billing-CInp7pBa.mjs} +1 -1
- package/dist/{blocks-DK5qAzLe.mjs → blocks-DGXsHh9X.mjs} +1 -1
- package/dist/{bot-management-DkErOsIO.mjs → bot-management--NcaqMij.mjs} +1 -1
- package/dist/{botnet-feed-CK4_PKrf.mjs → botnet-feed-DbPZ3Wzl.mjs} +1 -1
- package/dist/{brand-protection-Czt-2Ei5.mjs → brand-protection-B3s-8soV.mjs} +2 -2
- package/dist/{browser-run-DLMdEaSJ.mjs → browser-run-B9hyiK7P.mjs} +1 -1
- package/dist/build-Bd56lS7c.mjs +2 -0
- package/dist/{build-DiEXOgHH.mjs → build-I3m3uZn6.mjs} +1 -1
- package/dist/{builds-D--zUbR2.mjs → builds-D0mRyKe3.mjs} +1 -1
- package/dist/{cache-C8PQmkjD.mjs → cache-eKHZG4U7.mjs} +1 -1
- package/dist/{cf-QIG83e0V.mjs → cf-MAiSK--E.mjs} +1 -1
- package/dist/{chunk-DSGVRFIS-CeCM3XGQ.mjs → chunk-DSGVRFIS-L76IWWlr.mjs} +1 -1
- package/dist/{chunk-Q5KVZMHK-Bjvrcihk.mjs → chunk-Q5KVZMHK-CYhKv3kZ.mjs} +1 -1
- package/dist/{cli-BBv5YMan.mjs → cli-hFt2ZEED.mjs} +1 -1
- package/dist/{client-side-security-CFxePUL9.mjs → client-side-security-BvIdcAtV.mjs} +1 -1
- package/dist/{cloud-connector-BitfLQ3s.mjs → cloud-connector-B-04mm0j.mjs} +1 -1
- package/dist/{cloudflared-DKh4JK7j.mjs → cloudflared-DynBXmdP.mjs} +1 -1
- package/dist/{cloudforce-one-D2dzA7VD.mjs → cloudforce-one-BAGybQNM.mjs} +139 -143
- package/dist/command-5bkZXAlq.mjs +2 -0
- package/dist/{command-BORazCDG.mjs → command-BCECG198.mjs} +1 -1
- package/dist/{command-BC_nezLE.mjs → command-BaFQsuac.mjs} +1 -1
- package/dist/{command-C2HYwGn_.mjs → command-BdnTjDyg.mjs} +1 -1
- package/dist/{command-n7QausoH.mjs → command-BkCc_9UI.mjs} +1 -1
- package/dist/{command-B6ustzcW.mjs → command-CQU92hcH.mjs} +1 -1
- package/dist/{command-D5FrTb2N.mjs → command-CdB1DQZl.mjs} +1 -1
- package/dist/{command-DoXuskBZ.mjs → command-CoR-c8lP.mjs} +1 -1
- package/dist/{command-iwrZ2Sb1.mjs → command-D-a4KxcW.mjs} +1 -1
- package/dist/{command-aeKPI1bt.mjs → command-D6wod_eb.mjs} +1 -1
- package/dist/{command-Xqidhyr_.mjs → command-DSPEpZHp.mjs} +1 -1
- package/dist/{command-BwcAuPBr.mjs → command-EG23K_k6.mjs} +1 -1
- package/dist/{command-s15KaL-x.mjs → command-Ux0DLWdC.mjs} +1 -1
- package/dist/{command-CQhD3Q1t.mjs → command-oko8tT2c.mjs} +1 -1
- package/dist/{completions-BAUSggys.mjs → completions-CdlqoV7q.mjs} +1 -1
- package/dist/{connector-interrupts-D9tI84Fk.mjs → connector-interrupts-D9iiu7ZU.mjs} +1 -1
- package/dist/{connector-telemetry-events-Bs9wLYwc.mjs → connector-telemetry-events-C8ouyC4A.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-CbwE4lrE.mjs → connector-telemetry-snapshots-Ck9btYy7.mjs} +1 -1
- package/dist/{connectors-LyJN1htu.mjs → connectors-kGPYvin5.mjs} +1 -1
- package/dist/{containers-CKs7ZyZq.mjs → containers-DIf9nmcC.mjs} +2 -2
- package/dist/{content-scan-BQRz7C7Z.mjs → content-scan-Cr0i9wJK.mjs} +1 -1
- package/dist/{context-DlFhI9cN.mjs → context-DsVjrTbe.mjs} +1 -1
- package/dist/{cps-DYlXx89C.mjs → cps-BHmMKg5Q.mjs} +1 -1
- package/dist/{csam-scanner-BFANxGD-.mjs → csam-scanner-DGTOi2EL.mjs} +1 -1
- package/dist/{custom-csrs-BX4aCeof.mjs → custom-csrs-DpLkO9_M.mjs} +1 -1
- package/dist/{custom-hostnames-BRYABKN3.mjs → custom-hostnames-beJnRWcQ.mjs} +1 -1
- package/dist/{custom-nameservers-CP1Vf1TD.mjs → custom-nameservers-B1WtaEDH.mjs} +1 -1
- package/dist/{custom-pages-BNL69ToU.mjs → custom-pages-BVXmc-u6.mjs} +1 -1
- package/dist/{d1-D4AZsUKn.mjs → d1-DYQBKGMz.mjs} +1 -1
- package/dist/{delegate-BKlomUk6.mjs → delegate-4bIHEQ8-.mjs} +1 -1
- package/dist/delegate.mjs +1 -1
- package/dist/{deploy-LbXgSfAd.mjs → deploy-DEq6UKzb.mjs} +1 -1
- package/dist/{deploy-context-BYw6gbl-.mjs → deploy-context-DJNsb7w-.mjs} +1 -1
- package/dist/deploy-input-Bkll8tDW.mjs +2 -0
- package/dist/{dev-DaFSd8WC.mjs → dev-DIguZvJE.mjs} +1 -1
- package/dist/{diagnostics-Dk3pyWx_.mjs → diagnostics-DyCPKwXL.mjs} +1 -1
- package/dist/{discover-DGsMj9ZN.mjs → discover-DtcZCeSh.mjs} +1 -1
- package/dist/discover-Dxb5yh9L.mjs +2 -0
- package/dist/{disk-cache-nbuwH1Dh.mjs → disk-cache-BVfJigfC.mjs} +1 -1
- package/dist/{dist-DwxlJ9Ms.mjs → dist-BoDdDWjK.mjs} +33 -33
- package/dist/{dls-DU6EdhQK.mjs → dls-BXGJug7c.mjs} +1 -1
- package/dist/{dns-3QDtCu6f.mjs → dns-Ev7l7p2X.mjs} +25 -25
- package/dist/{dns-firewall-Bbrr_0_a.mjs → dns-firewall-CrkTqlYI.mjs} +1 -1
- package/dist/{docs-lLLKcLr_.mjs → docs-Dx9n33S3.mjs} +1 -1
- package/dist/{durable-objects-DPf1DMeq.mjs → durable-objects-ChKP2Y6u.mjs} +1 -1
- package/dist/{email-auth-DOlEoi8q.mjs → email-auth-B-n1rKim.mjs} +1 -1
- package/dist/{email-routing-D56SPGty.mjs → email-routing-Dfs1g7hk.mjs} +1 -1
- package/dist/{email-security-CSawx0kD.mjs → email-security-B9wpMLHr.mjs} +1 -1
- package/dist/{email-sending-CgFi0cLA.mjs → email-sending-DUyDi24R.mjs} +3 -3
- package/dist/{errors-CilNjDVk.mjs → errors-CUuKkONZ.mjs} +1 -1
- package/dist/{field-extractors-FvIgySB4.mjs → field-extractors-B_R4gU51.mjs} +1 -1
- package/dist/{firewall-BrTvywhW.mjs → firewall-B5_DMZ5c.mjs} +1 -1
- package/dist/{flagship-BGFN1Epo.mjs → flagship-D_jWMrT9.mjs} +1 -1
- package/dist/{fraud-DzK6OIO3.mjs → fraud-BPywqzR5.mjs} +1 -1
- package/dist/{google-tag-gateway-Cd9v8A7Z.mjs → google-tag-gateway-B8SGqWxf.mjs} +1 -1
- package/dist/{healthchecks-Cm7EHaBA.mjs → healthchecks-C1NL0A-K.mjs} +1 -1
- package/dist/{hyperdrive-CVaSt0qX.mjs → hyperdrive-C1C_n591.mjs} +1 -1
- package/dist/{iam-CWN62Mi4.mjs → iam-BWm6OeLJ.mjs} +1 -1
- package/dist/{images-Bo_pdvQC.mjs → images-CU9B4ml9.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{init-Dwmpc_S-.mjs → init-DJGas0DL.mjs} +1 -1
- package/dist/{intel-CQFYeGEA.mjs → intel-COtK2F9g.mjs} +1 -1
- package/dist/{interactive-DCbIwYxy.mjs → interactive-CQ29h7qo.mjs} +1 -1
- package/dist/{ips-jTSzoqMU.mjs → ips-Dv5eyxgM.mjs} +1 -1
- package/dist/{k2-utE2lCYd.mjs → k2-CdhxgeiI.mjs} +1 -1
- package/dist/{kv-Cdh5hHte.mjs → kv-gNSTaGhd.mjs} +1 -1
- package/dist/{lazy-command-QoHlmXHW.mjs → lazy-command-CJcN1Ze6.mjs} +1 -1
- package/dist/{leaked-credential-checks-CqApscD3.mjs → leaked-credential-checks-B222QFHE.mjs} +1 -1
- package/dist/{load-balancers-w_4Uz9Gi.mjs → load-balancers-CM-4BY5q.mjs} +1 -1
- package/dist/{login-CS3KxVbk.mjs → login-Csb8Ld0x.mjs} +1 -1
- package/dist/login-bHCEjxRS.mjs +2 -0
- package/dist/{logpush-C76I5dgN.mjs → logpush-CmothcrK.mjs} +1 -1
- package/dist/{logs-B5aCYVCv.mjs → logs-CnKqBsDl.mjs} +1 -1
- package/dist/{magic-network-monitoring-CGf7cVQ9.mjs → magic-network-monitoring-BEdRTgMa.mjs} +1 -1
- package/dist/{magic-transit-CN5noqOR.mjs → magic-transit-CXjc5Yo4.mjs} +1 -1
- package/dist/{managed-defense-DAGr0UGm.mjs → managed-defense-BuOxTHAO.mjs} +1 -1
- package/dist/{managed-transforms-_SuwzZ-5.mjs → managed-transforms-BlqW4xkh.mjs} +1 -1
- package/dist/{mcp-CzedsjOf.mjs → mcp-ubFVHsP4.mjs} +1 -1
- package/dist/{mesh-DXX1S3pX.mjs → mesh-DQS7KfDF.mjs} +1 -1
- package/dist/{migrate-CvRQ4x3_.mjs → migrate-fY24KHV_.mjs} +1 -1
- package/dist/{monetization-8nt9PYln.mjs → monetization-CagZDoKh.mjs} +1 -1
- package/dist/{network-CaiRDY2e.mjs → network-BB35dF4N.mjs} +1 -1
- package/dist/{network-interconnects-Ad6JbAVd.mjs → network-interconnects-Dy4m1jMu.mjs} +2 -2
- package/dist/{o11y-DD2Hfnzi.mjs → o11y-Dmll3yib.mjs} +4 -4
- package/dist/{oauth-CQRlNgt5.mjs → oauth-Dv7Wucj6.mjs} +1 -1
- package/dist/{oauth-BUcV_xbm.mjs → oauth-NljTb7u9.mjs} +1 -1
- package/dist/observability-rtMYSCht.mjs +4 -0
- package/dist/{ohttp-gateway-Sej9-GCm.mjs → ohttp-gateway-BM3nsC92.mjs} +1 -1
- package/dist/{organizations-DwYsCbYD.mjs → organizations-Xus5102w.mjs} +1 -1
- package/dist/package-BJWSNfbc.mjs +2 -0
- package/dist/{page-rules-CjufEmIt.mjs → page-rules-BKoA5eaf.mjs} +1 -1
- package/dist/{pages-Dj0Cdf3G.mjs → pages-CLhvyehs.mjs} +4 -4
- package/dist/{pay-per-crawl-DPVlluRA.mjs → pay-per-crawl-BLjKJl62.mjs} +1 -1
- package/dist/{pay-per-use-DhuLjaoo.mjs → pay-per-use-FbddmVNv.mjs} +1 -1
- package/dist/{pipelines-D2pM69oq.mjs → pipelines-BsJkvK-K.mjs} +1 -1
- package/dist/{precursor-DzuA1m8D.mjs → precursor-oLj-WPJH.mjs} +1 -1
- package/dist/{previews-CHHd5Rx7.mjs → previews-BRPPf7UU.mjs} +3 -3
- package/dist/{progress-AML-AVs4.mjs → progress-DItBn6ZV.mjs} +1 -1
- package/dist/{prompt-Bnon9lfK.mjs → prompt-BGz3DNLz.mjs} +1 -1
- package/dist/{queues-GDwznw0o.mjs → queues-DAnbmO-t.mjs} +3 -3
- package/dist/{r2-B3Xkb0S4.mjs → r2-DNN91rtN.mjs} +2 -2
- package/dist/{radar-fBT7VIO2.mjs → radar-YWsfV39d.mjs} +150 -150
- package/dist/{raw-fetch-0T1SwPa1.mjs → raw-fetch-CmI3Ol3q.mjs} +1 -1
- package/dist/{realtime-B7mR3XtY.mjs → realtime-CfsgoOsd.mjs} +1 -1
- package/dist/{registrar-DOoxlZc7.mjs → registrar-N1c89kFV.mjs} +1 -1
- package/dist/{registrar-sandbox-DC7xAqqc.mjs → registrar-sandbox-D5lsoy-x.mjs} +1 -1
- package/dist/{reporting-DlD7J6Pq.mjs → reporting-CI5TLvj4.mjs} +1 -1
- package/dist/{request-headers-BEYXy4JN.mjs → request-headers-CUwBDAwI.mjs} +1 -1
- package/dist/{request-tracers-DYCGkszp.mjs → request-tracers-DO63p3ou.mjs} +1 -1
- package/dist/{resource-sharing-D_bUv7E8.mjs → resource-sharing-CxdcY5n1.mjs} +1 -1
- package/dist/{rules-C4cu3_jr.mjs → rules-DuuULmp2.mjs} +1 -1
- package/dist/{rulesets-Bl4mLnXA.mjs → rulesets-3_8IWMfL.mjs} +1 -1
- package/dist/{rum-DE_uJb09.mjs → rum-DkfsMJa7.mjs} +1 -1
- package/dist/run-C9SxROBF.mjs +2 -0
- package/dist/{run-DAg7dfIW.mjs → run-DAK_kbUa.mjs} +1 -1
- package/dist/{schema-cache-CTVUtkAl.mjs → schema-cache-BcbUfb3D.mjs} +1 -1
- package/dist/{scim-Dz4r0fnH.mjs → scim-DCR6AQp5.mjs} +1 -1
- package/dist/{secrets-store-C2GwCUKs.mjs → secrets-store-C3v0_Us9.mjs} +1 -1
- package/dist/{security-insights-DZCm5D3U.mjs → security-insights-0el4fk-S.mjs} +4 -2
- package/dist/security-txt-CcsEaOm5.mjs +8 -0
- package/dist/{session-BEsQIuwP.mjs → session-CgJ6kB79.mjs} +1 -1
- package/dist/shared-DjaJ-SCM.mjs +2 -0
- package/dist/{smart-shield-C2uSFcGN.mjs → smart-shield-BxTEZqtZ.mjs} +1 -1
- package/dist/{snippets-BoaGEAC6.mjs → snippets-CH4PcqCg.mjs} +1 -1
- package/dist/{spawn-B4y5Urjv.mjs → spawn-B681PPG2.mjs} +2 -2
- package/dist/{spectrum-Bb0KXA8R.mjs → spectrum-DconVKYG.mjs} +1 -1
- package/dist/{speed-zKYgLTHA.mjs → speed-Euqtk0Vc.mjs} +1 -1
- package/dist/{sql-pjWozuvl.mjs → sql-UNZoawTj.mjs} +1 -1
- package/dist/{src-B8i6_XGg.mjs → src-CSSFtpQM.mjs} +5 -5
- package/dist/{ssl-C5bg1X0i.mjs → ssl-CGWF2ZSz.mjs} +9 -9
- package/dist/startup-profile-ajl_yZx2.mjs +2 -0
- package/dist/{startup-profile-CyIelqtC.mjs → startup-profile-ne34QxOx.mjs} +1 -1
- package/dist/{state-BI_wSuID.mjs → state-BFClIYM_.mjs} +1 -1
- package/dist/state-V1KLVkd6.mjs +2 -0
- package/dist/{static-assets-CTv7XwIQ.mjs → static-assets-CWo7dxyW.mjs} +164 -164
- package/dist/{stream-C_FiNrLV.mjs → stream-B3tkAx82.mjs} +1 -1
- package/dist/{tags-CXlivF3y.mjs → tags-CKnt6RT6.mjs} +9 -9
- package/dist/telemetry-B3S5OfOn.mjs +2 -0
- package/dist/{telemetry-CtQWhsmy.mjs → telemetry-COJrOM3V.mjs} +1 -1
- package/dist/{tenant-custom-nameservers-DBg9Hzvn.mjs → tenant-custom-nameservers-BdVLeMsA.mjs} +1 -1
- package/dist/{tenants-89Q0u5_Q.mjs → tenants-C8Emd5Ou.mjs} +1 -1
- package/dist/{tunnels-CL2fIINH.mjs → tunnels-vUfvvRWt.mjs} +15 -13
- package/dist/{turnstile-D6GtQULo.mjs → turnstile-D-6e0ShA.mjs} +1 -1
- package/dist/ui-YBIkZLZt.mjs +2 -0
- package/dist/{update-check-0kpbTLvy.mjs → update-check-BW_N6gX4.mjs} +1 -1
- package/dist/{update-check-D3axIoUi.mjs → update-check-CvzNuZHG.mjs} +1 -1
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-normalization--iS57OT_.mjs → url-normalization-Bfj-1zgi.mjs} +1 -1
- package/dist/{url-scanner-C6AtXGc2.mjs → url-scanner-CcZzqvrj.mjs} +1 -1
- package/dist/{user-C5vRYIta.mjs → user-CYHyVzic.mjs} +1 -1
- package/dist/{vectorize-C1Kxb1Ou.mjs → vectorize-69UvmqNI.mjs} +1 -1
- package/dist/version-5uL0ecbB.mjs +2 -0
- package/dist/{waiting-rooms-BCVZY9vI.mjs → waiting-rooms-Dj92gXpa.mjs} +1 -1
- package/dist/{web-assets-D2gXqKZS.mjs → web-assets-vbQ0MSCd.mjs} +1 -1
- package/dist/{web3-CJDZQCOk.mjs → web3-0Sz4gIto.mjs} +1 -1
- package/dist/{whoami-BEad9QUB.mjs → whoami-C4xRnPxf.mjs} +3 -3
- package/dist/whoami-wYc70ks4.mjs +2 -0
- package/dist/{workers-DzXSJMv9.mjs → workers-BQM8pUYu.mjs} +18 -18
- package/dist/{workers-for-platforms-CvazgrqD.mjs → workers-for-platforms-BfXIqCm4.mjs} +1 -1
- package/dist/{workers-vpc-DP4QC6UC.mjs → workers-vpc-CR3tfj4I.mjs} +1 -1
- package/dist/{workflows-BSOj56io.mjs → workflows-DpQgBIHz.mjs} +1 -1
- package/dist/{wrangler-migration-DZ9Oelof.mjs → wrangler-migration-ChTsuUHx.mjs} +57 -57
- package/dist/{zaraz-BnQvKXFy.mjs → zaraz-BPOBM0-W.mjs} +1 -1
- package/dist/{zero-trust-DsslXRub.mjs → zero-trust-Cridhy7G.mjs} +21 -17
- package/dist/{zones-DQ3SjGsZ.mjs → zones-BIKClc2S.mjs} +3 -3
- package/package.json +13 -13
- package/dist/auth-CXR2vsII.mjs +0 -2
- package/dist/build-ByjJ6yIB.mjs +0 -2
- package/dist/command-ycXauMSv.mjs +0 -2
- package/dist/deploy-input-BFWpjDVr.mjs +0 -2
- package/dist/discover-D9FNaCDK.mjs +0 -2
- package/dist/internal-CYrPZ9IX.mjs +0 -4
- package/dist/live-hZgMkXJf.mjs +0 -4
- package/dist/login-BBSJytOt.mjs +0 -2
- package/dist/observability-BzKBUUSf.mjs +0 -4
- package/dist/package-DXaRIx2f.mjs +0 -2
- package/dist/ready-BkXNDNTd.mjs +0 -4
- package/dist/run-Cg9utScS.mjs +0 -2
- package/dist/security-txt-Dbi9KxNc.mjs +0 -8
- package/dist/shared-DqW2vICA.mjs +0 -2
- package/dist/signed-url-BhHSAUam.mjs +0 -4
- package/dist/startup-profile-Dif7XOsU.mjs +0 -2
- package/dist/state-xUh3Z77T.mjs +0 -2
- package/dist/telemetry-DDs3zhdw.mjs +0 -2
- package/dist/ui-CY75N4Tm.mjs +0 -2
- package/dist/version-pcpa_kv3.mjs +0 -2
- package/dist/whoami-2eFTt0-Y.mjs +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-
|
|
2
|
+
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-CRq9OQKr.mjs";import{t as r}from"./dry-run-mrA7FFLR.mjs";import{a as i,t as a}from"./context-DsVjrTbe.mjs";import{t as o}from"./local-B3zt9PXR.mjs";import{t as s}from"./output-PRKYaJuo.mjs";import{t as c}from"./progress-DItBn6ZV.mjs";import{t as l}from"./run-DAK_kbUa.mjs";import"./telemetry-B3S5OfOn.mjs";import{a as u,n as d}from"./prompt-BGz3DNLz.mjs";import{c as f,i as p,o as m,r as h,t as g}from"./body-parser-HN91kAf0.mjs";import{n as _,t as v}from"./input-validation-D7z60HJH.mjs";import{n as y,t as b}from"./raw-fetch-CmI3Ol3q.mjs";var ee={method:`POST`,path:t=>e`/accounts/${t.account_id}/stream/keys`};function te(e){return e.usage(`$0 stream keys create
|
|
3
3
|
|
|
4
4
|
Creates an RSA private key in PEM and JWK formats. Key files are only displayed once after creation. Keys are created, used, and deleted independently of videos, and every key can sign any video.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ne={command:`create`,describe:`Create signing keys`,builder:te,handler:async e=>l({command:`stream keys create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();r({command:`cf stream keys create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/stream/keys`,pathParams:{},bodyKind:`none`});return}let t=await n(e),l=e.local?o:await a();e.accountId=l;let u=await c(`Creating`,async()=>t.send(ee,{account_id:l}));s(u,{successLabel:`Created`})})};var re={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/stream/keys/${t.identifier}`};function ie(e){return e.usage(`$0 stream keys delete <identifier>
|
|
5
5
|
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{i as e,n as t}from"./auth-
|
|
2
|
+
import{i as e,n as t}from"./auth-CRq9OQKr.mjs";import{t as n}from"./path-DRw6Y-nd.mjs";import{t as r}from"./dry-run-mrA7FFLR.mjs";import{t as i}from"./local-B3zt9PXR.mjs";import{a,i as o,t as s}from"./context-DsVjrTbe.mjs";import{t as c}from"./output-PRKYaJuo.mjs";import{t as l}from"./progress-DItBn6ZV.mjs";import{a as u,i as d,n as f}from"./prompt-BGz3DNLz.mjs";import{t as p}from"./run-DAK_kbUa.mjs";import"./telemetry-B3S5OfOn.mjs";import"./api-Dnt6lRJG.mjs";import{c as m,r as h,t as g}from"./body-parser-HN91kAf0.mjs";import{n as _}from"./input-validation-D7z60HJH.mjs";function v(e){return e.usage(`$0 tags account-resources delete
|
|
3
3
|
|
|
4
4
|
Removes all tags from a specific account or zone-level resource.
|
|
5
5
|
|
|
6
|
-
Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).option(`if-match`,{type:`string`,description:`ETag value for optimistic concurrency control. When provided, the server will
|
|
6
|
+
Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).option(`resource-id`,{type:`string`,description:`The ID of the resource to remove tags from.`,demandOption:!0}).option(`resource-type`,{type:`string`,description:`The type of the resource.`,choices:/* @__PURE__ */ `access_application.access_group.access_service_token.account.account_ruleset.ai_gateway.ai_search_instance.ai_search_namespace.alerting_policy.alerting_webhook.cloudflared_tunnel.cws_deployment.cws_policy.cws_policy_set.cws_workload.d1_database.device.durable_object_namespace.gateway_list.gateway_rule.image.infrastructure_target.kv_namespace.load_balancer_monitor.load_balancer_pool.namespace_worker.pages_project.queue.r2_bucket.resource_share.stream_live_input.stream_video.vectorize_index.worker.worker_version`.split(`.`),demandOption:!0}).option(`worker-id`,{type:`string`,description:`Worker identifier. Required for worker_version resources.`}).option(`if-match`,{type:`string`,description:`ETag value for optimistic concurrency control. When provided, the server will
|
|
7
7
|
verify the current resource ETag matches before applying the write. Returns
|
|
8
8
|
412 Precondition Failed if the resource has been modified since the ETag was
|
|
9
|
-
obtained. Omit this header for unconditional writes.`}).option(`
|
|
9
|
+
obtained. Omit this header for unconditional writes.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const y={command:`delete`,describe:`Delete tags from an account or zone-level resource`,builder:v,handler:async n=>p({command:`tags account-resources delete`,classification:{safeFlags:[`resource-type`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},n,async()=>{let u={resource_id:n[`resource-id`],resource_type:n[`resource-type`],worker_id:n[`worker-id`]},d={};if(n[`if-match`]!==void 0&&(d[`If-Match`]=String(n[`if-match`])),n.dryRun){let e=n.zone===void 0?await a():void 0,t=n.zone===void 0?`accounts`:`zones`,i=n.zone??e??`<account-id>`;r({command:`cf tags account-resources delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${t}/${i}/tags`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(i)},query:u,bodyKind:`none`});return}let p=await t(n),m=n.zone===void 0?`accounts`:`zones`,h=m===`zones`?await o({zone:n.zone},p,{quiet:n.quiet}):n.local?i:await s();if(m===`zones`?n.zoneId=h:n.accountId=h,!await f({force:!!n.force}))return;let g=await l(`Deleting`,async()=>e(p,`DELETE`,`/${m}/${h}/tags`,{query:u,headers:Object.keys(d).length>0?d:void 0}));c(g,{successLabel:`Deleted`})})};var b={method:`GET`,path:e=>n`/${e.account_or_zone}/${e.account_or_zone_id}/tags`,query:[`resource_id`,`resource_type`,`worker_id`]};function x(e){return e.usage(`$0 tags account-resources get
|
|
10
10
|
|
|
11
11
|
Retrieves tags for a specific account or zone-level resource.
|
|
12
12
|
|
|
13
|
-
Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).option(`resource-id`,{type:`string`,description:`The ID of the resource to retrieve tags for.`,demandOption:!0}).option(`resource-type`,{type:`string`,description:`The type of the resource.`,choices:/* @__PURE__ */ `access_application.access_group.access_service_token.account.account_ruleset.ai_gateway.ai_search_instance.ai_search_namespace.alerting_policy.alerting_webhook.cloudflared_tunnel.cws_deployment.cws_policy.cws_policy_set.cws_workload.d1_database.device.durable_object_namespace.gateway_list.gateway_rule.image.infrastructure_target.kv_namespace.load_balancer_monitor.load_balancer_pool.namespace_worker.pages_project.queue.r2_bucket.resource_share.stream_live_input.stream_video.vectorize_index.worker.worker_version`.split(`.`),demandOption:!0}).option(`worker-id`,{type:`string`,description:`Worker identifier. Required for worker_version resources.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`get`,describe:`Get tags for an account or zone-level resource`,builder:x,handler:async e=>p({command:`tags account-resources get`,classification:{safeFlags:[`resource-type`,`dry-run`]}},e,async()=>{let n={resource_id:e[`resource-id`],resource_type:e[`resource-type`],worker_id:e[`worker-id`]};if(e.dryRun){let t=e.zone===void 0?await
|
|
13
|
+
Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).option(`resource-id`,{type:`string`,description:`The ID of the resource to retrieve tags for.`,demandOption:!0}).option(`resource-type`,{type:`string`,description:`The type of the resource.`,choices:/* @__PURE__ */ `access_application.access_group.access_service_token.account.account_ruleset.ai_gateway.ai_search_instance.ai_search_namespace.alerting_policy.alerting_webhook.cloudflared_tunnel.cws_deployment.cws_policy.cws_policy_set.cws_workload.d1_database.device.durable_object_namespace.gateway_list.gateway_rule.image.infrastructure_target.kv_namespace.load_balancer_monitor.load_balancer_pool.namespace_worker.pages_project.queue.r2_bucket.resource_share.stream_live_input.stream_video.vectorize_index.worker.worker_version`.split(`.`),demandOption:!0}).option(`worker-id`,{type:`string`,description:`Worker identifier. Required for worker_version resources.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`get`,describe:`Get tags for an account or zone-level resource`,builder:x,handler:async e=>p({command:`tags account-resources get`,classification:{safeFlags:[`resource-type`,`dry-run`]}},e,async()=>{let n={resource_id:e[`resource-id`],resource_type:e[`resource-type`],worker_id:e[`worker-id`]};if(e.dryRun){let t=e.zone===void 0?await a():void 0,i=e.zone===void 0?`accounts`:`zones`,o=e.zone??t??`<account-id>`;r({command:`cf tags account-resources get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${i}/${o}/tags`,pathParams:{"account-or-zone":String(i),"account-or-zone-id":String(o)},query:n,bodyKind:`none`});return}let u=await t(e),d=e.zone===void 0?`accounts`:`zones`,f=d===`zones`?await o({zone:e.zone},u,{quiet:e.quiet}):e.local?i:await s();d===`zones`?e.zoneId=f:e.accountId=f;let p=await l(`Loading`,async()=>u.send(b,{account_or_zone:d,account_or_zone_id:f,...n}));c(p,{successLabel:`Loaded`})})};function C(e){return e.usage(`$0 tags account-resources update
|
|
14
14
|
|
|
15
15
|
Creates or updates tags for a specific account or zone-level resource. Replaces all existing tags for the resource.
|
|
16
16
|
|
|
17
17
|
Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).option(`if-match`,{type:`string`,description:`ETag value for optimistic concurrency control. When provided, the server will
|
|
18
18
|
verify the current resource ETag matches before applying the write. Returns
|
|
19
19
|
412 Precondition Failed if the resource has been modified since the ETag was
|
|
20
|
-
obtained. Omit this header for unconditional writes.`}).option(`resource-id`,{type:`string`,description:`Identifies the unique resource.`}).option(`resource-type`,{type:`string`,description:`Enum for worker_version resource type.`,choices:/* @__PURE__ */ `worker_version.access_application.access_group.access_service_token.account.account_ruleset.ai_gateway.ai_search_instance.ai_search_namespace.alerting_policy.alerting_webhook.cloudflared_tunnel.cws_deployment.cws_policy.cws_policy_set.cws_workload.d1_database.device.durable_object_namespace.gateway_list.gateway_rule.image.infrastructure_target.kv_namespace.load_balancer_monitor.load_balancer_pool.namespace_worker.pages_project.queue.r2_bucket.resource_share.stream_live_input.stream_video.vectorize_index.worker`.split(`.`)}).coerce(`resource-type`,e=>
|
|
20
|
+
obtained. Omit this header for unconditional writes.`}).option(`resource-id`,{type:`string`,description:`Identifies the unique resource.`}).option(`resource-type`,{type:`string`,description:`Enum for worker_version resource type.`,choices:/* @__PURE__ */ `worker_version.access_application.access_group.access_service_token.account.account_ruleset.ai_gateway.ai_search_instance.ai_search_namespace.alerting_policy.alerting_webhook.cloudflared_tunnel.cws_deployment.cws_policy.cws_policy_set.cws_workload.d1_database.device.durable_object_namespace.gateway_list.gateway_rule.image.infrastructure_target.kv_namespace.load_balancer_monitor.load_balancer_pool.namespace_worker.pages_project.queue.r2_bucket.resource_share.stream_live_input.stream_video.vectorize_index.worker`.split(`.`)}).coerce(`resource-type`,e=>_(e,`resource-type`,`text`)).option(`worker-id`,{type:`string`,description:`Worker ID is required only for worker_version resources`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body schema for setting tags on account-level resources.`})}const w={command:`update`,describe:`Set tags for an account or zone-level resource`,builder:C,handler:async n=>p({command:`tags account-resources update`,classification:{safeFlags:[`resource-type`,`dry-run`]}},n,async()=>{let f={};if(n[`if-match`]!==void 0&&(f[`If-Match`]=String(n[`if-match`])),n.dryRun){let e=n.zone===void 0?await a():void 0,t=n.zone===void 0?`accounts`:`zones`,i=n.zone??e??`<account-id>`;r({command:`cf tags account-resources update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${t}/${i}/tags`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(i)},bodyKind:`json`,body:n.body===void 0?g({resource_id:_(n[`resource-id`],`resource-id`,`text`),resource_type:n[`resource-type`],worker_id:_(n[`worker-id`],`worker-id`,`text`)}):h(n.body)});return}let p=n.body===void 0?void 0:h(n.body),v=await t(n),y=n.zone===void 0?`accounts`:`zones`,b=y===`zones`?await o({zone:n.zone},v,{quiet:n.quiet}):n.local?i:await s();if(y===`zones`?n.zoneId=b:n.accountId=b,n.body!==void 0){let t=p,n=await l(`Updating`,async()=>e(v,`PUT`,`/${y}/${b}/tags`,{body:t,headers:Object.keys(f).length>0?f:void 0}));c(n,{successLabel:`Updated`});return}n[`resource-id`]===void 0&&(n[`resource-id`]=await u(`resource-id`,`Identifies the unique resource.`)),n[`resource-type`]===void 0&&(n[`resource-type`]=await d(`resource-type`,`Enum for worker_version resource type.`,/* @__PURE__ */ `worker_version.access_application.access_group.access_service_token.account.account_ruleset.ai_gateway.ai_search_instance.ai_search_namespace.alerting_policy.alerting_webhook.cloudflared_tunnel.cws_deployment.cws_policy.cws_policy_set.cws_workload.d1_database.device.durable_object_namespace.gateway_list.gateway_rule.image.infrastructure_target.kv_namespace.load_balancer_monitor.load_balancer_pool.namespace_worker.pages_project.queue.r2_bucket.resource_share.stream_live_input.stream_video.vectorize_index.worker`.split(`.`)));let x={};n[`resource-id`]!==void 0&&m(x,[`resource_id`],_(n[`resource-id`],`resource-id`,`text`)),n[`resource-type`]!==void 0&&m(x,[`resource_type`],n[`resource-type`]),n[`worker-id`]!==void 0&&m(x,[`worker_id`],_(n[`worker-id`],`worker-id`,`text`));let S=await l(`Updating`,async()=>e(v,`PUT`,`/${y}/${b}/tags`,{body:x,headers:Object.keys(f).length>0?f:void 0}));c(S,{successLabel:`Updated`})})},T={command:`account-resources`,describe:`Operations for account-resources`,builder:e=>e.command(y).command(S).command(w).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var E={method:`GET`,path:e=>n`/accounts/${e.account_id}/tags/keys`,query:[`cursor`]};function D(e){return e.usage(`$0 tags keys list
|
|
21
21
|
|
|
22
|
-
Lists all distinct tag keys used across resources in an account.`).option(`cursor`,{type:`string`,description:`Cursor for pagination.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const O={command:`list`,describe:`List tag keys`,builder:D,handler:async e=>p({command:`tags keys list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={cursor:e.cursor};if(e.dryRun){let e=await
|
|
22
|
+
Lists all distinct tag keys used across resources in an account.`).option(`cursor`,{type:`string`,description:`Cursor for pagination.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const O={command:`list`,describe:`List tag keys`,builder:D,handler:async e=>p({command:`tags keys list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={cursor:e.cursor};if(e.dryRun){let e=await a();r({command:`cf tags keys list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/tags/keys`,pathParams:{},query:n,bodyKind:`none`});return}let o=await t(e),u=e.local?i:await s();e.accountId=u;let d=await l(`Loading`,async()=>o.send(E,{account_id:u,...n}));c(d,{successLabel:`Loaded`})})},k={command:`keys`,describe:`Operations for keys`,builder:e=>e.command(O).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var A={method:`GET`,path:e=>n`/accounts/${e.account_id}/tags/resources`,query:[`include_navigation`,`type`,`name`,`id`,`case_insensitive`,`tag`,`cursor`]};function j(e){return e.usage(`$0 tags resources list
|
|
23
23
|
|
|
24
|
-
Lists all tagged resources for an account.`).option(`include-navigation`,{type:`boolean`,description:`Resolve current namespace Worker navigation by immutable child tag. Optional read-only navigation is omitted for deleted or unresolved children. Lookups are limited to this page, at most five concurrently, with a shared two-second budget. Tag identity, ETag, filters and pagination are unchanged; name filtering still uses the stored resource name. Defaults to false.`}).option(`type`,{type:`string`,array:!0,description:`Filter by resource type. Can be repeated to filter by multiple types (OR logic). Example: ?type=zone&type=worker`}).option(`name`,{type:`string`,description:`Filter by resource name. Performs a case-insensitive substring match. Example: ?name=my-zone`}).option(`id`,{type:`string`,array:!0,description:`Filter by resource ID. Can be repeated up to 50 times to filter by multiple IDs. Example: ?id=abc&id=def`}).option(`case-insensitive`,{type:`boolean`,description:"Match `tag` keys and values case-insensitively. Stored casing is unchanged. Example: ?tag=environment=production&case_insensitive=true"}).option(`tag`,{type:`string`,array:!0,description:"Filter resources by tag criteria. This parameter can be repeated multiple times, with AND logic between parameters.\n\nSupported syntax:\n- **Key-only**: `tag=<key>` - Resource must have the tag key (e.g., `tag=production`)\n- **Key-value**: `tag=<key>=<value>` - Resource must have the tag with specific value (e.g., `tag=env=prod`)\n- **Multiple values (OR)**: `tag=<key>=<v1>,<v2>` - Resource must have tag with any of the values (e.g., `tag=env=prod,staging`)\n- **Negate key-only**: `tag=!<key>` - Resource must not have the tag key (e.g., `tag=!archived`)\n- **Negate key-value**: `tag=<key>!=<value>` - Resource must not have the tag with specific value (e.g., `tag=region!=us-west-1`)\n\nMultiple tag parameters are combined with AND logic."}).option(`cursor`,{type:`string`,description:`Cursor for pagination.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const M={command:`list`,describe:`List tagged resources`,builder:j,handler:async e=>p({command:`tags resources list`,classification:{safeFlags:[`include-navigation`,`case-insensitive`,`dry-run`]}},e,async()=>{let n={include_navigation:e[`include-navigation`],type:e.type,name:e.name,id:e.id,case_insensitive:e[`case-insensitive`],tag:e.tag,cursor:e.cursor};if(e.dryRun){let e=await
|
|
24
|
+
Lists all tagged resources for an account.`).option(`include-navigation`,{type:`boolean`,description:`Resolve current namespace Worker navigation by immutable child tag. Optional read-only navigation is omitted for deleted or unresolved children. Lookups are limited to this page, at most five concurrently, with a shared two-second budget. Tag identity, ETag, filters and pagination are unchanged; name filtering still uses the stored resource name. Defaults to false.`}).option(`type`,{type:`string`,array:!0,description:`Filter by resource type. Can be repeated to filter by multiple types (OR logic). Example: ?type=zone&type=worker`}).option(`name`,{type:`string`,description:`Filter by resource name. Performs a case-insensitive substring match. Example: ?name=my-zone`}).option(`id`,{type:`string`,array:!0,description:`Filter by resource ID. Can be repeated up to 50 times to filter by multiple IDs. Example: ?id=abc&id=def`}).option(`case-insensitive`,{type:`boolean`,description:"Match `tag` keys and values case-insensitively. Stored casing is unchanged. Example: ?tag=environment=production&case_insensitive=true"}).option(`tag`,{type:`string`,array:!0,description:"Filter resources by tag criteria. This parameter can be repeated multiple times, with AND logic between parameters.\n\nSupported syntax:\n- **Key-only**: `tag=<key>` - Resource must have the tag key (e.g., `tag=production`)\n- **Key-value**: `tag=<key>=<value>` - Resource must have the tag with specific value (e.g., `tag=env=prod`)\n- **Multiple values (OR)**: `tag=<key>=<v1>,<v2>` - Resource must have tag with any of the values (e.g., `tag=env=prod,staging`)\n- **Negate key-only**: `tag=!<key>` - Resource must not have the tag key (e.g., `tag=!archived`)\n- **Negate key-value**: `tag=<key>!=<value>` - Resource must not have the tag with specific value (e.g., `tag=region!=us-west-1`)\n\nMultiple tag parameters are combined with AND logic."}).option(`cursor`,{type:`string`,description:`Cursor for pagination.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const M={command:`list`,describe:`List tagged resources`,builder:j,handler:async e=>p({command:`tags resources list`,classification:{safeFlags:[`include-navigation`,`case-insensitive`,`dry-run`]}},e,async()=>{let n={include_navigation:e[`include-navigation`],type:e.type,name:e.name,id:e.id,case_insensitive:e[`case-insensitive`],tag:e.tag,cursor:e.cursor};if(e.dryRun){let e=await a();r({command:`cf tags resources list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/tags/resources`,pathParams:{},query:n,bodyKind:`none`});return}let o=await t(e),u=e.local?i:await s();e.accountId=u;let d=await l(`Loading`,async()=>o.send(A,{account_id:u,...n}));c(d,{successLabel:`Loaded`})})},N={command:`resources`,describe:`Operations for resources`,builder:e=>e.command(M).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var P={method:`GET`,path:e=>n`/accounts/${e.account_id}/tags/summary`,query:[`cursor`]};function F(e){return e.usage(`$0 tags summary get
|
|
25
25
|
|
|
26
|
-
Lists all distinct tag keys and their distinct values across resources in an account.`).option(`cursor`,{type:`string`,description:`Cursor for pagination.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const I={command:`get`,describe:`List tag key summary`,builder:F,handler:async e=>p({command:`tags summary get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={cursor:e.cursor};if(e.dryRun){let e=await
|
|
26
|
+
Lists all distinct tag keys and their distinct values across resources in an account.`).option(`cursor`,{type:`string`,description:`Cursor for pagination.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const I={command:`get`,describe:`List tag key summary`,builder:F,handler:async e=>p({command:`tags summary get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={cursor:e.cursor};if(e.dryRun){let e=await a();r({command:`cf tags summary get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/tags/summary`,pathParams:{},query:n,bodyKind:`none`});return}let o=await t(e),u=e.local?i:await s();e.accountId=u;let d=await l(`Loading`,async()=>o.send(P,{account_id:u,...n}));c(d,{successLabel:`Loaded`})})},L={command:`summary`,describe:`Operations for summary`,builder:e=>e.command(I).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var R={method:`GET`,path:e=>n`/accounts/${e.account_id}/tags/values/${e.tag_key}`,query:[`type`,`cursor`]};function z(e){return e.usage(`$0 tags values list
|
|
27
27
|
|
|
28
|
-
Lists all distinct values for a given tag key, optionally filtered by resource type.`).option(`tag-key`,{type:`string`,description:`The tag key to retrieve values for.`,demandOption:!0}).option(`type`,{type:`string`,description:`Filter by resource type.`,choices:/* @__PURE__ */ `access_application.access_application_policy.access_group.access_service_token.account.account_ruleset.ai_gateway.ai_search_instance.ai_search_namespace.alerting_policy.alerting_webhook.api_gateway_operation.cloudflared_tunnel.custom_certificate.custom_hostname.cws_deployment.cws_policy.cws_policy_set.cws_workload.d1_database.device.dns_record.durable_object_namespace.gateway_list.gateway_rule.healthcheck.image.infrastructure_target.kv_namespace.load_balancer.load_balancer_monitor.load_balancer_pool.managed_client_certificate.namespace_worker.pages_project.queue.r2_bucket.resource_share.stream_live_input.stream_video.vectorize_index.worker.worker_route.worker_version.zone.zone_ruleset`.split(`.`)}).option(`cursor`,{type:`string`,description:`Cursor for pagination.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const B={command:`list`,describe:`List tag values`,builder:z,handler:async e=>p({command:`tags values list`,classification:{safeFlags:[`type`,`dry-run`]}},e,async()=>{let n={type:e.type,cursor:e.cursor};if(e.dryRun){let t=await
|
|
28
|
+
Lists all distinct values for a given tag key, optionally filtered by resource type.`).option(`tag-key`,{type:`string`,description:`The tag key to retrieve values for.`,demandOption:!0}).option(`type`,{type:`string`,description:`Filter by resource type.`,choices:/* @__PURE__ */ `access_application.access_application_policy.access_group.access_service_token.account.account_ruleset.ai_gateway.ai_search_instance.ai_search_namespace.alerting_policy.alerting_webhook.api_gateway_operation.cloudflared_tunnel.custom_certificate.custom_hostname.cws_deployment.cws_policy.cws_policy_set.cws_workload.d1_database.device.dns_record.durable_object_namespace.gateway_list.gateway_rule.healthcheck.image.infrastructure_target.kv_namespace.load_balancer.load_balancer_monitor.load_balancer_pool.managed_client_certificate.namespace_worker.pages_project.queue.r2_bucket.resource_share.stream_live_input.stream_video.vectorize_index.worker.worker_route.worker_version.zone.zone_ruleset`.split(`.`)}).option(`cursor`,{type:`string`,description:`Cursor for pagination.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const B={command:`list`,describe:`List tag values`,builder:z,handler:async e=>p({command:`tags values list`,classification:{safeFlags:[`type`,`dry-run`]}},e,async()=>{let n={type:e.type,cursor:e.cursor};if(e.dryRun){let t=await a();r({command:`cf tags values list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/tags/values/${e[`tag-key`]==null?`<tag-key>`:encodeURIComponent(String(e[`tag-key`]))}`,pathParams:{"tag-key":String(e[`tag-key`]??``)},query:n,bodyKind:`none`});return}let o=await t(e),u=e.local?i:await s();e.accountId=u;let d=await l(`Loading`,async()=>o.send(R,{account_id:u,tag_key:e[`tag-key`],...n}));c(d,{successLabel:`Loaded`})})},V={command:`values`,describe:`Operations for values`,builder:e=>e.command(B).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},H={command:`tags`,describe:`tags`,builder:e=>e.command(T).command(k).command(N).command(L).command(V).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{H as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{a as e,n as t,r as n,t as r}from"./lifecycle-oud60haK.mjs";import{a as i,c as a,d as o,f as s,i as c,n as l,o as u,p as d,r as f,s as p,t as m,u as h}from"./run-
|
|
2
|
+
import{a as e,n as t,r as n,t as r}from"./lifecycle-oud60haK.mjs";import{a as i,c as a,d as o,f as s,i as c,n as l,o as u,p as d,r as f,s as p,t as m,u as h}from"./run-DAK_kbUa.mjs";import{r as g}from"./sanitization-DkVWMHkc.mjs";import{t as _}from"./telemetry-B3S5OfOn.mjs";export{c as TELEMETRY_ENV_VAR,i as TELEMETRY_POLICY_DATE,_ as UNKNOWN_COMMAND_EVENT,r as allTelemetryDispatchesSettled,t as beginTelemetryRun,u as getBannerLastShown,p as getDeviceId,f as getTelemetryDispatcher,a as getTelemetryFromEnv,h as isFirstUsage,n as markCommandReported,o as resolveTelemetry,m as runWithTelemetry,g as sanitizeArgs,s as setBannerLastShown,d as setTelemetryPermission,e as wasCommandReported,l as withTelemetry};
|
package/dist/{tenant-custom-nameservers-DBg9Hzvn.mjs → tenant-custom-nameservers-BdVLeMsA.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-CRq9OQKr.mjs";import{r as n,t as r}from"./body-parser-HN91kAf0.mjs";import{t as i}from"./dry-run-mrA7FFLR.mjs";import{n as a}from"./input-validation-D7z60HJH.mjs";import{t as o}from"./run-DAK_kbUa.mjs";import{t as s}from"./output-PRKYaJuo.mjs";import{t as c}from"./progress-DItBn6ZV.mjs";import{a as l,n as u}from"./prompt-BGz3DNLz.mjs";import"./telemetry-B3S5OfOn.mjs";var d={method:`POST`,path:t=>e`/tenants/${t.tenant_id}/custom_ns`,body:`json`};function f(e){return e.usage(`$0 tenant-custom-nameservers create <tenant-id>
|
|
3
3
|
|
|
4
4
|
Adds a custom nameserver for a tenant.`).positional(`tenant-id`,{type:`string`,description:`Tenant identifier tag.`,demandOption:!0}).option(`ns-name`,{type:`string`,description:`The FQDN of the name server.`}).option(`ns-set`,{type:`number`,description:`The number of the set that this name server belongs to.`,default:1}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const p={command:`create <tenant-id>`,describe:`Add Tenant Custom Nameserver`,builder:f,handler:async e=>o({command:`tenant-custom-nameservers create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf tenant-custom-nameservers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/tenants/${e[`tenant-id`]==null?`<tenant-id>`:encodeURIComponent(String(e[`tenant-id`]))}/custom_ns`,pathParams:{"tenant-id":String(e[`tenant-id`]??``)},bodyKind:`json`,body:e.body===void 0?r({ns_name:a(e[`ns-name`],`ns-name`,`text`),ns_set:e[`ns-set`]}):n(e.body)});return}let o=e.body===void 0?void 0:n(e.body),u=await t(e);if(e.body!==void 0){let t=o,n=await c(`Creating`,async()=>u.send(d,{body:t,tenant_id:e[`tenant-id`]}));s(n,{successLabel:`Created`});return}e[`ns-name`]===void 0&&(e[`ns-name`]=await l(`ns-name`,`The FQDN of the name server.`));let f=r({ns_name:a(e[`ns-name`],`ns-name`,`text`),ns_set:e[`ns-set`]}),p=await c(`Creating`,async()=>u.send(d,{body:f,tenant_id:e[`tenant-id`]}));s(p,{successLabel:`Created`})})};var m={method:`DELETE`,path:t=>e`/tenants/${t.tenant_id}/custom_ns/${t.custom_ns_id}`};function h(e){return e.usage(`$0 tenant-custom-nameservers delete <custom-ns-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-CRq9OQKr.mjs";import{t as n}from"./dry-run-mrA7FFLR.mjs";import{t as r}from"./output-PRKYaJuo.mjs";import{t as i}from"./progress-DItBn6ZV.mjs";import{t as a}from"./run-DAK_kbUa.mjs";import"./telemetry-B3S5OfOn.mjs";var o={method:`GET`,path:t=>e`/tenants/${t.tenant_id}/accounts`,query:[`account_pubname`,`account_pubname.startsWith`,`account_pubname.endsWith`,`account_pubname.contains`,`name`,`name.startsWith`,`name.endsWith`,`name.contains`,`status`,`order_by`,`direction`,`include_total`,`page_token`,`page_size`],joined:[`account_pubname`,`account_pubname.startsWith`,`account_pubname.endsWith`,`account_pubname.contains`,`name`,`name.startsWith`,`name.endsWith`,`name.contains`,`status`,`order_by`,`direction`,`include_total`,`page_token`,`page_size`]};function s(e){return e.usage("$0 tenants accounts list\n\nLists all Cloudflare accounts across this tenant's hierarchy using the legacy Account response shape. Use `GET /organizations/{organization_id}/accounts` to list only accounts immediately attached to a specific Organization using the modern Account response shape. Use `page_token` and `page_size` for cursor pagination.").option(`tenant-id`,{type:`string`,description:`The ID of the tenant whose accounts to list.`,demandOption:!0}).option(`account-pubname`,{type:`string`,description:`(case-sensitive) Filter the list of accounts to where the account_pubname is equal to
|
|
3
3
|
a particular string.`}).option(`account-pubname-starts-with`,{type:`string`,description:`(case-insensitive) Filter the list of accounts to where the account_pubname starts with
|
|
4
4
|
a particular string.`}).option(`account-pubname-ends-with`,{type:`string`,description:`(case-insensitive) Filter the list of accounts to where the account_pubname ends with
|
|
5
5
|
a particular string.`}).option(`account-pubname-contains`,{type:`string`,description:`(case-insensitive) Filter the list of accounts to where the account_pubname contains
|
|
@@ -1,27 +1,29 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-Dnt6lRJG.mjs";import{n as e}from"./auth-
|
|
2
|
+
import"./api-Dnt6lRJG.mjs";import{n as e}from"./auth-CRq9OQKr.mjs";import{t}from"./path-DRw6Y-nd.mjs";import{t as n}from"./dry-run-mrA7FFLR.mjs";import{t as r}from"./local-B3zt9PXR.mjs";import{t as i}from"./output-PRKYaJuo.mjs";import{a,t as o}from"./context-DsVjrTbe.mjs";import{t as s}from"./progress-DItBn6ZV.mjs";import{a as c,n as l}from"./prompt-BGz3DNLz.mjs";import"./telemetry-B3S5OfOn.mjs";import{t as u}from"./run-DAK_kbUa.mjs";import{o as d,r as f,t as p}from"./body-parser-HN91kAf0.mjs";import{n as m}from"./input-validation-D7z60HJH.mjs";import{t as h}from"./create-DmLDMvrj.mjs";import{t as g}from"./get-3XNn0upb.mjs";import{t as _}from"./lazy-command-CJcN1Ze6.mjs";import{t as v}from"./hand-written-dry-run-B82fRl2N.mjs";var y={method:`DELETE`,path:e=>t`/accounts/${e.account_id}/cfd_tunnel/${e.tunnel_id}/configurations`};function b(e){return e.usage(`$0 tunnels config delete <tunnel-id>
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
Resets a remotely managed Cloudflare Tunnel to an empty configuration, removing ingress rules and origin request settings. The tunnel remains remotely managed, and private network routes continue to determine WARP routing. Publishes a new configuration version when the configuration changes. Repeated requests succeed without creating additional versions. If the tunnel or configuration is absent, returns a null result. Locally managed tunnels cannot be reset with this endpoint.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,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 x={command:`delete <tunnel-id>`,describe:`Reset Tunnel configuration`,builder:b,handler:async t=>u({command:`tunnels config delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){let e=await a();n({command:`cf tunnels config delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/cfd_tunnel/${t[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(t[`tunnel-id`]))}/configurations`,pathParams:{"tunnel-id":String(t[`tunnel-id`]??``)},bodyKind:`none`});return}let c=await e(t),u=t.local?r:await o();if(t.accountId=u,!await l({force:!!t.force,message:`This operation resets the tunnel configuration, removing ingress rules and origin request settings.`}))return;let d=await s(`Deleting`,async()=>c.send(y,{account_id:u,tunnel_id:t[`tunnel-id`]}));i(d,{successLabel:`Deleted`})})};var ee={method:`GET`,path:e=>t`/accounts/${e.account_id}/cfd_tunnel/${e.tunnel_id}/configurations`};function S(e){return e.usage(`$0 tunnels config get <tunnel-id>
|
|
5
|
+
|
|
6
|
+
Retrieves the configuration for a remotely managed Cloudflare Tunnel.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const C={command:`get <tunnel-id>`,describe:`Get Tunnel configuration`,builder:S,handler:async t=>u({command:`tunnels config get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await a();n({command:`cf tunnels config get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/cfd_tunnel/${t[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(t[`tunnel-id`]))}/configurations`,pathParams:{"tunnel-id":String(t[`tunnel-id`]??``)},bodyKind:`none`});return}let c=await e(t),l=t.local?r:await o();t.accountId=l;let u=await s(`Loading`,async()=>c.send(ee,{account_id:l,tunnel_id:t[`tunnel-id`]}));i(u,{successLabel:`Loaded`})})};var w={method:`PUT`,path:e=>t`/accounts/${e.account_id}/cfd_tunnel/${e.tunnel_id}/configurations`,body:`json`};function T(e){return e.usage(`$0 tunnels config update <tunnel-id>
|
|
5
7
|
|
|
6
8
|
Replaces the configuration for a remotely managed Cloudflare Tunnel, including its ingress rules and origin request settings.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`tunnel-config-ingress`,{type:`string`,description:`List of public hostname definitions. At least one ingress rule needs to be defined for the tunnel. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"hostname": string, "service": string, "originRequest"?: {...}, "path"?: string}]. ? marks optional keys.`}).option(`tunnel-config-origin-request-access-aud-tag`,{type:`string`,array:!0,description:`Access applications that are allowed to reach this hostname for this Tunnel. Audience tags can be identified in the dashboard or via the List Access policies API.`}).option(`tunnel-config-origin-request-access-required`,{type:`boolean`,description:`Deny traffic that has not fulfilled Access authorization.`}).option(`tunnel-config-origin-request-access-team-name`,{type:`string`,description:`The config.originRequest.access.teamName field`}).option(`tunnel-config-origin-request-ca-pool`,{type:`string`,description:`Path to the certificate authority (CA) for the certificate of your origin. This option should be used only if your certificate is not signed by Cloudflare.`}).option(`tunnel-config-origin-request-connect-timeout`,{type:`number`,description:`Timeout for establishing a new TCP connection to your origin server. This excludes the time taken to establish TLS, which is controlled by tlsTimeout.`}).option(`tunnel-config-origin-request-disable-chunked-encoding`,{type:`boolean`,description:`Disables chunked transfer encoding. Useful if you are running a WSGI server.`}).option(`tunnel-config-origin-request-http2origin`,{type:`boolean`,description:`Attempt to connect to origin using HTTP2. Origin must be configured as https.`}).option(`tunnel-config-origin-request-http-host-header`,{type:`string`,description:`Sets the HTTP Host header on requests sent to the local service.`}).option(`tunnel-config-origin-request-keep-alive-connections`,{type:`number`,description:`Maximum number of idle keepalive connections between Tunnel and your origin. This does not restrict the total number of concurrent connections.`}).option(`tunnel-config-origin-request-keep-alive-timeout`,{type:`number`,description:`Timeout after which an idle keepalive connection can be discarded.`}).option(`tunnel-config-origin-request-match-snito-host`,{type:`boolean`,description:`Auto configure the Hostname on the origin server certificate.`}).option(`tunnel-config-origin-request-no-happy-eyeballs`,{type:`boolean`,description:`Disable the “happy eyeballs” algorithm for IPv4/IPv6 fallback if your local network has misconfigured one of the protocols.`}).option(`tunnel-config-origin-request-no-tlsverify`,{type:`boolean`,description:`Disables TLS verification of the certificate presented by your origin. Will allow any certificate from the origin to be accepted.`}).option(`tunnel-config-origin-request-origin-server-name`,{type:`string`,description:`Hostname that cloudflared should expect from your origin server certificate.`}).option(`tunnel-config-origin-request-proxy-type`,{type:`string`,description:`cloudflared starts a proxy server to translate HTTP traffic into TCP when proxying, for example, SSH or RDP. This configures what type of proxy will be started. Valid options are: "" for the regular proxy and "socks" for a SOCKS5 proxy.
|
|
7
|
-
`}).option(`tunnel-config-origin-request-tcp-keep-alive`,{type:`number`,description:`The timeout after which a TCP keepalive packet is sent on a connection between Tunnel and the origin server.`}).option(`tunnel-config-origin-request-tls-timeout`,{type:`number`,description:`Timeout for completing a TLS handshake to your origin server, if you have chosen to connect Tunnel to an HTTPS server.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).check(e=>{let t=[`tunnel-config-origin-request-access-aud-tag`,`tunnel-config-origin-request-access-required`,`tunnel-config-origin-request-access-team-name`].some(t=>e[t]!==void 0);if(!e.body&&t){let t=[`tunnel-config-origin-request-access-aud-tag`,`tunnel-config-origin-request-access-team-name`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --config-origin-request-access-* flag is set`)}return!0})}const
|
|
9
|
+
`}).option(`tunnel-config-origin-request-tcp-keep-alive`,{type:`number`,description:`The timeout after which a TCP keepalive packet is sent on a connection between Tunnel and the origin server.`}).option(`tunnel-config-origin-request-tls-timeout`,{type:`number`,description:`Timeout for completing a TLS handshake to your origin server, if you have chosen to connect Tunnel to an HTTPS server.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).check(e=>{let t=[`tunnel-config-origin-request-access-aud-tag`,`tunnel-config-origin-request-access-required`,`tunnel-config-origin-request-access-team-name`].some(t=>e[t]!==void 0);if(!e.body&&t){let t=[`tunnel-config-origin-request-access-aud-tag`,`tunnel-config-origin-request-access-team-name`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --config-origin-request-access-* flag is set`)}return!0})}const E={command:`update <tunnel-id>`,describe:`Update Tunnel configuration`,builder:T,handler:async t=>u({command:`tunnels config update`,classification:{safeFlags:[`tunnel-config-origin-request-access-required`,`tunnel-config-origin-request-disable-chunked-encoding`,`tunnel-config-origin-request-http2origin`,`tunnel-config-origin-request-match-snito-host`,`tunnel-config-origin-request-no-happy-eyeballs`,`tunnel-config-origin-request-no-tlsverify`,`dry-run`]}},t,async()=>{if(t.dryRun){let e=await a();n({command:`cf tunnels config update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/cfd_tunnel/${t[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(t[`tunnel-id`]))}/configurations`,pathParams:{"tunnel-id":String(t[`tunnel-id`]??``)},bodyKind:`json`,body:t.body===void 0?p({config:{ingress:d(t[`tunnel-config-ingress`],`tunnel-config-ingress`),originRequest:{access:{audTag:t[`tunnel-config-origin-request-access-aud-tag`],required:t[`tunnel-config-origin-request-access-required`],teamName:m(t[`tunnel-config-origin-request-access-team-name`],`tunnel-config-origin-request-access-team-name`,`text`)},caPool:m(t[`tunnel-config-origin-request-ca-pool`],`tunnel-config-origin-request-ca-pool`,`text`),connectTimeout:t[`tunnel-config-origin-request-connect-timeout`],disableChunkedEncoding:t[`tunnel-config-origin-request-disable-chunked-encoding`],http2Origin:t[`tunnel-config-origin-request-http2origin`],httpHostHeader:m(t[`tunnel-config-origin-request-http-host-header`],`tunnel-config-origin-request-http-host-header`,`text`),keepAliveConnections:t[`tunnel-config-origin-request-keep-alive-connections`],keepAliveTimeout:t[`tunnel-config-origin-request-keep-alive-timeout`],matchSNItoHost:t[`tunnel-config-origin-request-match-snito-host`],noHappyEyeballs:t[`tunnel-config-origin-request-no-happy-eyeballs`],noTLSVerify:t[`tunnel-config-origin-request-no-tlsverify`],originServerName:m(t[`tunnel-config-origin-request-origin-server-name`],`tunnel-config-origin-request-origin-server-name`,`text`),proxyType:m(t[`tunnel-config-origin-request-proxy-type`],`tunnel-config-origin-request-proxy-type`,`text`),tcpKeepAlive:t[`tunnel-config-origin-request-tcp-keep-alive`],tlsTimeout:t[`tunnel-config-origin-request-tls-timeout`]}}}):f(t.body)});return}let c=t.body===void 0?void 0:f(t.body),l=await e(t),u=t.local?r:await o();if(t.accountId=u,t.body!==void 0){let e=c,n=await s(`Updating`,async()=>l.send(w,{body:e,account_id:u,tunnel_id:t[`tunnel-id`]}));i(n,{successLabel:`Updated`});return}let h=p({config:{ingress:d(t[`tunnel-config-ingress`],`tunnel-config-ingress`),originRequest:{access:{audTag:t[`tunnel-config-origin-request-access-aud-tag`],required:t[`tunnel-config-origin-request-access-required`],teamName:m(t[`tunnel-config-origin-request-access-team-name`],`tunnel-config-origin-request-access-team-name`,`text`)},caPool:m(t[`tunnel-config-origin-request-ca-pool`],`tunnel-config-origin-request-ca-pool`,`text`),connectTimeout:t[`tunnel-config-origin-request-connect-timeout`],disableChunkedEncoding:t[`tunnel-config-origin-request-disable-chunked-encoding`],http2Origin:t[`tunnel-config-origin-request-http2origin`],httpHostHeader:m(t[`tunnel-config-origin-request-http-host-header`],`tunnel-config-origin-request-http-host-header`,`text`),keepAliveConnections:t[`tunnel-config-origin-request-keep-alive-connections`],keepAliveTimeout:t[`tunnel-config-origin-request-keep-alive-timeout`],matchSNItoHost:t[`tunnel-config-origin-request-match-snito-host`],noHappyEyeballs:t[`tunnel-config-origin-request-no-happy-eyeballs`],noTLSVerify:t[`tunnel-config-origin-request-no-tlsverify`],originServerName:m(t[`tunnel-config-origin-request-origin-server-name`],`tunnel-config-origin-request-origin-server-name`,`text`),proxyType:m(t[`tunnel-config-origin-request-proxy-type`],`tunnel-config-origin-request-proxy-type`,`text`),tcpKeepAlive:t[`tunnel-config-origin-request-tcp-keep-alive`],tlsTimeout:t[`tunnel-config-origin-request-tls-timeout`]}}}),g=await s(`Updating`,async()=>l.send(w,{body:h,account_id:u,tunnel_id:t[`tunnel-id`]}));i(g,{successLabel:`Updated`})})},D={command:`config`,describe:`Operations for config`,builder:e=>e.command(x).command(C).command(E).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var O={method:`DELETE`,path:e=>t`/accounts/${e.account_id}/cfd_tunnel/${e.tunnel_id}/connections`,query:[`client_id`]};function k(e){return e.usage(`$0 tunnels connections cleanup <tunnel-id>
|
|
8
10
|
|
|
9
|
-
Removes a connection (aka Cloudflare Tunnel Connector) from a Cloudflare Tunnel independently of its current state. If no connector id (client_id) is provided all connectors will be removed. We recommend running this command after rotating tokens.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`client-id`,{type:`string`,description:`UUID of the Cloudflare Tunnel connector.`}).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
|
|
11
|
+
Removes a connection (aka Cloudflare Tunnel Connector) from a Cloudflare Tunnel independently of its current state. If no connector id (client_id) is provided all connectors will be removed. We recommend running this command after rotating tokens.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`client-id`,{type:`string`,description:`UUID of the Cloudflare Tunnel connector.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const A={command:`cleanup <tunnel-id>`,describe:`Clean up Cloudflare Tunnel connections`,builder:k,handler:async t=>u({command:`tunnels connections cleanup`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{let c={client_id:t[`client-id`]};if(t.dryRun){let e=await a();n({command:`cf tunnels connections cleanup`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/cfd_tunnel/${t[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(t[`tunnel-id`]))}/connections`,pathParams:{"tunnel-id":String(t[`tunnel-id`]??``)},query:c,bodyKind:`none`});return}let u=await e(t),d=t.local?r:await o();if(t.accountId=d,!await l({force:!!t.force,message:`This operation removes Cloudflare Tunnel connections.`}))return;let f=await s(`Deleting`,async()=>u.send(O,{account_id:d,tunnel_id:t[`tunnel-id`],...c}));i(f,{successLabel:`Deleted`})})};var j={method:`GET`,path:e=>t`/accounts/${e.account_id}/cfd_tunnel/${e.tunnel_id}/connections`};function M(e){return e.usage(`$0 tunnels connections list
|
|
10
12
|
|
|
11
|
-
Lists the connections for a Cloudflare Tunnel, including connector IDs, cloudflared versions, and Cloudflare locations.`).option(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
13
|
+
Lists the connections for a Cloudflare Tunnel, including connector IDs, cloudflared versions, and Cloudflare locations.`).option(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const N={command:`list`,describe:`List Cloudflare Tunnel connections`,builder:M,handler:async t=>u({command:`tunnels connections list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await a();n({command:`cf tunnels connections list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/cfd_tunnel/${t[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(t[`tunnel-id`]))}/connections`,pathParams:{"tunnel-id":String(t[`tunnel-id`]??``)},bodyKind:`none`});return}let c=await e(t),l=t.local?r:await o();t.accountId=l;let u=await s(`Loading`,async()=>c.send(j,{account_id:l,tunnel_id:t[`tunnel-id`]}));i(u,{successLabel:`Loaded`})})},P={command:`connections`,describe:`Operations for connections`,builder:e=>e.command(A).command(N).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var F={method:`GET`,path:e=>t`/accounts/${e.account_id}/cfd_tunnel/${e.tunnel_id}/connectors/${e.connector_id}`};function I(e){return e.usage(`$0 tunnels connectors get <connector-id>
|
|
12
14
|
|
|
13
|
-
Retrieves a connector and its connection details for a Cloudflare Tunnel, including its cloudflared version, architecture, and connected Cloudflare locations.`).positional(`connector-id`,{type:`string`,description:`UUID of the Cloudflare Tunnel connector.`,demandOption:!0}).option(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
15
|
+
Retrieves a connector and its connection details for a Cloudflare Tunnel, including its cloudflared version, architecture, and connected Cloudflare locations.`).positional(`connector-id`,{type:`string`,description:`UUID of the Cloudflare Tunnel connector.`,demandOption:!0}).option(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const L={command:`get <connector-id>`,describe:`Get Cloudflare Tunnel connector`,builder:I,handler:async t=>u({command:`tunnels connectors get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await a();n({command:`cf tunnels connectors get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/cfd_tunnel/${t[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(t[`tunnel-id`]))}/connectors/${t[`connector-id`]==null?`<connector-id>`:encodeURIComponent(String(t[`connector-id`]))}`,pathParams:{"tunnel-id":String(t[`tunnel-id`]??``),"connector-id":String(t[`connector-id`]??``)},bodyKind:`none`});return}let c=await e(t),l=t.local?r:await o();t.accountId=l;let u=await s(`Loading`,async()=>c.send(F,{account_id:l,tunnel_id:t[`tunnel-id`],connector_id:t[`connector-id`]}));i(u,{successLabel:`Loaded`})})},R={command:`connectors`,describe:`Operations for connectors`,builder:e=>e.command(L).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var z={method:`POST`,path:e=>t`/accounts/${e.account_id}/cfd_tunnel`,body:`json`};function B(e){return e.usage(`$0 tunnels create
|
|
14
16
|
|
|
15
|
-
Creates a remotely or locally managed Cloudflare Tunnel in an account. After creation, retrieve its token and run cloudflared to establish the connector connection.`).option(`config-source`,{type:`string`,description:"Indicates if this is a locally or remotely configured tunnel. If `local`, manage the tunnel using a YAML file on the origin machine. If `cloudflare`, manage the tunnel on the Zero Trust dashboard.",choices:[`local`,`cloudflare`]}).coerce(`config-source`,e=>
|
|
17
|
+
Creates a remotely or locally managed Cloudflare Tunnel in an account. After creation, retrieve its token and run cloudflared to establish the connector connection.`).option(`config-source`,{type:`string`,description:"Indicates if this is a locally or remotely configured tunnel. If `local`, manage the tunnel using a YAML file on the origin machine. If `cloudflare`, manage the tunnel on the Zero Trust dashboard.",choices:[`local`,`cloudflare`]}).coerce(`config-source`,e=>m(e,`config-source`,`text`)).option(`name`,{type:`string`,description:`A user-friendly name for a tunnel.`}).option(`tunnel-secret`,{type:`string`,description:`Sets the password required to run a locally-managed tunnel. Must be at least 32 bytes and encoded as a base64 string.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const V={command:`create`,describe:`Create a Cloudflare Tunnel`,builder:B,handler:async t=>u({command:`tunnels create`,classification:{safeFlags:[`config-source`,`dry-run`]}},t,async()=>{if(t.dryRun){let e=await a();n({command:`cf tunnels create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/cfd_tunnel`,pathParams:{},bodyKind:`json`,body:t.body===void 0?p({config_src:t[`config-source`],name:m(t.name,`name`,`text`),tunnel_secret:m(t[`tunnel-secret`],`tunnel-secret`,`text`)}):f(t.body),sensitiveBodyPaths:[[`tunnel_secret`]]});return}let l=t.body===void 0?void 0:f(t.body),u=await e(t),d=t.local?r:await o();if(t.accountId=d,t.body!==void 0){let e=l,t=await s(`Creating`,async()=>u.send(z,{body:e,account_id:d}));i(t,{successLabel:`Created`});return}t.name===void 0&&(t.name=await c(`name`,`A user-friendly name for a tunnel.`));let h=p({config_src:t[`config-source`],name:m(t.name,`name`,`text`),tunnel_secret:m(t[`tunnel-secret`],`tunnel-secret`,`text`)}),g=await s(`Creating`,async()=>u.send(z,{body:h,account_id:d}));i(g,{successLabel:`Created`})})};var te={method:`DELETE`,path:e=>t`/accounts/${e.account_id}/cfd_tunnel/${e.tunnel_id}`};function H(e){return e.usage(`$0 tunnels delete <tunnel-id>
|
|
16
18
|
|
|
17
|
-
Permanently deletes a Cloudflare Tunnel from an account. The tunnel must have no active connections.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,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
|
|
19
|
+
Permanently deletes a Cloudflare Tunnel from an account. The tunnel must have no active connections.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,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 U={command:`delete <tunnel-id>`,describe:`Delete a Cloudflare Tunnel`,builder:H,handler:async t=>u({command:`tunnels delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){let e=await a();n({command:`cf tunnels delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/cfd_tunnel/${t[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(t[`tunnel-id`]))}`,pathParams:{"tunnel-id":String(t[`tunnel-id`]??``)},bodyKind:`none`});return}let c=await e(t),u=t.local?r:await o();if(t.accountId=u,!await l({force:!!t.force,message:`This operation permanently deletes a Cloudflare Tunnel.`}))return;let d=await s(`Deleting`,async()=>c.send(te,{account_id:u,tunnel_id:t[`tunnel-id`]}));i(d,{successLabel:`Deleted`})})};var W={method:`PATCH`,path:e=>t`/accounts/${e.account_id}/cfd_tunnel/${e.tunnel_id}`,body:`json`};function G(e){return e.usage(`$0 tunnels edit <tunnel-id>
|
|
18
20
|
|
|
19
|
-
Updates the name or secret of an existing Cloudflare Tunnel.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`name`,{type:`string`,description:`A user-friendly name for a tunnel.`}).option(`tunnel-secret`,{type:`string`,description:`Sets the password required to run a locally-managed tunnel. Must be at least 32 bytes and encoded as a base64 string.`}).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
|
|
21
|
+
Updates the name or secret of an existing Cloudflare Tunnel.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`name`,{type:`string`,description:`A user-friendly name for a tunnel.`}).option(`tunnel-secret`,{type:`string`,description:`Sets the password required to run a locally-managed tunnel. Must be at least 32 bytes and encoded as a base64 string.`}).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:`edit <tunnel-id>`,describe:`Update a Cloudflare Tunnel`,builder:G,handler:async t=>u({command:`tunnels edit`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await a();n({command:`cf tunnels edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/cfd_tunnel/${t[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(t[`tunnel-id`]))}`,pathParams:{"tunnel-id":String(t[`tunnel-id`]??``)},bodyKind:`json`,body:t.body===void 0?p({name:m(t.name,`name`,`text`),tunnel_secret:m(t[`tunnel-secret`],`tunnel-secret`,`text`)}):f(t.body),sensitiveBodyPaths:[[`tunnel_secret`]]});return}let c=t.body===void 0?void 0:f(t.body),l=await e(t),u=t.local?r:await o();if(t.accountId=u,t.body!==void 0){let e=c,n=await s(`Updating`,async()=>l.send(W,{body:e,account_id:u,tunnel_id:t[`tunnel-id`]}));i(n,{successLabel:`Updated`});return}let d=p({name:m(t.name,`name`,`text`),tunnel_secret:m(t[`tunnel-secret`],`tunnel-secret`,`text`)}),h=await s(`Updating`,async()=>l.send(W,{body:d,account_id:u,tunnel_id:t[`tunnel-id`]}));i(h,{successLabel:`Updated`})})};var q={method:`GET`,path:e=>t`/accounts/${e.account_id}/cfd_tunnel/${e.tunnel_id}`};function J(e){return e.usage(`$0 tunnels get <tunnel-id>
|
|
20
22
|
|
|
21
|
-
Fetches a single Cloudflare Tunnel.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
23
|
+
Fetches a single Cloudflare Tunnel.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Y={command:`get <tunnel-id>`,describe:`Get a Cloudflare Tunnel`,builder:J,handler:async t=>u({command:`tunnels get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await a();n({command:`cf tunnels get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/cfd_tunnel/${t[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(t[`tunnel-id`]))}`,pathParams:{"tunnel-id":String(t[`tunnel-id`]??``)},bodyKind:`none`});return}let c=await e(t),l=t.local?r:await o();t.accountId=l;let u=await s(`Loading`,async()=>c.send(q,{account_id:l,tunnel_id:t[`tunnel-id`]}));i(u,{successLabel:`Loaded`})})};var X={method:`GET`,path:e=>t`/accounts/${e.account_id}/tunnels`,query:[`name`,`is_deleted`,`existed_at`,`uuid`,`was_active_at`,`was_inactive_at`,`include_prefix`,`exclude_prefix`,`tun_types`,`status`,`per_page`,`page`]};function Z(e){return e.usage(`$0 tunnels list
|
|
22
24
|
|
|
23
|
-
Lists and filters all types of Tunnels in an account.`).option(`name`,{type:`string`,description:`A user-friendly name for the tunnel.`}).option(`is-deleted`,{type:`boolean`,description:"If `true`, only include deleted tunnels. If `false`, exclude deleted tunnels. If empty, all tunnels will be included."}).option(`existed-at`,{type:`string`,description:`If provided, include only resources that were created (and not deleted) before this time. URL encoded.`}).option(`uuid`,{type:`string`,description:`UUID of the tunnel.`}).option(`was-active-at`,{type:`string`,description:`Was active at`}).option(`was-inactive-at`,{type:`string`,description:`Was inactive at`}).option(`include-prefix`,{type:`string`,description:`Include prefix`}).option(`exclude-prefix`,{type:`string`,description:`Exclude prefix`}).option(`tun-types`,{type:`string`,array:!0,description:`The types of tunnels to filter by, separated by commas.`}).option(`status`,{type:`string`,description:"The status of the tunnel. Valid values are `inactive` (tunnel has never been run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy state), `healthy` (tunnel is active and able to serve traffic), or `down` (tunnel can not serve traffic as it has no connections to the Cloudflare Edge).",choices:[`inactive`,`degraded`,`healthy`,`down`]}).option(`per-page`,{type:`number`,description:`Number of results to display.`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
25
|
+
Lists and filters all types of Tunnels in an account.`).option(`name`,{type:`string`,description:`A user-friendly name for the tunnel.`}).option(`is-deleted`,{type:`boolean`,description:"If `true`, only include deleted tunnels. If `false`, exclude deleted tunnels. If empty, all tunnels will be included."}).option(`existed-at`,{type:`string`,description:`If provided, include only resources that were created (and not deleted) before this time. URL encoded.`}).option(`uuid`,{type:`string`,description:`UUID of the tunnel.`}).option(`was-active-at`,{type:`string`,description:`Was active at`}).option(`was-inactive-at`,{type:`string`,description:`Was inactive at`}).option(`include-prefix`,{type:`string`,description:`Include prefix`}).option(`exclude-prefix`,{type:`string`,description:`Exclude prefix`}).option(`tun-types`,{type:`string`,array:!0,description:`The types of tunnels to filter by, separated by commas.`}).option(`status`,{type:`string`,description:"The status of the tunnel. Valid values are `inactive` (tunnel has never been run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy state), `healthy` (tunnel is active and able to serve traffic), or `down` (tunnel can not serve traffic as it has no connections to the Cloudflare Edge).",choices:[`inactive`,`degraded`,`healthy`,`down`]}).option(`per-page`,{type:`number`,description:`Number of results to display.`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Q={command:`list`,describe:`List All Tunnels`,builder:Z,handler:async t=>u({command:`tunnels list`,classification:{safeFlags:[`is-deleted`,`status`,`dry-run`]}},t,async()=>{let c={name:t.name,is_deleted:t[`is-deleted`],existed_at:t[`existed-at`],uuid:t.uuid,was_active_at:t[`was-active-at`],was_inactive_at:t[`was-inactive-at`],include_prefix:t[`include-prefix`],exclude_prefix:t[`exclude-prefix`],tun_types:t[`tun-types`],status:t.status,per_page:t[`per-page`],page:t.page};if(t.dryRun){let e=await a();n({command:`cf tunnels list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/tunnels`,pathParams:{},query:c,bodyKind:`none`});return}let l=await e(t),u=t.local?r:await o();t.accountId=u;let d=await s(`Loading`,async()=>l.send(X,{account_id:u,...c}));i(d,{successLabel:`Loaded`})})};function ne(e){return e.usage(`$0 tunnels management-token create <tunnel-id>
|
|
24
26
|
|
|
25
|
-
Creates a short-lived management token for the requested Tunnel management resources, such as streaming logs. Treat the token as a secret.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`resources`,{type:`string`,array:!0,description:`The resources 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
|
|
27
|
+
Creates a short-lived management token for the requested Tunnel management resources, such as streaming logs. Treat the token as a secret.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`resources`,{type:`string`,array:!0,description:`The resources 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 re={command:`create <tunnel-id>`,describe:`Get a Cloudflare Tunnel management token`,builder:ne,handler:async t=>u({command:`tunnels management-token create`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await a();n({command:`cf tunnels management-token create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/cfd_tunnel/${t[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(t[`tunnel-id`]))}/management`,pathParams:{"tunnel-id":String(t[`tunnel-id`]??``)},bodyKind:`json`,body:t.body===void 0?p({resources:t.resources}):f(t.body)});return}let c=t.body===void 0?void 0:f(t.body),l=await e(t),u=t.local?r:await o();if(t.accountId=u,t.body!==void 0){let e=c,n=await s(`Creating`,async()=>l.send(h,{body:e,account_id:u,tunnel_id:t[`tunnel-id`]}));i(n,{successLabel:`Created`});return}if(t.resources===void 0)throw Error(`--resources is required (or pass --body with this field set).`);let d=p({resources:t.resources}),m=await s(`Creating`,async()=>l.send(h,{body:d,account_id:u,tunnel_id:t[`tunnel-id`]}));i(m,{successLabel:`Created`})})},ie={command:`management-token`,describe:`Operations for management-token`,builder:e=>e.command(re).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ae(e){return e.usage(`$0 tunnels token get <tunnel-id>
|
|
26
28
|
|
|
27
|
-
Retrieves the token used to run cloudflared and associate it with a specific Cloudflare Tunnel. Treat the token as a secret.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
29
|
+
Retrieves the token used to run cloudflared and associate it with a specific Cloudflare Tunnel. Treat the token as a secret.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const oe={command:`get <tunnel-id>`,describe:`Get a Cloudflare Tunnel token`,builder:ae,handler:async t=>u({command:`tunnels token get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await a();n({command:`cf tunnels token get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/cfd_tunnel/${t[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(t[`tunnel-id`]))}/token`,pathParams:{"tunnel-id":String(t[`tunnel-id`]??``)},bodyKind:`none`});return}let c=await e(t),l=t.local?r:await o();t.accountId=l;let u=await s(`Loading`,async()=>c.send(g,{account_id:l,tunnel_id:t[`tunnel-id`]}));i(u,{successLabel:`Loaded`})})},$={command:`token`,describe:`Operations for token`,builder:e=>e.command(oe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var se=_(`diag`,`Create a diagnostic report from a local cloudflared instance.`,()=>import(`./command-D6wod_eb.mjs`),{command:`tunnels diag`,recordArgs:!1}),ce=_(`login`,`Authorize cloudflared and download an origin certificate for locally managed tunnels.`,()=>import(`./command-Ux0DLWdC.mjs`),{command:`tunnels login`,recordArgs:!1}),le=_(`quick-start <url>`,`Expose a local URL with a temporary trycloudflare.com tunnel. The tunnel remains active until cf exits.`,()=>import(`./command-CQU92hcH.mjs`),{command:`tunnels quick-start`,recordArgs:!1}),ue=_(`ready`,`Check the /ready endpoint exposed by a local cloudflared instance.`,()=>import(`./command-BdnTjDyg.mjs`),{command:`tunnels ready`,recordArgs:!1}),de=_(`run [tunnel]`,`Run a named Cloudflare Tunnel using the cf-managed cloudflared binary.`,()=>import(`./command-DSPEpZHp.mjs`),{command:`tunnels run`,recordArgs:!1}),fe=_(`tail [tunnel-id]`,`Stream logs from a remote cloudflared instance.`,()=>import(`./command-CoR-c8lP.mjs`),{command:`tunnels tail`,recordArgs:!1});const pe={command:`tunnels`,describe:`tunnels`,builder:e=>e.command(V).command(U).command(v(se,`preview`)).command(K).command(Y).command(Q).command(v(ce,`preview`)).command(v(le,`preview`)).command(v(ue,`preview`)).command(v(de,`preview`)).command(v(fe,`preview`)).command(D).command(P).command(R).command(ie).command($).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{pe as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-CRq9OQKr.mjs";import{r as n,t as r}from"./body-parser-HN91kAf0.mjs";import{a as i,t as a}from"./context-DsVjrTbe.mjs";import{t as o}from"./dry-run-mrA7FFLR.mjs";import{n as s}from"./input-validation-D7z60HJH.mjs";import{t as c}from"./local-B3zt9PXR.mjs";import{t as l}from"./run-DAK_kbUa.mjs";import{t as u}from"./output-PRKYaJuo.mjs";import{t as d}from"./progress-DItBn6ZV.mjs";import{a as f,i as p,n as m}from"./prompt-BGz3DNLz.mjs";import"./telemetry-B3S5OfOn.mjs";var h={method:`POST`,path:t=>e`/accounts/${t.account_id}/challenges/widgets`,query:[`page`,`per_page`,`order`,`direction`,`filter`],body:`json`};function g(e){return e.usage(`$0 turnstile widgets create
|
|
3
3
|
|
|
4
4
|
Creates a Turnstile widget for an account.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of items per page.`}).option(`order`,{type:`string`,description:`Field to order widgets by.`,choices:[`id`,`sitekey`,`name`,`created_on`,`modified_on`]}).option(`direction`,{type:`string`,description:`Direction to order widgets.`,choices:[`asc`,`desc`]}).option(`filter`,{type:`string`,description:"Filter widgets by field. The `name` field uses case-insensitive\nsubstring matching; `sitekey` uses exact matching.\nFormat: `field:value`\n\nSupported fields:\n- `name` - Filter by widget name (e.g., `filter=name:login-form`)\n- `sitekey` - Filter by sitekey (e.g., `filter=sitekey:0x4AAA`)\n\nReturns 400 Bad Request if the field is unsupported or format is invalid.\nAn empty filter value returns all results."}).option(`bot-fight-mode`,{type:`boolean`,description:`If bot_fight_mode is set to \`true\`, Cloudflare issues computationally
|
|
5
5
|
expensive challenges in response to malicious bots (ENT only).
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
export{n as getUpdateNotice,r as maybeStartBackgroundUpdateCheck}from"./update-check-
|
|
2
|
+
export{n as getUpdateNotice,r as maybeStartBackgroundUpdateCheck}from"./update-check-CvzNuZHG.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{r as e,t}from"./rolldown-runtime-BNtqjh-B.mjs";import{a as n}from"./cf-
|
|
2
|
+
import{r as e,t}from"./rolldown-runtime-BNtqjh-B.mjs";import{a as n}from"./cf-MAiSK--E.mjs";import{r,t as i}from"./gt-BV-jij5q.mjs";import{n as a}from"./version-5uL0ecbB.mjs";import{closeSync as o,mkdirSync as s,openSync as c,readFileSync as l,renameSync as u,statSync as d,unlinkSync as f,writeFileSync as p}from"node:fs";import{dirname as m,join as h}from"node:path";import{fileURLToPath as g}from"node:url";import{spawn as _}from"node:child_process";var v=/* @__PURE__ */ t(((e,t)=>{let n=r();t.exports=(e,t)=>new n(e,t).major})),y=/* @__PURE__ */ t(((e,t)=>{let n=r();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),b=/* @__PURE__ */ t(((e,t)=>{let n=y();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),x=/* @__PURE__ */ t(((e,t)=>{let n=y();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),S=/* @__PURE__ */ e(i(),1),C=/* @__PURE__ */ e(v(),1),w=/* @__PURE__ */ e(b(),1),T=/* @__PURE__ */ e(x(),1);const E=864e5;function D(e){return(0,w.default)(e)?.includes(`beta`)?`beta`:`latest`}function O(e=a){return h(n(),`cache`,`update-check-${D(e)}.json`)}function k(e=O()){try{let t=JSON.parse(l(e,`utf8`));if(typeof t!=`object`||!t||Array.isArray(t))return{};let n=t;return{lastAttemptedAt:typeof n.lastAttemptedAt==`number`&&Number.isFinite(n.lastAttemptedAt)?n.lastAttemptedAt:void 0,lastSuccessfulAt:typeof n.lastSuccessfulAt==`number`&&Number.isFinite(n.lastSuccessfulAt)?n.lastSuccessfulAt:void 0,latestVersion:typeof n.latestVersion==`string`&&(0,T.default)(n.latestVersion)?n.latestVersion:void 0}}catch{return{}}}function A(e,t=O()){let n=`${t}.${process.pid}.tmp`;try{return s(m(t),{recursive:!0}),p(n,`${JSON.stringify(e)}\n`,{encoding:`utf8`,mode:384}),u(n,t),!0}catch{try{f(n)}catch{}return!1}}function j(e,t,n){let r=`${e}.lock`,i;try{s(m(e),{recursive:!0});try{i=c(r,`wx`,384)}catch{try{if(t-d(r).mtimeMs<=5e3)return;f(r),i=c(r,`wx`,384)}catch{return}}return n()}catch{return}finally{if(i!==void 0)try{o(i),f(r)}catch{}}}function M(e,t){if(!(0,T.default)(e)||!t.latestVersion||!(0,S.default)(t.latestVersion,e))return;let n=(0,C.default)(t.latestVersion)>(0,C.default)(e);return{latestVersion:t.latestVersion,isMajor:n}}function N(e,t=O(e)){return M(e,k(t))}function P(){let e=import.meta.url.endsWith(`.ts`),t=new URL(e?`../update-check-worker.ts`:`./update-check-worker.mjs`,import.meta.url),n=e?[...process.execArgv,g(t)]:[g(t)];_(process.execPath,n,{detached:!0,stdio:`ignore`,windowsHide:!0}).unref()}function F(e={}){let t=e.cachePath??O(e.currentVersion??a),n=e.now??Date.now();if(j(t,n,()=>{let e=k(t);return e.lastAttemptedAt!==void 0&&n-e.lastAttemptedAt<864e5?!1:A({...e,lastAttemptedAt:n},t)}))try{(e.spawnWorker??P)()}catch{}}async function I(e,t,n,r){if(!(0,T.default)(t))return{status:`failed`};let i=await r(`https://registry.npmjs.org/${encodeURIComponent(e)}/${n}`,{headers:{accept:`application/json`,"user-agent":`cf-cli/${a}`},signal:AbortSignal.timeout(3e3)});if(!i.ok)return{status:`failed`};let o=await i.json();if(typeof o!=`object`||!o||Array.isArray(o))return{status:`failed`};let s=o;return s.name!==e||typeof s.version!=`string`||!(0,T.default)(s.version)?{status:`failed`}:(0,S.default)(s.version,t)?{status:`update-available`,latest:s.version}:{status:`up-to-date`}}async function L(e={}){let t=e.currentVersion??a,n=e.cachePath??O(t),r=e.now??Date.now();try{let i=await(e.check??((t,n,r)=>I(t,n,r,e.fetch??globalThis.fetch)))(`cf`,t,`latest`);if(i.status===`failed`)return;let a=i.status===`update-available`?i.latest:t;if(!(0,T.default)(a))return;A({...k(n),latestVersion:a,lastSuccessfulAt:r},n)}catch{}}export{L as i,N as n,F as r,E as t};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{i as e}from"./update-check-
|
|
2
|
+
import{i as e}from"./update-check-CvzNuZHG.mjs";await e();export{};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-CRq9OQKr.mjs";import{i as n}from"./context-DsVjrTbe.mjs";import{t as r}from"./dry-run-mrA7FFLR.mjs";import{t as i}from"./output-PRKYaJuo.mjs";import{t as a}from"./progress-DItBn6ZV.mjs";import{t as o}from"./run-DAK_kbUa.mjs";import{i as s,n as c}from"./prompt-BGz3DNLz.mjs";import"./telemetry-B3S5OfOn.mjs";import{r as l,t as u}from"./body-parser-HN91kAf0.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";var f={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/url_normalization`,response:!1};function p(e){return e.usage(`$0 url-normalization delete
|
|
3
3
|
|
|
4
4
|
Deletes the URL Normalization settings.`).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 m={command:`delete`,describe:`Delete URL Normalization settings`,builder:p,handler:async e=>o({command:`url-normalization delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){r({command:`cf url-normalization delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/url_normalization`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,!await c({force:!!e.force}))return;let l=await a(`Deleting`,async()=>o.send(f,{zone_id:s}));i(l,{successLabel:`Deleted`})})};var h={method:`GET`,path:t=>e`/zones/${t.zone_id}/url_normalization`};function g(e){return e.usage(`$0 url-normalization get
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{n as e}from"./auth-
|
|
2
|
+
import{n as e}from"./auth-CRq9OQKr.mjs";import{t}from"./path-DRw6Y-nd.mjs";import{t as n}from"./dry-run-mrA7FFLR.mjs";import{t as r}from"./local-B3zt9PXR.mjs";import{a as i,t as a}from"./context-DsVjrTbe.mjs";import{t as o}from"./progress-DItBn6ZV.mjs";import{n as s,t as c}from"./raw-fetch-CmI3Ol3q.mjs";import"./telemetry-B3S5OfOn.mjs";import{t as l}from"./run-DAK_kbUa.mjs";import"./api-Dnt6lRJG.mjs";import{i as u,r as d,t as f}from"./body-parser-HN91kAf0.mjs";import{t as p}from"./output-PRKYaJuo.mjs";import{n as m}from"./input-validation-D7z60HJH.mjs";import{a as h}from"./prompt-BGz3DNLz.mjs";function g(e){return e.usage("$0 url-scanner responses get <response-id>\n\nReturns the raw response of the network request. Find the `response_id` in the `data.requests.response.hash`.").positional(`response-id`,{type:`string`,description:`Response hash.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _={command:`get <response-id>`,describe:`Get raw response`,builder:g,handler:async t=>l({command:`url-scanner responses get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await i();n({command:`cf url-scanner responses get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/urlscanner/v2/responses/${t[`response-id`]==null?`<response-id>`:encodeURIComponent(String(t[`response-id`]))}`,pathParams:{"response-id":String(t[`response-id`]??``)},bodyKind:`none`});return}await e(t);let l=t.local?r:await a();t.accountId=l;let u=await o(`Loading`,async()=>c(`/accounts/${l}/urlscanner/v2/responses/${encodeURIComponent(String(t[`response-id`]))}`,{method:`GET`,local:t.local===!0,persistTo:t.persistTo}));s(u.toString(`utf-8`))})},v={command:`responses`,describe:`Raw HTTP response data captured during URL scans`,builder:e=>e.command(_).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var y={method:`POST`,path:e=>t`/accounts/${e.account_id}/urlscanner/v2/bulk`,body:`json`,errors:{400:`BadRequestError`,429:`TooManyRequestsError`}};function b(e){return e.usage(`$0 url-scanner scans bulk-create
|
|
3
3
|
|
|
4
4
|
Submit URLs to scan. Check limits at https://developers.cloudflare.com/security-center/investigate/scan-limits/ and take into account scans submitted in bulk have lower priority and may take longer to finish.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`List of urls to scan (up to a 100).`})}const x={command:`bulk-create`,describe:`Bulk create URL Scans`,builder:b,handler:async t=>l({command:`url-scanner scans bulk-create`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await i();n({command:`cf url-scanner scans bulk-create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/urlscanner/v2/bulk`,pathParams:{},bodyKind:`json`,body:t.body===void 0?void 0:d(t.body)});return}if(t.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`);let s=t.body===void 0?void 0:d(t.body),c=await e(t),l=t.local?r:await a();if(t.accountId=l,t.body!==void 0){let e=s,t=await o(`Creating`,async()=>c.send(y,{body:e,account_id:l}));p(t,{successLabel:`Created`})}})};var S={method:`POST`,path:e=>t`/accounts/${e.account_id}/urlscanner/v2/scan`,body:`json`,errors:{400:`BadRequestError`,409:`ConflictError`,429:`TooManyRequestsError`}};function C(e){return e.usage(`$0 url-scanner scans create
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{n as e,o as t}from"./auth-
|
|
2
|
+
import{n as e,o as t}from"./auth-CRq9OQKr.mjs";import{t as n}from"./path-DRw6Y-nd.mjs";import{t as r}from"./dry-run-mrA7FFLR.mjs";import{t as i}from"./output-PRKYaJuo.mjs";import{t as a}from"./progress-DItBn6ZV.mjs";import"./telemetry-B3S5OfOn.mjs";import{i as o,o as s,r as c,t as l}from"./body-parser-HN91kAf0.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{t as d}from"./run-DAK_kbUa.mjs";import{a as f,i as p,n as m}from"./prompt-BGz3DNLz.mjs";import"./api-Dnt6lRJG.mjs";import{t as ee}from"./get-CRKvqCu6.mjs";import{t as te}from"./verify-BCuWaO-L.mjs";var h={method:`GET`,path:()=>`/user/audit_logs`,query:[`id`,`export`,`action.type`,`actor.ip`,`actor.email`,`since`,`before`,`zone.name`,`direction`,`per_page`,`page`,`hide_user_logs`]};function ne(e){return e.usage(`$0 user audit-logs list
|
|
3
3
|
|
|
4
4
|
Gets a list of audit logs for a user account. Can be filtered by who made the change, on which zone, and the timeframe of the change.`).option(`id`,{type:`string`,description:`Finds a specific log by its ID.`}).option(`export`,{type:`boolean`,description:`Indicates that this request is an export of logs in CSV format.`}).option(`action-type`,{type:`string`,description:`Filters by the action type.`}).option(`actor-ip`,{type:`string`,description:`Filters by the IP address of the request that made the change by specific IP address or valid CIDR Range.`}).option(`actor-email`,{type:`string`,description:`Filters by the email address of the actor that made the change.`}).option(`since`,{type:`string`,description:`Since`}).option(`before`,{type:`string`,description:`Before`}).option(`zone-name`,{type:`string`,description:`Filters by the name of the zone associated to the change.`}).option(`direction`,{type:`string`,description:`Changes the direction of the chronological sorting.`,choices:[`desc`,`asc`]}).option(`per-page`,{type:`number`,description:`Sets the number of results to return per page.`}).option(`page`,{type:`number`,description:`Defines which page of results to return.`}).option(`hide-user-logs`,{type:`boolean`,description:`Indicates whether or not to hide user level audit logs.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const re={command:`list`,describe:`Get user audit logs`,builder:ne,handler:async t=>d({command:`user audit-logs list`,classification:{safeFlags:[`export`,`direction`,`hide-user-logs`,`dry-run`]}},t,async()=>{let n={id:t.id,export:t.export,"action.type":t[`action-type`],"actor.ip":t[`actor-ip`],"actor.email":t[`actor-email`],since:t.since,before:t.before,"zone.name":t[`zone-name`],direction:t.direction,per_page:t[`per-page`],page:t.page,hide_user_logs:t[`hide-user-logs`]};if(t.dryRun){r({command:`cf user audit-logs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/audit_logs`,pathParams:{},query:n,bodyKind:`none`});return}let o=await e(t),s=await a(`Loading`,async()=>o.send(h,n));i(s,{successLabel:`Loaded`})})},ie={command:`audit-logs`,describe:`Operations for audit-logs`,builder:e=>e.command(re).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ae={method:`GET`,path:()=>`/user/billing/history`,query:[`page`,`per_page`,`order`,`occurred_at`,`type`,`action`]};function oe(e){return e.usage(`$0 user billing history list
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-
|
|
2
|
+
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-CRq9OQKr.mjs";import{i as r,r as i,t as a}from"./body-parser-HN91kAf0.mjs";import{a as o,t as s}from"./context-DsVjrTbe.mjs";import{t as c}from"./dry-run-mrA7FFLR.mjs";import{n as l,t as u}from"./input-validation-D7z60HJH.mjs";import{t as d}from"./local-B3zt9PXR.mjs";import{t as f}from"./run-DAK_kbUa.mjs";import{t as p}from"./output-PRKYaJuo.mjs";import{t as m}from"./progress-DItBn6ZV.mjs";import{a as h,i as g,n as _}from"./prompt-BGz3DNLz.mjs";import"./telemetry-B3S5OfOn.mjs";var v={method:`POST`,path:t=>e`/accounts/${t.account_id}/vectorize/v2/indexes`,body:`json`};function y(e){return e.usage(`$0 vectorize create
|
|
3
3
|
|
|
4
4
|
Creates and returns a new Vectorize Index.`).option(`index-config-dimensions`,{type:`number`,description:`Specifies the number of dimensions for the index`}).option(`index-config-metric`,{type:`string`,description:`Specifies the type of metric to use calculating distance.`,choices:[`cosine`,`euclidean`,`dot-product`]}).coerce(`index-config-metric`,e=>l(e,`index-config-metric`,`text`)).option(`index-config-preset`,{type:`string`,description:`Specifies the preset to use for the index.`,choices:[`@cf/baai/bge-small-en-v1.5`,`@cf/baai/bge-base-en-v1.5`,`@cf/baai/bge-large-en-v1.5`,`openai/text-embedding-ada-002`,`cohere/embed-multilingual-v2.0`]}).coerce(`index-config-preset`,e=>l(e,`index-config-preset`,`text`)).option(`description`,{type:`string`,description:`Specifies the description of the index.`}).option(`name`,{type:`string`,description:`The name 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)`}).conflicts(`index-config-dimensions`,[`index-config-preset`]).implies(`index-config-dimensions`,[`index-config-metric`]).conflicts(`index-config-metric`,[`index-config-preset`]).implies(`index-config-metric`,[`index-config-dimensions`]).conflicts(`index-config-preset`,[`index-config-dimensions`,`index-config-metric`])}const b={command:`create`,describe:`Create Vectorize Index`,builder:y,handler:async e=>f({command:`vectorize create`,classification:{safeFlags:[`index-config-metric`,`index-config-preset`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();c({command:`cf vectorize create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vectorize/v2/indexes`,pathParams:{},bodyKind:`json`,body:e.body===void 0?a({config:{dimensions:e[`index-config-dimensions`],metric:e[`index-config-metric`],preset:e[`index-config-preset`]},description:l(e.description,`description`,`text`),name:l(e.name,`name`,`text`)}):i(e.body)});return}let t=e.body===void 0?void 0:i(e.body),r=await n(e),u=e.local?d:await s();if(e.accountId=u,e.body!==void 0){let e=t,n=await m(`Creating`,async()=>r.send(v,{body:e,account_id:u}));p(n,{successLabel:`Created`});return}e.name===void 0&&(e.name=await h(`name`,`The name field`));let f=a({config:{dimensions:e[`index-config-dimensions`],metric:e[`index-config-metric`],preset:e[`index-config-preset`]},description:l(e.description,`description`,`text`),name:l(e.name,`name`,`text`)}),g=await m(`Creating`,async()=>r.send(v,{body:f,account_id:u}));p(g,{successLabel:`Created`})})};var x={method:`POST`,path:t=>e`/accounts/${t.account_id}/vectorize/v2/indexes/${t.index_name}/delete_by_ids`,body:`json`};function S(e){return e.usage(`$0 vectorize delete-by-ids <index-name>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-CRq9OQKr.mjs";import{t as n}from"./dry-run-mrA7FFLR.mjs";import{a as r,i,t as a}from"./context-DsVjrTbe.mjs";import{t as o}from"./local-B3zt9PXR.mjs";import{t as s}from"./output-PRKYaJuo.mjs";import{t as c}from"./progress-DItBn6ZV.mjs";import{t as l}from"./run-DAK_kbUa.mjs";import"./telemetry-B3S5OfOn.mjs";import{o as u,r as d,t as f}from"./body-parser-HN91kAf0.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m,i as h,n as g}from"./prompt-BGz3DNLz.mjs";var _={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/waiting_rooms`,query:[`page`,`per_page`]};function ee(e){return e.usage(`$0 waiting-rooms account-waiting-rooms list
|
|
3
3
|
|
|
4
4
|
Lists waiting rooms for account or zone.
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-CRq9OQKr.mjs";import{i as n}from"./context-DsVjrTbe.mjs";import{t as r}from"./dry-run-mrA7FFLR.mjs";import{t as i}from"./output-PRKYaJuo.mjs";import{t as a}from"./progress-DItBn6ZV.mjs";import{t as o}from"./run-DAK_kbUa.mjs";import"./telemetry-B3S5OfOn.mjs";import{i as s,r as c,t as l}from"./body-parser-HN91kAf0.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{a as d,i as f,n as p}from"./prompt-BGz3DNLz.mjs";var m={method:`GET`,path:t=>e`/zones/${t.zone_id}/api_gateway/discovery`};function h(e){return e.usage(`$0 web-assets discovery get
|
|
3
3
|
|
|
4
4
|
Returns the latest API operations discovered from zone traffic, rendered as OpenAPI schemas.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ee={command:`get`,describe:`Export discovered API operations as OpenAPI schemas`,builder:h,handler:async e=>o({command:`web-assets discovery get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf web-assets discovery get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/discovery`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=s;let c=await a(`Loading`,async()=>o.send(m,{zone_id:s}));i(c,{successLabel:`Loaded`})})};var g={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/api_gateway/discovery/operations`,body:`json`};function te(e){return e.usage(`$0 web-assets discovery operations bulk-edit
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-CRq9OQKr.mjs";import{i as n}from"./context-DsVjrTbe.mjs";import{o as r,r as i,t as a}from"./body-parser-HN91kAf0.mjs";import{t as o}from"./dry-run-mrA7FFLR.mjs";import{n as s}from"./input-validation-D7z60HJH.mjs";import{t as c}from"./run-DAK_kbUa.mjs";import{t as l}from"./output-PRKYaJuo.mjs";import{t as u}from"./progress-DItBn6ZV.mjs";import{a as d,i as f,n as p}from"./prompt-BGz3DNLz.mjs";import"./telemetry-B3S5OfOn.mjs";var m={method:`POST`,path:t=>e`/zones/${t.zone_id}/web3/hostnames`,body:`json`};function h(e){return e.usage(`$0 web3 hostnames create
|
|
3
3
|
|
|
4
4
|
Create Web3 Hostname`).option(`description`,{type:`string`,description:`Specify an optional description of the hostname.`}).option(`dnslink`,{type:`string`,description:`Specify the DNSLink value used if the target is ipfs.`}).option(`name`,{type:`string`,description:`Specify the hostname that points to the target gateway via CNAME.`}).option(`target`,{type:`string`,description:`Specify the target gateway of the hostname.`,choices:[`ethereum`,`ipfs`,`ipfs_universal_path`]}).coerce(`target`,e=>s(e,`target`,`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 g={command:`create`,describe:`Create Web3 Hostname`,builder:h,handler:async e=>c({command:`web3 hostnames create`,classification:{safeFlags:[`target`,`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf web3 hostnames create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?a({description:s(e.description,`description`,`text`),dnslink:s(e.dnslink,`dnslink`,`text`),name:s(e.name,`name`,`text`),target:e.target}):i(e.body)});return}let r=e.body===void 0?void 0:i(e.body),c=await t(e),p=await n({zone:e.zone},c,{quiet:e.quiet});if(e.zoneId=p,e.body!==void 0){let e=r,t=await u(`Creating`,async()=>c.send(m,{body:e,zone_id:p}));l(t,{successLabel:`Created`});return}e.name===void 0&&(e.name=await d(`name`,`Specify the hostname that points to the target gateway via CNAME.`)),e.target===void 0&&(e.target=await f(`target`,`Specify the target gateway of the hostname.`,[`ethereum`,`ipfs`,`ipfs_universal_path`]));let h=a({description:s(e.description,`description`,`text`),dnslink:s(e.dnslink,`dnslink`,`text`),name:s(e.name,`name`,`text`),target:e.target}),g=await u(`Creating`,async()=>c.send(m,{body:h,zone_id:p}));l(g,{successLabel:`Created`})})};var _={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/web3/hostnames/${t.identifier}`,body:`json`};function v(e){return e.usage(`$0 web3 hostnames delete <identifier>
|
|
5
5
|
|