cf 1.0.0-beta.29 → 1.0.0-beta.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_meta/commands.json +584 -96
- package/dist/_meta/hand-written-commands.json +7 -1
- package/dist/_meta/schemas.json +182 -48
- package/dist/{abuse-reports-DqXYX_6F.mjs → abuse-reports-Dzop8iDe.mjs} +1 -1
- package/dist/{access-Cte4yyIz.mjs → access-2NeD3Gu8.mjs} +1 -1
- package/dist/{accounts-G-x-_cEx.mjs → accounts-CeJbhhX4.mjs} +1 -1
- package/dist/{acm-Bg3HqMGG.mjs → acm-Dub0B14J.mjs} +1 -1
- package/dist/{addressing-BwEofGEm.mjs → addressing-BzWJU8m6.mjs} +1 -1
- package/dist/{agent-memory-DhwZ2KRw.mjs → agent-memory-2l9zyQFA.mjs} +1 -1
- package/dist/{ai-audit-CMEBz6ZP.mjs → ai-audit-rgNePq5W.mjs} +1 -1
- package/dist/{ai-gateway-D2s0isU-.mjs → ai-gateway-e9b8CcL6.mjs} +2 -2
- package/dist/{ai-DWWRIQIt.mjs → ai-laLv3daG.mjs} +1 -1
- package/dist/{ai-search-a0uqr9yJ.mjs → ai-search-DZ0AqoPe.mjs} +1 -1
- package/dist/{ai-security-H_RqjRoL.mjs → ai-security-CQuBTtmw.mjs} +1 -1
- package/dist/{alerting-Bgp9rE4I.mjs → alerting-_4ra-f_v.mjs} +1 -1
- package/dist/{analytics-CFYM82FD.mjs → analytics-DLNn4bJ4.mjs} +1 -1
- package/dist/{analytics-engine-BLiEaLxb.mjs → analytics-engine-CY45yWuL.mjs} +1 -1
- package/dist/{api-security-B0YtHglt.mjs → api-security-BSvJAjJV.mjs} +1 -1
- package/dist/{argo-BPwbzHY7.mjs → argo-xzl0p--1.mjs} +1 -1
- package/dist/{artifacts-B6UwC2PH.mjs → artifacts-DAS14gcM.mjs} +1 -1
- package/dist/{audit-logs-kG97iEnI.mjs → audit-logs-3nYyCGQA.mjs} +1 -1
- package/dist/auth-B0mFB6nU.mjs +3 -0
- package/dist/auth-CXR2vsII.mjs +2 -0
- package/dist/{auth-DA1PHaHi.mjs → auth-cj71dGxS.mjs} +1 -1
- package/dist/{auth-token-CE3Wa5-b.mjs → auth-token-D9MnaZ-L.mjs} +1 -1
- package/dist/{autoconfig-B4tFR6ua.mjs → autoconfig-DoLQ5ct8.mjs} +1 -1
- package/dist/{basin-catalog-DzVEPupy.mjs → basin-catalog-BbCsAKyZ.mjs} +1 -1
- package/dist/{billing-TERxOuLR.mjs → billing-BsiLsjWJ.mjs} +1 -1
- package/dist/{blocks-C3Im7AT0.mjs → blocks-DK5qAzLe.mjs} +1 -1
- package/dist/{body-unions-D9OSaf4M.mjs → body-unions-QFGGUlIr.mjs} +1 -1
- package/dist/{bot-management-SZw9jTOC.mjs → bot-management-DkErOsIO.mjs} +1 -1
- package/dist/{botnet-feed-DjdAeUtb.mjs → botnet-feed-CK4_PKrf.mjs} +1 -1
- package/dist/{brand-protection-BpA7Gmf1.mjs → brand-protection-Czt-2Ei5.mjs} +1 -1
- package/dist/{browser-run-BvjfMK3f.mjs → browser-run-DLMdEaSJ.mjs} +20 -20
- package/dist/build-ByjJ6yIB.mjs +2 -0
- package/dist/{build-yQOzZg6Z.mjs → build-DiEXOgHH.mjs} +1 -1
- package/dist/{builds-tMa3sbQU.mjs → builds-D--zUbR2.mjs} +1 -1
- package/dist/{cache-b_EPh6Is.mjs → cache-C8PQmkjD.mjs} +1 -1
- package/dist/{cf-DmvZ2L51.mjs → cf-QIG83e0V.mjs} +6 -6
- package/dist/{chunk-DSGVRFIS-Cj7pO-YQ.mjs → chunk-DSGVRFIS-CeCM3XGQ.mjs} +1 -1
- package/dist/{chunk-Q5KVZMHK-WOCEMyET.mjs → chunk-Q5KVZMHK-Bjvrcihk.mjs} +2 -2
- package/dist/{cli-Cc7ujzAy.mjs → cli-BBv5YMan.mjs} +1 -1
- package/dist/{client-side-security-DVkeCzcC.mjs → client-side-security-CFxePUL9.mjs} +1 -1
- package/dist/{cloud-connector-MVf4acRR.mjs → cloud-connector-BitfLQ3s.mjs} +1 -1
- package/dist/{cloudflared-BOkMl8Gm.mjs → cloudflared-DKh4JK7j.mjs} +1 -1
- package/dist/{cloudforce-one-KrCfQbRx.mjs → cloudforce-one-D2dzA7VD.mjs} +1 -1
- package/dist/{command-C4_lMRkw.mjs → command-B6ustzcW.mjs} +1 -1
- package/dist/{command-DqOU7Ql2.mjs → command-BC_nezLE.mjs} +1 -1
- package/dist/{command-CJ3ldWrA.mjs → command-BORazCDG.mjs} +1 -1
- package/dist/{command-DONwHpqZ.mjs → command-BwcAuPBr.mjs} +1 -1
- package/dist/{command-HW7k43qu.mjs → command-C2HYwGn_.mjs} +1 -1
- package/dist/{command-NqM0lo4a.mjs → command-CQhD3Q1t.mjs} +1 -1
- package/dist/{command-DHODgfFZ.mjs → command-D5FrTb2N.mjs} +1 -1
- package/dist/{command-D2XkyO1e.mjs → command-DoXuskBZ.mjs} +1 -1
- package/dist/{command-bwVDyMv4.mjs → command-Xqidhyr_.mjs} +1 -1
- package/dist/{command-BQbZw4Kx.mjs → command-aeKPI1bt.mjs} +1 -1
- package/dist/{command-yzqs4m83.mjs → command-b1KxgQwf.mjs} +1 -1
- package/dist/{command-DdYnSf-8.mjs → command-iwrZ2Sb1.mjs} +1 -1
- package/dist/{command-DIIaZx_f.mjs → command-n7QausoH.mjs} +1 -1
- package/dist/{command-BVct0Dvr.mjs → command-s15KaL-x.mjs} +1 -1
- package/dist/{command-CyOdBNur.mjs → command-ycXauMSv.mjs} +1 -1
- package/dist/{completions-0YKvIyBT.mjs → completions-BAUSggys.mjs} +1 -1
- package/dist/{connector-interrupts-CsunbRsr.mjs → connector-interrupts-D9tI84Fk.mjs} +1 -1
- package/dist/{connector-telemetry-events-DmQPD7xC.mjs → connector-telemetry-events-Bs9wLYwc.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-C62iHjC9.mjs → connector-telemetry-snapshots-CbwE4lrE.mjs} +1 -1
- package/dist/{connectors-Bg0MU6ZT.mjs → connectors-LyJN1htu.mjs} +1 -1
- package/dist/{containers-BiA_bpPR.mjs → containers-CKs7ZyZq.mjs} +2 -2
- package/dist/{content-scan-4SA2nacB.mjs → content-scan-BQRz7C7Z.mjs} +1 -1
- package/dist/{context-BGm5_wTT.mjs → context-DlFhI9cN.mjs} +1 -1
- package/dist/{cps-WDmD3V5I.mjs → cps-DYlXx89C.mjs} +1 -1
- package/dist/{csam-scanner-Rmy-hBEA.mjs → csam-scanner-BFANxGD-.mjs} +1 -1
- package/dist/{custom-csrs-D-lvkyRV.mjs → custom-csrs-BX4aCeof.mjs} +1 -1
- package/dist/{custom-hostnames-B5BQX5m6.mjs → custom-hostnames-BRYABKN3.mjs} +1 -1
- package/dist/{custom-nameservers-CZrRjcjx.mjs → custom-nameservers-CP1Vf1TD.mjs} +1 -1
- package/dist/{custom-pages-CWwjtfbj.mjs → custom-pages-BNL69ToU.mjs} +1 -1
- package/dist/{d1-N81q-FAr.mjs → d1-D4AZsUKn.mjs} +1 -1
- package/dist/{delegate-livNdiwK.mjs → delegate-BKlomUk6.mjs} +1 -1
- package/dist/delegate.mjs +1 -1
- package/dist/{deploy-Ok4ncy06.mjs → deploy-LbXgSfAd.mjs} +1 -1
- package/dist/{deploy-context-B_lLfxt7.mjs → deploy-context-BYw6gbl-.mjs} +9 -9
- package/dist/{deploy-input-JZlEJwKB.mjs → deploy-input-BFWpjDVr.mjs} +1 -1
- package/dist/{dev-DxbkJkzc.mjs → dev-DaFSd8WC.mjs} +1 -1
- package/dist/{diagnostics-DlJzpO8b.mjs → diagnostics-Dk3pyWx_.mjs} +1 -1
- package/dist/disk-cache-nbuwH1Dh.mjs +2 -0
- package/dist/{dist-BxhwE-W1.mjs → dist-DwxlJ9Ms.mjs} +4 -1
- package/dist/{dls-5OXuxLAB.mjs → dls-DU6EdhQK.mjs} +1 -1
- package/dist/{dns-Burep9O7.mjs → dns-3QDtCu6f.mjs} +1 -1
- package/dist/{dns-firewall-hUHaQ0DE.mjs → dns-firewall-Bbrr_0_a.mjs} +1 -1
- package/dist/{docs-BFVK88kB.mjs → docs-lLLKcLr_.mjs} +1 -1
- package/dist/{dry-run-qsnRlRk6.mjs → dry-run-mrA7FFLR.mjs} +1 -1
- package/dist/{durable-objects-D6R8S2Dk.mjs → durable-objects-DPf1DMeq.mjs} +1 -1
- package/dist/{email-auth--2KCzZNA.mjs → email-auth-DOlEoi8q.mjs} +1 -1
- package/dist/{email-routing-DzaExfVf.mjs → email-routing-D56SPGty.mjs} +1 -1
- package/dist/{email-security-DwQJszzy.mjs → email-security-CSawx0kD.mjs} +1 -1
- package/dist/{email-sending-mQd2qB-o.mjs → email-sending-CgFi0cLA.mjs} +1 -1
- package/dist/{errors-C_bGcR0X.mjs → errors-CilNjDVk.mjs} +1 -1
- package/dist/{field-extractors-MVOizTlB.mjs → field-extractors-FvIgySB4.mjs} +1 -1
- package/dist/{firewall-DtSIlkfL.mjs → firewall-BrTvywhW.mjs} +1 -1
- package/dist/{flagship-9E5gwNki.mjs → flagship-BGFN1Epo.mjs} +1 -1
- package/dist/{fraud-DjqhVJdf.mjs → fraud-DzK6OIO3.mjs} +1 -1
- package/dist/{google-tag-gateway-BM5GmCZa.mjs → google-tag-gateway-Cd9v8A7Z.mjs} +1 -1
- package/dist/{healthchecks-CEZ5f3XJ.mjs → healthchecks-Cm7EHaBA.mjs} +1 -1
- package/dist/{hyperdrive-Da8hCcUw.mjs → hyperdrive-CVaSt0qX.mjs} +1 -1
- package/dist/{iam-BK6N7NdQ.mjs → iam-CWN62Mi4.mjs} +1 -1
- package/dist/{images-3bCWE6Ml.mjs → images-Bo_pdvQC.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{init-BgCF9K8h.mjs → init-Dwmpc_S-.mjs} +1 -1
- package/dist/{intel-BQ58CJLt.mjs → intel-CQFYeGEA.mjs} +1 -1
- package/dist/{interactive-JBA3qOUa.mjs → interactive-DCbIwYxy.mjs} +1 -1
- package/dist/{internal-CWPz0sBF.mjs → internal-CYrPZ9IX.mjs} +1 -1
- package/dist/{ips-3WYegiVW.mjs → ips-jTSzoqMU.mjs} +1 -1
- package/dist/{k2-Bc_hjmiv.mjs → k2-utE2lCYd.mjs} +1 -1
- package/dist/{kv-DbShBhhg.mjs → kv-Cdh5hHte.mjs} +1 -1
- package/dist/{lazy-command-CbGyEqFK.mjs → lazy-command-QoHlmXHW.mjs} +1 -1
- package/dist/{leaked-credential-checks-DgPefxP9.mjs → leaked-credential-checks-CqApscD3.mjs} +1 -1
- package/dist/{live-BTtMv1a6.mjs → live-hZgMkXJf.mjs} +1 -1
- package/dist/{load-balancers-C2hg52WA.mjs → load-balancers-w_4Uz9Gi.mjs} +1 -1
- package/dist/login-BBSJytOt.mjs +2 -0
- package/dist/{login-DiR-buzS.mjs → login-CS3KxVbk.mjs} +2 -2
- package/dist/{logpush-CitvUX-J.mjs → logpush-C76I5dgN.mjs} +1 -1
- package/dist/{logs-CfWHu4Ir.mjs → logs-B5aCYVCv.mjs} +1 -1
- package/dist/{magic-network-monitoring-gU6yzzML.mjs → magic-network-monitoring-CGf7cVQ9.mjs} +1 -1
- package/dist/{magic-transit-B3JY9u5o.mjs → magic-transit-CN5noqOR.mjs} +1 -1
- package/dist/{managed-defense-C_EQ-NYp.mjs → managed-defense-DAGr0UGm.mjs} +1 -1
- package/dist/{managed-transforms-DIGl6JkM.mjs → managed-transforms-_SuwzZ-5.mjs} +1 -1
- package/dist/{mcp-DqhQJVaz.mjs → mcp-CzedsjOf.mjs} +1 -1
- package/dist/{mesh-DXVZBNDC.mjs → mesh-DXX1S3pX.mjs} +1 -1
- package/dist/{migrate-CmXyk9vX.mjs → migrate-CvRQ4x3_.mjs} +1 -1
- package/dist/{monetization-CWg-mySr.mjs → monetization-8nt9PYln.mjs} +1 -1
- package/dist/{network-jtgq5eb4.mjs → network-CaiRDY2e.mjs} +1 -1
- package/dist/{network-interconnects-DhfKL5tG.mjs → network-interconnects-Ad6JbAVd.mjs} +1 -1
- package/dist/{o11y-eYYs59X9.mjs → o11y-DD2Hfnzi.mjs} +1 -1
- package/dist/{oauth-BgDZMd72.mjs → oauth-BUcV_xbm.mjs} +1 -1
- package/dist/{oauth-V37G-PaV.mjs → oauth-CQRlNgt5.mjs} +1 -1
- package/dist/{observability-CB72eC4T.mjs → observability-BzKBUUSf.mjs} +1 -1
- package/dist/{ohttp-gateway-K9ToEft8.mjs → ohttp-gateway-Sej9-GCm.mjs} +1 -1
- package/dist/{organizations-BllV7l_c.mjs → organizations-DwYsCbYD.mjs} +1 -1
- package/dist/{output-hFMAotFl.mjs → output-PRKYaJuo.mjs} +1 -1
- package/dist/package-DXaRIx2f.mjs +2 -0
- package/dist/{page-rules-BVmi-ZFW.mjs → page-rules-CjufEmIt.mjs} +1 -1
- package/dist/{pages-5spcBpX1.mjs → pages-Dj0Cdf3G.mjs} +2 -2
- package/dist/{pay-per-crawl-BgsdGcBi.mjs → pay-per-crawl-DPVlluRA.mjs} +1 -1
- package/dist/{pay-per-use-CzmI1kEA.mjs → pay-per-use-DhuLjaoo.mjs} +1 -1
- package/dist/{pipelines-CbtmLRxt.mjs → pipelines-D2pM69oq.mjs} +12 -10
- package/dist/{precursor-Dk8YOKf_.mjs → precursor-DzuA1m8D.mjs} +1 -1
- package/dist/{previews-Bv1HMMtO.mjs → previews-CHHd5Rx7.mjs} +1 -1
- package/dist/{progress-DE_G09u2.mjs → progress-AML-AVs4.mjs} +1 -1
- package/dist/prompt-Bnon9lfK.mjs +4 -0
- package/dist/{queues-DGCYUr4g.mjs → queues-GDwznw0o.mjs} +1 -1
- package/dist/{r2-DtCk-Nfi.mjs → r2-B3Xkb0S4.mjs} +49 -49
- package/dist/{radar-1CwqOsMZ.mjs → radar-fBT7VIO2.mjs} +1 -1
- package/dist/{raw-fetch-DhlyWQtk.mjs → raw-fetch-0T1SwPa1.mjs} +1 -1
- package/dist/{ready-CcoEA7M7.mjs → ready-BkXNDNTd.mjs} +1 -1
- package/dist/{realtime-DFUxwIG5.mjs → realtime-B7mR3XtY.mjs} +1 -1
- package/dist/{registrar-Cl1snz8z.mjs → registrar-DOoxlZc7.mjs} +9 -9
- package/dist/{registrar-sandbox-Cne9BVCZ.mjs → registrar-sandbox-DC7xAqqc.mjs} +1 -1
- package/dist/{reporting-D9FC-Z-3.mjs → reporting-DlD7J6Pq.mjs} +1 -1
- package/dist/{request-headers-Bopp5lH_.mjs → request-headers-BEYXy4JN.mjs} +1 -1
- package/dist/{request-tracers-CSSB9_aW.mjs → request-tracers-DYCGkszp.mjs} +1 -1
- package/dist/{resource-sharing-D8yuzJm7.mjs → resource-sharing-D_bUv7E8.mjs} +1 -1
- package/dist/{rules-DzmOQ3MB.mjs → rules-C4cu3_jr.mjs} +1 -1
- package/dist/{rulesets-DsTGcgbc.mjs → rulesets-Bl4mLnXA.mjs} +1 -1
- package/dist/{rum-DrJLI93T.mjs → rum-DE_uJb09.mjs} +1 -1
- package/dist/run-Cg9utScS.mjs +2 -0
- package/dist/{run-CXWkMU3x.mjs → run-DAg7dfIW.mjs} +1 -1
- package/dist/sanitize-DHx5dAJu.mjs +2 -0
- package/dist/{schema-CfZOW8Zw.mjs → schema-BX822YfT.mjs} +1 -1
- package/dist/schema-cache-CTVUtkAl.mjs +3 -0
- package/dist/{schema-flags-DO3kLYBu.mjs → schema-flags-YgeJ6Bey.mjs} +1 -1
- package/dist/{scim-0OufLKru.mjs → scim-Dz4r0fnH.mjs} +1 -1
- package/dist/{secrets-store-BQeLzFxv.mjs → secrets-store-C2GwCUKs.mjs} +1 -1
- package/dist/{security-insights-D2pj8-O-.mjs → security-insights-DZCm5D3U.mjs} +1 -1
- package/dist/{security-txt-SKtgW4n-.mjs → security-txt-Dbi9KxNc.mjs} +1 -1
- package/dist/session-BEsQIuwP.mjs +2 -0
- package/dist/{shared-D_2KLpP3.mjs → shared-DqW2vICA.mjs} +1 -1
- package/dist/{signed-url-CcE2zQ4Y.mjs → signed-url-BhHSAUam.mjs} +1 -1
- package/dist/{smart-shield-Dod9Gs6T.mjs → smart-shield-C2uSFcGN.mjs} +1 -1
- package/dist/{snippets-DrrdpLnS.mjs → snippets-BoaGEAC6.mjs} +1 -1
- package/dist/{spawn-DNf-Ge8d.mjs → spawn-B4y5Urjv.mjs} +1 -1
- package/dist/{spectrum-CHBGZbZF.mjs → spectrum-Bb0KXA8R.mjs} +1 -1
- package/dist/{speed-vOlHyG3v.mjs → speed-zKYgLTHA.mjs} +1 -1
- package/dist/{sql-BCuLxGSf.mjs → sql-pjWozuvl.mjs} +1 -1
- package/dist/src-B8i6_XGg.mjs +133 -0
- package/dist/{ssl-BA_dcVwF.mjs → ssl-C5bg1X0i.mjs} +1 -1
- package/dist/{startup-profile-uh-F0HRS.mjs → startup-profile-CyIelqtC.mjs} +1 -1
- package/dist/startup-profile-Dif7XOsU.mjs +2 -0
- package/dist/{state-CTLznbVs.mjs → state-BI_wSuID.mjs} +1 -1
- package/dist/state-xUh3Z77T.mjs +2 -0
- package/dist/{static-assets-DGDoaJf1.mjs → static-assets-CTv7XwIQ.mjs} +3 -3
- package/dist/{stream-CzlqY8hq.mjs → stream-C_FiNrLV.mjs} +1 -1
- package/dist/string-width-D6-CGlwN.mjs +2 -0
- package/dist/{tags-BLeaslAb.mjs → tags-CXlivF3y.mjs} +1 -1
- package/dist/{telemetry-DF7A5Bpk.mjs → telemetry-CtQWhsmy.mjs} +1 -1
- package/dist/telemetry-DDs3zhdw.mjs +2 -0
- package/dist/{tenant-custom-nameservers-C5rh6jPf.mjs → tenant-custom-nameservers-DBg9Hzvn.mjs} +1 -1
- package/dist/{tenants-CRirmhxS.mjs → tenants-89Q0u5_Q.mjs} +1 -1
- package/dist/{tools-BRjRgZnj.mjs → tools-aVtEAIvu.mjs} +1 -1
- package/dist/{tunnels-nLfIWPYT.mjs → tunnels-CL2fIINH.mjs} +2 -2
- package/dist/{turnstile-CZjXtBCr.mjs → turnstile-D6GtQULo.mjs} +1 -1
- package/dist/ui-CY75N4Tm.mjs +2 -0
- package/dist/{update-check-CXMdVBhW.mjs → update-check-0kpbTLvy.mjs} +1 -1
- package/dist/{update-check-D_Oky9-u.mjs → update-check-D3axIoUi.mjs} +1 -1
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-normalization-DTKgJHE8.mjs → url-normalization--iS57OT_.mjs} +1 -1
- package/dist/{url-scanner-9XW3zLaU.mjs → url-scanner-C6AtXGc2.mjs} +1 -1
- package/dist/{user-Bk1BIqZ5.mjs → user-C5vRYIta.mjs} +1 -1
- package/dist/{vectorize-CgOfmWYq.mjs → vectorize-C1Kxb1Ou.mjs} +1 -1
- package/dist/version-pcpa_kv3.mjs +2 -0
- package/dist/{waiting-rooms-C3nTKfK9.mjs → waiting-rooms-BCVZY9vI.mjs} +1 -1
- package/dist/{web-assets-CWU3jrit.mjs → web-assets-D2gXqKZS.mjs} +1 -1
- package/dist/{web3-CRpQ5sl4.mjs → web3-CJDZQCOk.mjs} +1 -1
- package/dist/whoami-2eFTt0-Y.mjs +2 -0
- package/dist/whoami-BEad9QUB.mjs +8 -0
- package/dist/{workers-BZMvamn0.mjs → workers-DzXSJMv9.mjs} +2 -2
- package/dist/{workers-for-platforms-C7F2ev-5.mjs → workers-for-platforms-CvazgrqD.mjs} +2 -2
- package/dist/{workers-vpc-ztEKvWmq.mjs → workers-vpc-DP4QC6UC.mjs} +1 -1
- package/dist/{workflows-Dd88_Nqc.mjs → workflows-BSOj56io.mjs} +1 -1
- package/dist/{wrangler-migration-BzMTJPdI.mjs → wrangler-migration-DZ9Oelof.mjs} +6 -3
- package/dist/{zaraz-BFK0p28R.mjs → zaraz-BnQvKXFy.mjs} +1 -1
- package/dist/{zero-trust-Cdjfp0Ie.mjs → zero-trust-DsslXRub.mjs} +1 -1
- package/dist/{zones-DDn5jk6I.mjs → zones-DQ3SjGsZ.mjs} +1 -1
- package/package.json +14 -13
- package/dist/auth-Czr8ChBB.mjs +0 -2
- package/dist/auth-Dwfa4S3h.mjs +0 -7
- package/dist/build-CCwo_ydV.mjs +0 -2
- package/dist/login-CK3nn9a5.mjs +0 -2
- package/dist/package-oNVeacC9.mjs +0 -2
- package/dist/prompt-D274Im1O.mjs +0 -4
- package/dist/run-C5yPsiO2.mjs +0 -2
- package/dist/schema-cache-CtqAs0PP.mjs +0 -3
- package/dist/session-COdP8BXD.mjs +0 -2
- package/dist/src-ByCoEqOw.mjs +0 -133
- package/dist/startup-profile-CyQk_f_L.mjs +0 -2
- package/dist/state-B6r-b_-d.mjs +0 -2
- package/dist/telemetry-COlodX5Z.mjs +0 -2
- package/dist/ui-dWsVmFCG.mjs +0 -2
- package/dist/version-CcuBNjqg.mjs +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{n as t}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{n as t}from"./context-DlFhI9cN.mjs";import{r as n}from"./dotenv-DKRemNCH.mjs";import{n as r,t as i}from"./cloudflared-DKh4JK7j.mjs";function a(e){return e.option(`hostname`,{type:`string`,demandOption:!0,description:`Hostname of the Access application`}).option(`destination`,{type:`string`,description:`Destination address of the target server`}).option(`url`,{type:`string`,description:`Local host and port to forward to the Cloudflare edge`}).option(`header`,{type:`string`,array:!0,description:`Additional request header; repeat for multiple headers`}).option(`service-token-id`,{type:`string`,description:`Access service token ID`}).option(`service-token-secret`,{type:`string`,description:`Access service token secret`}).option(`log-level`,{alias:`loglevel`,type:`string`,choices:i,description:`cloudflared log level`})}const o={command:`tcp`,aliases:[`ssh`,`rdp`,`smb`],describe:`Proxy a TCP connection through Access. The command is also available as ssh, rdp, and smb.`,builder:a,handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access tcp.`);let a=[`access`];await n({mode:i.mode,local:i.local},()=>t())===`fedramp_high`&&a.push(`--fedramp`),a.push(`tcp`),a.push(`--hostname`,i.hostname),i.destination&&a.push(`--destination`,i.destination),i.url&&a.push(`--url`,i.url);for(let e of i.header??[])a.push(`--header`,e);i[`service-token-id`]&&a.push(`--service-token-id`,i[`service-token-id`]),i[`log-level`]&&a.push(`--loglevel`,i[`log-level`]);let o=i[`service-token-secret`]?{TUNNEL_SERVICE_TOKEN_SECRET:i[`service-token-secret`]}:void 0;throw new e(await r(a,{env:o}))}};export{o as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{n as e}from"./auth-
|
|
2
|
+
import{n as e}from"./auth-cj71dGxS.mjs";import{t}from"./cli-exit-CstFZ1eJ.mjs";import{t as n}from"./context-DlFhI9cN.mjs";import{r}from"./dotenv-DKRemNCH.mjs";import{t as i}from"./progress-AML-AVs4.mjs";import{n as a}from"./cloudflared-DKh4JK7j.mjs";import{t as o}from"./create-DmLDMvrj.mjs";const s=[`cloudflared`,`http`,`tcp`,`udp`],c=[`debug`,`info`,`warn`,`error`],l=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function u(e,t){if(!l.test(e))throw Error(`${t} must be a valid UUID.`);return e}const d={command:`tail [tunnel-id]`,describe:`Stream logs from a remote cloudflared instance.`,builder:e=>e.positional(`tunnel-id`,{type:`string`,coerce:e=>u(e,`Tunnel ID`),description:`Tunnel UUID to stream logs from`}).option(`connector-id`,{type:`string`,coerce:e=>u(e,`--connector-id`),description:`Target a specific cloudflared connector`}).option(`event`,{type:`string`,choices:s,array:!0,description:`Filter by event type (may be repeated)`}).option(`level`,{type:`string`,choices:c,description:`Filter by log level`}).option(`sample`,{type:`number`,coerce:e=>{if(!Number.isFinite(e)||e<=0||e>1)throw Error(`--sample must be greater than 0.0 and no greater than 1.0.`);return e},description:`Sample log events by fraction greater than 0.0 and no greater than 1.0`}),handler:async s=>{if(s.local)throw Error(`--local is not supported by cf tunnels tail.`);let c=process.env.TUNNEL_MANAGEMENT_TOKEN;if(c!==void 0&&!c.trim())throw Error(`TUNNEL_MANAGEMENT_TOKEN must not be empty.`);if(c&&s[`tunnel-id`])throw Error(`Specify either a tunnel ID or TUNNEL_MANAGEMENT_TOKEN, not both.`);let l=c;if(!l){let t=s[`tunnel-id`];if(!t)throw Error(`Either a tunnel ID or TUNNEL_MANAGEMENT_TOKEN must be provided.`);l=await r({mode:s.mode,local:s.local},async()=>{let r=await e(s),a=await n();return i(`Fetching tunnel management token`,async()=>r.send(o,{account_id:a,tunnel_id:t,body:{resources:[`logs`]}}))})}let u=[`tail`,`--output`,`json`];if(s[`connector-id`]&&u.push(`--connector-id`,s[`connector-id`]),s.event)for(let e of s.event)u.push(`--event`,e);throw s.level&&u.push(`--level`,s.level),s.sample!==void 0&&u.push(`--sample`,String(s.sample)),s[`tunnel-id`]&&u.push(s[`tunnel-id`]),new t(await a(u,{env:{TUNNEL_MANAGEMENT_TOKEN:l}}))}};export{d as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{n as e}from"./auth-
|
|
2
|
+
import{n as e}from"./auth-cj71dGxS.mjs";import{t}from"./cli-exit-CstFZ1eJ.mjs";import{t as n}from"./context-DlFhI9cN.mjs";import{t as r}from"./path-DRw6Y-nd.mjs";import{r as i}from"./dotenv-DKRemNCH.mjs";import{t as a}from"./progress-AML-AVs4.mjs";import{n as o,t as s}from"./cloudflared-DKh4JK7j.mjs";import"./api-Dnt6lRJG.mjs";import{r as c}from"./resolve-C3FmNlSO.mjs";import{t as l}from"./get-3XNn0upb.mjs";const u={method:`GET`,path:e=>r`/accounts/${e.account_id}/cfd_tunnel`,query:[`name`,`is_deleted`,`existed_at`,`uuid`,`was_active_at`,`was_inactive_at`,`include_prefix`,`exclude_prefix`,`status`,`per_page`,`page`]},d=1e3;async function f(e,t,n){if(c(n))return n;let r=0,i;for(let a=1;;a++){let o=await e.send(u,{account_id:t,name:n,is_deleted:!1,page:a,per_page:d}),s=o.result??[];for(let e of s)e.name===n&&(r++,i=e.id);let c=o.result_info?.per_page||d;if(s.length<c)break}if(r===0)throw Error(`"${n}" is neither the ID nor the name of any tunnel. Run \`cf tunnels list\` to see available tunnels.`);if(r>1)throw Error(`Found multiple tunnels named "${n}". Pass the tunnel UUID instead.`);if(!i)throw Error(`Tunnel "${n}" was found but has no ID. Pass the tunnel UUID instead.`);return i}async function p(e,t,n){let r=await e.send(l,{account_id:t,tunnel_id:n});if(typeof r!=`string`||r.length===0)throw Error(`The API returned an empty token for tunnel ${n}.`);return r}function m(e){return e.positional(`tunnel`,{type:`string`,description:`Tunnel name or UUID; required unless --token is provided`}).option(`token`,{type:`string`,description:`Tunnel token supplied directly to cloudflared`}).option(`log-level`,{type:`string`,choices:s,default:`info`,description:`cloudflared log level`})}const h={command:`run [tunnel]`,describe:`Run a named Cloudflare Tunnel using the cf-managed cloudflared binary.`,builder:m,handler:async r=>{if(r.local)throw Error(`--local is not supported by cf tunnels run.`);let s=r.token,c=r.tunnel;if(!s){if(!c)throw Error(`Either a tunnel name/UUID or --token must be provided.`);s=await i(r,async()=>{let t=await e(r),i=await n();return a(`Fetching tunnel token`,async()=>{let e=await f(t,i,c);return p(t,i,e)})})}let l=[`tunnel`,`--loglevel`,r[`log-level`]];throw l.push(`run`),new t(await o(l,{env:{TUNNEL_TOKEN:s}}))}};export{h as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{n as t}from"./cloudflared-
|
|
2
|
+
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{n as t}from"./cloudflared-DKh4JK7j.mjs";const n={command:`diag`,describe:`Create a diagnostic report from a local cloudflared instance.`,builder:e=>e.parserConfiguration({"boolean-negation":!1}).option(`metrics`,{type:`string`,description:`Metrics server address for the cloudflared instance`}).option(`diag-container-id`,{type:`string`,description:`Container ID or name to collect logs from`}).option(`diag-pod-id`,{type:`string`,description:`Kubernetes pod to collect logs from`}).option(`no-diag-logs`,{type:`boolean`,description:`Exclude logs`}).option(`no-diag-metrics`,{type:`boolean`,description:`Exclude metrics`}).option(`no-diag-network`,{type:`boolean`,description:`Exclude network diagnostics`}).option(`no-diag-runtime`,{type:`boolean`,description:`Exclude runtime information`}).option(`no-diag-system`,{type:`boolean`,description:`Exclude system information`}),handler:async n=>{if(n.local)throw Error(`--local is not supported by cf tunnels diag.`);let r=[`tunnel`,`diag`];n.metrics&&r.push(`--metrics`,n.metrics),n[`diag-container-id`]&&r.push(`--diag-container-id`,n[`diag-container-id`]),n[`diag-pod-id`]&&r.push(`--diag-pod-id`,n[`diag-pod-id`]);for(let e of[`no-diag-logs`,`no-diag-metrics`,`no-diag-network`,`no-diag-runtime`,`no-diag-system`])n[e]&&r.push(`--${e}`);throw new e(await t(r))}};export{n as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{n as e}from"./generate-DfxZtpn9.mjs";import{t}from"./output-
|
|
2
|
+
import{n as e}from"./generate-DfxZtpn9.mjs";import{t}from"./output-PRKYaJuo.mjs";import{n,t as r}from"./project-settings-D_S-UC8I.mjs";import*as i from"node:path";function a(e){return e.option(`include-runtime`,{type:`boolean`,description:`Include Cloudflare Workers runtime types`,default:!0})}const o={command:`types`,describe:`Generate types from cloudflare.config.ts`,builder:a,handler:async a=>{if(a.local)throw Error(`--local is not supported by cf workers types.`);let o=n();if(o===null)throw Error(`${r} is required by cf workers types.`);let s=await e({configPath:o,mode:a.mode,includeRuntime:a.includeRuntime});t({path:i.relative(process.cwd(),s)},{quiet:a.quiet})}};export{o as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{n as t}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{n as t}from"./context-DlFhI9cN.mjs";import{r as n}from"./dotenv-DKRemNCH.mjs";import{n as r}from"./cloudflared-DKh4JK7j.mjs";const i={command:`curl <url>`,describe:`Run curl against an Access-protected application with its JWT injected by cloudflared.`,builder:e=>e.parserConfiguration({"populate--":!0,"parse-positional-numbers":!1,"short-option-groups":!1}).option(`allow-request`,{alias:`ar`,type:`boolean`,description:`Continue the request when no Access token is available`}).positional(`url`,{type:`string`,description:`URL of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access curl.`);let a=[`access`];throw await n({mode:i.mode,local:i.local},()=>t())===`fedramp_high`&&a.push(`--fedramp`),a.push(`curl`),i[`allow-request`]&&a.push(`--allow-request`),a.push(i.url,...(i[`--`]??[]).map(String)),new e(await r(a))}};export{i as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{n as t}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{n as t}from"./context-DlFhI9cN.mjs";import{r as n}from"./dotenv-DKRemNCH.mjs";import{n as r}from"./cloudflared-DKh4JK7j.mjs";const i={command:`login <url>`,describe:`Authenticate with an Access application and store its JWT through cloudflared.`,builder:e=>e.positional(`url`,{type:`string`,description:`URL of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access login.`);let a=[`access`];throw await n({mode:i.mode,local:i.local},()=>t())===`fedramp_high`&&a.push(`--fedramp`),a.push(`login`),i.quiet&&a.push(`--quiet`),a.push(i.url),new e(await r(a))}};export{i as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{n as t}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{n as t}from"./context-DlFhI9cN.mjs";import{r as n}from"./dotenv-DKRemNCH.mjs";import{n as r}from"./cloudflared-DKh4JK7j.mjs";const i={command:`login`,describe:`Authorize cloudflared and download an origin certificate for locally managed tunnels.`,handler:async i=>{if(i.local)throw Error(`--local is not supported by cf tunnels login.`);let a=[`tunnel`,`login`];throw await n({mode:i.mode,local:i.local},()=>t())===`fedramp_high`&&a.push(`--fedramp`),new e(await r(a))}};export{i as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./chunk-DSGVRFIS-
|
|
2
|
+
import{t as e}from"./chunk-DSGVRFIS-CeCM3XGQ.mjs";import{i as t,n,t as r}from"./startup-profile-CyIelqtC.mjs";import{x as i}from"./dist-DwxlJ9Ms.mjs";import{a,c as o,i as s,n as c,r as l,s as u}from"./build-DiEXOgHH.mjs";import{t as d}from"./deploy-input-BFWpjDVr.mjs";import{t as f}from"./output-PRKYaJuo.mjs";import{t as p}from"./progress-AML-AVs4.mjs";import m from"node:path";import{writeFile as h}from"node:fs/promises";import{readBuildOutput as g}from"@cloudflare/build-output-utils";function _(e){return e.option(`outfile`,{type:`string`,description:`Output file for the startup CPU profile`,default:`worker-startup.cpuprofile`,requiresArg:!0}).option(`prebuilt`,{type:`boolean`,description:`Use existing Build Output Specification files without building`,default:!1}).option(`worker`,l)}const v={command:`check`,describe:`Profile a Worker's startup performance`,builder:_,handler:async l=>{if(l.local)throw Error(`--local is not supported by cf workers check.`);l.prebuilt||await c(l.mode,{output:l.quiet?`silent`:`stderr`,worker:l.worker});let{workers:_,rootConfig:v}=await g(process.cwd());u(l.mode,v.buildContext.mode);let y=a(_,l.worker),{wranglerConfig:b,builtConfig:x}=s(y,v),S=d(y,x);if(!S.resolvedEntryPointPath)throw new o(`Startup profiling requires a Worker entrypoint; assets-only projects cannot be profiled.`);if(S.bundleType===`commonjs`)throw new o(`Startup profiling does not support service-worker format Workers. Refer to https://developers.cloudflare.com/workers/reference/migrate-to-module-workers/ for migration guidance.`);let C=e({name:b.name??y.config.name??`worker`,main:{name:x.manifest?.mainModule??m.basename(S.resolvedEntryPointPath),filePath:S.resolvedEntryPointPath,content:S.content,type:S.bundleType},modules:S.modules,sourceMaps:S.sourceMaps,compatibility_date:b.compatibility_date,compatibility_flags:b.compatibility_flags??[],assets:void 0,containers:void 0,migrations:void 0,exports:void 0,keepVars:void 0,keepSecrets:void 0,logpush:void 0,placement:void 0,tail_consumers:void 0,streaming_tail_consumers:void 0,limits:void 0,annotations:void 0,observability:void 0,cache:void 0,package_dependencies:void 0},i(b),{dryRun:!0,unsafe:b.unsafe}),w=await n(C),T=l.quiet?await r(C):await p(`Profiling Worker startup`,()=>r(C)),E=t(T);await h(l.outfile,JSON.stringify(T)),f({bundle:{sizeBytes:w.size,gzipSizeBytes:w.gzipSize},startup:{profileWindowMs:E.profileWindow/1e3,sampledTimeMs:E.sampledTime/1e3,activeTimeMs:E.activeTime/1e3,garbageCollectionTimeMs:E.garbageCollectionTime/1e3,idleTimeMs:E.idleTime/1e3,sampleCount:E.sampleCount},profile:l.outfile,note:`This profile was measured locally. Use it to understand where startup time is spent, not to predict startup time on Cloudflare.`},{quiet:l.quiet})}};export{v as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{n as e,t}from"./metadata-Df5kCWJv.mjs";import{t as n}from"./run-
|
|
2
|
+
import{n as e,t}from"./metadata-Df5kCWJv.mjs";import{t as n}from"./run-DAg7dfIW.mjs";import r from"node:assert";function i(e,t){return`#compdef ${e}
|
|
3
3
|
compdef _${e} ${e}
|
|
4
4
|
|
|
5
5
|
# zsh completion for ${e} -*- shell-script -*-
|
|
@@ -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-cj71dGxS.mjs";import{r as n,t as r}from"./body-parser-HN91kAf0.mjs";import{a as i,t as a}from"./context-DlFhI9cN.mjs";import{t as o}from"./dry-run-mrA7FFLR.mjs";import{t as s}from"./local-B3zt9PXR.mjs";import{t as c}from"./output-PRKYaJuo.mjs";import{t as l}from"./run-DAg7dfIW.mjs";import{t as u}from"./progress-AML-AVs4.mjs";import"./telemetry-DDs3zhdw.mjs";var d={method:`POST`,path:t=>e`/accounts/${t.account_id}/magic/connectors/${t.connector_id}/interrupts`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,409:`ConflictError`,500:`InternalServerError`}};function f(e){return e.usage(`$0 connector-interrupts create <connector-id>
|
|
3
3
|
|
|
4
4
|
Creates an interrupt for a Magic WAN Connector.`).positional(`connector-id`,{type:`string`,description:`Connector ID`,demandOption:!0}).option(`reboot-purge`,{type:`boolean`,description:`Purge connector state.`}).option(`restart-purge`,{type:`boolean`,description:`Purge connector state.`}).option(`shutdown-purge`,{type:`boolean`,description:`Purge connector state.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Interrupt action for a connector.`})}const p={command:`create <connector-id>`,describe:`Create Interrupt`,builder:f,handler:async e=>l({command:`connector-interrupts create`,classification:{safeFlags:[`reboot-purge`,`restart-purge`,`shutdown-purge`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();o({command:`cf connector-interrupts create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/magic/connectors/${e[`connector-id`]==null?`<connector-id>`:encodeURIComponent(String(e[`connector-id`]))}/interrupts`,pathParams:{"connector-id":String(e[`connector-id`]??``)},bodyKind:`json`,body:e.body===void 0?r({reboot:{purge:e[`reboot-purge`]},restart:{purge:e[`restart-purge`]},shutdown:{purge:e[`shutdown-purge`]}}):n(e.body)});return}let l=e.body===void 0?void 0:n(e.body),f=await t(e),p=e.local?s:await a();if(e.accountId=p,e.body!==void 0){let t=l,n=await u(`Creating`,async()=>f.send(d,{body:t,account_id:p,connector_id:e[`connector-id`]}));c(n,{successLabel:`Created`});return}let m=r({reboot:{purge:e[`reboot-purge`]},restart:{purge:e[`restart-purge`]},shutdown:{purge:e[`shutdown-purge`]}}),h=await u(`Creating`,async()=>f.send(d,{body:m,account_id:p,connector_id:e[`connector-id`]}));c(h,{successLabel:`Created`})})};var m={method:`GET`,path:t=>e`/accounts/${t.account_id}/magic/connectors/${t.connector_id}/interrupts`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function h(e){return e.usage(`$0 connector-interrupts list
|
|
5
5
|
|
package/dist/{connector-telemetry-events-DmQPD7xC.mjs → connector-telemetry-events-Bs9wLYwc.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-cj71dGxS.mjs";import{t as n}from"./dry-run-mrA7FFLR.mjs";import{a as r,t as i}from"./context-DlFhI9cN.mjs";import{t as a}from"./local-B3zt9PXR.mjs";import{t as o}from"./output-PRKYaJuo.mjs";import{t as s}from"./progress-AML-AVs4.mjs";import{t as c}from"./run-DAg7dfIW.mjs";import"./telemetry-DDs3zhdw.mjs";var l={method:`GET`,path:t=>e`/accounts/${t.account_id}/magic/connectors/${t.connector_id}/telemetry/events/${t.event_t}.${t.event_n}`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,429:`TooManyRequestsError`,500:`InternalServerError`}};function u(e){return e.usage(`$0 connector-telemetry-events get <event-n>
|
|
3
3
|
|
|
4
4
|
Gets Magic WAN Connector Telemetry Event`).positional(`event-n`,{type:`string`,description:`Event n`,demandOption:!0}).option(`connector-id`,{type:`string`,description:`Connector ID`,demandOption:!0}).option(`event-t`,{type:`string`,description:`Event t`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const d={command:`get <event-n>`,describe:`Get Event`,builder:u,handler:async e=>c({command:`connector-telemetry-events get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();n({command:`cf connector-telemetry-events get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/magic/connectors/${e[`connector-id`]==null?`<connector-id>`:encodeURIComponent(String(e[`connector-id`]))}/telemetry/events/${e[`event-t`]==null?`<event-t>`:encodeURIComponent(String(e[`event-t`]))}.${e[`event-n`]==null?`<event-n>`:encodeURIComponent(String(e[`event-n`]))}`,pathParams:{"connector-id":String(e[`connector-id`]??``),"event-t":String(e[`event-t`]??``),"event-n":String(e[`event-n`]??``)},bodyKind:`none`});return}let c=await t(e),u=e.local?a:await i();e.accountId=u;let d=await s(`Loading`,async()=>c.send(l,{account_id:u,connector_id:e[`connector-id`],event_t:e[`event-t`],event_n:e[`event-n`]}));o(d,{successLabel:`Loaded`})})};var f={method:`GET`,path:t=>e`/accounts/${t.account_id}/magic/connectors/${t.connector_id}/telemetry/events`,query:[`from`,`to`,`limit`,`cursor`,`k`],errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,429:`TooManyRequestsError`,500:`InternalServerError`}};function p(e){return e.usage(`$0 connector-telemetry-events 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{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-cj71dGxS.mjs";import{t as n}from"./dry-run-mrA7FFLR.mjs";import{a as r,t as i}from"./context-DlFhI9cN.mjs";import{t as a}from"./local-B3zt9PXR.mjs";import{t as o}from"./output-PRKYaJuo.mjs";import{t as s}from"./progress-AML-AVs4.mjs";import{t as c}from"./run-DAg7dfIW.mjs";import"./telemetry-DDs3zhdw.mjs";var l={method:`GET`,path:t=>e`/accounts/${t.account_id}/magic/connectors/${t.connector_id}/telemetry/snapshots/${t.snapshot_t}`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,429:`TooManyRequestsError`,500:`InternalServerError`}};function u(e){return e.usage(`$0 connector-telemetry-snapshots get <snapshot-t>
|
|
3
3
|
|
|
4
4
|
Gets Magic WAN Connector Telemetry Snapshot`).positional(`snapshot-t`,{type:`string`,description:`Snapshot t`,demandOption:!0}).option(`connector-id`,{type:`string`,description:`Connector ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const d={command:`get <snapshot-t>`,describe:`Get Snapshot`,builder:u,handler:async e=>c({command:`connector-telemetry-snapshots get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();n({command:`cf connector-telemetry-snapshots get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/magic/connectors/${e[`connector-id`]==null?`<connector-id>`:encodeURIComponent(String(e[`connector-id`]))}/telemetry/snapshots/${e[`snapshot-t`]==null?`<snapshot-t>`:encodeURIComponent(String(e[`snapshot-t`]))}`,pathParams:{"connector-id":String(e[`connector-id`]??``),"snapshot-t":String(e[`snapshot-t`]??``)},bodyKind:`none`});return}let c=await t(e),u=e.local?a:await i();e.accountId=u;let d=await s(`Loading`,async()=>c.send(l,{account_id:u,connector_id:e[`connector-id`],snapshot_t:e[`snapshot-t`]}));o(d,{successLabel:`Loaded`})})};var f={method:`GET`,path:t=>e`/accounts/${t.account_id}/magic/connectors/${t.connector_id}/telemetry/snapshots`,query:[`from`,`to`,`limit`,`cursor`],errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,429:`TooManyRequestsError`,500:`InternalServerError`}};function p(e){return e.usage(`$0 connector-telemetry-snapshots 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{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-cj71dGxS.mjs";import{r as n,t as r}from"./body-parser-HN91kAf0.mjs";import{a as i,t as a}from"./context-DlFhI9cN.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-DAg7dfIW.mjs";import{t as u}from"./output-PRKYaJuo.mjs";import{t as d}from"./progress-AML-AVs4.mjs";import"./telemetry-DDs3zhdw.mjs";import{n as f}from"./prompt-Bnon9lfK.mjs";var p={method:`POST`,path:t=>e`/accounts/${t.account_id}/magic/connectors`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,409:`ConflictError`,500:`InternalServerError`}};function m(e){return e.usage(`$0 connectors create
|
|
3
3
|
|
|
4
4
|
Creates a Magic WAN Connector.`).option(`device-id`,{type:`string`,description:`The device.id field`}).option(`device-provision-license`,{type:`boolean`,description:`When true, create and provision a new licence key for the connector.`}).option(`device-serial-number`,{type:`string`,description:`The device.serial_number field`}).option(`activated`,{type:`boolean`,description:`The activated field`}).option(`interrupt-window-days-of-week`,{type:`string`,array:!0,description:`Allowed days of the week for upgrades. Default is all days.`}).option(`interrupt-window-duration-hours`,{type:`number`,description:`The interrupt_window_duration_hours field`}).option(`interrupt-window-embargo-dates`,{type:`string`,array:!0,description:`List of dates (YYYY-MM-DD) when upgrades are blocked.`}).option(`interrupt-window-hour-of-day`,{type:`number`,description:`The interrupt_window_hour_of_day field`}).option(`notes`,{type:`string`,description:`The notes field`}).option(`timezone`,{type:`string`,description:`The timezone 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 h={command:`create`,describe:`Create Connector`,builder:m,handler:async e=>l({command:`connectors create`,classification:{safeFlags:[`device-provision-license`,`activated`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();o({command:`cf connectors create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/magic/connectors`,pathParams:{},bodyKind:`json`,body:e.body===void 0?r({device:{id:s(e[`device-id`],`device-id`,`text`),provision_license:e[`device-provision-license`],serial_number:s(e[`device-serial-number`],`device-serial-number`,`text`)},activated:e.activated,interrupt_window_days_of_week:e[`interrupt-window-days-of-week`],interrupt_window_duration_hours:e[`interrupt-window-duration-hours`],interrupt_window_embargo_dates:e[`interrupt-window-embargo-dates`],interrupt_window_hour_of_day:e[`interrupt-window-hour-of-day`],notes:s(e.notes,`notes`,`text`),timezone:s(e.timezone,`timezone`,`text`)}):n(e.body)});return}let l=e.body===void 0?void 0:n(e.body),f=await t(e),m=e.local?c:await a();if(e.accountId=m,e.body!==void 0){let e=l,t=await d(`Creating`,async()=>f.send(p,{body:e,account_id:m}));u(t,{successLabel:`Created`});return}let h=r({device:{id:s(e[`device-id`],`device-id`,`text`),provision_license:e[`device-provision-license`],serial_number:s(e[`device-serial-number`],`device-serial-number`,`text`)},activated:e.activated,interrupt_window_days_of_week:e[`interrupt-window-days-of-week`],interrupt_window_duration_hours:e[`interrupt-window-duration-hours`],interrupt_window_embargo_dates:e[`interrupt-window-embargo-dates`],interrupt_window_hour_of_day:e[`interrupt-window-hour-of-day`],notes:s(e.notes,`notes`,`text`),timezone:s(e.timezone,`timezone`,`text`)}),g=await d(`Creating`,async()=>f.send(p,{body:h,account_id:m}));u(g,{successLabel:`Created`})})};var g={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/magic/connectors/${t.connector_id}`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function _(e){return e.usage(`$0 connectors delete <connector-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
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-cj71dGxS.mjs";import{o as t,r as n,t as r}from"./body-parser-HN91kAf0.mjs";import{t as i}from"./dry-run-mrA7FFLR.mjs";import{t as a}from"./path-DRw6Y-nd.mjs";import{n as o}from"./input-validation-D7z60HJH.mjs";import{t as s}from"./local-B3zt9PXR.mjs";import{t as c}from"./output-PRKYaJuo.mjs";import{t as l}from"./progress-AML-AVs4.mjs";import{a as u,i as d,n as f}from"./prompt-Bnon9lfK.mjs";import"./telemetry-DDs3zhdw.mjs";import{E as p,S as m,T as h,_ as g,b as ee,f as _,h as te,p as v,s as y,t as b,u as ne,v as re}from"./deploy-context-BYw6gbl-.mjs";import{J as x}from"./dist-DwxlJ9Ms.mjs";import{t as S}from"./auth-token-D9MnaZ-L.mjs";import{a as C,n as w,t as T}from"./context-DlFhI9cN.mjs";import{n as E,t as D}from"./run-DAg7dfIW.mjs";import{n as O}from"./request-headers-BEYXy4JN.mjs";import{o as ie}from"./blocks-DK5qAzLe.mjs";import{t as k}from"./hand-written-dry-run-B82fRl2N.mjs";import{t as ae}from"./version-pcpa_kv3.mjs";var A={method:`POST`,path:e=>a`/accounts/${e.account_id}/containers/applications`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,500:`InternalServerError`}};function oe(e){return e.usage('$0 containers applications create\n\nCreate a Containers application. Use `scheduling_policy: "default"` for a scheduler-backed application. The Containers scheduler maintains the requested instance count and manages deployment configuration, placement, scaling, versions, and rollouts. Use `scheduling_policy: "durable_object"` for a Durable Object-managed application. Each Durable Object creates and manages the lifecycle of its container instance. Supply `name`, `scheduling_policy`, and `durable_objects`, with optional `configuration` and optional top-level `observability` settings. Deployment configuration, scaling, constraints, versions, and rollouts do not apply.').option(`configuration-authorized-keys`,{type:`string`,description:`The configuration.authorized_keys field. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"public_key": string, "name"?: string}]. ? marks optional keys.`}).option(`configuration-command`,{type:`string`,array:!0,description:`The command that runs when the container starts, passed to the entrypoint.
|
|
3
3
|
You can override this at run-time. If you override only the command,
|
|
4
4
|
it gets passed to the default entrypoint specified in the image.
|
|
5
5
|
`}).option(`configuration-entrypoint`,{type:`string`,array:!0,description:`The entry point for the container, specifying the executable to run when the container starts.
|
|
@@ -73,4 +73,4 @@ Delete a registry from the account, this will prevent Containers from pulling im
|
|
|
73
73
|
|
|
74
74
|
Get the list of configured registries in the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Z={command:`list`,describe:`Get the list of configured registries in the account`,builder:Ie,handler:async t=>D({command:`containers registries list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await C();i({command:`cf containers registries list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/containers/registries`,pathParams:{},bodyKind:`none`});return}let n=await e(t),r=t.local?s:await T();t.accountId=r;let a=await l(`Loading`,async()=>n.send(Fe,{account_id:r}));c(a,{successLabel:`Loaded`})})},Le={command:`registries`,describe:`Manage Containers image registries`,builder:e=>e.command(Oe).command(Pe).command(Z).command(je).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Re={method:`GET`,path:e=>a`/accounts/${e.account_id}/containers/usage`,errors:{401:`UnauthorizedError`,403:`ForbiddenError`,500:`InternalServerError`}};function ze(e){return e.usage(`$0 containers usage
|
|
75
75
|
|
|
76
|
-
Get current live resource usage and maximum limits for your account. Usage includes active and assigned instances.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Be={command:`usage`,describe:`Get live account usage`,builder:ze,handler:async t=>D({command:`containers usage`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await C();i({command:`cf containers usage`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/containers/usage`,pathParams:{},bodyKind:`none`});return}let n=await e(t),r=t.local?s:await T();t.accountId=r;let a=await l(`Loading`,async()=>n.send(Re,{account_id:r}));c(a,{successLabel:`Loaded`})})};function Ve(e){return e.positional(`path`,{type:`string`,demandOption:!0,description:`Directory containing the Dockerfile to build`}).option(`tag`,{alias:`t`,type:`string`,demandOption:!0,description:`Name and optional tag for the built image`}).option(`push`,{alias:`p`,type:`boolean`,default:!1,description:`Push the built image to Cloudflare's managed registry`}).option(`path-to-docker`,{type:`string`,description:`Path to the Docker binary if it is not on PATH`})}var He=E({command:`build <path>`,describe:`Build a Container image`,builder:Ve,handler:async e=>{if(e.local)throw Error("--local is not supported with `cf containers build`.");let t={compliance_region:e.push?await w():`public`},n=e.push?await S():``,r=b(n);g({logger:r.logger,fetchResult:r.fetchResult,fetchPagedListResult:r.fetchPagedListResult}),e.push&&_(await T(),n,x(t)),await ne({PATH:e.path,tag:e.tag,push:e.push,pathToDocker:e[`path-to-docker`]},t)}},{command:`containers build`,classification:{safeFlags:[`push`],shortFlagAliases:{p:{canonical:`push`,type:`boolean`},t:{canonical:`tag`,type:`value`}}}});function Ue(e){return e.option(`tag`,{alias:`t`,type:`string`,demandOption:!0,description:`Tag of the local image to push`}).option(`path-to-docker`,{type:`string`,description:`Path to the Docker binary if it is not on PATH`})}var We=E({command:`push`,describe:`Push a local image to the Cloudflare managed registry`,builder:Ue,handler:async e=>{if(e.local)throw Error("--local is not supported with `cf containers push`.");let t=await S(),n=await T(),r={compliance_region:await w()},i=b(t);g({logger:i.logger,fetchResult:i.fetchResult,fetchPagedListResult:i.fetchPagedListResult}),_(n,t,x(r)),await m({TAG:e.tag,pathToDocker:e[`path-to-docker`]},n,r)}},{command:`containers push`,classification:{safeFlags:[],shortFlagAliases:{t:{canonical:`tag`,type:`value`}}}});function Ge(e){return e.positional(`id`,{type:`string`,demandOption:!0,description:`ID of the container instance`}).positional(`ssh-command`,{type:`string`,array:!0,description:`Command and arguments to run in the container`}).options(v).middleware(e=>{h(e)&&(e.quiet=!0)},!0).parserConfiguration({"populate--":!0,"unknown-options-as-args":!0,"parse-positional-numbers":!1})}const Q={command:`ssh <id> [ssh-command..]`,describe:`SSH into a container`,builder:Ge,handler:async e=>{if(e.local)throw Error("--local is not supported with `cf containers ssh`.");let t=await S(),n=await T(),r={compliance_region:await w()},i=b(t);g({logger:i.logger,fetchResult:i.fetchResult}),y.HEADERS=O(),_(n,t,x(r)),await p({...e,id:e.id,command:[...e[`ssh-command`]??[],...Array.isArray(e[`--`])?e[`--`].map(String):[]]},ae)}},$=E(Q,{command:`containers ssh`,recordArgs:!1});var Ke={...$,handler:async e=>{if(h(e)){let{markCommandReported:t}=await import(`./telemetry-
|
|
76
|
+
Get current live resource usage and maximum limits for your account. Usage includes active and assigned instances.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Be={command:`usage`,describe:`Get live account usage`,builder:ze,handler:async t=>D({command:`containers usage`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await C();i({command:`cf containers usage`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/containers/usage`,pathParams:{},bodyKind:`none`});return}let n=await e(t),r=t.local?s:await T();t.accountId=r;let a=await l(`Loading`,async()=>n.send(Re,{account_id:r}));c(a,{successLabel:`Loaded`})})};function Ve(e){return e.positional(`path`,{type:`string`,demandOption:!0,description:`Directory containing the Dockerfile to build`}).option(`tag`,{alias:`t`,type:`string`,demandOption:!0,description:`Name and optional tag for the built image`}).option(`push`,{alias:`p`,type:`boolean`,default:!1,description:`Push the built image to Cloudflare's managed registry`}).option(`path-to-docker`,{type:`string`,description:`Path to the Docker binary if it is not on PATH`})}var He=E({command:`build <path>`,describe:`Build a Container image`,builder:Ve,handler:async e=>{if(e.local)throw Error("--local is not supported with `cf containers build`.");let t={compliance_region:e.push?await w():`public`},n=e.push?await S():``,r=b(n);g({logger:r.logger,fetchResult:r.fetchResult,fetchPagedListResult:r.fetchPagedListResult}),e.push&&_(await T(),n,x(t)),await ne({PATH:e.path,tag:e.tag,push:e.push,pathToDocker:e[`path-to-docker`]},t)}},{command:`containers build`,classification:{safeFlags:[`push`],shortFlagAliases:{p:{canonical:`push`,type:`boolean`},t:{canonical:`tag`,type:`value`}}}});function Ue(e){return e.option(`tag`,{alias:`t`,type:`string`,demandOption:!0,description:`Tag of the local image to push`}).option(`path-to-docker`,{type:`string`,description:`Path to the Docker binary if it is not on PATH`})}var We=E({command:`push`,describe:`Push a local image to the Cloudflare managed registry`,builder:Ue,handler:async e=>{if(e.local)throw Error("--local is not supported with `cf containers push`.");let t=await S(),n=await T(),r={compliance_region:await w()},i=b(t);g({logger:i.logger,fetchResult:i.fetchResult,fetchPagedListResult:i.fetchPagedListResult}),_(n,t,x(r)),await m({TAG:e.tag,pathToDocker:e[`path-to-docker`]},n,r)}},{command:`containers push`,classification:{safeFlags:[],shortFlagAliases:{t:{canonical:`tag`,type:`value`}}}});function Ge(e){return e.positional(`id`,{type:`string`,demandOption:!0,description:`ID of the container instance`}).positional(`ssh-command`,{type:`string`,array:!0,description:`Command and arguments to run in the container`}).options(v).middleware(e=>{h(e)&&(e.quiet=!0)},!0).parserConfiguration({"populate--":!0,"unknown-options-as-args":!0,"parse-positional-numbers":!1})}const Q={command:`ssh <id> [ssh-command..]`,describe:`SSH into a container`,builder:Ge,handler:async e=>{if(e.local)throw Error("--local is not supported with `cf containers ssh`.");let t=await S(),n=await T(),r={compliance_region:await w()},i=b(t);g({logger:i.logger,fetchResult:i.fetchResult}),y.HEADERS=O(),_(n,t,x(r)),await p({...e,id:e.id,command:[...e[`ssh-command`]??[],...Array.isArray(e[`--`])?e[`--`].map(String):[]]},ae)}},$=E(Q,{command:`containers ssh`,recordArgs:!1});var Ke={...$,handler:async e=>{if(h(e)){let{markCommandReported:t}=await import(`./telemetry-CtQWhsmy.mjs`);return t(),Q.handler(e)}return $.handler(e)}};const qe={command:`containers`,describe:`Deploy and manage Containers applications on Cloudflare's global network`,builder:e=>e.command(k(He,`preview`)).command(k(We,`preview`)).command(k(Ke,`preview`)).command(Be).command(ye).command(Ee).command(Le).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{qe 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-cj71dGxS.mjs";import{i as n}from"./context-DlFhI9cN.mjs";import{r,t as i}from"./body-parser-HN91kAf0.mjs";import{t as a}from"./dry-run-mrA7FFLR.mjs";import{t as o}from"./output-PRKYaJuo.mjs";import{t as s}from"./run-DAg7dfIW.mjs";import{t as c}from"./progress-AML-AVs4.mjs";import"./telemetry-DDs3zhdw.mjs";import{a as l,i as u,n as d}from"./prompt-Bnon9lfK.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";var p={method:`POST`,path:t=>e`/zones/${t.zone_id}/content-upload-scan/payloads`,body:`json`};function m(e){return e.usage(`$0 content-scan expressions create
|
|
3
3
|
|
|
4
4
|
Create one or more Content Scanning custom expressions, appending them to the existing list of the zone, and return the updated list. Each expression reaches content objects the scanner cannot find automatically, for example \`lookup_json_string(http.request.body.raw, "file")\`.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Array of Content Scanning custom expressions to create.`})}const h={command:`create`,describe:`Create Content Scanning custom expressions for a zone.`,builder:m,handler:async e=>s({command:`content-scan expressions create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf content-scan expressions create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/content-upload-scan/payloads`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?void 0:r(e.body)});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`);let i=e.body===void 0?void 0:r(e.body),s=await t(e),l=await n({zone:e.zone},s,{quiet:e.quiet});if(e.zoneId=l,e.body!==void 0){let e=i,t=await c(`Creating`,async()=>s.send(p,{body:e,zone_id:l}));o(t,{successLabel:`Created`})}})};var g={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/content-upload-scan/payloads/${t.expression_id}`};function _(e){return e.usage(`$0 content-scan expressions delete <expression-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{a as e,i as t}from"./project-settings-D_S-UC8I.mjs";import{n}from"./resolve-C3FmNlSO.mjs";function r(e,t){if(t)return{value:t,source:`flag`};let n=process.env[e];if(n)return{value:n,source:`env`}}async function i(n={}){let r=process.env.CLOUDFLARE_ACCOUNT_ID;if(r)return{value:r,source:`env`};if(n.skipProjectSettings)return;let i=t(void 0,n),a=i===void 0?await e(void 0,n):i;if(a?.settings?.accountId)return{value:a.settings.accountId,source:`settings`,path:a.path}}async function a(){let{getActiveAccountId:e,isTemporaryAccountRequested:t}=await import(`./oauth-
|
|
2
|
+
import{a as e,i as t}from"./project-settings-D_S-UC8I.mjs";import{n}from"./resolve-C3FmNlSO.mjs";function r(e,t){if(t)return{value:t,source:`flag`};let n=process.env[e];if(n)return{value:n,source:`env`}}async function i(n={}){let r=process.env.CLOUDFLARE_ACCOUNT_ID;if(r)return{value:r,source:`env`};if(n.skipProjectSettings)return;let i=t(void 0,n),a=i===void 0?await e(void 0,n):i;if(a?.settings?.accountId)return{value:a.settings.accountId,source:`settings`,path:a.path}}async function a(){let{getActiveAccountId:e,isTemporaryAccountRequested:t}=await import(`./oauth-CQRlNgt5.mjs`);if(t())return;let n=await i();if(n)return n.value;try{return e()}catch{return}}async function o(e){let{getOrSelectAccountId:t,isTemporaryAccountRequested:n,requireTemporaryAccount:r}=await import(`./oauth-CQRlNgt5.mjs`);if(n())return(await r(e)).accountId;let a=await i(e);return a&&s(a.value,h(a,`accountId`)),t(a?.value,e)}function s(e,t){if(!process.env.DEBUG)return;let n=e.length>12?e.slice(0,12)+`…`:e;process.stderr.write(`Using account: ${n} (${t})\n`)}async function c(e,t,n){if(e?.zoneId)return l(e.zoneId,t);let i=r(`CLOUDFLARE_ZONE_ID`,e?.zone);if(i){if(!n?.quiet&&i.source!==`flag`){let e=h(i);console.error(`Using zone: ${i.value} (from ${e})`)}return l(i.value,t)}throw Error(`No zone specified.
|
|
3
3
|
|
|
4
4
|
Please provide one of the following:
|
|
5
5
|
1. Zone as a positional argument: cf dns records list <zone>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{n as e}from"./auth-
|
|
2
|
+
import{n as e}from"./auth-cj71dGxS.mjs";import{t}from"./dry-run-mrA7FFLR.mjs";import{t as n}from"./output-PRKYaJuo.mjs";import{t as r}from"./progress-AML-AVs4.mjs";import{t as i}from"./run-DAg7dfIW.mjs";import"./telemetry-DDs3zhdw.mjs";import{i as a,r as o,t as s}from"./body-parser-HN91kAf0.mjs";import{n as c}from"./input-validation-D7z60HJH.mjs";var l={method:`GET`,path:()=>`/user/communication_preferences`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function u(e){return e.usage(`$0 cps get
|
|
3
3
|
|
|
4
4
|
Retrieve the communication preferences for the authenticated user, including email verification status, marketing subscription opt-in/opt-out state, and language locale. Callers authenticate with standard Cloudflare API tokens or keys.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const d={command:`get`,describe:`Get communication preferences`,builder:u,handler:async a=>i({command:`cps get`,classification:{safeFlags:[`dry-run`]}},a,async()=>{if(a.dryRun){t({command:`cf cps get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/communication_preferences`,pathParams:{},bodyKind:`none`});return}let i=await e(a),o=await r(`Loading`,async()=>i.send(l));n(o,{successLabel:`Loaded`})})};var f={method:`PUT`,path:()=>`/user/communication_preferences`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function p(e){return e.usage(`$0 cps update
|
|
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-cj71dGxS.mjs";import{i as n}from"./context-DlFhI9cN.mjs";import{i 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-DAg7dfIW.mjs";import{t as l}from"./output-PRKYaJuo.mjs";import{t as u}from"./progress-AML-AVs4.mjs";import"./telemetry-DDs3zhdw.mjs";var d={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/settings/csam_scanner_third_party`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function f(e){return e.usage("$0 csam-scanner edit\n\nUpdate the CSAM Scanner configuration for a zone. Allows enabling or disabling CSAM scanning, updating the notification email, and configuring scanning sources. This is a partial update: fields omitted from `value` keep their current setting, and `sources` is merged per source (`null` clears all sources). Send an empty `email` to clear the notification address. When a new email is provided, email verification is triggered automatically. The `enabled` field is a toggle; the server may adjust it based on whether the notification email is verified. Returns 403 if the zone or account is locked by Trust & Safety.").option(`id`,{type:`string`,description:`The feature identifier.`,choices:[`csam_scanner`]}).coerce(`id`,e=>s(e,`id`,`text`)).option(`value-email`,{type:`string`,description:`Notification email address for CSAM scan results. When changed,
|
|
3
3
|
email verification is triggered automatically.
|
|
4
4
|
`}).option(`value-enabled`,{type:`boolean`,description:`Whether CSAM scanning is enabled for this zone.`}).option(`value-resend-email`,{type:`boolean`,description:`Set to true to trigger re-sending the email verification.
|
|
5
5
|
Write-only; never appears in responses (omitted when false).
|
|
@@ -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-cj71dGxS.mjs";import{r as n,t as r}from"./body-parser-HN91kAf0.mjs";import{a as i,i as a,t as o}from"./context-DlFhI9cN.mjs";import{t as s}from"./dry-run-mrA7FFLR.mjs";import{n as c}from"./input-validation-D7z60HJH.mjs";import{t as l}from"./local-B3zt9PXR.mjs";import{t as u}from"./run-DAg7dfIW.mjs";import{t as d}from"./output-PRKYaJuo.mjs";import{t as f}from"./progress-AML-AVs4.mjs";import{a as p,n as m}from"./prompt-Bnon9lfK.mjs";import"./telemetry-DDs3zhdw.mjs";var h={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/custom_csrs`,body:`json`};function g(e){return e.usage(`$0 custom-csrs create
|
|
3
3
|
|
|
4
4
|
Generate a new custom Certificate Signing Request (CSR) for an account or zone. Cloudflare generates and securely stores the private key associated with the CSR.
|
|
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-cj71dGxS.mjs";import{i as n}from"./context-DlFhI9cN.mjs";import{t as r}from"./dry-run-mrA7FFLR.mjs";import{t as i}from"./output-PRKYaJuo.mjs";import{t as a}from"./progress-AML-AVs4.mjs";import{t as o}from"./run-DAg7dfIW.mjs";import{a as s,n as c}from"./prompt-Bnon9lfK.mjs";import"./telemetry-DDs3zhdw.mjs";import{i as l,o as u,r as d,t as f}from"./body-parser-HN91kAf0.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";var m={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/custom_hostnames/${t.custom_hostname_id}/certificate_pack/${t.certificate_pack_id}/certificates/${t.certificate_id}`};function h(e){return e.usage(`$0 custom-hostnames certificate-pack certificates delete <certificate-id>
|
|
3
3
|
|
|
4
4
|
Delete a single custom certificate from a certificate pack that contains two bundled certificates. Deletion is subject to the following constraints. You cannot delete a certificate if it is the only remaining certificate in the pack. At least one certificate must remain in the pack.`).positional(`certificate-id`,{type:`string`,description:`Custom hostname identifier tag.`,demandOption:!0}).option(`custom-hostname-id`,{type:`string`,description:`Custom hostname identifier tag.`,demandOption:!0}).option(`certificate-pack-id`,{type:`string`,description:`Custom hostname identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const g={command:`delete <certificate-id>`,describe:`Delete Single Certificate And Key For Custom Hostname`,builder:h,handler:async e=>o({command:`custom-hostnames certificate-pack certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){r({command:`cf custom-hostnames certificate-pack certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/custom_hostnames/${e[`custom-hostname-id`]==null?`<custom-hostname-id>`:encodeURIComponent(String(e[`custom-hostname-id`]))}/certificate_pack/${e[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(e[`certificate-pack-id`]))}/certificates/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"custom-hostname-id":String(e[`custom-hostname-id`]??``),"certificate-pack-id":String(e[`certificate-pack-id`]??``),"certificate-id":String(e[`certificate-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(m,{zone_id:s,custom_hostname_id:e[`custom-hostname-id`],certificate_pack_id:e[`certificate-pack-id`],certificate_id:e[`certificate-id`]}));i(l,{successLabel:`Deleted`})})};var _={method:`PUT`,path:t=>e`/zones/${t.zone_id}/custom_hostnames/${t.custom_hostname_id}/certificate_pack/${t.certificate_pack_id}/certificates/${t.certificate_id}`,body:`json`};function v(e){return e.usage(`$0 custom-hostnames certificate-pack certificates update <certificate-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-cj71dGxS.mjs";import{r as n,t as r}from"./body-parser-HN91kAf0.mjs";import{a as i,i as a,t as o}from"./context-DlFhI9cN.mjs";import{t as s}from"./dry-run-mrA7FFLR.mjs";import{n as c}from"./input-validation-D7z60HJH.mjs";import{t as l}from"./local-B3zt9PXR.mjs";import{t as u}from"./run-DAg7dfIW.mjs";import{t as d}from"./output-PRKYaJuo.mjs";import{t as f}from"./progress-AML-AVs4.mjs";import{a as p,n as m}from"./prompt-Bnon9lfK.mjs";import"./telemetry-DDs3zhdw.mjs";var h={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/custom_ns`,body:`json`};function g(e){return e.usage(`$0 custom-nameservers create
|
|
3
3
|
|
|
4
4
|
Adds a custom nameserver to the account or zone for use as a vanity nameserver on zones.
|
|
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-cj71dGxS.mjs";import{r as n,t as r}from"./body-parser-HN91kAf0.mjs";import{a as i,i as a,t as o}from"./context-DlFhI9cN.mjs";import{t as s}from"./dry-run-mrA7FFLR.mjs";import{n as c}from"./input-validation-D7z60HJH.mjs";import{t as l}from"./local-B3zt9PXR.mjs";import{t as u}from"./run-DAg7dfIW.mjs";import{t as d}from"./output-PRKYaJuo.mjs";import{t as f}from"./progress-AML-AVs4.mjs";import{a as p,i as m,n as h}from"./prompt-Bnon9lfK.mjs";import"./telemetry-DDs3zhdw.mjs";var g={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/custom_pages/assets`,body:`json`};function _(e){return e.usage(`$0 custom-pages account-assets create
|
|
3
3
|
|
|
4
4
|
Creates a custom asset for an 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-cj71dGxS.mjs";import{o as n,r,t as i}from"./body-parser-HN91kAf0.mjs";import{t as a}from"./dry-run-mrA7FFLR.mjs";import{n as o}from"./input-validation-D7z60HJH.mjs";import{a as s,t as c}from"./context-DlFhI9cN.mjs";import{t as l}from"./local-B3zt9PXR.mjs";import{t as u}from"./output-PRKYaJuo.mjs";import{t as d}from"./progress-AML-AVs4.mjs";import{n as f,t as p}from"./run-DAg7dfIW.mjs";import{a as m,n as h,t as g}from"./prompt-Bnon9lfK.mjs";import"./telemetry-DDs3zhdw.mjs";import{n as _}from"./resolve-C3FmNlSO.mjs";import{t as ee}from"./hand-written-dry-run-B82fRl2N.mjs";import v from"node:fs";import y from"node:path";var te={method:`POST`,path:t=>e`/accounts/${t.account_id}/d1/database`,body:`json`};function ne(e){return e.usage(`$0 d1 create
|
|
3
3
|
|
|
4
4
|
Create a new D1 database in your account.`).option(`jurisdiction`,{type:`string`,description:`Specify the location to restrict the D1 database to run and store data. If this option is present, the location hint is ignored.`,choices:[`eu`,`fedramp`,`us`]}).coerce(`jurisdiction`,e=>o(e,`jurisdiction`,`text`)).option(`name`,{type:`string`,description:`D1 database name.`}).option(`primary-location-hint`,{type:`string`,description:`Specify the region to create the D1 primary, if available. If this option is omitted, the D1 will be created as close as possible to the current user.`,choices:[`wnam`,`enam`,`weur`,`eeur`,`apac`,`oc`]}).coerce(`primary-location-hint`,e=>o(e,`primary-location-hint`,`text`)).option(`read-replication-mode`,{type:`string`,description:`The read replication mode for the database. Use 'auto' to create replicas and allow D1 automatically place them around the world, or 'disabled' to not use any database replicas (it can take a few hours for all replicas to be deleted).`,choices:[`auto`,`disabled`]}).coerce(`read-replication-mode`,e=>o(e,`read-replication-mode`,`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 re={command:`create`,describe:`Create D1 Database`,builder:ne,handler:async e=>p({command:`d1 create`,classification:{safeFlags:[`jurisdiction`,`primary-location-hint`,`read-replication-mode`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await s();a({command:`cf d1 create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/d1/database`,pathParams:{},bodyKind:`json`,body:e.body===void 0?i({jurisdiction:e.jurisdiction,name:o(e.name,`name`,`text`),primary_location_hint:e[`primary-location-hint`],read_replication:{mode:e[`read-replication-mode`]}}):r(e.body)});return}let n=e.body===void 0?void 0:r(e.body),f=await t(e),p=e.local?l:await c();if(e.accountId=p,e.body!==void 0){let e=n,t=await d(`Creating`,async()=>f.send(te,{body:e,account_id:p}));u(t,{successLabel:`Created`});return}e.name===void 0&&(e.name=await m(`name`,`D1 database name.`));let h=i({jurisdiction:e.jurisdiction,name:o(e.name,`name`,`text`),primary_location_hint:e[`primary-location-hint`],read_replication:{mode:e[`read-replication-mode`]}}),g=await d(`Creating`,async()=>f.send(te,{body:h,account_id:p}));u(g,{successLabel:`Created`})})};var ie={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/d1/database/${t.database_id}`};function ae(e){return e.usage(`$0 d1 delete <database-id>
|
|
5
5
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./package-
|
|
2
|
+
import{t as e}from"./package-DXaRIx2f.mjs";import{createRequire as t}from"node:module";import{existsSync as n,readFileSync as r,realpathSync as i}from"node:fs";import{dirname as a,resolve as o}from"node:path";import{fileURLToPath as s}from"node:url";import{constants as c}from"node:os";import{spawn as l}from"node:child_process";const u=`CF_DELEGATION`,d=`CF_DELEGATING_CLI_VERSION`,f=`CF_DELEGATION_PID`;function p(e){if(e.env.CF_DELEGATION||b(e.ownPackageJsonPath))return null;let i;try{i=t(o(e.cwd,`package.json`)).resolve(`cf/package.json`)}catch{return null}if(e.ownPackageJsonPath&&y(i,e.ownPackageJsonPath))return null;let s;try{s=JSON.parse(r(i,`utf-8`))}catch{return null}let c=v(s.bin);if(!c)return null;let l=o(a(i),c);return n(l)?{packageJsonPath:i,binPath:l,version:typeof s.version==`string`?s.version:`unknown`}:null}async function m(e={}){let t=e.cwd??process.cwd(),n=e.argv??process.argv.slice(2),r=e.env??process.env,i=p({cwd:t,ownPackageJsonPath:e.ownPackageJsonPath===void 0?S():e.ownPackageJsonPath,env:r});return i?{delegated:!0,exitCode:await _(i.binPath,n,r)}:{delegated:!1}}async function h(){let e=process.argv.slice(2);return g(e)?{delegated:!1}:m({argv:e})}function g(e){return e.find(e=>!e.startsWith(`-`))===`complete`}function _(t,n,r){return new Promise((i,a)=>{let o=l(process.execPath,[t,...n],{stdio:[`inherit`,`inherit`,`inherit`,`ipc`],env:{...r,[u]:`1`,[d]:e,[f]:String(process.pid)}});o.on(`message`,e=>{process.send&&process.send(e)});let s=e=>()=>{o.kill(e)},p=s(`SIGINT`),m=s(`SIGTERM`);process.on(`SIGINT`,p),process.on(`SIGTERM`,m);let h=()=>{process.off(`SIGINT`,p),process.off(`SIGTERM`,m)};o.once(`exit`,(e,t)=>{h(),i(e===null?t?128+(c.signals[t]??1):0:e)}),o.once(`error`,e=>{h(),a(e)})})}function v(e){if(typeof e==`string`)return e;if(e&&typeof e==`object`){let t=e,n=t.cf;if(typeof n==`string`)return n;for(let e of Object.values(t))if(typeof e==`string`)return e}return null}function y(e,t){try{return i(e)===i(t)}catch{return o(e)===o(t)}}function b(e){return e?e.split(/[\\/]/).some(e=>e===`_npx`||e===`dlx`||e.startsWith(`dlx-`)):!1}function x(){return b(S())}function S(){let e=a(s(import.meta.url));for(;;){let t=o(e,`package.json`);if(n(t))return t;let r=a(e);if(r===e)return null;e=r}}export{h as a,x as i,d as n,m as o,u as r,p as s,f as t};
|
package/dist/delegate.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
export{t as DELEGATING_PID_ENV,n as DELEGATING_VERSION_ENV,r as DELEGATION_SENTINEL,i as isEphemeralExecRun,a as maybeDelegateFromProcess,o as maybeDelegateToLocalInstall,s as resolveDelegateTarget}from"./delegate-
|
|
2
|
+
export{t as DELEGATING_PID_ENV,n as DELEGATING_VERSION_ENV,r as DELEGATION_SENTINEL,i as isEphemeralExecRun,a as maybeDelegateFromProcess,o as maybeDelegateToLocalInstall,s as resolveDelegateTarget}from"./delegate-BKlomUk6.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./log-Brx-wjJW.mjs";import{n as t,t as n}from"./shared-
|
|
2
|
+
import{t as e}from"./log-Brx-wjJW.mjs";import{n as t,t as n}from"./shared-DqW2vICA.mjs";import{n as r,t as i}from"./static-assets-CTv7XwIQ.mjs";function a(e){return t(e).positional(`directory`,r).option(`provision`,{type:`boolean`,description:`Automatically provision resources for bindings that need them`,default:!0}).option(`force`,{type:`boolean`,alias:`f`,description:`Allow upload in CI despite conflicting remote Worker changes`,default:!1}).option(`dispatch-namespace`,{type:`string`,description:`Name of a dispatch namespace to deploy the Worker to (Workers for Platforms)`,requiresArg:!0}).option(`containers-rollout`,{description:`Rollout strategy for Container changes. Immediate rolls out to all instances in one step; none leaves deployed Containers unchanged.`,choices:[`immediate`,`gradual`,`none`]})}const o={command:`deploy [directory]`,describe:`Deploy a Worker, static site, or full-stack application to Cloudflare`,builder:a,handler:async t=>{t.force&&!t[`dry-run`]&&e.warn(`Using --force may overwrite conflicting remote Worker changes.`);let r=await i(t,{isPreview:!1});await n(r?{...t,prebuilt:!0}:t,{command:`Deploy`})}};export{o as default};
|