cf 1.0.0-beta.10 → 1.0.0-beta.11
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/{abuse-reports-BhSTEz7h.mjs → abuse-reports-DX5xgeka.mjs} +10 -10
- package/dist/{access-D4DN4XZF.mjs → access-DuHs0Mii.mjs} +1 -1
- package/dist/{account-tags-BWEIZLID.mjs → account-tags-CiKwgOWd.mjs} +5 -5
- package/dist/{accounts-ZQvIqGJz.mjs → accounts-DfXSHrkF.mjs} +62 -62
- package/dist/{acm-OQqE8FMc.mjs → acm-BgSr3Ig4.mjs} +7 -7
- package/dist/{addressing-DCFm17JQ.mjs → addressing-B70NFnrX.mjs} +49 -49
- package/dist/{agent-memory-BtfPt2me.mjs → agent-memory-DJRquHeq.mjs} +15 -15
- package/dist/{ai-B0_sZbmy.mjs → ai-CP2oIS-I.mjs} +16 -16
- package/dist/{ai-audit-DaubuhYF.mjs → ai-audit-Bn_BfMFS.mjs} +3 -3
- package/dist/{ai-gateway-CJ-1Dzzr.mjs → ai-gateway-CrrEtzUP.mjs} +44 -44
- package/dist/{ai-search-Dywa1kqX.mjs → ai-search-C4YWVTCa.mjs} +42 -42
- package/dist/{ai-security-2wxMPqKS.mjs → ai-security-Bt_fG65f.mjs} +4 -4
- package/dist/{alerting-yad9DYRv.mjs → alerting-CRr88fVR.mjs} +26 -26
- package/dist/{analytics-DKNw2fVc.mjs → analytics-XqS9OP5B.mjs} +10 -10
- package/dist/{analytics_engine-BA3kF46s.mjs → analytics_engine-CzmYem4f.mjs} +2 -2
- package/dist/{api-security-CSuYMpMO.mjs → api-security-gB1FHrHq.mjs} +57 -57
- package/dist/{argo-DMfNmOV4.mjs → argo-wFCAsYx7.mjs} +5 -5
- package/dist/{artifacts-Cb3hwClm.mjs → artifacts-qFjlNRqb.mjs} +20 -20
- package/dist/{audit-logs-BrjNuiLx.mjs → audit-logs-CpPUjMUP.mjs} +2 -2
- package/dist/auth-7Fk7PVIC.mjs +2 -0
- package/dist/auth-BmJ946bE.mjs +2 -0
- package/dist/auth-Br-t8vL_.mjs +2 -0
- package/dist/auth-token-DeG33BMQ.mjs +8 -0
- package/dist/{autoconfig-DPUztTL2.mjs → autoconfig-D-copdZG.mjs} +2 -2
- package/dist/{banner-ClclgnBn.mjs → banner-Xk4xBN8U.mjs} +1 -1
- package/dist/{basin-catalog-BLsQhJP4.mjs → basin-catalog-CshcpsAH.mjs} +17 -17
- package/dist/{billing-CRwD7oQS.mjs → billing-B-xNxxiP.mjs} +11 -11
- package/dist/{bot-management-CyW8F8Wm.mjs → bot-management-DhafeA2J.mjs} +4 -4
- package/dist/{botnet-feed-BBKsxf3Y.mjs → botnet-feed-D6uCLE_D.mjs} +5 -5
- package/dist/{brand-protection-DSeD8LXl.mjs → brand-protection-c3WiHbYn.mjs} +13 -13
- package/dist/{browser-run-BAcUTwB4.mjs → browser-run-D9_cwaSD.mjs} +24 -24
- package/dist/build-9ihDp-Gy.mjs +2 -0
- package/dist/{build-B5UYMEQH.mjs → build-DrG6TqMw.mjs} +1 -1
- package/dist/{builds-W1HEG7Bv.mjs → builds-Dl8if-2k.mjs} +32 -32
- package/dist/{cache-B7E_PXUp.mjs → cache-CIZokBjd.mjs} +24 -24
- package/dist/{certificate-authorities-D_uAJH9B.mjs → certificate-authorities-NUQzCDK8.mjs} +3 -3
- package/dist/{cf-Bh_fTFIj.mjs → cf-DfQfIu3q.mjs} +1 -1
- package/dist/{chunk-FT2NMTJB-1VFYM1Ro.mjs → chunk-FT2NMTJB-BFqlGcem.mjs} +1 -1
- package/dist/{chunk-KKDV4JPS-DdzLLtnl.mjs → chunk-KKDV4JPS-B_t8sDTz.mjs} +1 -1
- package/dist/{cli-BeXSqJAj.mjs → cli-aChy8ou_.mjs} +1 -1
- package/dist/{client-certificates-DqFcK_s1.mjs → client-certificates-qgLpBn8t.mjs} +6 -6
- package/dist/{client-side-security-DJXZ1XAu.mjs → client-side-security-DZO6Xw14.mjs} +14 -14
- package/dist/{cloud-connector-Czg1GdQi.mjs → cloud-connector-C7vGDCzX.mjs} +3 -3
- package/dist/{cloudflared-DGuau-lC.mjs → cloudflared-CEfZhSQH.mjs} +1 -1
- package/dist/{cloudforce-one-B1IhIZcp.mjs → cloudforce-one-CE7y5UkF.mjs} +237 -237
- package/dist/{command-xU78ACNA.mjs → command-07vhr56i.mjs} +1 -1
- package/dist/{command-DxSJy_ym.mjs → command-B6TpINoN.mjs} +1 -1
- package/dist/{command-BCag-xjk.mjs → command-BWC9CbE7.mjs} +1 -1
- package/dist/{command-B6DqnUwt.mjs → command-BsmF3J_l.mjs} +1 -1
- package/dist/command-C2pNxAeL.mjs +2 -0
- package/dist/{command-TCklVvOY.mjs → command-C65Ed0o9.mjs} +1 -1
- package/dist/{command-DUafPVUr.mjs → command-Cdx___59.mjs} +1 -1
- package/dist/{command-BOLlvEan.mjs → command-CrtDkZNs.mjs} +1 -1
- package/dist/{command-C__qB2mo.mjs → command-D0MKPucK.mjs} +1 -1
- package/dist/{command-DfffeX-k.mjs → command-DHdWKtqx.mjs} +1 -1
- package/dist/{command-DZookrfw.mjs → command-Ds5OVat3.mjs} +1 -1
- package/dist/{command-BrHTpaji.mjs → command-Dv6YavZa.mjs} +1 -1
- package/dist/{command-DzHL5LKI.mjs → command-dAYWrB5y.mjs} +1 -1
- package/dist/{command-K1-DZFJS.mjs → command-eM48o0J6.mjs} +1 -1
- package/dist/{command-6YTtWltE.mjs → command-maDJWJgu.mjs} +1 -1
- package/dist/{completions-Cm9brGAI.mjs → completions-D0280hul.mjs} +1 -1
- package/dist/{connector-interrupts-D93KTMkw.mjs → connector-interrupts-CVjFhU-C.mjs} +3 -3
- package/dist/{connector-telemetry-events-D6CmKR14.mjs → connector-telemetry-events-Bu3LKP6T.mjs} +3 -3
- package/dist/{connector-telemetry-snapshots-WO9IUk0e.mjs → connector-telemetry-snapshots-BbDTIc06.mjs} +3 -3
- package/dist/{connectors-DNT6GTW3.mjs → connectors-DGtx-rPI.mjs} +7 -7
- package/dist/{containers-Ce7IO-Ia.mjs → containers-CzNbBrYE.mjs} +2 -2
- package/dist/{containers-Btx7vCDP.mjs → containers-DEFrbNgO.mjs} +16 -16
- package/dist/{content-scan-C_ROsbTJ.mjs → content-scan-BCtWBCqd.mjs} +6 -6
- package/dist/{context-CEOHpZgd.mjs → context-CquYYyS3.mjs} +2 -2
- package/dist/{cps-BPQqyL2E.mjs → cps-C8BbnbuD.mjs} +1 -1
- package/dist/{csamScanner-D-oO5cxT.mjs → csamScanner-CsJ9H2fA.mjs} +3 -3
- package/dist/{ct-alerting-CnTRE1Fb.mjs → ct-alerting-CYsQZO2H.mjs} +3 -3
- package/dist/{custom-certificates-DvnFBZdJ.mjs → custom-certificates-CA8HqolM.mjs} +7 -7
- package/dist/{custom-csrs-BZ8TXbuQ.mjs → custom-csrs-D0P2vWJE.mjs} +5 -5
- package/dist/{custom-hostnames-CTqf-KlT.mjs → custom-hostnames-CzYMChbh.mjs} +12 -12
- package/dist/{custom-nameservers-B0CpnUVg.mjs → custom-nameservers-Cet3oF56.mjs} +5 -5
- package/dist/{custom-pages-DcoSGN56.mjs → custom-pages-DUkHIaTP.mjs} +10 -10
- package/dist/d1-B2duXfH2.mjs +41 -0
- package/dist/{dcv-delegation-yOtz90qE.mjs → dcv-delegation-BkdRVEAH.mjs} +2 -2
- package/dist/delegate.mjs +1 -1
- package/dist/{deploy-C4p6SzLH.mjs → deploy-BdWBEbLj.mjs} +1 -1
- package/dist/{deploy-input-DTjBGloL.mjs → deploy-input-LmLfj6kI.mjs} +1 -1
- package/dist/{dev-BML-bpNU.mjs → dev-BHkVwAea.mjs} +1 -1
- package/dist/{diagnostics-hOvnx5DT.mjs → diagnostics-9Wj5UWBL.mjs} +7 -7
- package/dist/{dialog-BlUXJKbA.mjs → dialog-Dpi-UVbz.mjs} +1 -1
- package/dist/discover-BYkHr5Ja.mjs +2 -0
- package/dist/{dist-DW47TUGh.mjs → dist-Cpb7_h4N.mjs} +1 -1
- package/dist/{dist-BuCJ_55d.mjs → dist-D1iG7guo.mjs} +1 -1
- package/dist/{dist-C3s9SXTd.mjs → dist-zep5OXGt.mjs} +1 -1
- package/dist/{dls-v6DyEWTd.mjs → dls-Caya7FZc.mjs} +8 -8
- package/dist/{dns-C9sUPsNt.mjs → dns-BLNa0GrP.mjs} +63 -63
- package/dist/{dns-firewall-EDiT-Zli.mjs → dns-firewall-ChCvC5rT.mjs} +8 -8
- package/dist/{dot-prop-IITUZ2XW-BilKo4kO.mjs → dot-prop-IITUZ2XW-BsZYdILY.mjs} +1 -1
- package/dist/dry-run-p9Q7nMZ5.mjs +2 -0
- package/dist/{durable-objects-C01phVwL.mjs → durable-objects-DuRbdp7N.mjs} +3 -3
- package/dist/{email-auth-BgvoEHJk.mjs → email-auth-C28s03aI.mjs} +3 -3
- package/dist/{email-routing-Bggn219w.mjs → email-routing-Ci-xjXIN.mjs} +24 -24
- package/dist/{email-security-_t7rzrzd.mjs → email-security-DPU6xvI9.mjs} +71 -71
- package/dist/{email-sending-_dKCs2VF.mjs → email-sending-kTVAlVKO.mjs} +23 -23
- package/dist/error-sanitization-BbEw--0B.mjs +2 -0
- package/dist/error-sanitization-p5rmb53x.mjs +2 -0
- package/dist/errors-cuuW88wR.mjs +3 -0
- package/dist/{fieldExtractors-Cm5QnkE0.mjs → fieldExtractors-ceaXu4zD.mjs} +4 -4
- package/dist/{firewall-CZEN8iA_.mjs → firewall-BND3qSY2.mjs} +18 -18
- package/dist/{flagship-B_SAI_ZL.mjs → flagship-DfxbNzgx.mjs} +15 -15
- package/dist/{fraud-9_9hobAh.mjs → fraud-DgyYv_CC.mjs} +3 -3
- package/dist/generate-9P8Q_RiO.mjs +2 -0
- package/dist/{generate-CLqGOlOx.mjs → generate-VxmGG8BF.mjs} +1 -1
- package/dist/{google-tag-gateway-O_N0vHRY.mjs → google-tag-gateway-v3p7murv.mjs} +3 -3
- package/dist/{healthchecks-Bt3Gw_JZ.mjs → healthchecks-CByb4qYA.mjs} +10 -10
- package/dist/{hostnames-DdOube3R.mjs → hostnames-3CqeMF5g.mjs} +6 -6
- package/dist/{hyperdrive-C14NAh9l.mjs → hyperdrive-CmyYTE-K.mjs} +9 -9
- package/dist/{iam-DUW7neMx.mjs → iam-CV_M681j.mjs} +24 -24
- package/dist/{images-B9dnr1z0.mjs → images-DaLPjskW.mjs} +38 -38
- package/dist/index.mjs +1 -1
- package/dist/{init-BGcAIvV7.mjs → init-CBKifk5L.mjs} +2 -2
- package/dist/{intel-BQpZMck3.mjs → intel-MpftjuPB.mjs} +37 -37
- package/dist/interactive-mJQ_IrGd.mjs +2 -0
- package/dist/{ips-PT_uQKAf.mjs → ips-WWvPwSBc.mjs} +1 -1
- package/dist/{k2-nPYti7Y0.mjs → k2-D0QYUFqT.mjs} +6 -6
- package/dist/{keyless-certificates-BHvas2q1.mjs → keyless-certificates-DqILy3t9.mjs} +6 -6
- package/dist/{keys-O5kAW9ox.mjs → keys-DhX4AcqF.mjs} +2 -2
- package/dist/{kv-BUP_ZLM_.mjs → kv-DLUfUL0_.mjs} +9 -9
- package/dist/{lazy-command-glNW3jzf.mjs → lazy-command--5YpWUVY.mjs} +1 -1
- package/dist/{leaked-credential-checks-De9hI1rl.mjs → leaked-credential-checks-C0U1oYM5.mjs} +8 -8
- package/dist/{load-balancers-Cs6bUHS1.mjs → load-balancers-BJKI9lm7.mjs} +39 -39
- package/dist/local-DkYQiSQQ.mjs +2 -0
- package/dist/{local-B5oRPTEN.mjs → local-rYpzEQb-.mjs} +1 -1
- package/dist/{local-runtime-CZnegFEM.mjs → local-runtime-DZTTIe6x.mjs} +1 -1
- package/dist/{login-C5nSIS-T.mjs → login-CnE2Ii_F.mjs} +1 -1
- package/dist/login-bnylLTit.mjs +5 -0
- package/dist/{logo-matches-BkQKdu4Z.mjs → logo-matches-DFZybI0C.mjs} +3 -3
- package/dist/{logos-C_sv-boo.mjs → logos-Da2YtqSN.mjs} +4 -4
- package/dist/{logpush-NUcyMKHi.mjs → logpush-Q7WIEHS1.mjs} +23 -23
- package/dist/{logs-BZT4PlqZ.mjs → logs-c3b3USyS.mjs} +12 -12
- package/dist/{magic-cloud-networking-DQnSdmgA.mjs → magic-cloud-networking-BoyDmFq3.mjs} +37 -37
- package/dist/{magic-network-monitoring-pHTU6aS8.mjs → magic-network-monitoring-BkUbpMUp.mjs} +18 -18
- package/dist/{magic-transit-5302bQNh.mjs → magic-transit-4-THD45G.mjs} +161 -161
- package/dist/{managed-defense-8OEfDzuO.mjs → managed-defense-CTMqSp6z.mjs} +9 -9
- package/dist/{managed-transforms-CCpUz4TY.mjs → managed-transforms-DcYAvqTe.mjs} +4 -4
- package/dist/{matches-BSiYXs99.mjs → matches-hnU16rSJ.mjs} +3 -3
- package/dist/{mcp-CCMiS75R.mjs → mcp-kZX4irfN.mjs} +15 -15
- package/dist/{mesh-DKBGTlCD.mjs → mesh-Dxzvvso6.mjs} +12 -12
- package/dist/{migrate-BJ9Go_wP.mjs → migrate-BNvUWrjy.mjs} +1 -1
- package/dist/{monetization-CFf_lb6x.mjs → monetization-Dsqj9DCA.mjs} +11 -11
- package/dist/{mtls-certificates-DsF3NFNs.mjs → mtls-certificates-BSbMwIna.mjs} +6 -6
- package/dist/{network-interconnects-YiRUBbjx.mjs → network-interconnects-osO_vAPu.mjs} +17 -17
- package/dist/{network-Bm0qYRqY.mjs → network-mEnXTEiG.mjs} +24 -24
- package/dist/{oauth-cNZUky3h.mjs → oauth-CeZ3d_dB.mjs} +2 -2
- package/dist/{oauth-clients-CP6alY0_.mjs → oauth-clients-CWPHi-Yn.mjs} +7 -7
- package/dist/{oauth-scopes-xl-pcWdg.mjs → oauth-scopes-CxpRD6d7.mjs} +1 -1
- package/dist/{oauth-DxGgIwFc.mjs → oauth-w0fWmrwU.mjs} +1 -1
- package/dist/{observability-Bp71PtlD.mjs → observability-BxL2RqWZ.mjs} +44 -44
- package/dist/{organization-Dbom1gTR.mjs → organization-DNieJ1xJ.mjs} +1 -1
- package/dist/{organizations-OUMVsuen.mjs → organizations-BIXPmTy5.mjs} +1 -1
- package/dist/{origin-ca-certificates-B3-T0-Nn.mjs → origin-ca-certificates-dVJvSIH8.mjs} +1 -1
- package/dist/{origin-post-quantum-encryption-CGB6AfPa.mjs → origin-post-quantum-encryption-CO6tDW1t.mjs} +3 -3
- package/dist/{origin-tls-client-auth-CgzzfAWr.mjs → origin-tls-client-auth-DeTY8aN2.mjs} +14 -14
- package/dist/output-ClYel9WX.mjs +2 -0
- package/dist/{page-rules-B9BQKU4_.mjs → page-rules-DA552Ra4.mjs} +7 -7
- package/dist/{pages-DZPdyuT4.mjs → pages-B0x7tidm.mjs} +27 -27
- package/dist/{pay-per-crawl-CnveMVDi.mjs → pay-per-crawl-DoTg9VP7.mjs} +32 -32
- package/dist/{pay-per-use-Bpxe8PHv.mjs → pay-per-use-yRO2QBfe.mjs} +3 -3
- package/dist/{pipelines-CHev3o5G.mjs → pipelines-CQxrm9ao.mjs} +20 -20
- package/dist/{precursor-C9PK9Bue.mjs → precursor-FiGYDRV9.mjs} +2 -2
- package/dist/previews-BthBa50j.mjs +4 -0
- package/dist/{progress-A61dRbXl.mjs → progress-TLUEIYE6.mjs} +1 -1
- package/dist/{prompt-CGUzvBgY.mjs → prompt-Ck_1PCHm.mjs} +1 -1
- package/dist/{queries-f-btyefs.mjs → queries-C0RRdol7.mjs} +4 -4
- package/dist/{queues-kLNdeb3q.mjs → queues-sLgvjsRP.mjs} +26 -26
- package/dist/{r2-D_awYx2p.mjs → r2-C2PllL6i.mjs} +63 -63
- package/dist/{radar-CU4T02Ag.mjs → radar-Bez6k9Dw.mjs} +1 -1
- package/dist/raw-fetch-DNxNCoeP.mjs +2 -0
- package/dist/{realtime-C0dvcBBM.mjs → realtime-D-HSXznX.mjs} +78 -78
- package/dist/{registrar-CHc-4vcf.mjs → registrar-DwHrG9QR.mjs} +9 -9
- package/dist/{registrar-sandbox-Dq8LV2AI.mjs → registrar-sandbox-jNukmzQP.mjs} +6 -6
- package/dist/{registry-Cg5lP8oo.mjs → registry-CsSLAAOE.mjs} +1 -1
- package/dist/{reporting-4u21g6Dk.mjs → reporting-DolhAb10.mjs} +7 -7
- package/dist/{request-headers-D31kdxrQ.mjs → request-headers-Lhj314mk.mjs} +1 -1
- package/dist/{request-tracers-CupJ_83j.mjs → request-tracers-w72hKc33.mjs} +2 -2
- package/dist/resolve-Djf2xgBx.mjs +2 -0
- package/dist/{resource-sharing-CO-Lh-u7.mjs → resource-sharing-DTrSkqI4.mjs} +18 -18
- package/dist/{resource-tagging-D0R5SzR6.mjs → resource-tagging-aURR4fIJ.mjs} +2 -2
- package/dist/{rules-BsmKzB9H.mjs → rules-C8a7cV-W.mjs} +8 -8
- package/dist/{rulesets-HOOnxHZZ.mjs → rulesets-RJ6yBefy.mjs} +17 -17
- package/dist/{rum-wcLEvVJl.mjs → rum-Bk1dPW4p.mjs} +14 -14
- package/dist/run-BJOAPmsz.mjs +2 -0
- package/dist/{run-CIJTelJL.mjs → run-iFM5TxtQ.mjs} +1 -1
- package/dist/{schema-flags-D8vL2oiF.mjs → schema-flags-PagOq-G2.mjs} +1 -1
- package/dist/{schema-GdBsV4P7.mjs → schema-v7mOxMdx.mjs} +1 -1
- package/dist/{scim-BkdJmAS8.mjs → scim-C0FmjkkV.mjs} +10 -10
- package/dist/{secrets-store-CHs0oYA0.mjs → secrets-store-cG_5RMzK.mjs} +11 -11
- package/dist/{security-insights-vsl-4xFa.mjs → security-insights-DVAqroY5.mjs} +20 -20
- package/dist/{security-txt-Fnl3LdSn.mjs → security-txt-rfrrdiZV.mjs} +4 -4
- package/dist/{session-CZTuHcbm.mjs → session-B6mFkaVZ.mjs} +1 -1
- package/dist/shared-BqsWoApw.mjs +2 -0
- package/dist/{smart-shield-DB0E7cZI.mjs → smart-shield-_HA814Im.mjs} +11 -11
- package/dist/{snippets-CFaF_NyG.mjs → snippets-mRelEw0p.mjs} +10 -10
- package/dist/{spawn-B0Sl8lUu.mjs → spawn-BzPhcLJI.mjs} +1 -1
- package/dist/{spectrum-DtG0jYjE.mjs → spectrum-BwtOiaDw.mjs} +11 -11
- package/dist/{speed-B-RiNHGK.mjs → speed-DmqsZtiJ.mjs} +11 -11
- package/dist/{src-CM3XaB4p.mjs → src--KDGqL5N.mjs} +5 -5
- package/dist/{ssl-DBVpCZAM.mjs → ssl-DCvfveJB.mjs} +16 -16
- package/dist/{startup-profile-CR7GMuLx.mjs → startup-profile-BCe9k9sR.mjs} +1 -1
- package/dist/startup-profile-WrwRyMwH.mjs +2 -0
- package/dist/{state-BaGRaYow.mjs → state-BPwdiNO_.mjs} +1 -1
- package/dist/state-a1tTOGjm.mjs +2 -0
- package/dist/{stream-cAdBvpS1.mjs → stream-aroClJeD.mjs} +56 -56
- package/dist/{submit-Bkd7l2rK.mjs → submit-BBKhoKT8.mjs} +2 -2
- package/dist/{tags--eph7JbN.mjs → tags-Djw0e-4j.mjs} +2 -2
- package/dist/telemetry-DoBQOGRk.mjs +2 -0
- package/dist/{telemetry-51etasAu.mjs → telemetry-DrFNujdx.mjs} +1 -1
- package/dist/{tenant-custom-nameservers-B5IIIwbz.mjs → tenant-custom-nameservers-XCbXryBZ.mjs} +1 -1
- package/dist/{tenant-Bj-He2xO.mjs → tenant-tc1wb_ym.mjs} +1 -1
- package/dist/{tools-BJZ0DDlL.mjs → tools-CB4NleeJ.mjs} +1 -1
- package/dist/{tunnels-CgtuRpcD.mjs → tunnels-C2FTswb6.mjs} +13 -13
- package/dist/{turnstile-Bmcnrzw7.mjs → turnstile-BV4Mdd-j.mjs} +6 -6
- package/dist/{ui-BQxRjahW.mjs → ui-D1hhIDIs.mjs} +1 -1
- package/dist/update-check-CFt6cMOi.mjs +2 -0
- package/dist/{update-check-DC0qP_8z.mjs → update-check-Dtj9fzNe.mjs} +1 -1
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-info-DhVehaT8.mjs → url-info-CeegsDK7.mjs} +2 -2
- package/dist/{url-normalization-BpGDUUQc.mjs → url-normalization-Dbypc9wz.mjs} +4 -4
- package/dist/{url-scanner-DiLdqsQk.mjs → url-scanner-BFXMrpJF.mjs} +8 -8
- package/dist/{user-B6P5_OjP.mjs → user-3uwLMH78.mjs} +1 -1
- package/dist/{values-Cxx4Lxrd.mjs → values-BTncDc3U.mjs} +2 -2
- package/dist/{vectorize-YyxVpql-.mjs → vectorize-CtMAtx8r.mjs} +17 -17
- package/dist/version-oN1bmOgM.mjs +2 -0
- package/dist/{waiting-rooms-BdahlCdD.mjs → waiting-rooms-1xDvjF13.mjs} +25 -25
- package/dist/{web-assets-yaKxN4w_.mjs → web-assets-BfEprX1S.mjs} +29 -29
- package/dist/{web3-Bu9c_QAt.mjs → web3-DNbp5sZw.mjs} +13 -13
- package/dist/{workers-5GgoGA2e.mjs → workers-DK_JgS4Y.mjs} +18 -18
- package/dist/{workers-builds-h-1FJjE1.mjs → workers-builds-CdhwmmsQ.mjs} +7 -7
- package/dist/{workers-for-platforms-CV9iRrp9.mjs → workers-for-platforms-CP6IqxrK.mjs} +23 -23
- package/dist/{workers-vpc-C1oUHHqk.mjs → workers-vpc-LVfayM2-.mjs} +6 -6
- package/dist/{workflows-dtMlkj1-.mjs → workflows-CA5K8FFb.mjs} +23 -23
- package/dist/{wrangler-migration-CJEb9hY3.mjs → wrangler-migration-B0mKHqGd.mjs} +1 -1
- package/dist/{zaraz-838AbMEX.mjs → zaraz-BY60ZUQ4.mjs} +11 -11
- package/dist/{zero-trust-CYt-eELJ.mjs → zero-trust-CQNohO7_.mjs} +416 -416
- package/dist/{zone-uJwRLSnn.mjs → zone-BVDW2UGd.mjs} +2 -2
- package/dist/{zones-Dpofsnth.mjs → zones-CcZL0YQp.mjs} +44 -44
- package/package.json +9 -4
- package/dist/auth-BBlAI8HG.mjs +0 -2
- package/dist/auth-BIr56Mbx.mjs +0 -8
- package/dist/build-DLZ9gBNA.mjs +0 -2
- package/dist/command-CAtsHc1V.mjs +0 -2
- package/dist/d1-m7UfzBzl.mjs +0 -41
- package/dist/discover-DwczTkRX.mjs +0 -2
- package/dist/dry-run-Bq0JAsbX.mjs +0 -2
- package/dist/error-sanitization-CJ5OLJrh.mjs +0 -2
- package/dist/error-sanitization-hmi1CqE5.mjs +0 -2
- package/dist/generate-BPqoDbck.mjs +0 -2
- package/dist/interactive-SgAjen2z.mjs +0 -2
- package/dist/local-Bj-l0TP6.mjs +0 -2
- package/dist/login-CUup7w0e.mjs +0 -5
- package/dist/output-CvQFJkvi.mjs +0 -2
- package/dist/previews-BIMI1dTz.mjs +0 -4
- package/dist/raw-fetch-CvkmFO23.mjs +0 -2
- package/dist/resolve-PZuJ878-.mjs +0 -2
- package/dist/run-quhbAvQi.mjs +0 -2
- package/dist/sdk-BCzcRJCi.mjs +0 -3
- package/dist/shared-BS30oCf8.mjs +0 -2
- package/dist/startup-profile-CLmojOrn.mjs +0 -2
- package/dist/state-CpXhcMdX.mjs +0 -2
- package/dist/telemetry-Q3_UmwHj.mjs +0 -2
- package/dist/update-check-BqSpgzHk.mjs +0 -2
- package/dist/version-C0pInAZ9.mjs +0 -2
- /package/dist/{Page-CjJht2qT.mjs → Page-DAgOEX17.mjs} +0 -0
- /package/dist/{alerts-DY_7Nknx.mjs → alerts-D3iKtzoN.mjs} +0 -0
- /package/dist/{autorag-K396-M2S.mjs → autorag-pvRfDwne.mjs} +0 -0
- /package/dist/{body-parser-hh2avzkz.mjs → body-parser-NjzJZMOV.mjs} +0 -0
- /package/dist/{brands-DeLbFxSt.mjs → brands-DP5Ndir1.mjs} +0 -0
- /package/dist/{browser-extension-C1zmKFDG.mjs → browser-extension-Dee2Y1qn.mjs} +0 -0
- /package/dist/{chunk-WMOON6TZ-D_ToS88f.mjs → chunk-WMOON6TZ-B8xCqjB1.mjs} +0 -0
- /package/dist/{clear-CRfI7WS7.mjs → clear-qLKPlJqb.mjs} +0 -0
- /package/dist/{cli-types-DoVT5q_M.mjs → cli-types-_Kmwfpnp.mjs} +0 -0
- /package/dist/{connector-telemetry-events-latest-D8p_dR8s.mjs → connector-telemetry-events-latest-_aCmWeZx.mjs} +0 -0
- /package/dist/{connector-telemetry-snapshots-latest-COFmzmlk.mjs → connector-telemetry-snapshots-latest-CffEplpV.mjs} +0 -0
- /package/dist/{delegate-B6LetRpZ.mjs → delegate-CCGgla7X.mjs} +0 -0
- /package/dist/{discover-C5aiI6u0.mjs → discover-t6E9lpf3.mjs} +0 -0
- /package/dist/{domain-info-aiwP60Fo.mjs → domain-info-BQh9XapD.mjs} +0 -0
- /package/dist/{gt-DmcMNPX6.mjs → gt-KlYHH-UC.mjs} +0 -0
- /package/dist/{health-Bz33n-_F.mjs → health--10IShMi.mjs} +0 -0
- /package/dist/{input-validation-Dk52b0me.mjs → input-validation-0CeePPHp.mjs} +0 -0
- /package/dist/{interactive-C-o16XQs.mjs → interactive-D80kbTap.mjs} +0 -0
- /package/dist/{internal-BHrJbbdA.mjs → internal-BUs583vv.mjs} +0 -0
- /package/dist/{lifecycle-C7tAC1Mn.mjs → lifecycle-Cyc3fmyN.mjs} +0 -0
- /package/dist/{live-MeJQXIei.mjs → live-VCSxA0N9.mjs} +0 -0
- /package/dist/{open-PCXX3ZDZ-BKRik1gi.mjs → open-PCXX3ZDZ-C7gpxSsl.mjs} +0 -0
- /package/dist/{project-settings-DO6njFg_.mjs → project-settings-Bf6rReo1.mjs} +0 -0
- /package/dist/{r2-data-catalog-2jQrdAdo.mjs → r2-data-catalog-Bg7zq1IB.mjs} +0 -0
- /package/dist/{rate-limit-analytics-CU55zqCU.mjs → rate-limit-analytics-D3q0mGv2.mjs} +0 -0
- /package/dist/{rate-limits-CZ-qHDPK.mjs → rate-limits-BIxlBuMn.mjs} +0 -0
- /package/dist/{ready-BOpbZ1pN.mjs → ready-CAgelFmC.mjs} +0 -0
- /package/dist/{recent-submissions-KDqD2HyS.mjs → recent-submissions-B3TOjNmk.mjs} +0 -0
- /package/dist/{refute-DkF4XIMw.mjs → refute-BZNkFpBB.mjs} +0 -0
- /package/dist/{resolve-BCTrtcx7.mjs → resolve-CGKqk7q8.mjs} +0 -0
- /package/dist/{scan-logo-DQkf6glG.mjs → scan-logo-StecHiaf.mjs} +0 -0
- /package/dist/{scan-page-CMOJ_E0n.mjs → scan-page-B4adr-vD.mjs} +0 -0
- /package/dist/{search-Bre1Zwn3.mjs → search-Devngw4M.mjs} +0 -0
- /package/dist/{signed-url-24ZbX4yV.mjs → signed-url-ChR5eXXd.mjs} +0 -0
- /package/dist/{submission-info-BmkbZVqM.mjs → submission-info-BGb81HZN.mjs} +0 -0
- /package/dist/{total-queries-j8OAF_cE.mjs → total-queries-_wa6KxEl.mjs} +0 -0
- /package/dist/{tracked-domains-fe3EWYmF.mjs → tracked-domains-BesKGqfI.mjs} +0 -0
- /package/dist/{verify-CKgZYvln.mjs → verify-CYM5GlPu.mjs} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{r as e}from"./theme-BIWQFmZ0.mjs";import{t}from"./cli-exit-Dqoo6Jgb.mjs";import{M as n}from"./dist-
|
|
2
|
+
import{r as e}from"./theme-BIWQFmZ0.mjs";import{t}from"./cli-exit-Dqoo6Jgb.mjs";import{M as n}from"./dist-D1iG7guo.mjs";import"./ui-D1hhIDIs.mjs";import{n as r}from"./dist-Cpb7_h4N.mjs";import{i,r as a}from"./autoconfig-D-copdZG.mjs";import{n as o,t as s}from"./spawn-BzPhcLJI.mjs";import c from"node:path";import{readBuildOutput as l}from"@cloudflare/build-output-utils";import{convertToWranglerConfig as u}from"@cloudflare/config";var d=class extends Error{constructor(e){super(e),this.name=`BuildOutputConfigError`}};function f(e,t){if(e!==void 0){if(t===void 0)throw new d(`The Build Output does not record which mode it was created with, but this command requested mode "${e}". Rebuild with "--mode ${e}" before deploying.`);if(t!==e)throw new d(`The Build Output was created with mode "${t}", but this command requested mode "${e}". To use the existing Build Output, rerun with "--mode ${t}". To deploy in ${e} mode, rebuild with "--mode ${e}" before deploying.`)}}const p={type:`string`,description:`Name of the Worker in the Build Output to use (defaults to the default Worker)`,requiresArg:!0,coerce:e=>{if(Array.isArray(e))throw Error(`--worker can only be specified once.`);return e}};function m(e,t){if(t===void 0)return e.default;let n=Object.values(e).filter(e=>e.config.name===t);if(n.length>1)throw new d(`The Build Output contains more than one Worker named "${t}".`);if(n[0]!==void 0)return n[0];let{default:r,...i}=e;throw new d(`The Build Output has no Worker named "${t}". Available Workers: ${[`${r.config.name} (default)`,...Object.values(i).map(e=>e.config.name).sort()].join(`, `)}.`)}function h(e,t){let n=e.config,{buildContext:r,...i}=t,{manifest:a,...o}=n,s=u({...i,worker:o,containers:[]});n.manifest?.mainModule&&e.bundleDir&&(s.main=c.join(e.bundleDir,n.manifest.mainModule));let l=c.resolve(`cloudflare.config.ts`),{validationConfig:d,containerReferences:f}=_(s),p=g(d,e.configPath,l);v(p,f);let{containers:m,...h}=p;return{wranglerConfig:h,builtConfig:n}}function g(e,t,r){let{config:i,diagnostics:a}=n(e,t,r,{});if(a.hasErrors())throw new d(a.renderErrors());return a.hasWarnings()&&console.warn(a.renderWarnings()),i}function _(e){let{containers:t,...n}=e,r=new Map;return n.exports!==void 0&&(n.exports=Object.fromEntries(Object.entries(n.exports).map(([e,t])=>{if(!(`container`in t)||typeof t.container!=`string`)return[e,t];r.set(e,t.container);let{container:n,...i}=t;return[e,i]}))),{validationConfig:n,containerReferences:r}}function v(e,t){e.exports===void 0||t.size===0||(e.exports=Object.fromEntries(Object.entries(e.exports).map(([e,n])=>{let r=t.get(e);return[e,r===void 0?n:{...n,container:r}]})))}function y(e){return e}async function b(n,{worker:c,...u}={},d={}){let f=u.output??`stdout`,p=process.cwd(),{details:g,configuration:_}=await a(p,u),v=_?.buildCommand??g?.buildCommand,y={...g?.env,...d.isPreview?{CLOUDFLARE_PREVIEW_BUILD:`true`}:{}};if(v&&n&&!g?.framework?.supportsMode)throw Error(`The detected command \`${v}\` does not currently support \`--mode\`.`);f!==`silent`&&r.message(e.bold(`Build`),{symbol:e.muted(`├`),spacing:0,output:f===`stderr`?process.stderr:void 0});let b=n?[`--mode`,n]:[],S;if(v)S=await i(v,p,{...u,env:y,args:b});else{let e=o(p);f!==`silent`&&r.message(`Delegating to ${x(e)}`,{spacing:0,output:f===`stderr`?process.stderr:void 0}),S=await s(e,`build`,b,{...u,env:y})}if(S.exitCode!==0||S.signal)throw new t(S.exitCode,{signal:S.signal});let{workers:C,rootConfig:w}=await l(p);h(m(C,c),w),f!==`silent`&&r.success(`Build complete`,{spacing:0,output:f===`stderr`?process.stderr:void 0})}function x(e){switch(e.impl.pkg){case`@cloudflare/vite-plugin`:return`Vite`;case`wrangler`:return`Wrangler`;case`cloudflare-py-dev-server`:return`the Python dev server`;case`cloudflare-rs-dev-server`:return`the Rust dev server`;default:return e.impl.pkg}}const S={command:`build`,describe:`Build a project for Cloudflare`,builder:y,handler:async e=>{await b(e.mode)}};export{m as a,h as i,b as n,f as o,p as r,d as s,S as t};
|
|
@@ -1,71 +1,71 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-rYpzEQb-.mjs";import{n as t}from"./auth-Br-t8vL_.mjs";import{a as n,t as r}from"./context-CquYYyS3.mjs";import{t as i}from"./output-ClYel9WX.mjs";import{t as a}from"./dry-run-p9Q7nMZ5.mjs";import{t as o}from"./progress-TLUEIYE6.mjs";import{t as s}from"./run-iFM5TxtQ.mjs";import"./telemetry-DoBQOGRk.mjs";import{n as c,t as l}from"./body-parser-NjzJZMOV.mjs";import{n as u}from"./input-validation-0CeePPHp.mjs";import{a as d,i as f,n as p}from"./prompt-Ck_1PCHm.mjs";import{t as m}from"./cli-types-_Kmwfpnp.mjs";function h(e){return e.usage(`$0 builds cancel <build-uuid>
|
|
3
3
|
|
|
4
|
-
Cancel a queued or running build.`).positional(`build-uuid`,{type:`string`,description:`Build UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ee={command:`cancel <build-uuid>`,describe:`Cancel a Workers build`,builder:h,handler:async c=>s({command:`builds cancel`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf builds cancel`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
4
|
+
Cancel a queued or running build.`).positional(`build-uuid`,{type:`string`,description:`Build UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ee={command:`cancel <build-uuid>`,describe:`Cancel a Workers build`,builder:h,handler:async c=>s({command:`builds cancel`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf builds cancel`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/builds/${c[`build-uuid`]==null?`<build-uuid>`:encodeURIComponent(String(c[`build-uuid`]))}/cancel`,pathParams:{"build-uuid":String(c[`build-uuid`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l,i(await o(`Updating`,async()=>s.builds.cancel({account_id:l,build_uuid:c[`build-uuid`]})),{successLabel:`Updated`})})};function te(e){return e.usage(`$0 builds create <trigger-uuid>
|
|
5
5
|
|
|
6
|
-
Start a build for a branch or commit using the selected trigger.`).positional(`trigger-uuid`,{type:`string`,description:`Trigger UUID.`,demandOption:!0}).option(`seed-repo-owner`,{type:`string`,description:`Repository owner or namespace.`}).option(`seed-repo-path`,{type:`string`,description:`Path within the repository to seed.`}).option(`seed-repo-provider`,{type:`string`,description:`Source control provider for the seed repository.`,choices:[`github`,`gitlab`]}).option(`seed-repo-repository`,{type:`string`,description:`Repository name.`}).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=>{if([`seed-repo-owner`,`seed-repo-path`,`seed-repo-provider`,`seed-repo-repository`].some(t=>e[t]!==void 0)){let t=[`seed-repo-owner`,`seed-repo-provider`,`seed-repo-repository`].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 --seed_repo-* flag is set`)}return!0})}const g={command:`create <trigger-uuid>`,describe:`Start a Workers build`,builder:te,handler:async d=>s({command:`builds create`,classification:{safeFlags:[`seed-repo-provider`,`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf builds create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
6
|
+
Start a build for a branch or commit using the selected trigger.`).positional(`trigger-uuid`,{type:`string`,description:`Trigger UUID.`,demandOption:!0}).option(`seed-repo-owner`,{type:`string`,description:`Repository owner or namespace.`}).option(`seed-repo-path`,{type:`string`,description:`Path within the repository to seed.`}).option(`seed-repo-provider`,{type:`string`,description:`Source control provider for the seed repository.`,choices:[`github`,`gitlab`]}).option(`seed-repo-repository`,{type:`string`,description:`Repository name.`}).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=>{if([`seed-repo-owner`,`seed-repo-path`,`seed-repo-provider`,`seed-repo-repository`].some(t=>e[t]!==void 0)){let t=[`seed-repo-owner`,`seed-repo-provider`,`seed-repo-repository`].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 --seed_repo-* flag is set`)}return!0})}const g={command:`create <trigger-uuid>`,describe:`Start a Workers build`,builder:te,handler:async d=>s({command:`builds create`,classification:{safeFlags:[`seed-repo-provider`,`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf builds create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/triggers/${d[`trigger-uuid`]==null?`<trigger-uuid>`:encodeURIComponent(String(d[`trigger-uuid`]))}/builds`,pathParams:{"trigger-uuid":String(d[`trigger-uuid`]??``)},bodyKind:`json`,body:d.body===void 0?l({seed_repo:{owner:u(d[`seed-repo-owner`],`seed-repo-owner`,`text`),path:u(d[`seed-repo-path`],`seed-repo-path`,`text`),provider:u(d[`seed-repo-provider`],`seed-repo-provider`,`text`),repository:u(d[`seed-repo-repository`],`seed-repo-repository`,`text`)}}):c(d.body)});return}let s=await t(d),f=d.local?e:await r();if(d.accountId=f,d.body){let e=c(d.body);i(await o(`Creating`,async()=>s.builds.create({body:e,account_id:f,trigger_uuid:d[`trigger-uuid`]})),{successLabel:`Created`});return}let p=l({seed_repo:{owner:u(d[`seed-repo-owner`],`seed-repo-owner`,`text`),path:u(d[`seed-repo-path`],`seed-repo-path`,`text`),provider:u(d[`seed-repo-provider`],`seed-repo-provider`,`text`),repository:u(d[`seed-repo-repository`],`seed-repo-repository`,`text`)}});i(await o(`Creating`,async()=>s.builds.create({body:p,account_id:f,trigger_uuid:d[`trigger-uuid`]})),{successLabel:`Created`})})};function _(e){return e.usage(`$0 builds deploy-hooks create <script-name>
|
|
7
7
|
|
|
8
|
-
Create an HTTP hook that starts a build for a selected Worker branch.`).positional(`script-name`,{type:`string`,description:`Human-readable name of the worker.`,demandOption:!0}).option(`branch`,{type:`string`,description:`Git branch name.`}).option(`deploy-hook-name`,{type:`string`,description:`Deploy hook name (1-58 characters).`}).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 <script-name>`,describe:`Create a deploy hook`,builder:_,handler:async f=>s({command:`builds deploy-hooks create`,classification:{safeFlags:[`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf builds deploy-hooks create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
8
|
+
Create an HTTP hook that starts a build for a selected Worker branch.`).positional(`script-name`,{type:`string`,description:`Human-readable name of the worker.`,demandOption:!0}).option(`branch`,{type:`string`,description:`Git branch name.`}).option(`deploy-hook-name`,{type:`string`,description:`Deploy hook name (1-58 characters).`}).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 <script-name>`,describe:`Create a deploy hook`,builder:_,handler:async f=>s({command:`builds deploy-hooks create`,classification:{safeFlags:[`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf builds deploy-hooks create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/workers/${f[`script-name`]==null?`<script-name>`:encodeURIComponent(String(f[`script-name`]))}/deploy_hooks`,pathParams:{"script-name":String(f[`script-name`]??``)},bodyKind:`json`,body:f.body===void 0?l({branch:u(f.branch,`branch`,`text`),deploy_hook_name:u(f[`deploy-hook-name`],`deploy-hook-name`,`text`)}):c(f.body)});return}let s=await t(f),p=f.local?e:await r();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Creating`,async()=>s.builds.deployHooks.create({body:e,account_id:p,script_name:f[`script-name`]})),{successLabel:`Created`});return}f.branch===void 0&&(f.branch=await d(`branch`,`Git branch name.`)),f[`deploy-hook-name`]===void 0&&(f[`deploy-hook-name`]=await d(`deploy-hook-name`,`Deploy hook name (1-58 characters).`));let m=l({branch:u(f.branch,`branch`,`text`),deploy_hook_name:u(f[`deploy-hook-name`],`deploy-hook-name`,`text`)});i(await o(`Creating`,async()=>s.builds.deployHooks.create({body:m,account_id:p,script_name:f[`script-name`]})),{successLabel:`Created`})})};function y(e){return e.usage(`$0 builds deploy-hooks delete <deploy-hook-uuid>
|
|
9
9
|
|
|
10
|
-
Delete a deploy hook so its UUID can no longer start builds.`).positional(`deploy-hook-uuid`,{type:`string`,description:`Deploy hook UUID`,demandOption:!0}).option(`script-name`,{type:`string`,description:`Human-readable name of the worker.`,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 b={command:`delete <deploy-hook-uuid>`,describe:`Delete a deploy hook`,builder:y,handler:async c=>s({command:`builds deploy-hooks delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf builds deploy-hooks delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
10
|
+
Delete a deploy hook so its UUID can no longer start builds.`).positional(`deploy-hook-uuid`,{type:`string`,description:`Deploy hook UUID`,demandOption:!0}).option(`script-name`,{type:`string`,description:`Human-readable name of the worker.`,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 b={command:`delete <deploy-hook-uuid>`,describe:`Delete a deploy hook`,builder:y,handler:async c=>s({command:`builds deploy-hooks delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf builds deploy-hooks delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/workers/${c[`script-name`]==null?`<script-name>`:encodeURIComponent(String(c[`script-name`]))}/deploy_hooks/${c[`deploy-hook-uuid`]==null?`<deploy-hook-uuid>`:encodeURIComponent(String(c[`deploy-hook-uuid`]))}`,pathParams:{"script-name":String(c[`script-name`]??``),"deploy-hook-uuid":String(c[`deploy-hook-uuid`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();if(c.accountId=l,!await p({force:!!c.force})){process.stderr.write(`Aborted.
|
|
11
11
|
`);return}i(await o(`Deleting`,async()=>s.builds.deployHooks.delete({account_id:l,script_name:c[`script-name`],deploy_hook_uuid:c[`deploy-hook-uuid`]})),{successLabel:`Deleted`})})};function x(e){return e.usage(`$0 builds deploy-hooks get <deploy-hook-uuid>
|
|
12
12
|
|
|
13
|
-
Retrieve the name, branch, Worker identifier, and timestamps for a deploy hook.`).positional(`deploy-hook-uuid`,{type:`string`,description:`Deploy hook UUID`,demandOption:!0}).option(`script-name`,{type:`string`,description:`Human-readable name of the worker.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`get <deploy-hook-uuid>`,describe:`Get a deploy hook`,builder:x,handler:async c=>s({command:`builds deploy-hooks get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf builds deploy-hooks get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
13
|
+
Retrieve the name, branch, Worker identifier, and timestamps for a deploy hook.`).positional(`deploy-hook-uuid`,{type:`string`,description:`Deploy hook UUID`,demandOption:!0}).option(`script-name`,{type:`string`,description:`Human-readable name of the worker.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`get <deploy-hook-uuid>`,describe:`Get a deploy hook`,builder:x,handler:async c=>s({command:`builds deploy-hooks get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf builds deploy-hooks get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/workers/${c[`script-name`]==null?`<script-name>`:encodeURIComponent(String(c[`script-name`]))}/deploy_hooks/${c[`deploy-hook-uuid`]==null?`<deploy-hook-uuid>`:encodeURIComponent(String(c[`deploy-hook-uuid`]))}`,pathParams:{"script-name":String(c[`script-name`]??``),"deploy-hook-uuid":String(c[`deploy-hook-uuid`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l,i(await o(`Loading`,async()=>s.builds.deployHooks.get({account_id:l,script_name:c[`script-name`],deploy_hook_uuid:c[`deploy-hook-uuid`]})),{successLabel:`Loaded`})})};function C(e){return e.usage(`$0 builds deploy-hooks list
|
|
14
14
|
|
|
15
|
-
List the branch-specific deploy hooks configured for a Worker.`).option(`script-name`,{type:`string`,description:`Human-readable name of the worker.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const w={command:`list`,describe:`List deploy hooks`,builder:C,handler:async c=>s({command:`builds deploy-hooks list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf builds deploy-hooks list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
15
|
+
List the branch-specific deploy hooks configured for a Worker.`).option(`script-name`,{type:`string`,description:`Human-readable name of the worker.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const w={command:`list`,describe:`List deploy hooks`,builder:C,handler:async c=>s({command:`builds deploy-hooks list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf builds deploy-hooks list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/workers/${c[`script-name`]==null?`<script-name>`:encodeURIComponent(String(c[`script-name`]))}/deploy_hooks`,pathParams:{"script-name":String(c[`script-name`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l,i(await o(`Loading`,async()=>s.builds.deployHooks.list({account_id:l,script_name:c[`script-name`]})),{successLabel:`Loaded`})})};function T(e){return e.usage(`$0 builds deploy-hooks trigger <deploy-hook-uuid>
|
|
16
16
|
|
|
17
|
-
Trigger a build using a deploy hook. This endpoint does not require authentication - the deploy_hook_uuid acts as a secret token.`).positional(`deploy-hook-uuid`,{type:`string`,description:`Deploy hook UUID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`trigger <deploy-hook-uuid>`,describe:`Trigger deploy hook`,builder:T,handler:async e=>s({command:`builds deploy-hooks trigger`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf builds deploy-hooks trigger`,method:`POST`,url:`https://api.cloudflare.com/client/v4/workers/builds/deploy_hooks/${e[`deploy-hook-uuid`]==null?`<deploy-hook-uuid>`:encodeURIComponent(String(e[`deploy-hook-uuid`]))}`,pathParams:{"deploy-hook-uuid":String(e[`deploy-hook-uuid`]??``)},bodyKind:`none`});return}let
|
|
17
|
+
Trigger a build using a deploy hook. This endpoint does not require authentication - the deploy_hook_uuid acts as a secret token.`).positional(`deploy-hook-uuid`,{type:`string`,description:`Deploy hook UUID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`trigger <deploy-hook-uuid>`,describe:`Trigger deploy hook`,builder:T,handler:async e=>s({command:`builds deploy-hooks trigger`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf builds deploy-hooks trigger`,method:`POST`,url:`https://api.cloudflare.com/client/v4/workers/builds/deploy_hooks/${e[`deploy-hook-uuid`]==null?`<deploy-hook-uuid>`:encodeURIComponent(String(e[`deploy-hook-uuid`]))}`,pathParams:{"deploy-hook-uuid":String(e[`deploy-hook-uuid`]??``)},bodyKind:`none`});return}let n=await t(e);i(await o(`Creating`,async()=>n.builds.deployHooks.trigger({deploy_hook_uuid:e[`deploy-hook-uuid`]})),{successLabel:`Created`})})};function D(e){return e.usage(`$0 builds deploy-hooks update <deploy-hook-uuid>
|
|
18
18
|
|
|
19
|
-
Replace the name and target branch for a deploy hook.`).positional(`deploy-hook-uuid`,{type:`string`,description:`Deploy hook UUID`,demandOption:!0}).option(`script-name`,{type:`string`,description:`Human-readable name of the worker.`,demandOption:!0}).option(`branch`,{type:`string`,description:`Git branch name.`}).option(`deploy-hook-name`,{type:`string`,description:`Deploy hook name (1-58 characters).`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const O={command:`update <deploy-hook-uuid>`,describe:`Update a deploy hook`,builder:D,handler:async f=>s({command:`builds deploy-hooks update`,classification:{safeFlags:[`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf builds deploy-hooks update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
19
|
+
Replace the name and target branch for a deploy hook.`).positional(`deploy-hook-uuid`,{type:`string`,description:`Deploy hook UUID`,demandOption:!0}).option(`script-name`,{type:`string`,description:`Human-readable name of the worker.`,demandOption:!0}).option(`branch`,{type:`string`,description:`Git branch name.`}).option(`deploy-hook-name`,{type:`string`,description:`Deploy hook name (1-58 characters).`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const O={command:`update <deploy-hook-uuid>`,describe:`Update a deploy hook`,builder:D,handler:async f=>s({command:`builds deploy-hooks update`,classification:{safeFlags:[`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf builds deploy-hooks update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/workers/${f[`script-name`]==null?`<script-name>`:encodeURIComponent(String(f[`script-name`]))}/deploy_hooks/${f[`deploy-hook-uuid`]==null?`<deploy-hook-uuid>`:encodeURIComponent(String(f[`deploy-hook-uuid`]))}`,pathParams:{"script-name":String(f[`script-name`]??``),"deploy-hook-uuid":String(f[`deploy-hook-uuid`]??``)},bodyKind:`json`,body:f.body===void 0?l({branch:u(f.branch,`branch`,`text`),deploy_hook_name:u(f[`deploy-hook-name`],`deploy-hook-name`,`text`)}):c(f.body)});return}let s=await t(f),p=f.local?e:await r();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Updating`,async()=>s.builds.deployHooks.update({body:e,account_id:p,script_name:f[`script-name`],deploy_hook_uuid:f[`deploy-hook-uuid`]})),{successLabel:`Updated`});return}f.branch===void 0&&(f.branch=await d(`branch`,`Git branch name.`)),f[`deploy-hook-name`]===void 0&&(f[`deploy-hook-name`]=await d(`deploy-hook-name`,`Deploy hook name (1-58 characters).`));let m=l({branch:u(f.branch,`branch`,`text`),deploy_hook_name:u(f[`deploy-hook-name`],`deploy-hook-name`,`text`)});i(await o(`Updating`,async()=>s.builds.deployHooks.update({body:m,account_id:p,script_name:f[`script-name`],deploy_hook_uuid:f[`deploy-hook-uuid`]})),{successLabel:`Updated`})})},k={command:`deploy-hooks`,describe:`Manage branch-specific HTTP hooks that start builds.`,builder:e=>e.command(v).command(b).command(S).command(w).command(E).command(O).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function A(e){return e.usage(`$0 builds get <build-uuid>
|
|
20
20
|
|
|
21
|
-
Retrieve status, outcome, timestamps, trigger settings, and source metadata for a build UUID.`).positional(`build-uuid`,{type:`string`,description:`Build UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const j={command:`get <build-uuid>`,describe:`Get a Workers build`,builder:A,handler:async c=>s({command:`builds get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf builds get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
21
|
+
Retrieve status, outcome, timestamps, trigger settings, and source metadata for a build UUID.`).positional(`build-uuid`,{type:`string`,description:`Build UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const j={command:`get <build-uuid>`,describe:`Get a Workers build`,builder:A,handler:async c=>s({command:`builds get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf builds get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/builds/${c[`build-uuid`]==null?`<build-uuid>`:encodeURIComponent(String(c[`build-uuid`]))}`,pathParams:{"build-uuid":String(c[`build-uuid`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l,i(await o(`Loading`,async()=>s.builds.get({account_id:l,build_uuid:c[`build-uuid`]})),{successLabel:`Loaded`})})};function M(e){return e.usage(`$0 builds limits get
|
|
22
22
|
|
|
23
|
-
Return whether the account's build-minute allowance is exhausted and when it refreshes.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const N={command:`get`,describe:`Get build-minute availability`,builder:M,handler:async c=>s({command:`builds limits get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf builds limits get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
23
|
+
Return whether the account's build-minute allowance is exhausted and when it refreshes.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const N={command:`get`,describe:`Get build-minute availability`,builder:M,handler:async c=>s({command:`builds limits get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf builds limits get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/account/limits`,pathParams:{},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l,i(await o(`Loading`,async()=>s.builds.limits.get({account_id:l})),{successLabel:`Loaded`})})},P={command:`limits`,describe:`View build-minute availability and refresh information.`,builder:e=>e.command(N).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function F(e){return e.usage(`$0 builds list
|
|
24
24
|
|
|
25
|
-
List paginated build records associated with a Worker tag.`).option(`external-script-id`,{type:`string`,description:`System-generated tag of the Worker. This is not the Worker name.`,demandOption:!0}).option(`page`,{type:`number`,description:`Page number for pagination`}).option(`per-page`,{type:`number`,description:`Number of items per page`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const I={command:`list`,describe:`List builds for a Worker`,builder:F,handler:async c=>s({command:`builds list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`]};if(c.dryRun){a({command:`cf builds list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
25
|
+
List paginated build records associated with a Worker tag.`).option(`external-script-id`,{type:`string`,description:`System-generated tag of the Worker. This is not the Worker name.`,demandOption:!0}).option(`page`,{type:`number`,description:`Page number for pagination`}).option(`per-page`,{type:`number`,description:`Number of items per page`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const I={command:`list`,describe:`List builds for a Worker`,builder:F,handler:async c=>s({command:`builds list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`]};if(c.dryRun){a({command:`cf builds list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/workers/${c[`external-script-id`]==null?`<external-script-id>`:encodeURIComponent(String(c[`external-script-id`]))}/builds`,pathParams:{"external-script-id":String(c[`external-script-id`]??``)},query:s,bodyKind:`none`});return}let l=await t(c),u=c.local?e:await r();c.accountId=u,i(await o(`Loading`,async()=>l.builds.list({account_id:u,external_script_id:c[`external-script-id`],...s})),{successLabel:`Loaded`})})};function L(e){return e.usage(`$0 builds logs get <build-uuid>
|
|
26
26
|
|
|
27
|
-
Retrieve cursor-paginated log lines for a build UUID.`).positional(`build-uuid`,{type:`string`,description:`Build UUID.`,demandOption:!0}).option(`cursor`,{type:`string`,description:`Pagination cursor for log retrieval.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const R={command:`get <build-uuid>`,describe:`Get Workers build logs`,builder:L,handler:async c=>s({command:`builds logs get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={cursor:c.cursor};if(c.dryRun){a({command:`cf builds logs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
27
|
+
Retrieve cursor-paginated log lines for a build UUID.`).positional(`build-uuid`,{type:`string`,description:`Build UUID.`,demandOption:!0}).option(`cursor`,{type:`string`,description:`Pagination cursor for log retrieval.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const R={command:`get <build-uuid>`,describe:`Get Workers build logs`,builder:L,handler:async c=>s({command:`builds logs get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={cursor:c.cursor};if(c.dryRun){a({command:`cf builds logs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/builds/${c[`build-uuid`]==null?`<build-uuid>`:encodeURIComponent(String(c[`build-uuid`]))}/logs`,pathParams:{"build-uuid":String(c[`build-uuid`]??``)},query:s,bodyKind:`none`});return}let l=await t(c),u=c.local?e:await r();c.accountId=u,i(await o(`Loading`,async()=>l.builds.logs.get({account_id:u,build_uuid:c[`build-uuid`],...s})),{successLabel:`Loaded`})})},z={command:`logs`,describe:`Retrieve build logs.`,builder:e=>e.command(R).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function B(e){return e.usage(`$0 builds repos config-autofill get <repo-id>
|
|
28
28
|
|
|
29
|
-
Analyze repository for automatic configuration detection`).positional(`repo-id`,{type:`string`,description:`Provider-specific repository identifier.`,demandOption:!0}).option(`provider-type`,{type:`string`,description:`SCM provider type`,demandOption:!0}).option(`provider-account-id`,{type:`string`,description:`Provider-specific identifier of the account or namespace that owns the repository.`,demandOption:!0}).option(`branch`,{type:`string`,description:`Git branch name.`,demandOption:!0}).option(`root-directory`,{type:`string`,description:`Repository directory in which build and deploy commands run.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const V={command:`get <repo-id>`,describe:`Get repository configuration autofill`,builder:B,handler:async c=>s({command:`builds repos config-autofill get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={branch:c.branch,root_directory:c[`root-directory`]};if(c.dryRun){a({command:`cf builds repos config-autofill get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
29
|
+
Analyze repository for automatic configuration detection`).positional(`repo-id`,{type:`string`,description:`Provider-specific repository identifier.`,demandOption:!0}).option(`provider-type`,{type:`string`,description:`SCM provider type`,demandOption:!0}).option(`provider-account-id`,{type:`string`,description:`Provider-specific identifier of the account or namespace that owns the repository.`,demandOption:!0}).option(`branch`,{type:`string`,description:`Git branch name.`,demandOption:!0}).option(`root-directory`,{type:`string`,description:`Repository directory in which build and deploy commands run.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const V={command:`get <repo-id>`,describe:`Get repository configuration autofill`,builder:B,handler:async c=>s({command:`builds repos config-autofill get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={branch:c.branch,root_directory:c[`root-directory`]};if(c.dryRun){a({command:`cf builds repos config-autofill get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/repos/${c[`provider-type`]==null?`<provider-type>`:encodeURIComponent(String(c[`provider-type`]))}/${c[`provider-account-id`]==null?`<provider-account-id>`:encodeURIComponent(String(c[`provider-account-id`]))}/${c[`repo-id`]==null?`<repo-id>`:encodeURIComponent(String(c[`repo-id`]))}/config_autofill`,pathParams:{"provider-type":String(c[`provider-type`]??``),"provider-account-id":String(c[`provider-account-id`]??``),"repo-id":String(c[`repo-id`]??``)},query:s,bodyKind:`none`});return}let l=await t(c),u=c.local?e:await r();c.accountId=u,i(await o(`Loading`,async()=>l.builds.repos.configAutofill.get({account_id:u,provider_type:c[`provider-type`],provider_account_id:c[`provider-account-id`],repo_id:c[`repo-id`],...s})),{successLabel:`Loaded`})})},H={command:`config-autofill`,describe:`Operations for repos.config-autofill`,builder:e=>e.command(V).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function U(e){return e.usage(`$0 builds repos connections delete <repo-connection-uuid>
|
|
30
30
|
|
|
31
|
-
Delete a saved repository connection.`).positional(`repo-connection-uuid`,{type:`string`,description:`Repository connection UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const W={command:`delete <repo-connection-uuid>`,describe:`Delete a repository connection`,builder:U,handler:async c=>s({command:`builds repos connections delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf builds repos connections delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
31
|
+
Delete a saved repository connection.`).positional(`repo-connection-uuid`,{type:`string`,description:`Repository connection UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const W={command:`delete <repo-connection-uuid>`,describe:`Delete a repository connection`,builder:U,handler:async c=>s({command:`builds repos connections delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf builds repos connections delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/repos/connections/${c[`repo-connection-uuid`]==null?`<repo-connection-uuid>`:encodeURIComponent(String(c[`repo-connection-uuid`]))}`,pathParams:{"repo-connection-uuid":String(c[`repo-connection-uuid`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();if(c.accountId=l,!await p({force:!!c.force})){process.stderr.write(`Aborted.
|
|
32
32
|
`);return}i(await o(`Deleting`,async()=>s.builds.repos.connections.delete({account_id:l,repo_connection_uuid:c[`repo-connection-uuid`]})),{successLabel:`Deleted`})})};function G(e){return e.usage(`$0 builds repos connections upsert
|
|
33
33
|
|
|
34
|
-
Save the repository connection required by build triggers.`).option(`provider-account-id`,{type:`string`,description:`Provider-specific identifier of the account or namespace that owns the repository.`}).option(`provider-account-name`,{type:`string`,description:`Human-readable name of the account or namespace that owns the repository.`}).option(`provider-type`,{type:`string`,description:`Source control provider.`,choices:[`github`,`gitlab`,`gitlab_internal`,`origin`]}).option(`repo-id`,{type:`string`,description:`Provider-specific repository identifier.`}).option(`repo-name`,{type:`string`,description:`Human-readable repository name.`}).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:`upsert`,describe:`Create or update a repository connection`,builder:G,handler:async p=>s({command:`builds repos connections upsert`,classification:{safeFlags:[`provider-type`,`dry-run`]}},p,async()=>{if(p.dryRun){a({command:`cf builds repos connections upsert`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
34
|
+
Save the repository connection required by build triggers.`).option(`provider-account-id`,{type:`string`,description:`Provider-specific identifier of the account or namespace that owns the repository.`}).option(`provider-account-name`,{type:`string`,description:`Human-readable name of the account or namespace that owns the repository.`}).option(`provider-type`,{type:`string`,description:`Source control provider.`,choices:[`github`,`gitlab`,`gitlab_internal`,`origin`]}).option(`repo-id`,{type:`string`,description:`Provider-specific repository identifier.`}).option(`repo-name`,{type:`string`,description:`Human-readable repository name.`}).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:`upsert`,describe:`Create or update a repository connection`,builder:G,handler:async p=>s({command:`builds repos connections upsert`,classification:{safeFlags:[`provider-type`,`dry-run`]}},p,async()=>{if(p.dryRun){a({command:`cf builds repos connections upsert`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/repos/connections`,pathParams:{},bodyKind:`json`,body:p.body===void 0?l({provider_account_id:u(p[`provider-account-id`],`provider-account-id`,`text`),provider_account_name:u(p[`provider-account-name`],`provider-account-name`,`text`),provider_type:u(p[`provider-type`],`provider-type`,`text`),repo_id:u(p[`repo-id`],`repo-id`,`text`),repo_name:u(p[`repo-name`],`repo-name`,`text`)}):c(p.body)});return}let s=await t(p),m=p.local?e:await r();if(p.accountId=m,p.body){let e=c(p.body);i(await o(`Updating`,async()=>s.builds.repos.connections.upsert({...e,account_id:m})),{successLabel:`Updated`});return}p[`provider-account-id`]===void 0&&(p[`provider-account-id`]=await d(`provider-account-id`,`Provider-specific identifier of the account or namespace that owns the repository.`)),p[`provider-account-name`]===void 0&&(p[`provider-account-name`]=await d(`provider-account-name`,`Human-readable name of the account or namespace that owns the repository.`)),p[`provider-type`]===void 0&&(p[`provider-type`]=await f(`provider-type`,`Source control provider.`,[`github`,`gitlab`,`gitlab_internal`,`origin`])),p[`repo-id`]===void 0&&(p[`repo-id`]=await d(`repo-id`,`Provider-specific repository identifier.`)),p[`repo-name`]===void 0&&(p[`repo-name`]=await d(`repo-name`,`Human-readable repository name.`));let h=l({provider_account_id:u(p[`provider-account-id`],`provider-account-id`,`text`),provider_account_name:u(p[`provider-account-name`],`provider-account-name`,`text`),provider_type:u(p[`provider-type`],`provider-type`,`text`),repo_id:u(p[`repo-id`],`repo-id`,`text`),repo_name:u(p[`repo-name`],`repo-name`,`text`)});i(await o(`Updating`,async()=>s.builds.repos.connections.upsert({...h,account_id:m})),{successLabel:`Updated`})})},q={command:`connections`,describe:`Operations for repos.connections`,builder:e=>e.command(W).command(K).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},J={command:`repos`,describe:`Manage source repository connections for Workers Builds.`,builder:e=>e.command(H).command(q).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Y(e){return e.usage(`$0 builds tokens create
|
|
35
35
|
|
|
36
|
-
Create a new build authentication token`).option(`build-token-name`,{type:`string`,description:`The build_token_name field`}).option(`build-token-secret`,{type:`string`,description:`The build_token_secret field`}).option(`cloudflare-token-id`,{type:`string`,description:`The cloudflare_token_id 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 X={command:`create`,describe:`Create build token`,builder:Y,handler:async f=>s({command:`builds tokens create`,classification:{safeFlags:[`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf builds tokens create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
36
|
+
Create a new build authentication token`).option(`build-token-name`,{type:`string`,description:`The build_token_name field`}).option(`build-token-secret`,{type:`string`,description:`The build_token_secret field`}).option(`cloudflare-token-id`,{type:`string`,description:`The cloudflare_token_id 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 X={command:`create`,describe:`Create build token`,builder:Y,handler:async f=>s({command:`builds tokens create`,classification:{safeFlags:[`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf builds tokens create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/tokens`,pathParams:{},bodyKind:`json`,body:f.body===void 0?l({build_token_name:u(f[`build-token-name`],`build-token-name`,`text`),build_token_secret:u(f[`build-token-secret`],`build-token-secret`,`text`),cloudflare_token_id:u(f[`cloudflare-token-id`],`cloudflare-token-id`,`text`)}):c(f.body)});return}let s=await t(f),p=f.local?e:await r();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Creating`,async()=>s.builds.tokens.create({...e,account_id:p})),{successLabel:`Created`});return}f[`build-token-name`]===void 0&&(f[`build-token-name`]=await d(`build-token-name`,`The build_token_name field`)),f[`build-token-secret`]===void 0&&(f[`build-token-secret`]=await d(`build-token-secret`,`The build_token_secret field`)),f[`cloudflare-token-id`]===void 0&&(f[`cloudflare-token-id`]=await d(`cloudflare-token-id`,`The cloudflare_token_id field`));let m=l({build_token_name:u(f[`build-token-name`],`build-token-name`,`text`),build_token_secret:u(f[`build-token-secret`],`build-token-secret`,`text`),cloudflare_token_id:u(f[`cloudflare-token-id`],`cloudflare-token-id`,`text`)});i(await o(`Creating`,async()=>s.builds.tokens.create({...m,account_id:p})),{successLabel:`Created`})})};function Z(e){return e.usage(`$0 builds tokens delete <build-token-uuid>
|
|
37
37
|
|
|
38
|
-
Delete a stored build token owned by the current user.`).positional(`build-token-uuid`,{type:`string`,description:`UUID of the build token used when deploying the Worker.`,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 Q={command:`delete <build-token-uuid>`,describe:`Delete a build token`,builder:Z,handler:async c=>s({command:`builds tokens delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf builds tokens delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
38
|
+
Delete a stored build token owned by the current user.`).positional(`build-token-uuid`,{type:`string`,description:`UUID of the build token used when deploying the Worker.`,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 Q={command:`delete <build-token-uuid>`,describe:`Delete a build token`,builder:Z,handler:async c=>s({command:`builds tokens delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf builds tokens delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/tokens/${c[`build-token-uuid`]==null?`<build-token-uuid>`:encodeURIComponent(String(c[`build-token-uuid`]))}`,pathParams:{"build-token-uuid":String(c[`build-token-uuid`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();if(c.accountId=l,!await p({force:!!c.force})){process.stderr.write(`Aborted.
|
|
39
39
|
`);return}i(await o(`Deleting`,async()=>s.builds.tokens.delete({account_id:l,build_token_uuid:c[`build-token-uuid`]})),{successLabel:`Deleted`})})};function ne(e){return e.usage(`$0 builds tokens list
|
|
40
40
|
|
|
41
|
-
List metadata for build tokens available to the current user without returning their secrets.`).option(`page`,{type:`number`,description:`Page number for pagination`}).option(`per-page`,{type:`number`,description:`Number of items per page`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const re={command:`list`,describe:`List build tokens`,builder:ne,handler:async c=>s({command:`builds tokens list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`]};if(c.dryRun){a({command:`cf builds tokens list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
41
|
+
List metadata for build tokens available to the current user without returning their secrets.`).option(`page`,{type:`number`,description:`Page number for pagination`}).option(`per-page`,{type:`number`,description:`Number of items per page`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const re={command:`list`,describe:`List build tokens`,builder:ne,handler:async c=>s({command:`builds tokens list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`]};if(c.dryRun){a({command:`cf builds tokens list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/tokens`,pathParams:{},query:s,bodyKind:`none`});return}let l=await t(c),u=c.local?e:await r();c.accountId=u,i(await o(`Loading`,async()=>l.builds.tokens.list({account_id:u,...s})),{successLabel:`Loaded`})})},ie={command:`tokens`,describe:`Manage credentials used by Workers Builds to deploy Workers.`,builder:e=>e.command(X).command(Q).command(re).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ae(e){return e.usage(`$0 builds triggers cache purge <trigger-uuid>
|
|
42
42
|
|
|
43
|
-
Delete cached dependencies and build artifacts associated with a trigger.`).positional(`trigger-uuid`,{type:`string`,description:`Trigger UUID.`,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 oe={command:`purge <trigger-uuid>`,describe:`Purge a trigger's build cache`,builder:ae,handler:async c=>s({command:`builds triggers cache purge`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf builds triggers cache purge`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
43
|
+
Delete cached dependencies and build artifacts associated with a trigger.`).positional(`trigger-uuid`,{type:`string`,description:`Trigger UUID.`,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 oe={command:`purge <trigger-uuid>`,describe:`Purge a trigger's build cache`,builder:ae,handler:async c=>s({command:`builds triggers cache purge`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf builds triggers cache purge`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/triggers/${c[`trigger-uuid`]==null?`<trigger-uuid>`:encodeURIComponent(String(c[`trigger-uuid`]))}/purge_build_cache`,pathParams:{"trigger-uuid":String(c[`trigger-uuid`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();if(c.accountId=l,!await p({force:!!c.force,message:`This operation purges the build cache for a Workers Builds trigger.`})){process.stderr.write(`Aborted.
|
|
44
44
|
`);return}i(await o(`Deleting`,async()=>s.builds.triggers.cache.purge({account_id:l,trigger_uuid:c[`trigger-uuid`]})),{successLabel:`Deleted`})})},se={command:`cache`,describe:`Operations for triggers.cache`,builder:e=>e.command(oe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ce(e){return e.usage(`$0 builds triggers create
|
|
45
45
|
|
|
46
|
-
Create a trigger defining the repository connection, Worker tag, commands, filters, cache setting, and build token.`).option(`branch-excludes`,{type:`string`,array:!0,description:`Branch patterns that must not start builds.`}).option(`branch-includes`,{type:`string`,array:!0,description:`Branch patterns that can start builds.`}).option(`build-caching-enabled`,{type:`boolean`,description:`Whether builds reuse cached dependencies and build artifacts.`,default:!1}).option(`build-command`,{type:`string`,description:`Command to build the Worker.`}).option(`build-token-uuid`,{type:`string`,description:`UUID of the build token used when deploying the Worker.`}).option(`deploy-command`,{type:`string`,description:`Command to deploy the Worker.`}).option(`external-script-id`,{type:`string`,description:`System-generated tag of the Worker. This is not the Worker name.`}).option(`path-excludes`,{type:`string`,array:!0,description:`Path patterns that must not start builds.`}).option(`path-includes`,{type:`string`,array:!0,description:`Path patterns that can start builds.`}).option(`repo-connection-uuid`,{type:`string`,description:`Repository connection UUID.`}).option(`root-directory`,{type:`string`,description:`Repository directory in which build and deploy commands run.`}).option(`trigger-name`,{type:`string`,description:`Human-readable name of the build trigger.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const le={command:`create`,describe:`Create a build trigger`,builder:ce,handler:async f=>s({command:`builds triggers create`,classification:{safeFlags:[`build-caching-enabled`,`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf builds triggers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
46
|
+
Create a trigger defining the repository connection, Worker tag, commands, filters, cache setting, and build token.`).option(`branch-excludes`,{type:`string`,array:!0,description:`Branch patterns that must not start builds.`}).option(`branch-includes`,{type:`string`,array:!0,description:`Branch patterns that can start builds.`}).option(`build-caching-enabled`,{type:`boolean`,description:`Whether builds reuse cached dependencies and build artifacts.`,default:!1}).option(`build-command`,{type:`string`,description:`Command to build the Worker.`}).option(`build-token-uuid`,{type:`string`,description:`UUID of the build token used when deploying the Worker.`}).option(`deploy-command`,{type:`string`,description:`Command to deploy the Worker.`}).option(`external-script-id`,{type:`string`,description:`System-generated tag of the Worker. This is not the Worker name.`}).option(`path-excludes`,{type:`string`,array:!0,description:`Path patterns that must not start builds.`}).option(`path-includes`,{type:`string`,array:!0,description:`Path patterns that can start builds.`}).option(`repo-connection-uuid`,{type:`string`,description:`Repository connection UUID.`}).option(`root-directory`,{type:`string`,description:`Repository directory in which build and deploy commands run.`}).option(`trigger-name`,{type:`string`,description:`Human-readable name of the build trigger.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const le={command:`create`,describe:`Create a build trigger`,builder:ce,handler:async f=>s({command:`builds triggers create`,classification:{safeFlags:[`build-caching-enabled`,`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf builds triggers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/triggers`,pathParams:{},bodyKind:`json`,body:f.body===void 0?l({branch_excludes:f[`branch-excludes`],branch_includes:f[`branch-includes`],build_caching_enabled:f[`build-caching-enabled`],build_command:u(f[`build-command`],`build-command`,`text`),build_token_uuid:u(f[`build-token-uuid`],`build-token-uuid`,`text`),deploy_command:u(f[`deploy-command`],`deploy-command`,`text`),external_script_id:u(f[`external-script-id`],`external-script-id`,`text`),path_excludes:f[`path-excludes`],path_includes:f[`path-includes`],repo_connection_uuid:u(f[`repo-connection-uuid`],`repo-connection-uuid`,`text`),root_directory:u(f[`root-directory`],`root-directory`,`text`),trigger_name:u(f[`trigger-name`],`trigger-name`,`text`)}):c(f.body)});return}let s=await t(f),p=f.local?e:await r();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Creating`,async()=>s.builds.triggers.create({...e,account_id:p})),{successLabel:`Created`});return}if(f[`branch-excludes`]===void 0)throw Error(`--branch-excludes is required (or pass --body with this field set).`);if(f[`branch-includes`]===void 0)throw Error(`--branch-includes is required (or pass --body with this field set).`);if(f[`build-command`]===void 0&&(f[`build-command`]=await d(`build-command`,`Command to build the Worker.`)),f[`build-token-uuid`]===void 0&&(f[`build-token-uuid`]=await d(`build-token-uuid`,`UUID of the build token used when deploying the Worker.`)),f[`deploy-command`]===void 0&&(f[`deploy-command`]=await d(`deploy-command`,`Command to deploy the Worker.`)),f[`external-script-id`]===void 0&&(f[`external-script-id`]=await d(`external-script-id`,`System-generated tag of the Worker. This is not the Worker name.`)),f[`path-excludes`]===void 0)throw Error(`--path-excludes is required (or pass --body with this field set).`);if(f[`path-includes`]===void 0)throw Error(`--path-includes is required (or pass --body with this field set).`);f[`repo-connection-uuid`]===void 0&&(f[`repo-connection-uuid`]=await d(`repo-connection-uuid`,`Repository connection UUID.`)),f[`root-directory`]===void 0&&(f[`root-directory`]=await d(`root-directory`,`Repository directory in which build and deploy commands run.`)),f[`trigger-name`]===void 0&&(f[`trigger-name`]=await d(`trigger-name`,`Human-readable name of the build trigger.`));let m=l({branch_excludes:f[`branch-excludes`],branch_includes:f[`branch-includes`],build_caching_enabled:f[`build-caching-enabled`],build_command:u(f[`build-command`],`build-command`,`text`),build_token_uuid:u(f[`build-token-uuid`],`build-token-uuid`,`text`),deploy_command:u(f[`deploy-command`],`deploy-command`,`text`),external_script_id:u(f[`external-script-id`],`external-script-id`,`text`),path_excludes:f[`path-excludes`],path_includes:f[`path-includes`],repo_connection_uuid:u(f[`repo-connection-uuid`],`repo-connection-uuid`,`text`),root_directory:u(f[`root-directory`],`root-directory`,`text`),trigger_name:u(f[`trigger-name`],`trigger-name`,`text`)});i(await o(`Creating`,async()=>s.builds.triggers.create({...m,account_id:p})),{successLabel:`Created`})})};function ue(e){return e.usage(`$0 builds triggers delete <trigger-uuid>
|
|
47
47
|
|
|
48
|
-
Delete a trigger and cancel its unfinished builds.`).positional(`trigger-uuid`,{type:`string`,description:`Trigger UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const de={command:`delete <trigger-uuid>`,describe:`Delete a build trigger`,builder:ue,handler:async c=>s({command:`builds triggers delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf builds triggers delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
48
|
+
Delete a trigger and cancel its unfinished builds.`).positional(`trigger-uuid`,{type:`string`,description:`Trigger UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const de={command:`delete <trigger-uuid>`,describe:`Delete a build trigger`,builder:ue,handler:async c=>s({command:`builds triggers delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf builds triggers delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/triggers/${c[`trigger-uuid`]==null?`<trigger-uuid>`:encodeURIComponent(String(c[`trigger-uuid`]))}`,pathParams:{"trigger-uuid":String(c[`trigger-uuid`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();if(c.accountId=l,!await p({force:!!c.force,message:`This operation deletes the build trigger and cancels its unfinished builds.`})){process.stderr.write(`Aborted.
|
|
49
49
|
`);return}i(await o(`Deleting`,async()=>s.builds.triggers.delete({account_id:l,trigger_uuid:c[`trigger-uuid`]})),{successLabel:`Deleted`})})};function fe(e){return e.usage(`$0 builds triggers environment-variables delete <environment-variable-key>
|
|
50
50
|
|
|
51
|
-
Delete one build-time variable or secret by key.`).positional(`environment-variable-key`,{type:`string`,description:`Environment variable key.`,demandOption:!0}).option(`trigger-uuid`,{type:`string`,description:`Trigger UUID.`,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 pe={command:`delete <environment-variable-key>`,describe:`Delete a build variable`,builder:fe,handler:async c=>s({command:`builds triggers environment-variables delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf builds triggers environment-variables delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
51
|
+
Delete one build-time variable or secret by key.`).positional(`environment-variable-key`,{type:`string`,description:`Environment variable key.`,demandOption:!0}).option(`trigger-uuid`,{type:`string`,description:`Trigger UUID.`,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 pe={command:`delete <environment-variable-key>`,describe:`Delete a build variable`,builder:fe,handler:async c=>s({command:`builds triggers environment-variables delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf builds triggers environment-variables delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/triggers/${c[`trigger-uuid`]==null?`<trigger-uuid>`:encodeURIComponent(String(c[`trigger-uuid`]))}/environment_variables/${c[`environment-variable-key`]==null?`<environment-variable-key>`:encodeURIComponent(String(c[`environment-variable-key`]))}`,pathParams:{"trigger-uuid":String(c[`trigger-uuid`]??``),"environment-variable-key":String(c[`environment-variable-key`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();if(c.accountId=l,!await p({force:!!c.force})){process.stderr.write(`Aborted.
|
|
52
52
|
`);return}i(await o(`Deleting`,async()=>s.builds.triggers.environmentVariables.delete({account_id:l,trigger_uuid:c[`trigger-uuid`],environment_variable_key:c[`environment-variable-key`]})),{successLabel:`Deleted`})})};function me(e){return e.usage(`$0 builds triggers environment-variables list
|
|
53
53
|
|
|
54
|
-
List build-time variables configured for a trigger. Secret values are not returned.`).option(`trigger-uuid`,{type:`string`,description:`Trigger UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const he={command:`list`,describe:`List build variables`,builder:me,handler:async c=>s({command:`builds triggers environment-variables list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf builds triggers environment-variables list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
54
|
+
List build-time variables configured for a trigger. Secret values are not returned.`).option(`trigger-uuid`,{type:`string`,description:`Trigger UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const he={command:`list`,describe:`List build variables`,builder:me,handler:async c=>s({command:`builds triggers environment-variables list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf builds triggers environment-variables list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/triggers/${c[`trigger-uuid`]==null?`<trigger-uuid>`:encodeURIComponent(String(c[`trigger-uuid`]))}/environment_variables`,pathParams:{"trigger-uuid":String(c[`trigger-uuid`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l,i(await o(`Loading`,async()=>s.builds.triggers.environmentVariables.list({account_id:l,trigger_uuid:c[`trigger-uuid`]})),{successLabel:`Loaded`})})};function ge(e){return e.usage(`$0 builds triggers environment-variables upsert <trigger-uuid>
|
|
55
55
|
|
|
56
|
-
Add or replace build-time variables and secrets without changing unspecified keys.`).positional(`trigger-uuid`,{type:`string`,description:`Trigger UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Map of environment-variable names to build-time values. Names must begin with a letter or underscore and contain only letters, numbers, and underscores.`})}const _e={command:`upsert <trigger-uuid>`,describe:`Set build variables`,builder:ge,handler:async l=>s({command:`builds triggers environment-variables upsert`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf builds triggers environment-variables upsert`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
56
|
+
Add or replace build-time variables and secrets without changing unspecified keys.`).positional(`trigger-uuid`,{type:`string`,description:`Trigger UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Map of environment-variable names to build-time values. Names must begin with a letter or underscore and contain only letters, numbers, and underscores.`})}const _e={command:`upsert <trigger-uuid>`,describe:`Set build variables`,builder:ge,handler:async l=>s({command:`builds triggers environment-variables upsert`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf builds triggers environment-variables upsert`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/triggers/${l[`trigger-uuid`]==null?`<trigger-uuid>`:encodeURIComponent(String(l[`trigger-uuid`]))}/environment_variables`,pathParams:{"trigger-uuid":String(l[`trigger-uuid`]??``)},bodyKind:`json`,body:l.body===void 0?void 0:c(l.body)});return}let s=await t(l),u=l.local?e:await r();if(l.accountId=u,l.body){let e=c(l.body);i(await o(`Updating`,async()=>s.builds.triggers.environmentVariables.upsert({body:e,account_id:u,trigger_uuid:l[`trigger-uuid`]})),{successLabel:`Updated`});return}if(l.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})},ve={command:`environment-variables`,describe:`Operations for triggers.environment-variables`,builder:e=>e.command(pe).command(he).command(_e).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ye(e){return e.usage(`$0 builds triggers list
|
|
57
57
|
|
|
58
|
-
List trigger UUIDs and build settings associated with a Worker tag.`).option(`external-script-id`,{type:`string`,description:`System-generated tag of the Worker. This is not the Worker name.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const be={command:`list`,describe:`List triggers for a Worker`,builder:ye,handler:async c=>s({command:`builds triggers list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf builds triggers list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
58
|
+
List trigger UUIDs and build settings associated with a Worker tag.`).option(`external-script-id`,{type:`string`,description:`System-generated tag of the Worker. This is not the Worker name.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const be={command:`list`,describe:`List triggers for a Worker`,builder:ye,handler:async c=>s({command:`builds triggers list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf builds triggers list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/workers/${c[`external-script-id`]==null?`<external-script-id>`:encodeURIComponent(String(c[`external-script-id`]))}/triggers`,pathParams:{"external-script-id":String(c[`external-script-id`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l,i(await o(`Loading`,async()=>s.builds.triggers.list({account_id:l,external_script_id:c[`external-script-id`]})),{successLabel:`Loaded`})})};function xe(e){return e.usage(`$0 builds triggers update <trigger-uuid>
|
|
59
59
|
|
|
60
|
-
Update commands, cache settings, or branch and path filters for a trigger.`).positional(`trigger-uuid`,{type:`string`,description:`Trigger UUID.`,demandOption:!0}).option(`branch-excludes`,{type:`string`,array:!0,description:`Branch patterns that must not start builds.`}).option(`branch-includes`,{type:`string`,array:!0,description:`Branch patterns that can start builds.`}).option(`build-caching-enabled`,{type:`boolean`,description:`Whether builds reuse cached dependencies and build artifacts.`}).option(`build-command`,{type:`string`,description:`Command to build the Worker.`}).option(`build-token-uuid`,{type:`string`,description:`UUID of the build token used when deploying the Worker.`}).option(`deploy-command`,{type:`string`,description:`Command to deploy the Worker.`}).option(`path-excludes`,{type:`string`,array:!0,description:`Path patterns that must not start builds.`}).option(`path-includes`,{type:`string`,array:!0,description:`Path patterns that can start builds.`}).option(`root-directory`,{type:`string`,description:`Repository directory in which build and deploy commands run.`}).option(`trigger-name`,{type:`string`,description:`Human-readable name of the build trigger.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Se={command:`update <trigger-uuid>`,describe:`Update a build trigger`,builder:xe,handler:async d=>s({command:`builds triggers update`,classification:{safeFlags:[`build-caching-enabled`,`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf builds triggers update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
60
|
+
Update commands, cache settings, or branch and path filters for a trigger.`).positional(`trigger-uuid`,{type:`string`,description:`Trigger UUID.`,demandOption:!0}).option(`branch-excludes`,{type:`string`,array:!0,description:`Branch patterns that must not start builds.`}).option(`branch-includes`,{type:`string`,array:!0,description:`Branch patterns that can start builds.`}).option(`build-caching-enabled`,{type:`boolean`,description:`Whether builds reuse cached dependencies and build artifacts.`}).option(`build-command`,{type:`string`,description:`Command to build the Worker.`}).option(`build-token-uuid`,{type:`string`,description:`UUID of the build token used when deploying the Worker.`}).option(`deploy-command`,{type:`string`,description:`Command to deploy the Worker.`}).option(`path-excludes`,{type:`string`,array:!0,description:`Path patterns that must not start builds.`}).option(`path-includes`,{type:`string`,array:!0,description:`Path patterns that can start builds.`}).option(`root-directory`,{type:`string`,description:`Repository directory in which build and deploy commands run.`}).option(`trigger-name`,{type:`string`,description:`Human-readable name of the build trigger.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Se={command:`update <trigger-uuid>`,describe:`Update a build trigger`,builder:xe,handler:async d=>s({command:`builds triggers update`,classification:{safeFlags:[`build-caching-enabled`,`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf builds triggers update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/triggers/${d[`trigger-uuid`]==null?`<trigger-uuid>`:encodeURIComponent(String(d[`trigger-uuid`]))}`,pathParams:{"trigger-uuid":String(d[`trigger-uuid`]??``)},bodyKind:`json`,body:d.body===void 0?l({branch_excludes:d[`branch-excludes`],branch_includes:d[`branch-includes`],build_caching_enabled:d[`build-caching-enabled`],build_command:u(d[`build-command`],`build-command`,`text`),build_token_uuid:u(d[`build-token-uuid`],`build-token-uuid`,`text`),deploy_command:u(d[`deploy-command`],`deploy-command`,`text`),path_excludes:d[`path-excludes`],path_includes:d[`path-includes`],root_directory:u(d[`root-directory`],`root-directory`,`text`),trigger_name:u(d[`trigger-name`],`trigger-name`,`text`)}):c(d.body)});return}let s=await t(d),f=d.local?e:await r();if(d.accountId=f,d.body){let e=c(d.body);i(await o(`Updating`,async()=>s.builds.triggers.update({...e,account_id:f,trigger_uuid:d[`trigger-uuid`]})),{successLabel:`Updated`});return}let p=l({branch_excludes:d[`branch-excludes`],branch_includes:d[`branch-includes`],build_caching_enabled:d[`build-caching-enabled`],build_command:u(d[`build-command`],`build-command`,`text`),build_token_uuid:u(d[`build-token-uuid`],`build-token-uuid`,`text`),deploy_command:u(d[`deploy-command`],`deploy-command`,`text`),path_excludes:d[`path-excludes`],path_includes:d[`path-includes`],root_directory:u(d[`root-directory`],`root-directory`,`text`),trigger_name:u(d[`trigger-name`],`trigger-name`,`text`)});i(await o(`Updating`,async()=>s.builds.triggers.update({...p,account_id:f,trigger_uuid:d[`trigger-uuid`]})),{successLabel:`Updated`})})},Ce={command:`triggers`,describe:`Configure how repository changes build and deploy Workers.`,builder:e=>e.command(le).command(de).command(be).command(Se).command(se).command(ve).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function we(e){return e.usage(`$0 builds versions get
|
|
61
61
|
|
|
62
|
-
Retrieve builds associated with one or more Worker version IDs.`).option(`version-ids`,{type:`string`,description:`Comma-separated list of version UUIDs (max 20).`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Te={command:`get`,describe:`Get builds by Worker version`,builder:we,handler:async c=>s({command:`builds versions get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={version_ids:c[`version-ids`]};if(c.dryRun){a({command:`cf builds versions get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
62
|
+
Retrieve builds associated with one or more Worker version IDs.`).option(`version-ids`,{type:`string`,description:`Comma-separated list of version UUIDs (max 20).`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Te={command:`get`,describe:`Get builds by Worker version`,builder:we,handler:async c=>s({command:`builds versions get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={version_ids:c[`version-ids`]};if(c.dryRun){a({command:`cf builds versions get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/builds`,pathParams:{},query:s,bodyKind:`none`});return}let l=await t(c),u=c.local?e:await r();c.accountId=u,i(await o(`Loading`,async()=>l.builds.versions.get({account_id:u,...s})),{successLabel:`Loaded`})})},Ee={command:`versions`,describe:`Find builds associated with Worker versions.`,builder:e=>e.command(Te).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function De(e){return e.usage(`$0 builds workers create
|
|
63
63
|
|
|
64
|
-
Connect a Worker tag to a repository and production build settings.`).option(`git-repository-branch`,{type:`string`,description:`Git branch to watch for builds`}).option(`git-repository-provider-account-id`,{type:`string`,description:`Provider-specific identifier of the account or namespace that owns the repository.`}).option(`git-repository-provider-account-name`,{type:`string`,description:`Human-readable name of the account or namespace that owns the repository.`}).option(`git-repository-provider-type`,{type:`string`,description:`The git_repository.provider_type field`,choices:[`github`,`gitlab`,`gitlab_internal`,`origin`]}).option(`git-repository-repo-id`,{type:`string`,description:`Provider-specific repository identifier.`}).option(`git-repository-repo-name`,{type:`string`,description:`Human-readable repository name.`}).option(`git-repository-grant-id`,{type:`string`,description:`Grant ID required for grant-backed providers`}).option(`previews-base-config-build-command`,{type:`string`,description:`Command to build the Worker.`}).option(`previews-base-config-build-token-uuid`,{type:`string`,description:`UUID of the build token used when deploying the Worker.`}).option(`previews-base-config-deploy-command`,{type:`string`,description:`Command to deploy the Worker.`}).option(`previews-base-config-path-excludes`,{type:`string`,array:!0,description:`Path patterns that must not start builds.`}).option(`previews-base-config-path-includes`,{type:`string`,array:!0,description:`Path patterns that can start builds.`}).option(`previews-enabled`,{type:`boolean`,description:`Whether Previews are enabled for this Worker`}).option(`production-settings-build-command`,{type:`string`,description:`Command to build the Worker.`}).option(`production-settings-build-token-uuid`,{type:`string`,description:`UUID of the build token used when deploying the Worker.`}).option(`production-settings-deploy-command`,{type:`string`,description:`Command to deploy the Worker.`}).option(`production-settings-path-excludes`,{type:`string`,array:!0,description:`Path patterns that must not start builds.`}).option(`production-settings-path-includes`,{type:`string`,array:!0,description:`Path patterns that can start builds.`}).option(`script-tag`,{type:`string`,description:`System-generated tag of the Worker. This is not the Worker name.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for creating a Worker build configuration.`})}const $={command:`create`,describe:`Create Worker build configuration`,builder:De,handler:async p=>s({command:`builds workers create`,classification:{safeFlags:[`git-repository-provider-type`,`previews-enabled`,`dry-run`]}},p,async()=>{if(p.dryRun){a({command:`cf builds workers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
64
|
+
Connect a Worker tag to a repository and production build settings.`).option(`git-repository-branch`,{type:`string`,description:`Git branch to watch for builds`}).option(`git-repository-provider-account-id`,{type:`string`,description:`Provider-specific identifier of the account or namespace that owns the repository.`}).option(`git-repository-provider-account-name`,{type:`string`,description:`Human-readable name of the account or namespace that owns the repository.`}).option(`git-repository-provider-type`,{type:`string`,description:`The git_repository.provider_type field`,choices:[`github`,`gitlab`,`gitlab_internal`,`origin`]}).option(`git-repository-repo-id`,{type:`string`,description:`Provider-specific repository identifier.`}).option(`git-repository-repo-name`,{type:`string`,description:`Human-readable repository name.`}).option(`git-repository-grant-id`,{type:`string`,description:`Grant ID required for grant-backed providers`}).option(`previews-base-config-build-command`,{type:`string`,description:`Command to build the Worker.`}).option(`previews-base-config-build-token-uuid`,{type:`string`,description:`UUID of the build token used when deploying the Worker.`}).option(`previews-base-config-deploy-command`,{type:`string`,description:`Command to deploy the Worker.`}).option(`previews-base-config-path-excludes`,{type:`string`,array:!0,description:`Path patterns that must not start builds.`}).option(`previews-base-config-path-includes`,{type:`string`,array:!0,description:`Path patterns that can start builds.`}).option(`previews-enabled`,{type:`boolean`,description:`Whether Previews are enabled for this Worker`}).option(`production-settings-build-command`,{type:`string`,description:`Command to build the Worker.`}).option(`production-settings-build-token-uuid`,{type:`string`,description:`UUID of the build token used when deploying the Worker.`}).option(`production-settings-deploy-command`,{type:`string`,description:`Command to deploy the Worker.`}).option(`production-settings-path-excludes`,{type:`string`,array:!0,description:`Path patterns that must not start builds.`}).option(`production-settings-path-includes`,{type:`string`,array:!0,description:`Path patterns that can start builds.`}).option(`script-tag`,{type:`string`,description:`System-generated tag of the Worker. This is not the Worker name.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for creating a Worker build configuration.`})}const $={command:`create`,describe:`Create Worker build configuration`,builder:De,handler:async p=>s({command:`builds workers create`,classification:{safeFlags:[`git-repository-provider-type`,`previews-enabled`,`dry-run`]}},p,async()=>{if(p.dryRun){a({command:`cf builds workers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/workers`,pathParams:{},bodyKind:`json`,body:p.body===void 0?l({git_repository:{branch:u(p[`git-repository-branch`],`git-repository-branch`,`text`),provider_account_id:u(p[`git-repository-provider-account-id`],`git-repository-provider-account-id`,`text`),provider_account_name:u(p[`git-repository-provider-account-name`],`git-repository-provider-account-name`,`text`),provider_type:u(p[`git-repository-provider-type`],`git-repository-provider-type`,`text`),repo_id:u(p[`git-repository-repo-id`],`git-repository-repo-id`,`text`),repo_name:u(p[`git-repository-repo-name`],`git-repository-repo-name`,`text`),grant_id:u(p[`git-repository-grant-id`],`git-repository-grant-id`,`text`)},previews_base_config:{build_command:u(p[`previews-base-config-build-command`],`previews-base-config-build-command`,`text`),build_token_uuid:u(p[`previews-base-config-build-token-uuid`],`previews-base-config-build-token-uuid`,`text`),deploy_command:u(p[`previews-base-config-deploy-command`],`previews-base-config-deploy-command`,`text`),path_excludes:p[`previews-base-config-path-excludes`],path_includes:p[`previews-base-config-path-includes`]},previews_enabled:p[`previews-enabled`],production_settings:{build_command:u(p[`production-settings-build-command`],`production-settings-build-command`,`text`),build_token_uuid:u(p[`production-settings-build-token-uuid`],`production-settings-build-token-uuid`,`text`),deploy_command:u(p[`production-settings-deploy-command`],`production-settings-deploy-command`,`text`),path_excludes:p[`production-settings-path-excludes`],path_includes:p[`production-settings-path-includes`]},script_tag:u(p[`script-tag`],`script-tag`,`text`)}):c(p.body)});return}let s=await t(p),m=p.local?e:await r();if(p.accountId=m,p.body){let e=c(p.body);i(await o(`Creating`,async()=>s.builds.workers.create({...e,account_id:m})),{successLabel:`Created`});return}if(p[`git-repository-branch`]===void 0&&(p[`git-repository-branch`]=await d(`git-repository-branch`,`Git branch to watch for builds`)),p[`git-repository-provider-account-id`]===void 0&&(p[`git-repository-provider-account-id`]=await d(`git-repository-provider-account-id`,`Provider-specific identifier of the account or namespace that owns the repository.`)),p[`git-repository-provider-account-name`]===void 0&&(p[`git-repository-provider-account-name`]=await d(`git-repository-provider-account-name`,`Human-readable name of the account or namespace that owns the repository.`)),p[`git-repository-provider-type`]===void 0&&(p[`git-repository-provider-type`]=await f(`git-repository-provider-type`,`The git_repository.provider_type field`,[`github`,`gitlab`,`gitlab_internal`,`origin`])),p[`git-repository-repo-id`]===void 0&&(p[`git-repository-repo-id`]=await d(`git-repository-repo-id`,`Provider-specific repository identifier.`)),p[`git-repository-repo-name`]===void 0&&(p[`git-repository-repo-name`]=await d(`git-repository-repo-name`,`Human-readable repository name.`)),p[`previews-base-config-build-command`]===void 0&&(p[`previews-base-config-build-command`]=await d(`previews-base-config-build-command`,`Command to build the Worker.`)),p[`previews-base-config-build-token-uuid`]===void 0&&(p[`previews-base-config-build-token-uuid`]=await d(`previews-base-config-build-token-uuid`,`UUID of the build token used when deploying the Worker.`)),p[`previews-base-config-deploy-command`]===void 0&&(p[`previews-base-config-deploy-command`]=await d(`previews-base-config-deploy-command`,`Command to deploy the Worker.`)),p[`previews-enabled`]===void 0)throw Error(`--previews-enabled is required (or pass --body with this field set).`);p[`production-settings-build-command`]===void 0&&(p[`production-settings-build-command`]=await d(`production-settings-build-command`,`Command to build the Worker.`)),p[`production-settings-build-token-uuid`]===void 0&&(p[`production-settings-build-token-uuid`]=await d(`production-settings-build-token-uuid`,`UUID of the build token used when deploying the Worker.`)),p[`production-settings-deploy-command`]===void 0&&(p[`production-settings-deploy-command`]=await d(`production-settings-deploy-command`,`Command to deploy the Worker.`)),p[`script-tag`]===void 0&&(p[`script-tag`]=await d(`script-tag`,`System-generated tag of the Worker. This is not the Worker name.`));let h=l({git_repository:{branch:u(p[`git-repository-branch`],`git-repository-branch`,`text`),provider_account_id:u(p[`git-repository-provider-account-id`],`git-repository-provider-account-id`,`text`),provider_account_name:u(p[`git-repository-provider-account-name`],`git-repository-provider-account-name`,`text`),provider_type:u(p[`git-repository-provider-type`],`git-repository-provider-type`,`text`),repo_id:u(p[`git-repository-repo-id`],`git-repository-repo-id`,`text`),repo_name:u(p[`git-repository-repo-name`],`git-repository-repo-name`,`text`),grant_id:u(p[`git-repository-grant-id`],`git-repository-grant-id`,`text`)},previews_base_config:{build_command:u(p[`previews-base-config-build-command`],`previews-base-config-build-command`,`text`),build_token_uuid:u(p[`previews-base-config-build-token-uuid`],`previews-base-config-build-token-uuid`,`text`),deploy_command:u(p[`previews-base-config-deploy-command`],`previews-base-config-deploy-command`,`text`),path_excludes:p[`previews-base-config-path-excludes`],path_includes:p[`previews-base-config-path-includes`]},previews_enabled:p[`previews-enabled`],production_settings:{build_command:u(p[`production-settings-build-command`],`production-settings-build-command`,`text`),build_token_uuid:u(p[`production-settings-build-token-uuid`],`production-settings-build-token-uuid`,`text`),deploy_command:u(p[`production-settings-deploy-command`],`production-settings-deploy-command`,`text`),path_excludes:p[`production-settings-path-excludes`],path_includes:p[`production-settings-path-includes`]},script_tag:u(p[`script-tag`],`script-tag`,`text`)});i(await o(`Creating`,async()=>s.builds.workers.create({...h,account_id:m})),{successLabel:`Created`})})};function Oe(e){return e.usage(`$0 builds workers delete <script-tag>
|
|
65
65
|
|
|
66
|
-
Delete build settings and triggers for a Worker tag and cancel unfinished builds. The Worker is not deleted.`).positional(`script-tag`,{type:`string`,description:`The Worker script tag (external script ID)`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const ke={command:`delete <script-tag>`,describe:`Delete Worker build configuration`,builder:Oe,handler:async c=>s({command:`builds workers delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf builds workers delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
66
|
+
Delete build settings and triggers for a Worker tag and cancel unfinished builds. The Worker is not deleted.`).positional(`script-tag`,{type:`string`,description:`The Worker script tag (external script ID)`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const ke={command:`delete <script-tag>`,describe:`Delete Worker build configuration`,builder:Oe,handler:async c=>s({command:`builds workers delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf builds workers delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/workers/${c[`script-tag`]==null?`<script-tag>`:encodeURIComponent(String(c[`script-tag`]))}`,pathParams:{"script-tag":String(c[`script-tag`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();if(c.accountId=l,!await p({force:!!c.force,message:`This operation deletes the Worker build configuration and its triggers, and cancels unfinished builds. The Worker is not deleted.`})){process.stderr.write(`Aborted.
|
|
67
67
|
`);return}i(await o(`Deleting`,async()=>s.builds.workers.delete({account_id:l,script_tag:c[`script-tag`]})),{successLabel:`Deleted`})})};function Ae(e){return e.usage(`$0 builds workers get <script-tag>
|
|
68
68
|
|
|
69
|
-
Retrieve the repository and production build settings associated with a Worker tag.`).positional(`script-tag`,{type:`string`,description:`The Worker script tag (external script ID)`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const je={command:`get <script-tag>`,describe:`Get Worker build configuration`,builder:Ae,handler:async c=>s({command:`builds workers get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf builds workers get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
69
|
+
Retrieve the repository and production build settings associated with a Worker tag.`).positional(`script-tag`,{type:`string`,description:`The Worker script tag (external script ID)`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const je={command:`get <script-tag>`,describe:`Get Worker build configuration`,builder:Ae,handler:async c=>s({command:`builds workers get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf builds workers get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/workers/${c[`script-tag`]==null?`<script-tag>`:encodeURIComponent(String(c[`script-tag`]))}`,pathParams:{"script-tag":String(c[`script-tag`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l,i(await o(`Loading`,async()=>s.builds.workers.get({account_id:l,script_tag:c[`script-tag`]})),{successLabel:`Loaded`})})};function Me(e){return e.usage(`$0 builds workers update <script-tag>
|
|
70
70
|
|
|
71
|
-
Update the build configuration for a Worker script. Supports partial updates to git repository settings, production build settings, and Preview settings.`).positional(`script-tag`,{type:`string`,description:`The Worker script tag (external script ID)`,demandOption:!0}).option(`patch-existing-previews`,{type:`string`,description:`Apply a previews_base_config patch to every existing Preview of the Worker as well as to the base config.`,choices:[`true`,`false`]}).option(`git-repository-branch`,{type:`string`,description:`New git branch to watch for builds`}).option(`previews-base-config-build-caching-enabled`,{type:`boolean`,description:`Whether builds reuse cached dependencies and build artifacts.`}).option(`previews-base-config-build-command`,{type:`string`,description:`Command to build the Worker.`}).option(`previews-base-config-build-token-uuid`,{type:`string`,description:`UUID of the build token used when deploying the Worker.`}).option(`previews-base-config-deploy-command`,{type:`string`,description:`Command to deploy the Worker.`}).option(`previews-base-config-path-excludes`,{type:`string`,array:!0,description:`Path patterns that must not start builds.`}).option(`previews-base-config-path-includes`,{type:`string`,array:!0,description:`Path patterns that can start builds.`}).option(`previews-base-config-root-directory`,{type:`string`,description:`Repository directory in which build and deploy commands run.`}).option(`previews-enabled`,{type:`boolean`,description:`Enable or disable Previews for this Worker. Enabling requires previews_base_config to already exist or to be sent in the same request.`}).option(`production-settings-build-caching-enabled`,{type:`boolean`,description:`Whether builds reuse cached dependencies and build artifacts.`}).option(`production-settings-build-command`,{type:`string`,description:`Command to build the Worker.`}).option(`production-settings-build-token-uuid`,{type:`string`,description:`UUID of the build token used when deploying the Worker.`}).option(`production-settings-deploy-command`,{type:`string`,description:`Command to deploy the Worker.`}).option(`production-settings-path-excludes`,{type:`string`,array:!0,description:`Path patterns that must not start builds.`}).option(`production-settings-path-includes`,{type:`string`,array:!0,description:`Path patterns that can start builds.`}).option(`production-settings-root-directory`,{type:`string`,description:`Repository directory in which build and deploy commands run.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for updating a Worker build configuration. At least one field must be provided.`})}const Ne={command:`update <script-tag>`,describe:`Update Worker build configuration`,builder:m(Me),handler:async d=>s({command:`builds workers update`,classification:{safeFlags:[`patch-existing-previews`,`previews-base-config-build-caching-enabled`,`previews-enabled`,`production-settings-build-caching-enabled`,`dry-run`]}},d,async()=>{let s={patch_existing_previews:d[`patch-existing-previews`]};if(d.dryRun){a({command:`cf builds workers update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
71
|
+
Update the build configuration for a Worker script. Supports partial updates to git repository settings, production build settings, and Preview settings.`).positional(`script-tag`,{type:`string`,description:`The Worker script tag (external script ID)`,demandOption:!0}).option(`patch-existing-previews`,{type:`string`,description:`Apply a previews_base_config patch to every existing Preview of the Worker as well as to the base config.`,choices:[`true`,`false`]}).option(`git-repository-branch`,{type:`string`,description:`New git branch to watch for builds`}).option(`previews-base-config-build-caching-enabled`,{type:`boolean`,description:`Whether builds reuse cached dependencies and build artifacts.`}).option(`previews-base-config-build-command`,{type:`string`,description:`Command to build the Worker.`}).option(`previews-base-config-build-token-uuid`,{type:`string`,description:`UUID of the build token used when deploying the Worker.`}).option(`previews-base-config-deploy-command`,{type:`string`,description:`Command to deploy the Worker.`}).option(`previews-base-config-path-excludes`,{type:`string`,array:!0,description:`Path patterns that must not start builds.`}).option(`previews-base-config-path-includes`,{type:`string`,array:!0,description:`Path patterns that can start builds.`}).option(`previews-base-config-root-directory`,{type:`string`,description:`Repository directory in which build and deploy commands run.`}).option(`previews-enabled`,{type:`boolean`,description:`Enable or disable Previews for this Worker. Enabling requires previews_base_config to already exist or to be sent in the same request.`}).option(`production-settings-build-caching-enabled`,{type:`boolean`,description:`Whether builds reuse cached dependencies and build artifacts.`}).option(`production-settings-build-command`,{type:`string`,description:`Command to build the Worker.`}).option(`production-settings-build-token-uuid`,{type:`string`,description:`UUID of the build token used when deploying the Worker.`}).option(`production-settings-deploy-command`,{type:`string`,description:`Command to deploy the Worker.`}).option(`production-settings-path-excludes`,{type:`string`,array:!0,description:`Path patterns that must not start builds.`}).option(`production-settings-path-includes`,{type:`string`,array:!0,description:`Path patterns that can start builds.`}).option(`production-settings-root-directory`,{type:`string`,description:`Repository directory in which build and deploy commands run.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for updating a Worker build configuration. At least one field must be provided.`})}const Ne={command:`update <script-tag>`,describe:`Update Worker build configuration`,builder:m(Me),handler:async d=>s({command:`builds workers update`,classification:{safeFlags:[`patch-existing-previews`,`previews-base-config-build-caching-enabled`,`previews-enabled`,`production-settings-build-caching-enabled`,`dry-run`]}},d,async()=>{let s={patch_existing_previews:d[`patch-existing-previews`]};if(d.dryRun){a({command:`cf builds workers update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/builds/workers/${d[`script-tag`]==null?`<script-tag>`:encodeURIComponent(String(d[`script-tag`]))}`,pathParams:{"script-tag":String(d[`script-tag`]??``)},query:s,bodyKind:`json`,body:d.body===void 0?l({git_repository:{branch:u(d[`git-repository-branch`],`git-repository-branch`,`text`)},previews_base_config:{build_caching_enabled:d[`previews-base-config-build-caching-enabled`],build_command:u(d[`previews-base-config-build-command`],`previews-base-config-build-command`,`text`),build_token_uuid:u(d[`previews-base-config-build-token-uuid`],`previews-base-config-build-token-uuid`,`text`),deploy_command:u(d[`previews-base-config-deploy-command`],`previews-base-config-deploy-command`,`text`),path_excludes:d[`previews-base-config-path-excludes`],path_includes:d[`previews-base-config-path-includes`],root_directory:u(d[`previews-base-config-root-directory`],`previews-base-config-root-directory`,`text`)},previews_enabled:d[`previews-enabled`],production_settings:{build_caching_enabled:d[`production-settings-build-caching-enabled`],build_command:u(d[`production-settings-build-command`],`production-settings-build-command`,`text`),build_token_uuid:u(d[`production-settings-build-token-uuid`],`production-settings-build-token-uuid`,`text`),deploy_command:u(d[`production-settings-deploy-command`],`production-settings-deploy-command`,`text`),path_excludes:d[`production-settings-path-excludes`],path_includes:d[`production-settings-path-includes`],root_directory:u(d[`production-settings-root-directory`],`production-settings-root-directory`,`text`)}}):c(d.body)});return}let f=await t(d),p=d.local?e:await r();if(d.accountId=p,d.body){let e=c(d.body);new URLSearchParams(Object.entries(s).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString(),i(await o(`Updating`,async()=>f.builds.workers.update({...e,account_id:p,script_tag:d[`script-tag`],...s})),{successLabel:`Updated`});return}let m=l({git_repository:{branch:u(d[`git-repository-branch`],`git-repository-branch`,`text`)},previews_base_config:{build_caching_enabled:d[`previews-base-config-build-caching-enabled`],build_command:u(d[`previews-base-config-build-command`],`previews-base-config-build-command`,`text`),build_token_uuid:u(d[`previews-base-config-build-token-uuid`],`previews-base-config-build-token-uuid`,`text`),deploy_command:u(d[`previews-base-config-deploy-command`],`previews-base-config-deploy-command`,`text`),path_excludes:d[`previews-base-config-path-excludes`],path_includes:d[`previews-base-config-path-includes`],root_directory:u(d[`previews-base-config-root-directory`],`previews-base-config-root-directory`,`text`)},previews_enabled:d[`previews-enabled`],production_settings:{build_caching_enabled:d[`production-settings-build-caching-enabled`],build_command:u(d[`production-settings-build-command`],`production-settings-build-command`,`text`),build_token_uuid:u(d[`production-settings-build-token-uuid`],`production-settings-build-token-uuid`,`text`),deploy_command:u(d[`production-settings-deploy-command`],`production-settings-deploy-command`,`text`),path_excludes:d[`production-settings-path-excludes`],path_includes:d[`production-settings-path-includes`],root_directory:u(d[`production-settings-root-directory`],`production-settings-root-directory`,`text`)}});new URLSearchParams(Object.entries(s).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString(),i(await o(`Updating`,async()=>f.builds.workers.update({...m,account_id:p,script_tag:d[`script-tag`],...s})),{successLabel:`Updated`})})},Pe={command:`workers`,describe:`Manage repository-backed build configuration for Workers.`,builder:e=>e.command($).command(ke).command(je).command(Ne).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Fe={command:`builds`,describe:`Build and deploy Workers from connected repositories, then inspect build status and logs.`,builder:e=>e.command(ee).command(g).command(j).command(I).command(k).command(P).command(z).command(J).command(ie).command(Ce).command(Ee).command(Pe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Fe as default};
|