cf 1.0.0-beta.12 → 1.0.0-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_meta/commands.json +4648 -3810
- package/dist/_meta/hand-written-commands.json +356 -23
- package/dist/_meta/schemas.json +2522 -2143
- package/dist/abuse-reports-CVv52Q2w.mjs +24 -0
- package/dist/access-k1QjF5rE.mjs +2 -0
- package/dist/account-tags-RhvWOkOf.mjs +15 -0
- package/dist/{accounts-BSd4b-1j.mjs → accounts--3lrEkmu.mjs} +67 -80
- package/dist/{acm-BfI0p2sX.mjs → acm-BJxINEcu.mjs} +2 -2
- package/dist/{addressing-lfeJf7YB.mjs → addressing-BqByG9JW.mjs} +55 -43
- package/dist/{agent-memory-CP1qpn-y.mjs → agent-memory-D4dQMGbh.mjs} +2 -2
- package/dist/{ai-jFzFBANM.mjs → ai-CRkQ4pjC.mjs} +18 -16
- package/dist/{ai-audit-B_tSl78A.mjs → ai-audit-fMSn4c5L.mjs} +1 -1
- package/dist/ai-gateway-CbhvQK4L.mjs +80 -0
- package/dist/ai-search-CvVSnOA0.mjs +79 -0
- package/dist/{ai-security-CKGE547U.mjs → ai-security-Z_qpI92I.mjs} +1 -1
- package/dist/{alerting-CuxoqG3S.mjs → alerting-CpbCB8br.mjs} +5 -5
- package/dist/analytics-DkY9dOP1.mjs +17 -0
- package/dist/{analytics_engine-BoapM9wd.mjs → analytics_engine-DE_jvlx_.mjs} +1 -1
- package/dist/{api-security-Nk_bg-Kg.mjs → api-security-BHnOU5MM.mjs} +25 -25
- package/dist/argo-DhC5L_aN.mjs +14 -0
- package/dist/{artifacts-BS6cEqCB.mjs → artifacts-CrIupY7P.mjs} +3 -3
- package/dist/{audit-logs-x5tLqeX2.mjs → audit-logs-BjeBxTox.mjs} +1 -1
- package/dist/{auth-CKotxfap.mjs → auth-BNYfOMl0.mjs} +1 -1
- package/dist/{auth-AobvBmz4.mjs → auth-CAWalgW0.mjs} +1 -1
- package/dist/auth-DOwC01PW.mjs +2 -0
- package/dist/{auth-token-CtguMdmF.mjs → auth-token-Dop0wLCw.mjs} +1 -1
- package/dist/{autoconfig-PfnbLuEO.mjs → autoconfig-RQ3HS4m1.mjs} +151 -151
- package/dist/{basin-catalog-Ddi-t3q9.mjs → basin-catalog-DZ7QV-_N.mjs} +3 -3
- package/dist/{billing-CDMc4tvX.mjs → billing-BFyte9fL.mjs} +3 -3
- package/dist/bot-management-DXcbV3am.mjs +9 -0
- package/dist/{botnet-feed-CVwRm42k.mjs → botnet-feed-bGGp_cwX.mjs} +1 -1
- package/dist/{brand-protection-DfNf5REj.mjs → brand-protection-DN36XkxH.mjs} +2 -2
- package/dist/browser-run-hHD1RT43.mjs +42 -0
- package/dist/build-BhpWYgNm.mjs +2 -0
- package/dist/{build-BKPVP5ip.mjs → build-CCe7IrWT.mjs} +1 -1
- package/dist/{builds-BG5DHqU3.mjs → builds-6aO61R9R.mjs} +4 -4
- package/dist/{cache-C05hHXUp.mjs → cache-C5YJpMqi.mjs} +6 -6
- package/dist/{certificate-authorities-DyCFmZwR.mjs → certificate-authorities-CbqDAktQ.mjs} +1 -1
- package/dist/cf-oRSQKirD.mjs +18 -0
- package/dist/chunk-DSGVRFIS-CPI5cYtB.mjs +2 -0
- package/dist/{chunk-FT2NMTJB-DQ7s3x7Q.mjs → chunk-NDZDTP46-Civns3WA.mjs} +3 -3
- package/dist/{chunk-AUSY7DKT-BJX6Fdc4.mjs → chunk-TAK63GWY-DdMktrgc.mjs} +9 -2
- package/dist/{cli-D9qlPB-6.mjs → cli-ht4q6i2y.mjs} +1 -1
- package/dist/{client-certificates-B-m8rfM9.mjs → client-certificates-balaN_my.mjs} +1 -1
- package/dist/{client-side-security-M4oIUqID.mjs → client-side-security-3_4Ermmg.mjs} +3 -3
- package/dist/{cloud-connector-B63Dwn6n.mjs → cloud-connector-avx27sLw.mjs} +1 -1
- package/dist/cloudflared-D83U8Yn3.mjs +2 -0
- package/dist/{cloudforce-one-Dlc1GNFy.mjs → cloudforce-one-CXdeqJ9l.mjs} +143 -185
- package/dist/{command-VuxpEvmH.mjs → command-9VAc7b30.mjs} +1 -1
- package/dist/{command-CUkXxZsc.mjs → command-B_Ixlz8Q.mjs} +1 -1
- package/dist/{command-ZBQ1WITj.mjs → command-Bpzp8Mz2.mjs} +1 -1
- package/dist/{command-DBaNgfA4.mjs → command-BtDY_MKv.mjs} +1 -1
- package/dist/command-CUNMrMou.mjs +2 -0
- package/dist/{command-SS1z_t68.mjs → command-Ckb9FufU.mjs} +1 -1
- package/dist/{command-BWlpCtHe.mjs → command-CtVUNm__.mjs} +1 -1
- package/dist/{command-DyE8v4sd.mjs → command-CyJQ40fc.mjs} +1 -1
- package/dist/{command-BlGILcTA.mjs → command-DPX9sJVi.mjs} +1 -1
- package/dist/{command-CXxh5Hce.mjs → command-DXaRn1ls.mjs} +1 -1
- package/dist/{command-CRl00uA2.mjs → command-DjEJaOwV.mjs} +1 -1
- package/dist/{command-Rv2MR-eh.mjs → command-DtgJilOK.mjs} +1 -1
- package/dist/{command-CKQlxypn.mjs → command-OHov3PEc.mjs} +1 -1
- package/dist/{command-DEQSv-S1.mjs → command-OWe3v69l.mjs} +1 -1
- package/dist/{command-BQpXcGKV.mjs → command-SmWD-MeI.mjs} +1 -1
- package/dist/{completions-lf50FBGm.mjs → completions-CuqAO3N_.mjs} +11 -11
- package/dist/{connector-interrupts-DHN1KtUE.mjs → connector-interrupts-ftd10Du-.mjs} +1 -1
- package/dist/{connector-telemetry-events-CHg7FmXh.mjs → connector-telemetry-events-TwDZYdEM.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-CSifYi9r.mjs → connector-telemetry-snapshots-CZxkOuC3.mjs} +1 -1
- package/dist/{connectors-0UwPUav-.mjs → connectors-6lVSr-fd.mjs} +1 -1
- package/dist/containers-Dqs_ZnO2.mjs +78 -0
- package/dist/containers-ncw3bd3a.mjs +376 -0
- package/dist/{content-scan-COyTz0Wb.mjs → content-scan-BWFbqfQ0.mjs} +3 -3
- package/dist/{context-Bwkz4Lm_.mjs → context-BBLtgdR1.mjs} +2 -2
- package/dist/cps-C5phNoVU.mjs +6 -0
- package/dist/{csamScanner-jez2EYXC.mjs → csamScanner-BwZNZu0A.mjs} +3 -3
- package/dist/{ct-alerting-CACDrY0E.mjs → ct-alerting-DPp3qLqO.mjs} +1 -1
- package/dist/{custom-certificates-BBd92YlF.mjs → custom-certificates-pfpZcr06.mjs} +5 -5
- package/dist/{custom-csrs-DTwBiNMX.mjs → custom-csrs-DrvGRAkl.mjs} +2 -2
- package/dist/{custom-hostnames-DIWlqvN9.mjs → custom-hostnames-wGtmFbz1.mjs} +4 -4
- package/dist/{custom-nameservers-DISy8v8u.mjs → custom-nameservers-HTG6MPKv.mjs} +1 -1
- package/dist/{custom-pages-BHXO_NFv.mjs → custom-pages-DqEHBSVt.mjs} +2 -2
- package/dist/d1-EQMUlHTJ.mjs +94 -0
- package/dist/{dcv-delegation-Buq0hcm_.mjs → dcv-delegation-D6nj0Z5N.mjs} +1 -1
- package/dist/deploy-B22sEVHd.mjs +2 -0
- package/dist/deploy-context-DmG9rgPO.mjs +56 -0
- package/dist/deploy-input-BCjcuP6u.mjs +2 -0
- package/dist/{dev-D8FGPKRt.mjs → dev-ClhhXuNU.mjs} +1 -1
- package/dist/diagnostics-tqHjq-Pl.mjs +15 -0
- package/dist/dialog-D4Y9ocuF.mjs +2 -0
- package/dist/dist-DmRM6WSZ.mjs +449 -0
- package/dist/dist-uRuGmkMB.mjs +60 -0
- package/dist/{dls-8D00tqvC.mjs → dls-BEHj4X9T.mjs} +1 -1
- package/dist/{dns-firewall-DIiF4pro.mjs → dns-firewall-zwbkutyf.mjs} +1 -1
- package/dist/{dns-C-A5pwf3.mjs → dns-n4mfYBZg.mjs} +7 -7
- package/dist/dry-run-DRj2_uV3.mjs +2 -0
- package/dist/{durable-objects-CnIqbj84.mjs → durable-objects-CQ2dHhho.mjs} +1 -1
- package/dist/{email-auth-v97Md32E.mjs → email-auth-DOi6yOt3.mjs} +1 -1
- package/dist/{email-routing-I29RG4hb.mjs → email-routing-WcSPt22u.mjs} +5 -5
- package/dist/{email-security-BCarmbky.mjs → email-security-BXu3OGay.mjs} +15 -15
- package/dist/{email-sending-CsHk2HAJ.mjs → email-sending-B9zTlIjt.mjs} +2 -2
- package/dist/{error-sanitization-BWnGnB73.mjs → error-sanitization-DE_zSrXw.mjs} +1 -1
- package/dist/error-sanitization-DOCQ9Ykh.mjs +2 -0
- package/dist/{fieldExtractors-GIVe9jZa.mjs → fieldExtractors-B37m2lKW.mjs} +1 -1
- package/dist/{firewall-DpgFqJr3.mjs → firewall-CRtYO0Ha.mjs} +7 -7
- package/dist/{flagship-BVaXXlsX.mjs → flagship-DvTFZSay.mjs} +3 -3
- package/dist/{fraud-B5GQdEF2.mjs → fraud-uSyibsit.mjs} +5 -5
- package/dist/{google-tag-gateway-C4O61lp-.mjs → google-tag-gateway-BFXiiokq.mjs} +1 -1
- package/dist/hand-written-dry-run-B82fRl2N.mjs +2 -0
- package/dist/{healthchecks-BwYMnKSF.mjs → healthchecks-27u7b7Jb.mjs} +5 -5
- package/dist/{hostnames-DhrGRFeI.mjs → hostnames-DvaUSzsj.mjs} +1 -1
- package/dist/hyperdrive-BzJvPdu6.mjs +37 -0
- package/dist/{iam-sRKDU2Z3.mjs → iam-Dl3cU9GI.mjs} +1 -1
- package/dist/{images-DXdekLVs.mjs → images-C2OkI1j7.mjs} +6 -6
- package/dist/index.mjs +1 -1
- package/dist/init-Da8pe296.mjs +43 -0
- package/dist/{intel-CnVeSjIS.mjs → intel-DoB1g_K7.mjs} +2 -2
- package/dist/interactive-BW9T1D1q.mjs +48 -0
- package/dist/interactive-DGUWZ2Gk.mjs +2 -0
- package/dist/{ips-COCUG8mk.mjs → ips-BRt68epr.mjs} +1 -1
- package/dist/k2-_eq5ZY2t.mjs +11 -0
- package/dist/{keyless-certificates-l2_S__h3.mjs → keyless-certificates-DaO2yqYu.mjs} +2 -2
- package/dist/{keys-CDZreums.mjs → keys-7BQ3Zq6Y.mjs} +1 -1
- package/dist/{kv-DkpKVimq.mjs → kv-BTYCXKML.mjs} +4 -4
- package/dist/{lazy-command-_vZGz6mv.mjs → lazy-command-CDWwCsD2.mjs} +1 -1
- package/dist/{leaked-credential-checks-edbapECI.mjs → leaked-credential-checks-CPHOK_dE.mjs} +1 -1
- package/dist/load-balancers-Bu9pd2SV.mjs +76 -0
- package/dist/{local-C0lQ9sTg.mjs → local-BcPM4I0s.mjs} +1 -1
- package/dist/local-BundUuDT.mjs +2 -0
- package/dist/{local-runtime-DtnWXN0a.mjs → local-runtime-BHKyRlCP.mjs} +1 -1
- package/dist/{login-DeOM4v0L.mjs → login-BBYC_BtH.mjs} +1 -1
- package/dist/{login-BrjOuHKu.mjs → login-D2uoWhWh.mjs} +1 -1
- package/dist/{logo-matches-CF8321pb.mjs → logo-matches-Bc1DQ4-g.mjs} +1 -1
- package/dist/{logos-Bd8xNRKW.mjs → logos-X5B8z7Iv.mjs} +1 -1
- package/dist/{logpush-BYk3qqwY.mjs → logpush-C2ENi1et.mjs} +7 -7
- package/dist/{logs-Jcj2NN8H.mjs → logs-BKDz7kBW.mjs} +1 -1
- package/dist/{magic-cloud-networking-Dgdb9H0f.mjs → magic-cloud-networking-B60Gld8A.mjs} +6 -6
- package/dist/{magic-network-monitoring-CxVU4MZB.mjs → magic-network-monitoring-CxXI3Y-H.mjs} +4 -4
- package/dist/{magic-transit-KDyfUgTv.mjs → magic-transit-ZCSaCbl8.mjs} +171 -168
- package/dist/{managed-defense-CxaDeNUd.mjs → managed-defense-DrxMb7xi.mjs} +1 -1
- package/dist/{managed-transforms-C7rT5E-x.mjs → managed-transforms-AI7KrRU1.mjs} +1 -1
- package/dist/{matches-BtKqG8T9.mjs → matches-rPMLS3Ip.mjs} +1 -1
- package/dist/mcp-DXUMvEWt.mjs +32 -0
- package/dist/mesh-MmBCQ37q.mjs +26 -0
- package/dist/{migrate-DHlfR_gZ.mjs → migrate-CZNq63Uj.mjs} +1 -1
- package/dist/{monetization-pLalYYMI.mjs → monetization-DQE5VtUO.mjs} +2 -2
- package/dist/{mtls-certificates-DYA9Wu-c.mjs → mtls-certificates-DwkEb-Hy.mjs} +2 -2
- package/dist/{network-DrJxPWXQ.mjs → network-BcfobxQY.mjs} +1 -1
- package/dist/{network-interconnects-D73MlYG8.mjs → network-interconnects-BU3tN_Ab.mjs} +10 -11
- package/dist/o11y-BBv7nedp.mjs +93 -0
- package/dist/{oauth-B08YQ4xq.mjs → oauth-BUr8bPwo.mjs} +1 -1
- package/dist/{oauth-clients-CkPDLFd-.mjs → oauth-clients-qWVImhHE.mjs} +3 -3
- package/dist/{oauth-TGbM1Q0V.mjs → oauth-n8um6MFk.mjs} +1 -1
- package/dist/{oauth-scopes-VgliqcQe.mjs → oauth-scopes-CdeIgJIx.mjs} +1 -1
- package/dist/organization-CJeOVWH7.mjs +71 -0
- package/dist/{organizations-Dk0D9ukm.mjs → organizations-BpfoqZcG.mjs} +1 -1
- package/dist/{origin-ca-certificates-BSFqMTn-.mjs → origin-ca-certificates-Bimf07RF.mjs} +2 -2
- package/dist/origin-post-quantum-encryption-CM-If38w.mjs +6 -0
- package/dist/{origin-tls-client-auth-BzE3WpcN.mjs → origin-tls-client-auth-BPwYPhc9.mjs} +3 -3
- package/dist/{output-BGqhvqe2.mjs → output-BOe-3AQG.mjs} +1 -1
- package/dist/{page-rules-BKaU37cM.mjs → page-rules-DOeekMrj.mjs} +4 -4
- package/dist/pages-Bn0Sg1ay.mjs +54 -0
- package/dist/pay-per-crawl-qJpseNNx.mjs +38 -0
- package/dist/pay-per-use-C1MWKJ4O.mjs +33 -0
- package/dist/pipelines-rCwXQw6S.mjs +44 -0
- package/dist/{precursor-DmQ32-Sp.mjs → precursor-Bk8Pp6jT.mjs} +2 -2
- package/dist/previews-BEheHO3T.mjs +4 -0
- package/dist/process-2wmDCy17.mjs +2 -0
- package/dist/{progress-BYVZuEcG.mjs → progress-CQqDtgmF.mjs} +1 -1
- package/dist/prompt-C8FyienX.mjs +3 -0
- package/dist/{queries-DPBkVynK.mjs → queries-DJ8looyq.mjs} +1 -1
- package/dist/{queues-CCXRs98q.mjs → queues-BBH9Q-Tt.mjs} +7 -7
- package/dist/{r2-BKuBSW8h.mjs → r2-CdJKpP2w.mjs} +52 -49
- package/dist/{radar-Gv1yFoRX.mjs → radar-CdvQL4xm.mjs} +1 -1
- package/dist/raw-fetch-DbXN3SlE.mjs +2 -0
- package/dist/{realtime-CVl-rvgx.mjs → realtime-onrXppzh.mjs} +9 -9
- package/dist/{registrar-swlnh22i.mjs → registrar-CbEBc5IE.mjs} +2 -2
- package/dist/{registrar-sandbox-cmOYDnkp.mjs → registrar-sandbox-BJhn1HFT.mjs} +3 -3
- package/dist/{registry-C20J1MW0.mjs → registry-PI6sO95I.mjs} +1 -1
- package/dist/{reporting-Bgwsvol1.mjs → reporting-bXZY6obP.mjs} +1 -1
- package/dist/{request-headers-CUee83pa.mjs → request-headers-D8L95bEQ.mjs} +1 -1
- package/dist/{request-tracers-BBiJvVDz.mjs → request-tracers-CihskC2A.mjs} +1 -1
- package/dist/{resolve-DvxgnWjL.mjs → resolve-CaTBV-c6.mjs} +1 -1
- package/dist/resolve-DCGSzUDQ.mjs +2 -0
- package/dist/{resource-sharing-C1JiYLbl.mjs → resource-sharing-DDqcCHVs.mjs} +11 -11
- package/dist/{resource-tagging-C9VOSlDR.mjs → resource-tagging-D63RpBce.mjs} +1 -1
- package/dist/{rules-BDunCGMj.mjs → rules-CAW0-Wde.mjs} +1 -1
- package/dist/rulesets-CPir63Qc.mjs +37 -0
- package/dist/{rum-B7XiECe9.mjs → rum-BfwTcuup.mjs} +1 -1
- package/dist/{run-CrZgB8L_.mjs → run-CW2Cgi0S.mjs} +1 -1
- package/dist/run-DEynXvCc.mjs +2 -0
- package/dist/{schema-DC0kdqgV.mjs → schema-elj12WOx.mjs} +1 -1
- package/dist/{schema-flags-BUZR9SLd.mjs → schema-flags-BTItUu1K.mjs} +1 -1
- package/dist/{scim-CORcs2wK.mjs → scim-CtZ1FeQE.mjs} +1 -1
- package/dist/{secrets-store-BoZQaFey.mjs → secrets-store-BIuBYUJT.mjs} +2 -2
- package/dist/{security-insights-DblK_6sg.mjs → security-insights-DfUus0bs.mjs} +3 -3
- package/dist/{security-txt-Dl7RPnRb.mjs → security-txt-CgZOsAIZ.mjs} +1 -1
- package/dist/{session-BWe9et4K.mjs → session-BcM8Vyyx.mjs} +1 -1
- package/dist/shared-CpS23WwR.mjs +2 -0
- package/dist/{smart-shield-DX0-8ruu.mjs → smart-shield-ClgB7r-9.mjs} +5 -5
- package/dist/{snippets-BFN-Lg3K.mjs → snippets-DLO3iFAg.mjs} +1 -1
- package/dist/spawn-D07wH-MH.mjs +10 -0
- package/dist/{spectrum-HYWLWB0X.mjs → spectrum-B6qkjR_Z.mjs} +5 -5
- package/dist/{speed-Dj0YhfRe.mjs → speed-DX5X2EIR.mjs} +1 -1
- package/dist/sql-CF044HDW.mjs +4 -0
- package/dist/src-BMATTZU_.mjs +125 -0
- package/dist/{ssl-BQL1fNtD.mjs → ssl-CM-rChEC.mjs} +5 -5
- package/dist/{startup-profile-0X5ebbng.mjs → startup-profile-CrtCP-6-.mjs} +1 -1
- package/dist/startup-profile-D662WI9s.mjs +2 -0
- package/dist/state-D7uNYnoi.mjs +2 -0
- package/dist/{state-Dy6-rKNd.mjs → state-DIiIGEtR.mjs} +1 -1
- package/dist/{stream-DKv2TtZN.mjs → stream-5EmUOQvy.mjs} +5 -5
- package/dist/{submit-Byt2KBGI.mjs → submit-lEAaRSMR.mjs} +1 -1
- package/dist/{tags-BIBsdG68.mjs → tags-CX23P4jg.mjs} +1 -1
- package/dist/telemetry-0Y5hAtCX.mjs +2 -0
- package/dist/{telemetry-bu3txnIR.mjs → telemetry-ZlCi5Xhc.mjs} +1 -1
- package/dist/{tenant-Bs4Ac4n3.mjs → tenant-DnI7QziH.mjs} +1 -1
- package/dist/{tenant-custom-nameservers-DcaELeCE.mjs → tenant-custom-nameservers-MR0dlcGm.mjs} +1 -1
- package/dist/{tools-BbTX7rlM.mjs → tools-CSc5DmFi.mjs} +1 -1
- package/dist/{tunnels-DWcrz9Sf.mjs → tunnels-NzYpsfi_.mjs} +15 -15
- package/dist/{turnstile-2MIGp2ce.mjs → turnstile-M7sKCEz3.mjs} +11 -11
- package/dist/{update-check-CfB0PNTY.mjs → update-check-HFkPml6x.mjs} +1 -1
- package/dist/update-check-aTutXNRd.mjs +2 -0
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-info-B8udoxlx.mjs → url-info-Dos9VOXV.mjs} +1 -1
- package/dist/{url-normalization-C6AdWtaE.mjs → url-normalization-CZbFOq_v.mjs} +2 -2
- package/dist/{url-scanner-Dg0c_yVb.mjs → url-scanner-B7quLPGW.mjs} +2 -2
- package/dist/{user-BLZ-0Bgv.mjs → user-rXca0J9M.mjs} +14 -14
- package/dist/values-D-rrZrDa.mjs +4 -0
- package/dist/{vectorize-DEUSEQXY.mjs → vectorize-D2tf_oA8.mjs} +4 -4
- package/dist/version-BGnqDvNR.mjs +2 -0
- package/dist/waiting-rooms-DrA3-0bw.mjs +53 -0
- package/dist/{web-assets-CLZdWOmN.mjs → web-assets-DQAfvPT9.mjs} +3 -3
- package/dist/{web3-DjeavuLg.mjs → web3-MI0GQDnu.mjs} +5 -5
- package/dist/workers-By6Pf8fv.mjs +40 -0
- package/dist/{workers-builds-COn5Ne5G.mjs → workers-builds-6YsWsCmC.mjs} +2 -2
- package/dist/{workers-for-platforms-tchCXwNF.mjs → workers-for-platforms-DL8fC1qR.mjs} +4 -6
- package/dist/workers-vpc-BYx6sbgd.mjs +13 -0
- package/dist/workflows-ByQLnV0E.mjs +52 -0
- package/dist/{wrangler-migration-BpJqCFAa.mjs → wrangler-migration-C6FKHER1.mjs} +1 -1
- package/dist/{zaraz-BvQZB0YY.mjs → zaraz-CgbpmA85.mjs} +1 -1
- package/dist/{zero-trust-FStq4uhn.mjs → zero-trust-CpjTkkWt.mjs} +418 -402
- package/dist/{zone-tymlghWb.mjs → zone-DnKIe6po.mjs} +1 -1
- package/dist/{zones-Bz6dgT9_.mjs → zones--5ZzsDmQ.mjs} +15 -15
- package/package.json +25 -26
- package/dist/abuse-reports-Cy9RcWPu.mjs +0 -24
- package/dist/access-DwJm1qet.mjs +0 -2
- package/dist/account-tags-d0RkEw6s.mjs +0 -15
- package/dist/ai-gateway-CJaUlfGc.mjs +0 -82
- package/dist/ai-search-PTlpY1T9.mjs +0 -79
- package/dist/analytics-NPND7aHB.mjs +0 -20
- package/dist/argo-DYfLQhd2.mjs +0 -10
- package/dist/auth-CBtzZ3Sw.mjs +0 -2
- package/dist/bot-management-UrCM3P8K.mjs +0 -9
- package/dist/browser-run-DVaiBLYX.mjs +0 -46
- package/dist/build-C4giET85.mjs +0 -2
- package/dist/cf-B9aqZZKD.mjs +0 -18
- package/dist/chunk-KKDV4JPS-D3kwd1Nq.mjs +0 -2
- package/dist/cloudflared-B48cfu95.mjs +0 -2
- package/dist/command-CzvlHvov.mjs +0 -2
- package/dist/containers-DRzgE46U.mjs +0 -375
- package/dist/containers-DuIsM7lM.mjs +0 -78
- package/dist/cps-B7_BJaAU.mjs +0 -6
- package/dist/d1-MvAQMvvo.mjs +0 -89
- package/dist/deploy-BS47vZvJ.mjs +0 -2
- package/dist/deploy-context-Cfushp8j.mjs +0 -56
- package/dist/deploy-input-BAhS5LYx.mjs +0 -2
- package/dist/diagnostics-ChDfJ-Gv.mjs +0 -15
- package/dist/dialog-CL1Zy4pn.mjs +0 -2
- package/dist/dist-8rP3V95o.mjs +0 -57
- package/dist/dist-CYFkGHYv.mjs +0 -487
- package/dist/dry-run-DmsbOMF1.mjs +0 -2
- package/dist/error-sanitization-C_a2LxOK.mjs +0 -2
- package/dist/hyperdrive-DAA8Fazg.mjs +0 -37
- package/dist/init-j47MT4Qe.mjs +0 -39
- package/dist/interactive-Dqv0RWVU.mjs +0 -42
- package/dist/interactive-Wpd3FcDc.mjs +0 -2
- package/dist/k2-CmHkArHL.mjs +0 -13
- package/dist/load-balancers-C5YMvhXD.mjs +0 -76
- package/dist/local-D5L5Bwju.mjs +0 -2
- package/dist/mcp-QDd1Iyc0.mjs +0 -32
- package/dist/mesh-DtrIzl5z.mjs +0 -26
- package/dist/observability-CvN9oxAo.mjs +0 -80
- package/dist/organization-DIwqRBBV.mjs +0 -75
- package/dist/origin-post-quantum-encryption-BOKWKDTY.mjs +0 -6
- package/dist/pages-2Xg-lrMf.mjs +0 -54
- package/dist/pay-per-crawl-5-KTQXRr.mjs +0 -65
- package/dist/pay-per-use-sGebKzNK.mjs +0 -6
- package/dist/pipelines-BM-T7mMK.mjs +0 -44
- package/dist/previews-DDQ9ACDJ.mjs +0 -4
- package/dist/prompt-F5wxc8zq.mjs +0 -3
- package/dist/raw-fetch-DyYWa923.mjs +0 -2
- package/dist/resolve-qwL1LmKN.mjs +0 -2
- package/dist/rulesets-BMGxrnv9.mjs +0 -37
- package/dist/run-nNxXb_Cv.mjs +0 -2
- package/dist/shared-0N31BXkY.mjs +0 -2
- package/dist/spawn-DZ9A-xXb.mjs +0 -10
- package/dist/src-CAiZlihY.mjs +0 -117
- package/dist/startup-profile-CXnsF4c7.mjs +0 -2
- package/dist/state-BA2CanJ_.mjs +0 -2
- package/dist/telemetry-DBXOMuLh.mjs +0 -2
- package/dist/update-check-B-CvDAUz.mjs +0 -2
- package/dist/values-BUK-m0Jg.mjs +0 -4
- package/dist/version-BZNc7Y3t.mjs +0 -2
- package/dist/waiting-rooms-BycGk2Y0.mjs +0 -53
- package/dist/workers-C_SfyU-v.mjs +0 -38
- package/dist/workers-vpc-CKts8Av0.mjs +0 -13
- package/dist/workflows-BibtWuOx.mjs +0 -43
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-DpXaxfho.mjs";import{n}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-DpXaxfho.mjs";import{n}from"./context-BBLtgdR1.mjs";import{n as r}from"./cloudflared-D83U8Yn3.mjs";const i={command:`login <url>`,describe:`Authenticate with an Access application and store its JWT through cloudflared.`,builder:e=>e.positional(`url`,{type:`string`,description:`URL of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access login.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`login`),i.quiet&&a.push(`--quiet`),a.push(i.url),new e(await r(a))}};export{i as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-DpXaxfho.mjs";import{n}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-DpXaxfho.mjs";import{n}from"./context-BBLtgdR1.mjs";import{n as r}from"./cloudflared-D83U8Yn3.mjs";const i={command:`curl <url>`,describe:`Run curl against an Access-protected application with its JWT injected by cloudflared.`,builder:e=>e.parserConfiguration({"populate--":!0,"parse-positional-numbers":!1,"short-option-groups":!1}).option(`allow-request`,{alias:`ar`,type:`boolean`,description:`Continue the request when no Access token is available`}).positional(`url`,{type:`string`,description:`URL of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access curl.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`curl`),i[`allow-request`]&&a.push(`--allow-request`),a.push(i.url,...(i[`--`]??[]).map(String)),new e(await r(a))}};export{i as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{n as e,t}from"./project-settings-nBMEx1f-.mjs";import{t as n}from"./output-
|
|
2
|
+
import{n as e,t}from"./project-settings-nBMEx1f-.mjs";import{t as n}from"./output-BOe-3AQG.mjs";import{n as r}from"./generate-CeeWW3eX.mjs";import*as i from"node:path";function a(e){return e.option(`include-runtime`,{type:`boolean`,description:`Include Cloudflare Workers runtime types`,default:!0})}const o={command:`types`,describe:`Generate types from cloudflare.config.ts`,builder:a,handler:async a=>{if(a.local)throw Error(`--local is not supported by cf workers types.`);let o=e();if(o===null)throw Error(`${t} is required by cf workers types.`);let s=await r({configPath:o,mode:a.mode,includeRuntime:a.includeRuntime});n({path:i.relative(process.cwd(),s)},{quiet:a.quiet})}};export{o as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-DpXaxfho.mjs";import{n}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-DpXaxfho.mjs";import{n}from"./context-BBLtgdR1.mjs";import{n as r}from"./cloudflared-D83U8Yn3.mjs";const i={command:`token <url>`,describe:`Print a JWT for authenticating with an Access application.`,builder:e=>e.positional(`url`,{type:`string`,description:`URL of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access token.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`token`,i.url),new e(await r(a))}};export{i as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{n as t,t as n}from"./cloudflared-D83U8Yn3.mjs";const r={command:`quick-start <url>`,describe:`Expose a local URL with a temporary trycloudflare.com tunnel. The tunnel remains active until cf exits.`,builder:e=>e.positional(`url`,{type:`string`,description:`Local URL to expose (for example, http://localhost:3000)`,demandOption:!0}).option(`allowed-mail`,{type:`string`,array:!0,nargs:1,description:`Require email authentication (cloudflared 2026.9.2 or later). Accepts an exact address or domain wildcard such as user@example.com or *@example.org. May be repeated or comma-separated.`}).option(`log-level`,{type:`string`,choices:n,default:`info`,description:`cloudflared log level`}),handler:async n=>{throw n.local?Error(`--local is not supported by cf tunnels quick-start.`):new e(await t([`tunnel`,`--url`,n.url,`--loglevel`,n[`log-level`],...(n[`allowed-mail`]??[]).flatMap(e=>[`--allowed-mail`,e])]))}};export{r as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-DpXaxfho.mjs";import{n}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-DpXaxfho.mjs";import{n}from"./context-BBLtgdR1.mjs";import{n as r}from"./cloudflared-D83U8Yn3.mjs";const i={command:`login`,describe:`Authorize cloudflared and download an origin certificate for locally managed tunnels.`,handler:async i=>{if(i.local)throw Error(`--local is not supported by cf tunnels login.`);let a=[`tunnel`,`login`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),new e(await r(a))}};export{i as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{n as t}from"./cloudflared-
|
|
2
|
+
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{n as t}from"./cloudflared-D83U8Yn3.mjs";const n={command:`diag`,describe:`Create a diagnostic report from a local cloudflared instance.`,builder:e=>e.parserConfiguration({"boolean-negation":!1}).option(`metrics`,{type:`string`,description:`Metrics server address for the cloudflared instance`}).option(`diag-container-id`,{type:`string`,description:`Container ID or name to collect logs from`}).option(`diag-pod-id`,{type:`string`,description:`Kubernetes pod to collect logs from`}).option(`no-diag-logs`,{type:`boolean`,description:`Exclude logs`}).option(`no-diag-metrics`,{type:`boolean`,description:`Exclude metrics`}).option(`no-diag-network`,{type:`boolean`,description:`Exclude network diagnostics`}).option(`no-diag-runtime`,{type:`boolean`,description:`Exclude runtime information`}).option(`no-diag-system`,{type:`boolean`,description:`Exclude system information`}),handler:async n=>{if(n.local)throw Error(`--local is not supported by cf tunnels diag.`);let r=[`tunnel`,`diag`];n.metrics&&r.push(`--metrics`,n.metrics),n[`diag-container-id`]&&r.push(`--diag-container-id`,n[`diag-container-id`]),n[`diag-pod-id`]&&r.push(`--diag-pod-id`,n[`diag-pod-id`]);for(let e of[`no-diag-logs`,`no-diag-metrics`,`no-diag-network`,`no-diag-runtime`,`no-diag-system`])n[e]&&r.push(`--${e}`);throw new e(await t(r))}};export{n as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-DpXaxfho.mjs";import{n}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-DpXaxfho.mjs";import{n}from"./context-BBLtgdR1.mjs";import{n as r}from"./cloudflared-D83U8Yn3.mjs";const i={command:`ssh-config`,describe:`Print an example SSH configuration for an Access application.`,builder:e=>e.option(`hostname`,{type:`string`,description:`Hostname of the Access application`}).option(`short-lived-cert`,{type:`boolean`,description:`Include short-lived certificate configuration`}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access ssh-config.`);if(await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`)throw Error(`cf access ssh-config does not support FedRAMP because cloudflared does not include --fedramp in its generated SSH configuration.`);let a=[`access`,`ssh-config`];throw i.hostname&&a.push(`--hostname`,i.hostname),i[`short-lived-cert`]&&a.push(`--short-lived-cert`),new e(await r(a))}};export{i as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-DpXaxfho.mjs";import{n}from"./auth-
|
|
2
|
+
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-DpXaxfho.mjs";import{n}from"./auth-CAWalgW0.mjs";import{t as r}from"./context-BBLtgdR1.mjs";import{t as i}from"./progress-CQqDtgmF.mjs";import{n as a}from"./cloudflared-D83U8Yn3.mjs";const o=[`cloudflared`,`http`,`tcp`,`udp`],s=[`debug`,`info`,`warn`,`error`],c=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function l(e,t){if(!c.test(e))throw Error(`${t} must be a valid UUID.`);return e}const u={command:`tail [tunnel-id]`,describe:`Stream logs from a remote cloudflared instance.`,builder:e=>e.positional(`tunnel-id`,{type:`string`,coerce:e=>l(e,`Tunnel ID`),description:`Tunnel UUID to stream logs from`}).option(`connector-id`,{type:`string`,coerce:e=>l(e,`--connector-id`),description:`Target a specific cloudflared connector`}).option(`event`,{type:`string`,choices:o,array:!0,description:`Filter by event type (may be repeated)`}).option(`level`,{type:`string`,choices:s,description:`Filter by log level`}).option(`sample`,{type:`number`,coerce:e=>{if(!Number.isFinite(e)||e<=0||e>1)throw Error(`--sample must be greater than 0.0 and no greater than 1.0.`);return e},description:`Sample log events by fraction greater than 0.0 and no greater than 1.0`}),handler:async o=>{if(o.local)throw Error(`--local is not supported by cf tunnels tail.`);let s=process.env.TUNNEL_MANAGEMENT_TOKEN;if(s!==void 0&&!s.trim())throw Error(`TUNNEL_MANAGEMENT_TOKEN must not be empty.`);if(s&&o[`tunnel-id`])throw Error(`Specify either a tunnel ID or TUNNEL_MANAGEMENT_TOKEN, not both.`);let c=s;if(!c){let e=o[`tunnel-id`];if(!e)throw Error(`Either a tunnel ID or TUNNEL_MANAGEMENT_TOKEN must be provided.`);c=await t({mode:o.mode,local:o.local},async()=>{let t=await n(o),a=await r();return i(`Fetching tunnel management token`,async()=>t.tunnels.managementToken.create({account_id:a,tunnel_id:e,resources:[`logs`]}))})}let l=[`tail`,`--output`,`json`];if(o[`connector-id`]&&l.push(`--connector-id`,o[`connector-id`]),o.event)for(let e of o.event)l.push(`--event`,e);throw o.level&&l.push(`--level`,o.level),o.sample!==void 0&&l.push(`--sample`,String(o.sample)),o[`tunnel-id`]&&l.push(o[`tunnel-id`]),new e(await a(l,{env:{TUNNEL_MANAGEMENT_TOKEN:c}}))}};export{u as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{d as t}from"./dist-
|
|
2
|
+
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{d as t}from"./dist-DmRM6WSZ.mjs";import{existsSync as n}from"node:fs";import{join as r}from"node:path";const i={command:`deploy [directory]`,describe:`Deploy a directory of static assets as a Pages deployment`,builder:e=>e.positional(`directory`,{type:`string`,description:`Pages build output directory (not deployed by cf)`}),handler:i=>{if(i.local)throw Error(`--local is not supported by cf pages deploy.`);let a=r(t(console).getCacheFolder(),`pages.json`);throw n(a)?console.error("Legacy Pages is not supported in `cf`. Please use `npx wrangler pages deploy` for this project."):console.error("Legacy Pages is not supported in `cf`. To deploy to the new version of Pages on Workers, use `cf deploy` instead."),new e(1)}};export{i as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-DpXaxfho.mjs";import{n}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-DpXaxfho.mjs";import{n}from"./context-BBLtgdR1.mjs";import{n as r,t as i}from"./cloudflared-D83U8Yn3.mjs";function a(e){return e.option(`hostname`,{type:`string`,demandOption:!0,description:`Hostname of the Access application`}).option(`destination`,{type:`string`,description:`Destination address of the target server`}).option(`url`,{type:`string`,description:`Local host and port to forward to the Cloudflare edge`}).option(`header`,{type:`string`,array:!0,description:`Additional request header; repeat for multiple headers`}).option(`service-token-id`,{type:`string`,description:`Access service token ID`}).option(`service-token-secret`,{type:`string`,description:`Access service token secret`}).option(`log-level`,{alias:`loglevel`,type:`string`,choices:i,description:`cloudflared log level`})}const o={command:`tcp`,aliases:[`ssh`,`rdp`,`smb`],describe:`Proxy a TCP connection through Access. The command is also available as ssh, rdp, and smb.`,builder:a,handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access tcp.`);let a=[`access`];await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`tcp`),a.push(`--hostname`,i.hostname),i.destination&&a.push(`--destination`,i.destination),i.url&&a.push(`--url`,i.url);for(let e of i.header??[])a.push(`--header`,e);i[`service-token-id`]&&a.push(`--service-token-id`,i[`service-token-id`]),i[`log-level`]&&a.push(`--loglevel`,i[`log-level`]);let o=i[`service-token-secret`]?{TUNNEL_SERVICE_TOKEN_SECRET:i[`service-token-secret`]}:void 0;throw new e(await r(a,{env:o}))}};export{o as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{n as t}from"./cloudflared-
|
|
2
|
+
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{n as t}from"./cloudflared-D83U8Yn3.mjs";const n={command:`ready`,describe:`Check the /ready endpoint exposed by a local cloudflared instance.`,builder:e=>e.option(`metrics`,{type:`string`,demandOption:!0,description:`Metrics server address for the cloudflared instance`}),handler:async n=>{if(n.local)throw Error(`--local is not supported by cf tunnels ready.`);let r=[`tunnel`,`--metrics`,n.metrics,`ready`];throw new e(await t(r))}};export{n as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{x as e}from"./dist-
|
|
2
|
+
import{x as e}from"./dist-DmRM6WSZ.mjs";import{t}from"./chunk-DSGVRFIS-CPI5cYtB.mjs";import{i as n,n as r,t as i}from"./startup-profile-CrtCP-6-.mjs";import{t as a}from"./output-BOe-3AQG.mjs";import{t as o}from"./progress-CQqDtgmF.mjs";import{a as s,i as c,n as l,o as u,r as d,s as f}from"./build-CCe7IrWT.mjs";import{t as p}from"./deploy-input-BCjcuP6u.mjs";import m from"node:path";import{writeFile as h}from"node:fs/promises";import{readBuildOutput as g}from"@cloudflare/build-output-utils";function _(e){return e.option(`outfile`,{type:`string`,description:`Output file for the startup CPU profile`,default:`worker-startup.cpuprofile`,requiresArg:!0}).option(`prebuilt`,{type:`boolean`,description:`Use existing Build Output Specification files without building`,default:!1}).option(`worker`,d)}const v={command:`check`,describe:`Profile a Worker's startup performance`,builder:_,handler:async d=>{if(d.local)throw Error(`--local is not supported by cf workers check.`);d.prebuilt||await l(d.mode,{output:d.quiet?`silent`:`stderr`,worker:d.worker});let{workers:_,rootConfig:v}=await g(process.cwd());u(d.mode,v.buildContext.mode);let y=s(_,d.worker),{wranglerConfig:b,builtConfig:x}=c(y,v),S=p(y,x);if(!S.resolvedEntryPointPath)throw new f(`Startup profiling requires a Worker entrypoint; assets-only projects cannot be profiled.`);if(S.bundleType===`commonjs`)throw new f(`Startup profiling does not support service-worker format Workers. Refer to https://developers.cloudflare.com/workers/reference/migrate-to-module-workers/ for migration guidance.`);let C=t({name:b.name??y.config.name??`worker`,main:{name:x.manifest?.mainModule??m.basename(S.resolvedEntryPointPath),filePath:S.resolvedEntryPointPath,content:S.content,type:S.bundleType},modules:S.modules,sourceMaps:S.sourceMaps,compatibility_date:b.compatibility_date,compatibility_flags:b.compatibility_flags??[],assets:void 0,containers:void 0,migrations:void 0,exports:void 0,keepVars:void 0,keepSecrets:void 0,logpush:void 0,placement:void 0,tail_consumers:void 0,streaming_tail_consumers:void 0,limits:void 0,annotations:void 0,observability:void 0,cache:void 0,package_dependencies:void 0},e(b),{dryRun:!0,unsafe:b.unsafe}),w=await r(C),T=d.quiet?await i(C):await o(`Profiling Worker startup`,()=>i(C)),E=n(T);await h(d.outfile,JSON.stringify(T)),a({bundle:{sizeBytes:w.size,gzipSizeBytes:w.gzipSize},startup:{profileWindowMs:E.profileWindow/1e3,sampledTimeMs:E.sampledTime/1e3,activeTimeMs:E.activeTime/1e3,garbageCollectionTimeMs:E.garbageCollectionTime/1e3,idleTimeMs:E.idleTime/1e3,sampleCount:E.sampleCount},profile:d.outfile,note:`This profile was measured locally. Use it to understand where startup time is spent, not to predict startup time on Cloudflare.`},{quiet:d.quiet})}};export{v as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-DpXaxfho.mjs";import{n}from"./auth-
|
|
2
|
+
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-DpXaxfho.mjs";import{n}from"./auth-CAWalgW0.mjs";import{r}from"./resolve-CaTBV-c6.mjs";import{t as i}from"./context-BBLtgdR1.mjs";import{t as a}from"./progress-CQqDtgmF.mjs";import{n as o,t as s}from"./cloudflared-D83U8Yn3.mjs";const c=1e3;async function l(e,t,n){if(r(n))return n;let i=0,a;for(let r=1;;r++){let o=await e.tunnel.list({account_id:t,name:n,is_deleted:!1,page:r,per_page:c}),s=o.result??[];for(let e of s)e.name===n&&(i++,a=e.id);let l=o.result_info?.per_page||c;if(s.length<l)break}if(i===0)throw Error(`"${n}" is neither the ID nor the name of any tunnel. Run \`cf tunnels list\` to see available tunnels.`);if(i>1)throw Error(`Found multiple tunnels named "${n}". Pass the tunnel UUID instead.`);if(!a)throw Error(`Tunnel "${n}" was found but has no ID. Pass the tunnel UUID instead.`);return a}async function u(e,t,n){let r=await e.tunnels.token.get({account_id:t,tunnel_id:n});if(typeof r!=`string`||r.length===0)throw Error(`The API returned an empty token for tunnel ${n}.`);return r}function d(e){return e.positional(`tunnel`,{type:`string`,description:`Tunnel name or UUID; required unless --token is provided`}).option(`token`,{type:`string`,description:`Tunnel token supplied directly to cloudflared`}).option(`log-level`,{type:`string`,choices:s,default:`info`,description:`cloudflared log level`})}const f={command:`run [tunnel]`,describe:`Run a named Cloudflare Tunnel using the cf-managed cloudflared binary.`,builder:d,handler:async r=>{if(r.local)throw Error(`--local is not supported by cf tunnels run.`);let s=r.token,c=r.tunnel;if(!s){if(!c)throw Error(`Either a tunnel name/UUID or --token must be provided.`);s=await t(r,async()=>{let e=await n(r),t=await i();return a(`Fetching tunnel token`,async()=>{let n=await l(e,t,c);return u(e,t,n)})})}let d=[`tunnel`,`--loglevel`,r[`log-level`]];throw d.push(`run`),new e(await o(d,{env:{TUNNEL_TOKEN:s}}))}};export{f as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-DpXaxfho.mjs";import{n}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-DpXaxfho.mjs";import{n}from"./context-BBLtgdR1.mjs";import{n as r}from"./cloudflared-D83U8Yn3.mjs";const i={command:`ssh-gen`,describe:`Generate a short-lived certificate for an Access SSH application.`,builder:e=>e.option(`hostname`,{type:`string`,description:`Hostname of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access ssh-gen.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`ssh-gen`,`--hostname`,i.hostname),new e(await r(a))}};export{i as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{n as e,t}from"./metadata-Df5kCWJv.mjs";import{t as n}from"./run-
|
|
2
|
+
import{n as e,t}from"./metadata-Df5kCWJv.mjs";import{t as n}from"./run-CW2Cgi0S.mjs";import r from"node:assert";function i(e,t){return`#compdef ${e}
|
|
3
3
|
compdef _${e} ${e}
|
|
4
4
|
|
|
5
5
|
# zsh completion for ${e} -*- shell-script -*-
|
|
@@ -46,7 +46,7 @@ _${e}() {
|
|
|
46
46
|
|
|
47
47
|
# Prepare the command to obtain completions, ensuring arguments are quoted for eval
|
|
48
48
|
local -a args_to_quote=("\${(@)words[2,-1]}")
|
|
49
|
-
if [ "\${lastChar}" = "" ]; then
|
|
49
|
+
if [ "\${lastChar}" = "" ] && [ "\${args_to_quote[-1]}" != "" ]; then
|
|
50
50
|
# If the last parameter is complete (there is a space following it)
|
|
51
51
|
# We add an extra empty parameter so we can indicate this to the go completion code.
|
|
52
52
|
__${e}_debug "Adding extra empty parameter"
|
|
@@ -328,17 +328,15 @@ function __${n}_perform_completion
|
|
|
328
328
|
|
|
329
329
|
# Extract all args except the last one
|
|
330
330
|
set -l args (commandline -opc)
|
|
331
|
-
# Extract the
|
|
332
|
-
set -l lastArg (
|
|
331
|
+
# Extract the token currently being completed (may be empty on a trailing space)
|
|
332
|
+
set -l lastArg (commandline -ct)
|
|
333
333
|
|
|
334
334
|
__${n}_debug "args: $args"
|
|
335
335
|
__${n}_debug "last arg: $lastArg"
|
|
336
336
|
|
|
337
|
-
#
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
__${n}_debug "Calling $requestComp"
|
|
341
|
-
set -l results (eval $requestComp 2> /dev/null)
|
|
337
|
+
# Pass each arg as its own token (no string join/eval, which would collapse multi-segment paths); quote "$lastArg" so an empty trailing token is still sent.
|
|
338
|
+
__${n}_debug "Calling ${t} complete -- $args[2..-1] $lastArg"
|
|
339
|
+
set -l results (${t} complete -- $args[2..-1] "$lastArg" 2> /dev/null)
|
|
342
340
|
|
|
343
341
|
# Some programs may output extra empty lines after the directive.
|
|
344
342
|
# Let's ignore them or else it will break completion.
|
|
@@ -619,8 +617,10 @@ complete -k -c ${e} -n '__${n}_requires_order_preservation && __${n}_prepare_com
|
|
|
619
617
|
# Remove the flag part
|
|
620
618
|
$Flag, $WordToComplete = $WordToComplete.Split("=", 2)
|
|
621
619
|
}
|
|
622
|
-
|
|
623
|
-
|
|
620
|
+
$HasTrailingEmptyArg = $QuotedArgs -match "(^| )''$"
|
|
621
|
+
__${e}_debug "HasTrailingEmptyArg: $HasTrailingEmptyArg"
|
|
622
|
+
|
|
623
|
+
if ( $WordToComplete -eq "" -And ( -Not $IsEqualFlag ) -And ( -Not $HasTrailingEmptyArg )) {
|
|
624
624
|
# If the last parameter is complete (there is a space following it)
|
|
625
625
|
# We add an extra empty parameter so we can indicate this to the go method.
|
|
626
626
|
__${e}_debug "Adding extra empty parameter"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-BcPM4I0s.mjs";import{n as t}from"./auth-CAWalgW0.mjs";import{a as n,t as r}from"./context-BBLtgdR1.mjs";import{t as i}from"./output-BOe-3AQG.mjs";import{t as a}from"./dry-run-DRj2_uV3.mjs";import{t as o}from"./progress-CQqDtgmF.mjs";import{t as s}from"./run-CW2Cgi0S.mjs";import"./telemetry-0Y5hAtCX.mjs";import{n as c,t as l}from"./body-parser-DkHKPkJ7.mjs";function u(e){return e.usage(`$0 connector-interrupts create <connector-id>
|
|
3
3
|
|
|
4
4
|
Creates an interrupt for a Magic WAN Connector.`).positional(`connector-id`,{type:`string`,description:`Connector ID`,demandOption:!0}).option(`reboot-purge`,{type:`boolean`,description:`Purge connector state.`}).option(`restart-purge`,{type:`boolean`,description:`Purge connector state.`}).option(`shutdown-purge`,{type:`boolean`,description:`Purge connector state.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Interrupt action for a connector.`})}const d={command:`create <connector-id>`,describe:`Create Interrupt`,builder:u,handler:async u=>s({command:`connector-interrupts create`,classification:{safeFlags:[`reboot-purge`,`restart-purge`,`shutdown-purge`,`dry-run`]}},u,async()=>{if(u.dryRun){let e=await n();a({command:`cf connector-interrupts create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/magic/connectors/${u[`connector-id`]==null?`<connector-id>`:encodeURIComponent(String(u[`connector-id`]))}/interrupts`,pathParams:{"connector-id":String(u[`connector-id`]??``)},bodyKind:`json`,body:u.body===void 0?l({reboot:{purge:u[`reboot-purge`]},restart:{purge:u[`restart-purge`]},shutdown:{purge:u[`shutdown-purge`]}}):c(u.body)});return}let s=await t(u),d=u.local?e:await r();if(u.accountId=d,u.body){let e=c(u.body),t=await o(`Creating`,async()=>s.connectorInterrupts.create({...e,account_id:d,connector_id:u[`connector-id`]}));i(t,{successLabel:`Created`});return}let f=l({reboot:{purge:u[`reboot-purge`]},restart:{purge:u[`restart-purge`]},shutdown:{purge:u[`shutdown-purge`]}}),p=await o(`Creating`,async()=>s.connectorInterrupts.create({...f,account_id:d,connector_id:u[`connector-id`]}));i(p,{successLabel:`Created`})})};function f(e){return e.usage(`$0 connector-interrupts list
|
|
5
5
|
|
package/dist/{connector-telemetry-events-CHg7FmXh.mjs → connector-telemetry-events-TwDZYdEM.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-BcPM4I0s.mjs";import{n as t}from"./auth-CAWalgW0.mjs";import{a as n,t as r}from"./context-BBLtgdR1.mjs";import{t as i}from"./output-BOe-3AQG.mjs";import{t as a}from"./dry-run-DRj2_uV3.mjs";import{t as o}from"./progress-CQqDtgmF.mjs";import{t as s}from"./run-CW2Cgi0S.mjs";import"./telemetry-0Y5hAtCX.mjs";function c(e){return e.usage(`$0 connector-telemetry-events get <event-n>
|
|
3
3
|
|
|
4
4
|
Gets Magic WAN Connector Telemetry Event`).positional(`event-n`,{type:`string`,description:`Event n`,demandOption:!0}).option(`connector-id`,{type:`string`,description:`Connector ID`,demandOption:!0}).option(`event-t`,{type:`string`,description:`Event t`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`get <event-n>`,describe:`Get Event`,builder:c,handler:async c=>s({command:`connector-telemetry-events get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){let e=await n();a({command:`cf connector-telemetry-events get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/magic/connectors/${c[`connector-id`]==null?`<connector-id>`:encodeURIComponent(String(c[`connector-id`]))}/telemetry/events/${c[`event-t`]==null?`<event-t>`:encodeURIComponent(String(c[`event-t`]))}.${c[`event-n`]==null?`<event-n>`:encodeURIComponent(String(c[`event-n`]))}`,pathParams:{"connector-id":String(c[`connector-id`]??``),"event-t":String(c[`event-t`]??``),"event-n":String(c[`event-n`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l;let u=await o(`Loading`,async()=>s.connectorTelemetryEvents.get({account_id:l,connector_id:c[`connector-id`],event_t:c[`event-t`],event_n:c[`event-n`]}));i(u,{successLabel:`Loaded`})})};function u(e){return e.usage(`$0 connector-telemetry-events list
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-BcPM4I0s.mjs";import{n as t}from"./auth-CAWalgW0.mjs";import{a as n,t as r}from"./context-BBLtgdR1.mjs";import{t as i}from"./output-BOe-3AQG.mjs";import{t as a}from"./dry-run-DRj2_uV3.mjs";import{t as o}from"./progress-CQqDtgmF.mjs";import{t as s}from"./run-CW2Cgi0S.mjs";import"./telemetry-0Y5hAtCX.mjs";function c(e){return e.usage(`$0 connector-telemetry-snapshots get <snapshot-t>
|
|
3
3
|
|
|
4
4
|
Gets Magic WAN Connector Telemetry Snapshot`).positional(`snapshot-t`,{type:`string`,description:`Snapshot t`,demandOption:!0}).option(`connector-id`,{type:`string`,description:`Connector ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`get <snapshot-t>`,describe:`Get Snapshot`,builder:c,handler:async c=>s({command:`connector-telemetry-snapshots get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){let e=await n();a({command:`cf connector-telemetry-snapshots get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/magic/connectors/${c[`connector-id`]==null?`<connector-id>`:encodeURIComponent(String(c[`connector-id`]))}/telemetry/snapshots/${c[`snapshot-t`]==null?`<snapshot-t>`:encodeURIComponent(String(c[`snapshot-t`]))}`,pathParams:{"connector-id":String(c[`connector-id`]??``),"snapshot-t":String(c[`snapshot-t`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l;let u=await o(`Loading`,async()=>s.connectorTelemetrySnapshots.get({account_id:l,connector_id:c[`connector-id`],snapshot_t:c[`snapshot-t`]}));i(u,{successLabel:`Loaded`})})};function u(e){return e.usage(`$0 connector-telemetry-snapshots list
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-BcPM4I0s.mjs";import{n as t}from"./auth-CAWalgW0.mjs";import{a as n,t as r}from"./context-BBLtgdR1.mjs";import{t as i}from"./output-BOe-3AQG.mjs";import{t as a}from"./dry-run-DRj2_uV3.mjs";import{t as o}from"./progress-CQqDtgmF.mjs";import{t as s}from"./run-CW2Cgi0S.mjs";import"./telemetry-0Y5hAtCX.mjs";import{n as c,t as l}from"./body-parser-DkHKPkJ7.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{n as d}from"./prompt-C8FyienX.mjs";import{t as f}from"./cli-types-9oYmRTHJ.mjs";function p(e){return e.usage(`$0 connectors create
|
|
3
3
|
|
|
4
4
|
Creates a Magic WAN Connector.`).option(`device-id`,{type:`string`,description:`The device.id field`}).option(`device-provision-license`,{type:`boolean`,description:`When true, create and provision a new licence key for the connector.`}).option(`device-serial-number`,{type:`string`,description:`The device.serial_number field`}).option(`activated`,{type:`boolean`,description:`The activated field`}).option(`interrupt-window-days-of-week`,{type:`string`,array:!0,description:`Allowed days of the week for upgrades. Default is all days.`}).option(`interrupt-window-duration-hours`,{type:`number`,description:`The interrupt_window_duration_hours field`}).option(`interrupt-window-embargo-dates`,{type:`string`,array:!0,description:`List of dates (YYYY-MM-DD) when upgrades are blocked.`}).option(`interrupt-window-hour-of-day`,{type:`number`,description:`The interrupt_window_hour_of_day field`}).option(`notes`,{type:`string`,description:`The notes field`}).option(`timezone`,{type:`string`,description:`The timezone field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const m={command:`create`,describe:`Create Connector`,builder:p,handler:async d=>s({command:`connectors create`,classification:{safeFlags:[`device-provision-license`,`activated`,`dry-run`]}},d,async()=>{if(d.dryRun){let e=await n();a({command:`cf connectors create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/magic/connectors`,pathParams:{},bodyKind:`json`,body:d.body===void 0?l({device:{id:u(d[`device-id`],`device-id`,`text`),provision_license:d[`device-provision-license`],serial_number:u(d[`device-serial-number`],`device-serial-number`,`text`)},activated:d.activated,interrupt_window_days_of_week:d[`interrupt-window-days-of-week`],interrupt_window_duration_hours:d[`interrupt-window-duration-hours`],interrupt_window_embargo_dates:d[`interrupt-window-embargo-dates`],interrupt_window_hour_of_day:d[`interrupt-window-hour-of-day`],notes:u(d.notes,`notes`,`text`),timezone:u(d.timezone,`timezone`,`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),t=await o(`Creating`,async()=>s.connectors.create({...e,account_id:f}));i(t,{successLabel:`Created`});return}let p=l({device:{id:u(d[`device-id`],`device-id`,`text`),provision_license:d[`device-provision-license`],serial_number:u(d[`device-serial-number`],`device-serial-number`,`text`)},activated:d.activated,interrupt_window_days_of_week:d[`interrupt-window-days-of-week`],interrupt_window_duration_hours:d[`interrupt-window-duration-hours`],interrupt_window_embargo_dates:d[`interrupt-window-embargo-dates`],interrupt_window_hour_of_day:d[`interrupt-window-hour-of-day`],notes:u(d.notes,`notes`,`text`),timezone:u(d.timezone,`timezone`,`text`)}),m=await o(`Creating`,async()=>s.connectors.create({...p,account_id:f}));i(m,{successLabel:`Created`})})};function h(e){return e.usage(`$0 connectors delete <connector-id>
|
|
5
5
|
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{G as e}from"./dist-DmRM6WSZ.mjs";import{a as t}from"./banner-D03JEqRs.mjs";import{t as n}from"./hand-written-dry-run-B82fRl2N.mjs";import{t as r}from"./local-BcPM4I0s.mjs";import{n as i}from"./auth-CAWalgW0.mjs";import{a,n as o,t as s}from"./context-BBLtgdR1.mjs";import{E as c,S as ee,T as l,_ as u,b as te,f as d,h as ne,p as f,s as p,t as m,u as re,v as ie}from"./deploy-context-DmG9rgPO.mjs";import{t as h}from"./auth-token-Dop0wLCw.mjs";import{n as g}from"./request-headers-D8L95bEQ.mjs";import{t as _}from"./output-BOe-3AQG.mjs";import{t as v}from"./dry-run-DRj2_uV3.mjs";import{t as y}from"./progress-CQqDtgmF.mjs";import{n as b,t as x}from"./run-CW2Cgi0S.mjs";import"./telemetry-0Y5hAtCX.mjs";import{n as S,r as C,t as w}from"./body-parser-DkHKPkJ7.mjs";import{n as T}from"./input-validation-D7z60HJH.mjs";import{a as E,i as D,n as O}from"./prompt-C8FyienX.mjs";import{t as k}from"./cli-types-9oYmRTHJ.mjs";function A(e){return e.usage('$0 containers applications create\n\nCreate a Containers application. Use `scheduling_policy: "default"` for a scheduler-backed application. The Containers scheduler maintains the requested instance count and manages deployment configuration, placement, scaling, versions, and rollouts. Use `scheduling_policy: "durable_object"` for a Durable Object-managed application. Each Durable Object creates and manages the lifecycle of its container instance. Supply `name`, `scheduling_policy`, and `durable_objects`, with optional `configuration` and optional top-level `observability` settings. Deployment configuration, scaling, constraints, versions, and rollouts do not apply.').option(`configuration-command`,{type:`string`,array:!0,description:`The command that runs when the container starts, passed to the entrypoint.
|
|
3
|
+
You can override this at run-time. If you override only the command,
|
|
4
|
+
it gets passed to the default entrypoint specified in the image.
|
|
5
|
+
`}).option(`configuration-entrypoint`,{type:`string`,array:!0,description:`The entry point for the container, specifying the executable to run when the container starts.
|
|
6
|
+
You can override this at run-time. If you do, the default command from the image is ignored.
|
|
7
|
+
Specify both entrypoint and command at run-time to completely replace the image defaults.
|
|
8
|
+
`}).option(`configuration-image`,{type:`string`,description:`Image url.`}).option(`configuration-instance-type`,{type:`string`,description:`The instance type configures vCPU, memory, and disk.
|
|
9
|
+
|
|
10
|
+
- "lite": 1/16 vCPU, 256 MiB memory, 2 GB disk
|
|
11
|
+
- "basic": 1/4 vCPU, 1 GiB memory, 4 GB disk
|
|
12
|
+
- "standard-1": 1/2 vCPU, 4 GiB memory, 8 GB disk
|
|
13
|
+
- "standard-2": 1 vCPU, 6 GiB memory, 12 GB disk
|
|
14
|
+
- "standard-3": 2 vCPU, 8 GiB memory, 16 GB disk
|
|
15
|
+
- "standard-4": 4 vCPU, 12 GiB memory, 20 GB disk
|
|
16
|
+
`}).option(`configuration-observability-logs-enabled`,{type:`boolean`,description:`The configuration.observability.logs.enabled field`}).option(`configuration-wrangler-ssh-enabled`,{type:`boolean`,description:`The configuration.wrangler_ssh.enabled field`}).option(`configuration-wrangler-ssh-port`,{type:`number`,description:`The configuration.wrangler_ssh.port field`}).option(`constraints-jurisdiction`,{type:`string`,description:`Restricts placement to datacenters in the selected jurisdiction. Choose "eu", "fedramp", or "us". When combined with regions, EU supports EEUR and WEUR while FedRAMP and US support ENAM and WNAM.`}).option(`constraints-regions`,{type:`string`,array:!0,description:`The constraints.regions field`}).option(`instances`,{type:`number`,description:`The initial number of deployments to create.`}).option(`max-instances`,{type:`number`,description:`Sets the maximum number of instances that the application can run.`}).option(`name`,{type:`string`,description:`The name for this application.`}).option(`observability-logs-enabled`,{type:`boolean`,description:`The observability.logs.enabled field`}).option(`rollout-active-grace-period`,{type:`number`,description:`Grace period for active instances to stay alive before becoming eligible for shutdown signal due to a rollout, in seconds.
|
|
17
|
+
Defaults to 0.
|
|
18
|
+
`}).option(`scheduling-policy`,{type:`string`,description:`Selects a scheduler-backed application. Use \`default\` when the Containers
|
|
19
|
+
scheduler should maintain the requested number of instances and manage deployment
|
|
20
|
+
configuration, placement, scaling, versions, and rollouts.
|
|
21
|
+
`,choices:[`default`,`durable_object`]}).coerce(`scheduling-policy`,e=>T(e,`scheduling-policy`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:"Create a Containers application. Set `scheduling_policy` to `default` for a scheduler-backed application with deployment configuration, instance counts, constraints, versions, and rollouts. Set it to `durable_object` for a Durable Object-managed application where each Durable Object creates and manages the lifecycle of its container instance. For `durable_object` requests, supply `name`, `scheduling_policy`, and `durable_objects`, with optional `configuration` and top-level `observability` settings. "}).conflicts(`configuration-command`,[`configuration-wrangler-ssh-port`]).conflicts(`configuration-entrypoint`,[`configuration-wrangler-ssh-port`]).conflicts(`configuration-image`,[`configuration-wrangler-ssh-port`]).conflicts(`configuration-instance-type`,[`configuration-wrangler-ssh-port`]).conflicts(`configuration-wrangler-ssh-port`,[`configuration-command`,`configuration-entrypoint`,`configuration-image`,`configuration-instance-type`,`constraints-jurisdiction`,`constraints-regions`,`instances`,`max-instances`,`rollout-active-grace-period`]).conflicts(`constraints-jurisdiction`,[`configuration-wrangler-ssh-port`]).conflicts(`constraints-regions`,[`configuration-wrangler-ssh-port`]).conflicts(`instances`,[`configuration-wrangler-ssh-port`]).implies(`instances`,[`max-instances`]).conflicts(`max-instances`,[`configuration-wrangler-ssh-port`]).implies(`max-instances`,[`instances`]).conflicts(`rollout-active-grace-period`,[`configuration-wrangler-ssh-port`])}const j={command:`create`,describe:`Create a new application`,builder:A,handler:async e=>x({command:`containers applications create`,classification:{safeFlags:[`configuration-observability-logs-enabled`,`configuration-wrangler-ssh-enabled`,`observability-logs-enabled`,`scheduling-policy`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();v({command:`cf containers applications create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/containers/applications`,pathParams:{},bodyKind:`json`,body:e.body===void 0?w({configuration:{command:e[`configuration-command`],entrypoint:e[`configuration-entrypoint`],image:T(e[`configuration-image`],`configuration-image`,`text`),instance_type:T(e[`configuration-instance-type`],`configuration-instance-type`,`text`),observability:{logs:{enabled:e[`configuration-observability-logs-enabled`]}},wrangler_ssh:{enabled:e[`configuration-wrangler-ssh-enabled`],port:e[`configuration-wrangler-ssh-port`]}},constraints:{jurisdiction:T(e[`constraints-jurisdiction`],`constraints-jurisdiction`,`text`),regions:e[`constraints-regions`]},instances:e.instances,max_instances:e[`max-instances`],name:T(e.name,`name`,`text`),observability:{logs:{enabled:e[`observability-logs-enabled`]}},rollout_active_grace_period:e[`rollout-active-grace-period`],scheduling_policy:e[`scheduling-policy`]}):S(e.body)});return}let t=await i(e),n=e.local?r:await s();if(e.accountId=n,e.body){let r=S(e.body),i=await y(`Creating`,async()=>t.containers.applications.create({body:r,account_id:n}));_(i,{successLabel:`Created`});return}e.name===void 0&&(e.name=await E(`name`,`The name for this application.`)),e[`scheduling-policy`]===void 0&&(e[`scheduling-policy`]=await D(`scheduling-policy`,"Selects a scheduler-backed application. Use `default` when the Containers scheduler should maintain the requested number of instances and manage deployment configuration, placement, scaling, versions, and rollouts. ",[`default`,`durable_object`]));let o=w({configuration:{command:e[`configuration-command`],entrypoint:e[`configuration-entrypoint`],image:T(e[`configuration-image`],`configuration-image`,`text`),instance_type:T(e[`configuration-instance-type`],`configuration-instance-type`,`text`),observability:{logs:{enabled:e[`configuration-observability-logs-enabled`]}},wrangler_ssh:{enabled:e[`configuration-wrangler-ssh-enabled`],port:e[`configuration-wrangler-ssh-port`]}},constraints:{jurisdiction:T(e[`constraints-jurisdiction`],`constraints-jurisdiction`,`text`),regions:e[`constraints-regions`]},instances:e.instances,max_instances:e[`max-instances`],name:T(e.name,`name`,`text`),observability:{logs:{enabled:e[`observability-logs-enabled`]}},rollout_active_grace_period:e[`rollout-active-grace-period`],scheduling_policy:e[`scheduling-policy`]}),c=await y(`Creating`,async()=>t.containers.applications.create({body:o,account_id:n}));_(c,{successLabel:`Created`})})};function M(e){return e.usage(`$0 containers applications delete <application-id>
|
|
22
|
+
|
|
23
|
+
Deletes a single application by id.`).positional(`application-id`,{type:`string`,description:`An Application ID represents an identifier of an application.`,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 N={command:`delete <application-id>`,describe:`Delete a single application by id`,builder:M,handler:async e=>x({command:`containers applications delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await a();v({command:`cf containers applications delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/containers/applications/${e[`application-id`]==null?`<application-id>`:encodeURIComponent(String(e[`application-id`]))}`,pathParams:{"application-id":String(e[`application-id`]??``)},bodyKind:`none`});return}let t=await i(e),n=e.local?r:await s();if(e.accountId=n,!await O({force:!!e.force,message:`This operation permanently deletes the application and stops its containers.`})){process.stderr.write(`Aborted.
|
|
24
|
+
`);return}let o=await y(`Deleting`,async()=>t.containers.applications.delete({account_id:n,application_id:e[`application-id`]}));_(o,{successLabel:`Deleted`})})};function P(e){return e.usage("$0 containers applications edit <application-id>\n\nModifies a single application by id. Durable Object-managed application settings are published to runtime metadata without creating deployments or rollouts. Top-level `observability` for these applications supports only `logs.enabled`. The supported fields depend on the existing application's scheduling policy. For scheduler-backed applications, changes that replace instance deployment configuration, including the image, require a rollout.").positional(`application-id`,{type:`string`,description:`An Application ID represents an identifier of an application.`,demandOption:!0}).option(`configuration-wrangler-ssh-enabled`,{type:`boolean`,description:`The configuration.wrangler_ssh.enabled field`}).option(`configuration-wrangler-ssh-port`,{type:`number`,description:`The configuration.wrangler_ssh.port field`}).option(`constraints-jurisdiction`,{type:`string`,description:`Restricts placement to datacenters in the selected jurisdiction. Choose "eu", "fedramp", or "us". When combined with regions, EU supports EEUR and WEUR while FedRAMP and US support ENAM and WNAM.`}).option(`constraints-regions`,{type:`string`,array:!0,description:`The constraints.regions field`}).option(`max-instances`,{type:`number`,description:`Maximum number of instances that an autoscaling application can run.`}).option(`observability-logs-enabled`,{type:`boolean`,description:`The observability.logs.enabled field`}).option(`rollout-active-grace-period`,{type:`number`,description:`Grace period for active instances to stay alive before becoming eligible for shutdown signal due to a rollout, in seconds.
|
|
25
|
+
Defaults to 0.
|
|
26
|
+
`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for modifying a Containers application without replacing its instances. Durable Object-managed applications support only top-level observability.logs.enabled. The other fields apply to scheduler-backed applications, where deployment configuration changes such as image, resource allocation, command, and environment variables require an application rollout. `})}const F={command:`edit <application-id>`,describe:`Modify an application`,builder:P,handler:async e=>x({command:`containers applications edit`,classification:{safeFlags:[`configuration-wrangler-ssh-enabled`,`observability-logs-enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();v({command:`cf containers applications edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/containers/applications/${e[`application-id`]==null?`<application-id>`:encodeURIComponent(String(e[`application-id`]))}`,pathParams:{"application-id":String(e[`application-id`]??``)},bodyKind:`json`,body:e.body===void 0?w({configuration:{wrangler_ssh:{enabled:e[`configuration-wrangler-ssh-enabled`],port:e[`configuration-wrangler-ssh-port`]}},constraints:{jurisdiction:T(e[`constraints-jurisdiction`],`constraints-jurisdiction`,`text`),regions:e[`constraints-regions`]},max_instances:e[`max-instances`],observability:{logs:{enabled:e[`observability-logs-enabled`]}},rollout_active_grace_period:e[`rollout-active-grace-period`]}):S(e.body)});return}let t=await i(e),n=e.local?r:await s();if(e.accountId=n,e.body){let r=S(e.body),i=await y(`Updating`,async()=>t.containers.applications.edit({...r,account_id:n,application_id:e[`application-id`]}));_(i,{successLabel:`Updated`});return}let o=w({configuration:{wrangler_ssh:{enabled:e[`configuration-wrangler-ssh-enabled`],port:e[`configuration-wrangler-ssh-port`]}},constraints:{jurisdiction:T(e[`constraints-jurisdiction`],`constraints-jurisdiction`,`text`),regions:e[`constraints-regions`]},max_instances:e[`max-instances`],observability:{logs:{enabled:e[`observability-logs-enabled`]}},rollout_active_grace_period:e[`rollout-active-grace-period`]}),c=await y(`Updating`,async()=>t.containers.applications.edit({...o,account_id:n,application_id:e[`application-id`]}));_(c,{successLabel:`Updated`})})};function I(e){return e.usage(`$0 containers applications get <application-id>
|
|
27
|
+
|
|
28
|
+
Returns a single application by id.`).positional(`application-id`,{type:`string`,description:`An Application ID represents an identifier of an application.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const L={command:`get <application-id>`,describe:`Get a single application by id`,builder:I,handler:async e=>x({command:`containers applications get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();v({command:`cf containers applications get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/containers/applications/${e[`application-id`]==null?`<application-id>`:encodeURIComponent(String(e[`application-id`]))}`,pathParams:{"application-id":String(e[`application-id`]??``)},bodyKind:`none`});return}let t=await i(e),n=e.local?r:await s();e.accountId=n;let o=await y(`Loading`,async()=>t.containers.applications.get({account_id:n,application_id:e[`application-id`]}));_(o,{successLabel:`Loaded`})})};function R(e){return e.usage(`$0 containers applications instances get <instance-id>
|
|
29
|
+
|
|
30
|
+
Returns a container instance belonging to an application.`).positional(`instance-id`,{type:`string`,description:`A container instance ID (64-character hex Durable Object actor ID).`,demandOption:!0}).option(`application-id`,{type:`string`,description:`An Application ID represents an identifier of an application.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const z={command:`get <instance-id>`,describe:`Get a container instance`,builder:R,handler:async e=>x({command:`containers applications instances get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();v({command:`cf containers applications instances get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/containers/applications/${e[`application-id`]==null?`<application-id>`:encodeURIComponent(String(e[`application-id`]))}/instances/${e[`instance-id`]==null?`<instance-id>`:encodeURIComponent(String(e[`instance-id`]))}`,pathParams:{"application-id":String(e[`application-id`]??``),"instance-id":String(e[`instance-id`]??``)},bodyKind:`none`});return}let t=await i(e),n=e.local?r:await s();e.accountId=n;let o=await y(`Loading`,async()=>t.containers.applications.instances.get({account_id:n,application_id:e[`application-id`],instance_id:e[`instance-id`]}));_(o,{successLabel:`Loaded`})})};function B(e){return e.usage(`$0 containers applications instances list
|
|
31
|
+
|
|
32
|
+
Lists container instances belonging to an application.`).option(`application-id`,{type:`string`,description:`An Application ID represents an identifier of an application.`,demandOption:!0}).option(`per-page`,{type:`number`,description:`Maximum number of instances to return per page. Defaults to 100.`}).option(`page-token`,{type:`string`,description:`Opaque token from a previous response to retrieve the next page.`}).option(`state`,{type:`string`,description:"Filters instances by lifecycle state. `active` includes provisioning, running, and stopping instances; `not-active` includes stopped and failed instances. When omitted, all instances are returned.",choices:[`active`,`not-active`]}).option(`name-prefix`,{type:`string`,description:`Filter instances by a case-sensitive name prefix, falling back to the actor ID when no name is known. Keep the same prefix when using a page token.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const V={command:`list`,describe:`List container instances`,builder:k(B),handler:async e=>x({command:`containers applications instances list`,classification:{safeFlags:[`state`,`dry-run`]}},e,async()=>{let t={per_page:e[`per-page`],page_token:e[`page-token`],state:e.state,name_prefix:e[`name-prefix`]};if(e.dryRun){let n=await a();v({command:`cf containers applications instances list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/containers/applications/${e[`application-id`]==null?`<application-id>`:encodeURIComponent(String(e[`application-id`]))}/instances-v2`,pathParams:{"application-id":String(e[`application-id`]??``)},query:t,bodyKind:`none`});return}let n=await i(e),o=e.local?r:await s();e.accountId=o;let c=await y(`Loading`,async()=>n.containers.applications.instances.list({account_id:o,application_id:e[`application-id`],...t}));_(c,{successLabel:`Loaded`})})},H={command:`instances`,describe:`Inspect Containers instances belonging to applications`,builder:e=>e.command(z).command(V).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function U(e){return e.usage(`$0 containers applications list
|
|
33
|
+
|
|
34
|
+
Lists all the applications that are associated with your account.`).option(`per-page`,{type:`number`,description:"Maximum number of applications to return per page. Defaults to all, or 100 when `page_token` is set."}).option(`page-token`,{type:`string`,description:`Opaque token from a previous response to retrieve the next page.`}).option(`name`,{type:`string`,description:`Filter applications by name.`}).option(`image`,{type:`string`,description:`Filter applications by image.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const W={command:`list`,describe:`List Applications associated with your account`,builder:U,handler:async e=>x({command:`containers applications list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={per_page:e[`per-page`],page_token:e[`page-token`],name:e.name,image:e.image};if(e.dryRun){let e=await a();v({command:`cf containers applications list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/containers/applications`,pathParams:{},query:t,bodyKind:`none`});return}let n=await i(e),o=e.local?r:await s();e.accountId=o;let c=await y(`Loading`,async()=>n.containers.applications.list({account_id:o,...t}));_(c,{successLabel:`Loaded`})})};function G(e){return e.usage('$0 containers applications rollouts create <application-id>\n\nCreates a rollout to update the application\'s configuration across instances with minimal downtime. Rollouts apply only to scheduler-backed applications with `scheduling_policy: "default"`. Versions and rollouts do not apply to applications with `scheduling_policy: "durable_object"`.').positional(`application-id`,{type:`string`,description:`An Application ID represents an identifier of an application.`,demandOption:!0}).option(`description`,{type:`string`,description:`Description of the rollout process.`}).option(`kind`,{type:`string`,description:`Kind of the rollout process. Defaults to "full_auto".
|
|
35
|
+
- "full_auto": For rolling rollouts, starts progressing steps upon rollout creation. For new_instances rollouts, advances percentage targets automatically after target-version health is observed.
|
|
36
|
+
- "full_manual": Requires manually progressing each step in the rollout using the UpdateRollout's action parameter.
|
|
37
|
+
`,choices:[`full_auto`,`full_manual`],default:`full_auto`}).coerce(`kind`,e=>T(e,`kind`,`text`)).option(`percentage`,{type:`number`,description:`Initial target version percentage (0-100). Version sync actively replaces instances to match.
|
|
38
|
+
Required when strategy is "new_instances" and kind is "full_manual". When strategy is "new_instances" and kind is "full_auto", omitted percentage starts at 10% or the smallest percentage that targets at least one instance. Unused for "rolling".
|
|
39
|
+
`}).option(`step-percentage`,{type:`number`,description:`Percentage of rollout to increase in each step when "steps" is absent. Applicable values: 5, 10, 20, 25, 50, 100.
|
|
40
|
+
These create rollouts with 20, 10, 5, 4, 2, 1 steps respectively.
|
|
41
|
+
Only valid for "rolling" strategy.
|
|
42
|
+
`}).option(`steps`,{type:`string`,description:`Steps defining the rollout process, used when "step_percentage" is absent.
|
|
43
|
+
Specify only one of "step_percentage" or "steps" when creating a rollout.
|
|
44
|
+
"steps" allow granular control over each step.
|
|
45
|
+
Only valid for "rolling" strategy.
|
|
46
|
+
. Provide as a JSON array of objects or @path/to/file.json.`}).option(`strategy`,{type:`string`,description:`Strategy used for the rollout.
|
|
47
|
+
- "rolling": Step-based rollout with health gates. Actively replaces instances to reach each step's target percentage.
|
|
48
|
+
- "new_instances": Percentage control over version distribution. Version sync actively replaces instances to match the configured percentage. The "full_auto" kind advances through fixed percentage targets after target-version health is observed.
|
|
49
|
+
`,choices:[`rolling`,`new_instances`]}).coerce(`strategy`,e=>T(e,`strategy`,`text`)).option(`target-configuration-command`,{type:`string`,array:!0,description:`The command that runs when the container starts, passed to the entrypoint.
|
|
50
|
+
You can override this at run-time. If you override only the command,
|
|
51
|
+
it gets passed to the default entrypoint specified in the image.
|
|
52
|
+
`}).option(`target-configuration-entrypoint`,{type:`string`,array:!0,description:`The entry point for the container, specifying the executable to run when the container starts.
|
|
53
|
+
You can override this at run-time. If you do, the default command from the image is ignored.
|
|
54
|
+
Specify both entrypoint and command at run-time to completely replace the image defaults.
|
|
55
|
+
`}).option(`target-configuration-image`,{type:`string`,description:`Image url.`}).option(`target-configuration-instance-type`,{type:`string`,description:`The instance type configures vCPU, memory, and disk.
|
|
56
|
+
|
|
57
|
+
- "lite": 1/16 vCPU, 256 MiB memory, 2 GB disk
|
|
58
|
+
- "basic": 1/4 vCPU, 1 GiB memory, 4 GB disk
|
|
59
|
+
- "standard-1": 1/2 vCPU, 4 GiB memory, 8 GB disk
|
|
60
|
+
- "standard-2": 1 vCPU, 6 GiB memory, 12 GB disk
|
|
61
|
+
- "standard-3": 2 vCPU, 8 GiB memory, 16 GB disk
|
|
62
|
+
- "standard-4": 4 vCPU, 12 GiB memory, 20 GB disk
|
|
63
|
+
`,default:`lite`}).option(`target-configuration-observability-logs-enabled`,{type:`boolean`,description:`The target_configuration.observability.logs.enabled field`,default:!1}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body to create a new rollout for a scheduler-backed application.`})}const K={command:`create <application-id>`,describe:`Create a new rollout for an application`,builder:G,handler:async e=>x({command:`containers applications rollouts create`,classification:{safeFlags:[`kind`,`strategy`,`target-configuration-observability-logs-enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();v({command:`cf containers applications rollouts create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/containers/applications/${e[`application-id`]==null?`<application-id>`:encodeURIComponent(String(e[`application-id`]))}/rollouts`,pathParams:{"application-id":String(e[`application-id`]??``)},bodyKind:`json`,body:e.body===void 0?w({description:T(e.description,`description`,`text`),kind:e.kind,percentage:e.percentage,step_percentage:e[`step-percentage`],steps:C(e.steps,`steps`),strategy:e.strategy,target_configuration:{command:e[`target-configuration-command`],entrypoint:e[`target-configuration-entrypoint`],image:T(e[`target-configuration-image`],`target-configuration-image`,`text`),instance_type:T(e[`target-configuration-instance-type`],`target-configuration-instance-type`,`text`),observability:{logs:{enabled:e[`target-configuration-observability-logs-enabled`]}}}}):S(e.body)});return}let t=await i(e),n=e.local?r:await s();if(e.accountId=n,e.body){let r=S(e.body),i=await y(`Creating`,async()=>t.containers.applications.rollouts.create({...r,account_id:n,application_id:e[`application-id`]}));_(i,{successLabel:`Created`});return}e.description===void 0&&(e.description=await E(`description`,`Description of the rollout process.`)),e.strategy===void 0&&(e.strategy=await D(`strategy`,`Strategy used for the rollout. - "rolling": Step-based rollout with health gates. Actively replaces instances to reach each step's target percentage. - "new_instances": Percentage control over version distribution. Version sync actively replaces instances to match the configured percentage. The "full_auto" kind advances through fixed percentage targets after target-version health is observed. `,[`rolling`,`new_instances`]));let o=w({description:T(e.description,`description`,`text`),kind:e.kind,percentage:e.percentage,step_percentage:e[`step-percentage`],steps:C(e.steps,`steps`),strategy:e.strategy,target_configuration:{command:e[`target-configuration-command`],entrypoint:e[`target-configuration-entrypoint`],image:T(e[`target-configuration-image`],`target-configuration-image`,`text`),instance_type:T(e[`target-configuration-instance-type`],`target-configuration-instance-type`,`text`),observability:{logs:{enabled:e[`target-configuration-observability-logs-enabled`]}}}}),c=await y(`Creating`,async()=>t.containers.applications.rollouts.create({...o,account_id:n,application_id:e[`application-id`]}));_(c,{successLabel:`Created`})})},q={command:`rollouts`,describe:`Manage rollouts for scheduler-backed applications`,builder:e=>e.command(K).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function J(e){return e.usage('$0 containers applications versions list\n\nReturns all versions for a scheduler-backed application with `scheduling_policy: "default"`. Versions and rollouts do not apply to applications with `scheduling_policy: "durable_object"`.').option(`application-id`,{type:`string`,description:`An Application ID represents an identifier of an application.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Y={command:`list`,describe:`List all application versions`,builder:J,handler:async e=>x({command:`containers applications versions list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();v({command:`cf containers applications versions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/containers/applications/${e[`application-id`]==null?`<application-id>`:encodeURIComponent(String(e[`application-id`]))}/versions`,pathParams:{"application-id":String(e[`application-id`]??``)},bodyKind:`none`});return}let t=await i(e),n=e.local?r:await s();e.accountId=n;let o=await y(`Loading`,async()=>t.containers.applications.versions.list({account_id:n,application_id:e[`application-id`]}));_(o,{successLabel:`Loaded`})})},ae={command:`versions`,describe:`Inspect versions of scheduler-backed applications`,builder:e=>e.command(Y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},oe={command:`applications`,describe:`Manage Containers applications`,builder:e=>e.command(j).command(N).command(F).command(L).command(W).command(H).command(q).command(ae).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function se(e){return e.usage(`$0 containers images prepare
|
|
64
|
+
|
|
65
|
+
Idempotently starts or observes preparation of the runtime artifacts required to run one digest-pinned managed container image on Cloudflare's network. Returns 202 while durable preparation continues and 200 when the image is ready or preparation has reached a terminal error.`).option(`image`,{type:`string`,description:`Image url.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`A digest-pinned managed container image to prepare for the new runtime.`})}const ce={command:`prepare`,describe:`Prepare a container image`,builder:se,handler:async e=>x({command:`containers images prepare`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();v({command:`cf containers images prepare`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/containers/image-preparations`,pathParams:{},bodyKind:`json`,body:e.body===void 0?w({image:T(e.image,`image`,`text`)}):S(e.body)});return}let t=await i(e),n=e.local?r:await s();if(e.accountId=n,e.body){let r=S(e.body),i=await y(`Creating`,async()=>t.containers.images.prepare({...r,account_id:n}));_(i,{successLabel:`Created`});return}e.image===void 0&&(e.image=await E(`image`,`Image url.`));let o=w({image:T(e.image,`image`,`text`)}),c=await y(`Creating`,async()=>t.containers.images.prepare({...o,account_id:n}));_(c,{successLabel:`Created`})})};async function X(){let t=await h(),n=await s(),r={compliance_region:await o()};return p.HEADERS=g(),d(n,t,e(r)),{accountId:n,complianceConfig:r}}function le(e){return e.positional(`image`,{type:`string`,demandOption:!0,description:`Image and tag to delete, of the form IMAGE:TAG`}).option(`force`,{type:`boolean`,alias:`f`,default:!1,description:`Skip the deletion confirmation prompt`})}var ue=b({command:`delete <image>`,describe:`Delete an image tag from the Cloudflare managed registry`,builder:le,async handler(e){if(e.local)throw Error("--local is not supported with `cf containers images delete`.");if(te(e.image),!await O({force:e.force,message:`Delete ${e.image}? This action cannot be undone.`}))return;let n=await X(),r=await y(`Deleting`,()=>ne({...n,image:e.image}));_({image:e.image,...r},{quiet:e.quiet}),r.warning&&console.warn(t(r.warning))}},{command:`containers images delete`,classification:{safeFlags:[`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}});function de(e){return e.option(`filter`,{type:`string`,description:`Regex to filter repository names`})}var fe=b({command:`list`,describe:`List images in the Cloudflare managed registry`,builder:de,async handler(e){if(e.local)throw Error("--local is not supported with `cf containers images list`.");e.filter!==void 0&&new RegExp(e.filter);let t=await X(),n=await y(`Loading`,()=>ie({...t,filter:e.filter}));_(n,{quiet:e.quiet})}},{command:`containers images list`,classification:{safeFlags:[]}});const pe={command:`images`,describe:`Operations for images`,builder:e=>e.command(n(ue,`preview`)).command(n(fe,`preview`)).command(ce).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function me(e){return e.usage(`$0 containers registries create
|
|
66
|
+
|
|
67
|
+
Registers credentials for a supported private external image registry so Containers can pull images from it. This endpoint does not create a registry or upload an image. Public Docker Hub images and images in the Cloudflare managed registry do not require this configuration. Refer to [Image management](https://developers.cloudflare.com/containers/platform-details/image-management/) for supported registries and instructions for storing registry credentials.`).option(`auth-private-credential-secret-name`,{type:`string`,description:`Name of the secret within the store.`}).option(`auth-private-credential-store-id`,{type:`string`,description:`Identifier of the Secrets Store containing the secret.`}).option(`auth-public-credential`,{type:`string`,description:`The non-secret part of the registry credential: an AWS access key ID for ECR,
|
|
68
|
+
a username for Docker Hub, or a service account email for Google Artifact Registry.
|
|
69
|
+
`}).option(`domain`,{type:`string`,description:"Hostname of the private registry, without a scheme or image path. Supported\nhostnames are `docker.io`, AWS ECR hostnames, and Google Artifact Registry\n`*-docker.pkg.dev` hostnames.\n"}).option(`is-public`,{type:`boolean`,description:`Omit this field or set it to \`false\`. Public Docker Hub images do not require
|
|
70
|
+
registry configuration and cannot be added with this endpoint.
|
|
71
|
+
`}).option(`kind`,{type:`string`,description:"Registry provider. This must match `domain`: `DockerHub` for `docker.io`,\n`ECR` for AWS ECR, or `GAR` for Google Artifact Registry.\n",choices:[`ECR`,`DockerHub`,`GAR`]}).coerce(`kind`,e=>T(e,`kind`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Configuration for connecting Containers to a supported private external image registry. See [Image management](https://developers.cloudflare.com/containers/platform-details/image-management/) for supported providers and credential setup instructions. `})}const he={command:`create`,describe:`Configure a private external image registry`,builder:me,handler:async e=>x({command:`containers registries create`,classification:{safeFlags:[`is-public`,`kind`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();v({command:`cf containers registries create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/containers/registries`,pathParams:{},bodyKind:`json`,body:e.body===void 0?w({auth:{private_credential:{secret_name:T(e[`auth-private-credential-secret-name`],`auth-private-credential-secret-name`,`text`),store_id:T(e[`auth-private-credential-store-id`],`auth-private-credential-store-id`,`text`)},public_credential:T(e[`auth-public-credential`],`auth-public-credential`,`text`)},domain:T(e.domain,`domain`,`text`),is_public:e[`is-public`],kind:e.kind}):S(e.body)});return}let t=await i(e),n=e.local?r:await s();if(e.accountId=n,e.body){let r=S(e.body),i=await y(`Creating`,async()=>t.containers.registries.create({...r,account_id:n}));_(i,{successLabel:`Created`});return}e[`auth-private-credential-secret-name`]===void 0&&(e[`auth-private-credential-secret-name`]=await E(`auth-private-credential-secret-name`,`Name of the secret within the store.`)),e[`auth-private-credential-store-id`]===void 0&&(e[`auth-private-credential-store-id`]=await E(`auth-private-credential-store-id`,`Identifier of the Secrets Store containing the secret.`)),e[`auth-public-credential`]===void 0&&(e[`auth-public-credential`]=await E(`auth-public-credential`,`The non-secret part of the registry credential: an AWS access key ID for ECR, a username for Docker Hub, or a service account email for Google Artifact Registry. `)),e.domain===void 0&&(e.domain=await E(`domain`,"Hostname of the private registry, without a scheme or image path. Supported hostnames are `docker.io`, AWS ECR hostnames, and Google Artifact Registry `*-docker.pkg.dev` hostnames. ")),e.kind===void 0&&(e.kind=await D(`kind`,"Registry provider. This must match `domain`: `DockerHub` for `docker.io`, `ECR` for AWS ECR, or `GAR` for Google Artifact Registry. ",[`ECR`,`DockerHub`,`GAR`]));let o=w({auth:{private_credential:{secret_name:T(e[`auth-private-credential-secret-name`],`auth-private-credential-secret-name`,`text`),store_id:T(e[`auth-private-credential-store-id`],`auth-private-credential-store-id`,`text`)},public_credential:T(e[`auth-public-credential`],`auth-public-credential`,`text`)},domain:T(e.domain,`domain`,`text`),is_public:e[`is-public`],kind:e.kind}),c=await y(`Creating`,async()=>t.containers.registries.create({...o,account_id:n}));_(c,{successLabel:`Created`})})};function ge(e){return e.usage(`$0 containers registries credentials generate <domain>
|
|
72
|
+
|
|
73
|
+
Generates credentials for accessing a configured container image registry.`).positional(`domain`,{type:`string`,description:`The domain to get credentials for.`,demandOption:!0}).option(`expiration-minutes`,{type:`number`,description:`The number of minutes Cloudflare managed registry credentials stay valid. Required for managed registries and must remain positive. Cloudflare ignores this value for external registries.`}).option(`permissions`,{type:`string`,array:!0,description:`The permissions for Cloudflare managed registry credentials. Required for managed registries. Cloudflare ignores this value for external registries.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Specifies the configuration for the image registry credential to create. Cloudflare requires both fields for managed registries. For external registries, Cloudflare ignores both fields, and the registry provider determines the returned credentials' permissions and lifetime.`})}const _e={command:`generate <domain>`,describe:`Generate a JWT to interact with the specified image registry.`,builder:ge,handler:async e=>x({command:`containers registries credentials generate`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();v({command:`cf containers registries credentials generate`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/containers/registries/${e.domain==null?`<domain>`:encodeURIComponent(String(e.domain))}/credentials`,pathParams:{domain:String(e.domain??``)},bodyKind:`json`,body:e.body===void 0?w({expiration_minutes:e[`expiration-minutes`],permissions:e.permissions}):S(e.body)});return}let t=await i(e),n=e.local?r:await s();if(e.accountId=n,e.body){let r=S(e.body),i=await y(`Creating`,async()=>t.containers.registries.credentials.generate({...r,account_id:n,domain:e.domain}));_(i,{successLabel:`Created`});return}let o=w({expiration_minutes:e[`expiration-minutes`],permissions:e.permissions}),c=await y(`Creating`,async()=>t.containers.registries.credentials.generate({...o,account_id:n,domain:e.domain}));_(c,{successLabel:`Created`})})},ve={command:`credentials`,describe:`Generate image registry credentials`,builder:e=>e.command(_e).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ye(e){return e.usage(`$0 containers registries delete <domain>
|
|
74
|
+
|
|
75
|
+
Delete a registry from the account, this will prevent Containers from pulling images from the registry.`).positional(`domain`,{type:`string`,description:`The domain to delete.`,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 be={command:`delete <domain>`,describe:`Delete a registry from the account`,builder:ye,handler:async e=>x({command:`containers registries delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await a();v({command:`cf containers registries delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/containers/registries/${e.domain==null?`<domain>`:encodeURIComponent(String(e.domain))}`,pathParams:{domain:String(e.domain??``)},bodyKind:`none`});return}let t=await i(e),n=e.local?r:await s();if(e.accountId=n,!await O({force:!!e.force,message:`This operation deletes the registry configuration. Containers will no longer be able to pull images from it.`})){process.stderr.write(`Aborted.
|
|
76
|
+
`);return}let o=await y(`Deleting`,async()=>t.containers.registries.delete({account_id:n,domain:e.domain}));_(o,{successLabel:`Deleted`})})};function xe(e){return e.usage(`$0 containers registries list
|
|
77
|
+
|
|
78
|
+
Get the list of configured registries in the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Se={command:`list`,describe:`Get the list of configured registries in the account`,builder:xe,handler:async e=>x({command:`containers registries list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await a();v({command:`cf containers registries list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/containers/registries`,pathParams:{},bodyKind:`none`});return}let t=await i(e),n=e.local?r:await s();e.accountId=n;let o=await y(`Loading`,async()=>t.containers.registries.list({account_id:n}));_(o,{successLabel:`Loaded`})})},Z={command:`registries`,describe:`Manage Containers image registries`,builder:e=>e.command(he).command(be).command(Se).command(ve).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Ce(e){return e.positional(`path`,{type:`string`,demandOption:!0,description:`Directory containing the Dockerfile to build`}).option(`tag`,{alias:`t`,type:`string`,demandOption:!0,description:`Name and optional tag for the built image`}).option(`push`,{alias:`p`,type:`boolean`,default:!1,description:`Push the built image to Cloudflare's managed registry`}).option(`path-to-docker`,{type:`string`,description:`Path to the Docker binary if it is not on PATH`})}var we=b({command:`build <path>`,describe:`Build a Container image`,builder:Ce,handler:async t=>{if(t.local)throw Error("--local is not supported with `cf containers build`.");let n={compliance_region:t.push?await o():`public`},r=t.push?await h():``,i=m(r);u({logger:i.logger,fetchResult:i.fetchResult,fetchPagedListResult:i.fetchPagedListResult}),t.push&&d(await s(),r,e(n)),await re({PATH:t.path,tag:t.tag,push:t.push,pathToDocker:t[`path-to-docker`]},n)}},{command:`containers build`,classification:{safeFlags:[`push`],shortFlagAliases:{p:{canonical:`push`,type:`boolean`},t:{canonical:`tag`,type:`value`}}}});function Te(e){return e.option(`tag`,{alias:`t`,type:`string`,demandOption:!0,description:`Tag of the local image to push`}).option(`path-to-docker`,{type:`string`,description:`Path to the Docker binary if it is not on PATH`})}var Ee=b({command:`push`,describe:`Push a local image to the Cloudflare managed registry`,builder:Te,handler:async t=>{if(t.local)throw Error("--local is not supported with `cf containers push`.");let n=await h(),r=await s(),i={compliance_region:await o()},a=m(n);u({logger:a.logger,fetchResult:a.fetchResult,fetchPagedListResult:a.fetchPagedListResult}),d(r,n,e(i)),await ee({TAG:t.tag,pathToDocker:t[`path-to-docker`]},r,i)}},{command:`containers push`,classification:{safeFlags:[],shortFlagAliases:{t:{canonical:`tag`,type:`value`}}}});function De(e){return e.positional(`id`,{type:`string`,demandOption:!0,description:`ID of the container instance`}).positional(`ssh-command`,{type:`string`,array:!0,description:`Command and arguments to run in the container`}).options(f).middleware(e=>{l(e)&&(e.quiet=!0)},!0).parserConfiguration({"populate--":!0,"unknown-options-as-args":!0,"parse-positional-numbers":!1})}const Q={command:`ssh <id> [ssh-command..]`,describe:`SSH into a container`,builder:De,handler:async t=>{if(t.local)throw Error("--local is not supported with `cf containers ssh`.");let n=await h(),r=await s(),i={compliance_region:await o()},a=m(n);u({logger:a.logger,fetchResult:a.fetchResult}),p.HEADERS=g(),d(r,n,e(i)),await c({...t,id:t.id,command:[...t[`ssh-command`]??[],...Array.isArray(t[`--`])?t[`--`].map(String):[]]})}},$=b(Q,{command:`containers ssh`,recordArgs:!1});var Oe={...$,handler:async e=>{if(l(e)){let{markCommandReported:t}=await import(`./telemetry-ZlCi5Xhc.mjs`);return t(),Q.handler(e)}return $.handler(e)}};const ke={command:`containers`,describe:`Deploy and manage Containers applications on Cloudflare's global network`,builder:e=>e.command(n(we,`preview`)).command(n(Ee,`preview`)).command(n(Oe,`preview`)).command(oe).command(pe).command(Z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{ke as default};
|