cf 1.0.0-beta.28 → 1.0.0-beta.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -3
- package/dist/_meta/commands.json +2240 -3181
- package/dist/_meta/hand-written-commands.json +38 -8
- package/dist/_meta/schemas.json +1683 -2505
- package/dist/{abuse-reports-D9edOyag.mjs → abuse-reports-DqXYX_6F.mjs} +10 -10
- package/dist/{access-CKCCSrrU.mjs → access-Cte4yyIz.mjs} +1 -1
- package/dist/{accounts-CNb9U9bK.mjs → accounts-G-x-_cEx.mjs} +58 -57
- package/dist/{acm-CdKTAToZ.mjs → acm-Bg3HqMGG.mjs} +7 -7
- package/dist/{addressing-eZI_C-b0.mjs → addressing-BwEofGEm.mjs} +46 -46
- package/dist/{agent-memory-BBHCEE7h.mjs → agent-memory-DhwZ2KRw.mjs} +15 -15
- package/dist/{ai-Csl_QNwv.mjs → ai-DWWRIQIt.mjs} +16 -16
- package/dist/{ai-audit-DlqWsQi-.mjs → ai-audit-CMEBz6ZP.mjs} +3 -3
- package/dist/ai-gateway-D2s0isU-.mjs +76 -0
- package/dist/ai-search-a0uqr9yJ.mjs +74 -0
- package/dist/{ai-security-DvU2iYkY.mjs → ai-security-H_RqjRoL.mjs} +4 -4
- package/dist/alerting-Bgp9rE4I.mjs +52 -0
- package/dist/analytics-CFYM82FD.mjs +17 -0
- package/dist/{analytics-engine-BlIecoOe.mjs → analytics-engine-BLiEaLxb.mjs} +2 -2
- package/dist/{api-security-DZ7GWOqD.mjs → api-security-B0YtHglt.mjs} +63 -63
- package/dist/{argo-Bh0_cj49.mjs → argo-BPwbzHY7.mjs} +7 -7
- package/dist/{artifacts-VZJWVq_6.mjs → artifacts-B6UwC2PH.mjs} +20 -20
- package/dist/{audit-logs-B8cGL4B9.mjs → audit-logs-kG97iEnI.mjs} +2 -2
- package/dist/auth-Czr8ChBB.mjs +2 -0
- package/dist/auth-DA1PHaHi.mjs +2 -0
- package/dist/auth-Dwfa4S3h.mjs +7 -0
- package/dist/{auth-token-DW4dJVdj.mjs → auth-token-CE3Wa5-b.mjs} +1 -1
- package/dist/{autoconfig-C0ynlGHf.mjs → autoconfig-B4tFR6ua.mjs} +120 -116
- package/dist/{basin-catalog-TehR1sKZ.mjs → basin-catalog-DzVEPupy.mjs} +17 -17
- package/dist/{billing-B2KusU6g.mjs → billing-TERxOuLR.mjs} +11 -11
- package/dist/{blocks-BFulF68V.mjs → blocks-C3Im7AT0.mjs} +1 -1
- package/dist/body-parser-HN91kAf0.mjs +2 -0
- package/dist/{body-unions-DNs981Ia.mjs → body-unions-D9OSaf4M.mjs} +1 -1
- package/dist/{bot-management-CXHXgrQC.mjs → bot-management-SZw9jTOC.mjs} +4 -4
- package/dist/{botnet-feed-UyK7Rfp6.mjs → botnet-feed-DjdAeUtb.mjs} +5 -5
- package/dist/brand-protection-BpA7Gmf1.mjs +18 -0
- package/dist/browser-run-BvjfMK3f.mjs +40 -0
- package/dist/build-CCwo_ydV.mjs +2 -0
- package/dist/{build-FFxzigo4.mjs → build-yQOzZg6Z.mjs} +1 -1
- package/dist/builds-tMa3sbQU.mjs +62 -0
- package/dist/{cache-BacNNtLu.mjs → cache-b_EPh6Is.mjs} +18 -18
- package/dist/cf-DmvZ2L51.mjs +18 -0
- package/dist/{chunk-DSGVRFIS-BaNZNW-M.mjs → chunk-DSGVRFIS-Cj7pO-YQ.mjs} +1 -1
- package/dist/chunk-Q5KVZMHK-WOCEMyET.mjs +363 -0
- package/dist/cli-Cc7ujzAy.mjs +4 -0
- package/dist/{client-side-security-bzB9JosR.mjs → client-side-security-DVkeCzcC.mjs} +14 -14
- package/dist/{cloud-connector-BHtf37R5.mjs → cloud-connector-MVf4acRR.mjs} +3 -3
- package/dist/{cloudflared-QDdHMUEY.mjs → cloudflared-BOkMl8Gm.mjs} +1 -1
- package/dist/cloudforce-one-KrCfQbRx.mjs +318 -0
- package/dist/{command-D895kdlh.mjs → command-BQbZw4Kx.mjs} +1 -1
- package/dist/command-BVct0Dvr.mjs +2 -0
- package/dist/{command-DeutqL1n.mjs → command-C4_lMRkw.mjs} +1 -1
- package/dist/command-CJ3ldWrA.mjs +2 -0
- package/dist/command-CyOdBNur.mjs +2 -0
- package/dist/command-D2XkyO1e.mjs +2 -0
- package/dist/command-DHODgfFZ.mjs +2 -0
- package/dist/command-DIIaZx_f.mjs +2 -0
- package/dist/command-DONwHpqZ.mjs +2 -0
- package/dist/command-DdYnSf-8.mjs +2 -0
- package/dist/command-DqOU7Ql2.mjs +2 -0
- package/dist/{command-CbxXc5IW.mjs → command-HW7k43qu.mjs} +1 -1
- package/dist/command-NqM0lo4a.mjs +2 -0
- package/dist/command-bwVDyMv4.mjs +2 -0
- package/dist/command-yzqs4m83.mjs +2 -0
- package/dist/{completions-BvdKtzsX.mjs → completions-0YKvIyBT.mjs} +2 -2
- package/dist/{connector-interrupts-dUPW6Ya_.mjs → connector-interrupts-CsunbRsr.mjs} +3 -3
- package/dist/{connector-telemetry-events-DWVCqnhn.mjs → connector-telemetry-events-DmQPD7xC.mjs} +3 -3
- package/dist/{connector-telemetry-snapshots-CeMP3qeI.mjs → connector-telemetry-snapshots-C62iHjC9.mjs} +3 -3
- package/dist/{connectors-DZFGNw3i.mjs → connectors-Bg0MU6ZT.mjs} +7 -7
- package/dist/{containers-DCzQCo79.mjs → containers-BiA_bpPR.mjs} +22 -21
- package/dist/{content-scan-XhnNJqXf.mjs → content-scan-4SA2nacB.mjs} +6 -6
- package/dist/{context-BY1Eh_Qe.mjs → context-BGm5_wTT.mjs} +1 -1
- package/dist/{cps-CohlxvuN.mjs → cps-WDmD3V5I.mjs} +3 -3
- package/dist/csam-scanner-Rmy-hBEA.mjs +8 -0
- package/dist/{custom-csrs-BVdMQjYq.mjs → custom-csrs-D-lvkyRV.mjs} +5 -5
- package/dist/{custom-hostnames-r-CxhSa1.mjs → custom-hostnames-B5BQX5m6.mjs} +12 -12
- package/dist/{custom-nameservers-CapMDyly.mjs → custom-nameservers-CZrRjcjx.mjs} +4 -4
- package/dist/{custom-pages-BVIniWfq.mjs → custom-pages-CWwjtfbj.mjs} +10 -10
- package/dist/d1-N81q-FAr.mjs +50 -0
- package/dist/{delegate-CcL6RoGw.mjs → delegate-livNdiwK.mjs} +1 -1
- package/dist/delegate.mjs +1 -1
- package/dist/deploy-Ok4ncy06.mjs +2 -0
- package/dist/deploy-context-B_lLfxt7.mjs +55 -0
- package/dist/deploy-input-JZlEJwKB.mjs +2 -0
- package/dist/dev-DxbkJkzc.mjs +4 -0
- package/dist/{diagnostics-C3nqxsAO.mjs → diagnostics-DlJzpO8b.mjs} +7 -7
- package/dist/dialog-CD94-Kzw.mjs +2 -0
- package/dist/discover-D9FNaCDK.mjs +2 -0
- package/dist/discover-DGsMj9ZN.mjs +2 -0
- package/dist/{dist-D-ihn_mV.mjs → dist-BxhwE-W1.mjs} +193 -193
- package/dist/{dls-N1x8sAK3.mjs → dls-5OXuxLAB.mjs} +8 -8
- package/dist/{dns-DATWP-PF.mjs → dns-Burep9O7.mjs} +59 -69
- package/dist/{dns-firewall-n3Y2ui6W.mjs → dns-firewall-hUHaQ0DE.mjs} +8 -8
- package/dist/docs-BFVK88kB.mjs +3 -0
- package/dist/{dry-run-kJbjn4kG.mjs → dry-run-qsnRlRk6.mjs} +1 -1
- package/dist/{durable-objects-DHK9w-vO.mjs → durable-objects-D6R8S2Dk.mjs} +3 -3
- package/dist/email-auth--2KCzZNA.mjs +6 -0
- package/dist/email-routing-DzaExfVf.mjs +44 -0
- package/dist/{email-security-DK_SJ0yi.mjs → email-security-DwQJszzy.mjs} +71 -71
- package/dist/{email-sending-CTQafGec.mjs → email-sending-mQd2qB-o.mjs} +21 -21
- package/dist/errors-C_bGcR0X.mjs +11 -0
- package/dist/field-extractors-MVOizTlB.mjs +8 -0
- package/dist/{firewall-CW-fAI9m.mjs → firewall-DtSIlkfL.mjs} +19 -19
- package/dist/{flagship-RiLnDwfJ.mjs → flagship-9E5gwNki.mjs} +12 -12
- package/dist/{fraud-DvfBBTe8.mjs → fraud-DjqhVJdf.mjs} +3 -3
- package/dist/generate-BzOnRBij.mjs +2 -0
- package/dist/generate-DfxZtpn9.mjs +2 -0
- package/dist/{global-options-DiKj2cQy.mjs → global-options-4pyD17hd.mjs} +1 -1
- package/dist/{google-tag-gateway-C5WYsSXv.mjs → google-tag-gateway-BM5GmCZa.mjs} +3 -3
- package/dist/gt-BV-jij5q.mjs +4 -0
- package/dist/healthchecks-CEZ5f3XJ.mjs +20 -0
- package/dist/{hyperdrive-Ch6klUp3.mjs → hyperdrive-Da8hCcUw.mjs} +12 -12
- package/dist/{iam-LlGEzRCq.mjs → iam-BK6N7NdQ.mjs} +31 -31
- package/dist/{images-C5WqUXkK.mjs → images-3bCWE6Ml.mjs} +33 -33
- package/dist/index.mjs +1 -1
- package/dist/init-BgCF9K8h.mjs +43 -0
- package/dist/{intel-vcWyslaX.mjs → intel-BQ58CJLt.mjs} +30 -30
- package/dist/{interactive-BCDFSPtq.mjs → interactive-JBA3qOUa.mjs} +9 -9
- package/dist/{internal-BhV9WjLp.mjs → internal-CWPz0sBF.mjs} +2 -2
- package/dist/{ips-CqHjVsqd.mjs → ips-3WYegiVW.mjs} +2 -2
- package/dist/{k2-CZT2Pd5J.mjs → k2-Bc_hjmiv.mjs} +5 -5
- package/dist/{kv-Ipa7dnvF.mjs → kv-DbShBhhg.mjs} +6 -6
- package/dist/{lazy-command-DbKVgdGT.mjs → lazy-command-CbGyEqFK.mjs} +1 -1
- package/dist/leaked-credential-checks-DgPefxP9.mjs +16 -0
- package/dist/{live-C9L1bNuE.mjs → live-BTtMv1a6.mjs} +2 -2
- package/dist/load-balancers-C2hg52WA.mjs +84 -0
- package/dist/{local-DIJ7SIKC.mjs → local-B3zt9PXR.mjs} +1 -1
- package/dist/local-DRxctCh9.mjs +2 -0
- package/dist/local-runtime-BOnDiMDc.mjs +2 -0
- package/dist/{log-BWdaOGOW.mjs → log-Brx-wjJW.mjs} +3 -3
- package/dist/log-DBAHla_W.mjs +2 -0
- package/dist/login-CK3nn9a5.mjs +2 -0
- package/dist/{login-DG5ebyab.mjs → login-DiR-buzS.mjs} +3 -3
- package/dist/{logpush-C5Gw7F_9.mjs → logpush-CitvUX-J.mjs} +22 -22
- package/dist/{logs-y3REfHbb.mjs → logs-CfWHu4Ir.mjs} +14 -16
- package/dist/{magic-network-monitoring-BZBGZB6M.mjs → magic-network-monitoring-gU6yzzML.mjs} +17 -17
- package/dist/{magic-transit-BPV_POf5.mjs → magic-transit-B3JY9u5o.mjs} +139 -139
- package/dist/{managed-defense-BaUBSUcz.mjs → managed-defense-C_EQ-NYp.mjs} +9 -9
- package/dist/managed-transforms-DIGl6JkM.mjs +8 -0
- package/dist/{mcp-RPtrISTy.mjs → mcp-DqhQJVaz.mjs} +15 -15
- package/dist/{mesh-DZ4QHBPE.mjs → mesh-DXVZBNDC.mjs} +12 -12
- package/dist/{migrate-CRIUqGi2.mjs → migrate-CmXyk9vX.mjs} +1 -1
- package/dist/{monetization-CVZqM8Xo.mjs → monetization-CWg-mySr.mjs} +9 -9
- package/dist/{network-interconnects-9nS5jL__.mjs → network-interconnects-DhfKL5tG.mjs} +17 -19
- package/dist/{network-DLt2JUo1.mjs → network-jtgq5eb4.mjs} +24 -24
- package/dist/o11y-eYYs59X9.mjs +88 -0
- package/dist/oauth-BgDZMd72.mjs +5 -0
- package/dist/{oauth-Cidoyxfp.mjs → oauth-V37G-PaV.mjs} +1 -1
- package/dist/{observability-C-KNh__y.mjs → observability-CB72eC4T.mjs} +2 -2
- package/dist/{ohttp-gateway-B5nCl4s3.mjs → ohttp-gateway-K9ToEft8.mjs} +4 -4
- package/dist/{organizations-DbeeWUL4.mjs → organizations-BllV7l_c.mjs} +18 -19
- package/dist/output-hFMAotFl.mjs +2 -0
- package/dist/package-oNVeacC9.mjs +2 -0
- package/dist/page-rules-BVmi-ZFW.mjs +35 -0
- package/dist/pages-5spcBpX1.mjs +48 -0
- package/dist/{pay-per-crawl-EHYtSKxX.mjs → pay-per-crawl-BgsdGcBi.mjs} +18 -18
- package/dist/{pay-per-use-wdEhl8k4.mjs → pay-per-use-CzmI1kEA.mjs} +16 -16
- package/dist/pipelines-CbtmLRxt.mjs +40 -0
- package/dist/{precursor-Dx8lN4UJ.mjs → precursor-Dk8YOKf_.mjs} +2 -2
- package/dist/previews-Bv1HMMtO.mjs +6 -0
- package/dist/progress-DE_G09u2.mjs +2 -0
- package/dist/project-settings-D_S-UC8I.mjs +3 -0
- package/dist/prompt-D274Im1O.mjs +4 -0
- package/dist/{queues-DgMc7Z6A.mjs → queues-DGCYUr4g.mjs} +26 -26
- package/dist/{r2-BpTVicIq.mjs → r2-DtCk-Nfi.mjs} +51 -51
- package/dist/{radar-DW-S1VUh.mjs → radar-1CwqOsMZ.mjs} +150 -150
- package/dist/raw-fetch-DhlyWQtk.mjs +2 -0
- package/dist/{ready-d0li0X6r.mjs → ready-CcoEA7M7.mjs} +2 -2
- package/dist/{realtime-DMKHLYF4.mjs → realtime-DFUxwIG5.mjs} +80 -81
- package/dist/registrar-Cl1snz8z.mjs +43 -0
- package/dist/{registrar-sandbox-lVLB1-mC.mjs → registrar-sandbox-Cne9BVCZ.mjs} +9 -9
- package/dist/{reporting-WX8P3Y0k.mjs → reporting-D9FC-Z-3.mjs} +7 -7
- package/dist/request-headers-Bopp5lH_.mjs +2 -0
- package/dist/request-tracers-CSSB9_aW.mjs +4 -0
- package/dist/{resource-sharing-B2ZSt_cA.mjs → resource-sharing-D8yuzJm7.mjs} +18 -18
- package/dist/{rules-CB0QQTB3.mjs → rules-DzmOQ3MB.mjs} +8 -8
- package/dist/rulesets-DsTGcgbc.mjs +42 -0
- package/dist/{rum-BZ_24qZU.mjs → rum-DrJLI93T.mjs} +14 -14
- package/dist/run-C5yPsiO2.mjs +2 -0
- package/dist/run-CXWkMU3x.mjs +2 -0
- package/dist/schema-CfZOW8Zw.mjs +2 -0
- package/dist/{schema-cache-5NkOj7Y3.mjs → schema-cache-CtqAs0PP.mjs} +1 -1
- package/dist/schema-flags-DO3kLYBu.mjs +4 -0
- package/dist/{scim-DchxaJfE.mjs → scim-0OufLKru.mjs} +8 -8
- package/dist/{secrets-store-oAft1cFE.mjs → secrets-store-BQeLzFxv.mjs} +11 -11
- package/dist/{security-insights-DMm0qg_m.mjs → security-insights-D2pj8-O-.mjs} +20 -20
- package/dist/{security-txt-CIt0494b.mjs → security-txt-SKtgW4n-.mjs} +4 -4
- package/dist/session-COdP8BXD.mjs +2 -0
- package/dist/shared-D_2KLpP3.mjs +2 -0
- package/dist/{signed-url-gNangfwc.mjs → signed-url-CcE2zQ4Y.mjs} +2 -2
- package/dist/smart-shield-Dod9Gs6T.mjs +22 -0
- package/dist/snippets-DrrdpLnS.mjs +18 -0
- package/dist/spawn-DNf-Ge8d.mjs +5 -0
- package/dist/{spectrum-DLYIHelC.mjs → spectrum-CHBGZbZF.mjs} +11 -11
- package/dist/{speed-DugG9Tm9.mjs → speed-vOlHyG3v.mjs} +11 -11
- package/dist/sql-BCuLxGSf.mjs +4 -0
- package/dist/src-ByCoEqOw.mjs +133 -0
- package/dist/{ssl-Bg4X3WGk.mjs → ssl-BA_dcVwF.mjs} +60 -62
- package/dist/startup-profile-CyQk_f_L.mjs +2 -0
- package/dist/{startup-profile-DZL2DC44.mjs → startup-profile-uh-F0HRS.mjs} +3 -3
- package/dist/state-B6r-b_-d.mjs +2 -0
- package/dist/{state-mr5ux1Nb.mjs → state-CTLznbVs.mjs} +1 -1
- package/dist/static-assets-DGDoaJf1.mjs +386 -0
- package/dist/stream-CzlqY8hq.mjs +89 -0
- package/dist/{tags-SKz2odE_.mjs → tags-BLeaslAb.mjs} +8 -8
- package/dist/telemetry-COlodX5Z.mjs +2 -0
- package/dist/{telemetry-B4zmCpT0.mjs → telemetry-DF7A5Bpk.mjs} +1 -1
- package/dist/{tenant-custom-nameservers-BhkhBerL.mjs → tenant-custom-nameservers-C5rh6jPf.mjs} +4 -4
- package/dist/{tenants-DD-GMq0K.mjs → tenants-CRirmhxS.mjs} +3 -3
- package/dist/{tools-KW_4hvzY.mjs → tools-BRjRgZnj.mjs} +1 -1
- package/dist/tunnels-nLfIWPYT.mjs +27 -0
- package/dist/{turnstile-DhSU_Xar.mjs → turnstile-CZjXtBCr.mjs} +10 -10
- package/dist/ui-dWsVmFCG.mjs +2 -0
- package/dist/{update-check-HltjTMDE.mjs → update-check-CXMdVBhW.mjs} +1 -1
- package/dist/{update-check-CRttabfu.mjs → update-check-D_Oky9-u.mjs} +1 -1
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-normalization-K7gkmPvG.mjs → url-normalization-DTKgJHE8.mjs} +4 -4
- package/dist/url-scanner-9XW3zLaU.mjs +16 -0
- package/dist/user-Bk1BIqZ5.mjs +103 -0
- package/dist/{vectorize-BTBerJME.mjs → vectorize-CgOfmWYq.mjs} +15 -15
- package/dist/version-CcuBNjqg.mjs +2 -0
- package/dist/waiting-rooms-C3nTKfK9.mjs +52 -0
- package/dist/{web-assets-LHPQsrnY.mjs → web-assets-CWU3jrit.mjs} +29 -29
- package/dist/{web3-BsOio0Ae.mjs → web3-CRpQ5sl4.mjs} +13 -13
- package/dist/workers-BZMvamn0.mjs +39 -0
- package/dist/{workers-for-platforms-BGp6yr6P.mjs → workers-for-platforms-C7F2ev-5.mjs} +18 -18
- package/dist/{workers-vpc-D8lefWDo.mjs → workers-vpc-ztEKvWmq.mjs} +6 -6
- package/dist/{workflows-B-ZIG3y7.mjs → workflows-Dd88_Nqc.mjs} +24 -24
- package/dist/{wrangler-migration-6E6wT_LZ.mjs → wrangler-migration-BzMTJPdI.mjs} +294 -294
- package/dist/zaraz-BFK0p28R.mjs +22 -0
- package/dist/{zero-trust-BZDXM5r6.mjs → zero-trust-Cdjfp0Ie.mjs} +441 -455
- package/dist/{zones-B-UV_DGE.mjs → zones-DDn5jk6I.mjs} +51 -51
- package/package.json +19 -19
- package/dist/ai-gateway-Lj4On37s.mjs +0 -74
- package/dist/ai-search-BxyhS3X7.mjs +0 -74
- package/dist/alerting-r0G2X9y9.mjs +0 -52
- package/dist/analytics-C6bfqm-W.mjs +0 -17
- package/dist/auth-B-h0BHg7.mjs +0 -2
- package/dist/auth-B6tswVxH.mjs +0 -2
- package/dist/auth-clmqFEWU.mjs +0 -7
- package/dist/body-parser-DoewLePl.mjs +0 -2
- package/dist/brand-protection-kv1ba80i.mjs +0 -14
- package/dist/browser-run-D-vRoZmf.mjs +0 -40
- package/dist/build-BzJGqb2o.mjs +0 -2
- package/dist/builds-BbxINHRP.mjs +0 -64
- package/dist/cf-BQ_LRiut.mjs +0 -18
- package/dist/chunk-SOBRPAPT-QTjnHSNs.mjs +0 -363
- package/dist/cli-B7vslRfu.mjs +0 -4
- package/dist/cloudforce-one-DWBPQDA3.mjs +0 -318
- package/dist/command-AVwd7XjE.mjs +0 -2
- package/dist/command-B87T_f2f.mjs +0 -2
- package/dist/command-CEHhi3t0.mjs +0 -2
- package/dist/command-CYmQE79n.mjs +0 -2
- package/dist/command-Ce8CVLth.mjs +0 -2
- package/dist/command-CqDudQZs.mjs +0 -2
- package/dist/command-D4YcwpVp.mjs +0 -2
- package/dist/command-D9Qyi1B0.mjs +0 -2
- package/dist/command-Dl9ICrRK.mjs +0 -2
- package/dist/command-DtCSe8Hy.mjs +0 -2
- package/dist/command-DwzVtmb3.mjs +0 -2
- package/dist/command-wtBubtZ4.mjs +0 -2
- package/dist/containers-B06OGOEB.mjs +0 -380
- package/dist/csam-scanner-BV4bHq8v.mjs +0 -8
- package/dist/d1-nJCOJZb8.mjs +0 -50
- package/dist/deploy-DJMnWFNk.mjs +0 -2
- package/dist/deploy-context-YCW3eqP1.mjs +0 -56
- package/dist/deploy-input-CQLBXFEB.mjs +0 -2
- package/dist/dev-GsYHvMah.mjs +0 -4
- package/dist/dialog-D5lus4M4.mjs +0 -2
- package/dist/discover-6kAmVMPp.mjs +0 -2
- package/dist/discover-C06Syc2B.mjs +0 -2
- package/dist/docs-CRc_WOXh.mjs +0 -3
- package/dist/email-auth-ptdqNSTZ.mjs +0 -6
- package/dist/email-domains-uL22-zRY.mjs +0 -14
- package/dist/email-routing-CV43rMJC.mjs +0 -44
- package/dist/errors-VG1mgwJl.mjs +0 -11
- package/dist/field-extractors-jcZ_bAGc.mjs +0 -8
- package/dist/generate-CeeWW3eX.mjs +0 -3
- package/dist/generate-D6V4Q58z.mjs +0 -2
- package/dist/gt-BQkaDQDq.mjs +0 -3
- package/dist/healthchecks-BA1fmzTm.mjs +0 -20
- package/dist/init-EVsjBrOz.mjs +0 -43
- package/dist/leaked-credential-checks-EzT4TTjO.mjs +0 -16
- package/dist/load-balancers-Cb3VkSfc.mjs +0 -84
- package/dist/local-D5Vq6ooZ.mjs +0 -2
- package/dist/local-runtime-BZjgkacr.mjs +0 -2
- package/dist/log-DZfik9Jk.mjs +0 -2
- package/dist/login-DRJugxya.mjs +0 -2
- package/dist/managed-transforms-CjkjLzMC.mjs +0 -8
- package/dist/o11y-ySxrnP1Z.mjs +0 -88
- package/dist/oauth-CFVUl-Wv.mjs +0 -4
- package/dist/output-BZQEl3mK.mjs +0 -2
- package/dist/package-B7RgwuFR.mjs +0 -2
- package/dist/page-rules-DRw763O1.mjs +0 -38
- package/dist/pages-DfQnxiTk.mjs +0 -48
- package/dist/pipelines-DbyrI6F4.mjs +0 -40
- package/dist/previews-DEVNSip2.mjs +0 -6
- package/dist/progress-yvPscjYg.mjs +0 -2
- package/dist/project-settings-nBMEx1f-.mjs +0 -3
- package/dist/prompt-CEpZ-lQZ.mjs +0 -4
- package/dist/raw-fetch-Cl5spWC3.mjs +0 -2
- package/dist/registrar-D23gfKBi.mjs +0 -43
- package/dist/request-headers-C0FpeBhz.mjs +0 -2
- package/dist/request-tracers-qd7XOAka.mjs +0 -4
- package/dist/rulesets-DmqwixUC.mjs +0 -42
- package/dist/run-BOKI1uWa.mjs +0 -2
- package/dist/run-DBqOjD1P.mjs +0 -2
- package/dist/schema-Dj9STsWI.mjs +0 -2
- package/dist/schema-flags-CXm9iIv6.mjs +0 -4
- package/dist/session-vzNfUhPl.mjs +0 -2
- package/dist/shared-MK-_lkbn.mjs +0 -2
- package/dist/smart-shield-Boy_qbqd.mjs +0 -22
- package/dist/snippets-DdoDYXW-.mjs +0 -18
- package/dist/spawn-B5F4OIHG.mjs +0 -5
- package/dist/sql-Bb56llsb.mjs +0 -4
- package/dist/src-BoSDeQ9m.mjs +0 -133
- package/dist/startup-profile-DQVkZZpb.mjs +0 -2
- package/dist/state-DW3QZtfh.mjs +0 -2
- package/dist/stream-BuZYDbNR.mjs +0 -89
- package/dist/telemetry-DkDUr4KK.mjs +0 -2
- package/dist/tunnels-D90ztENM.mjs +0 -27
- package/dist/ui-xjCox-gU.mjs +0 -2
- package/dist/url-scanner-BRdWwka4.mjs +0 -16
- package/dist/user-Cmb1_Wu5.mjs +0 -103
- package/dist/version-6Bpy6Bgt.mjs +0 -2
- package/dist/waiting-rooms-LymmKIGr.mjs +0 -52
- package/dist/workers-BnLiOjZf.mjs +0 -39
- package/dist/workers-builds-sKpITeRk.mjs +0 -14
- package/dist/zaraz-BBKki5WS.mjs +0 -22
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{
|
|
2
|
+
import"./api-Dnt6lRJG.mjs";import{n as e}from"./auth-DA1PHaHi.mjs";import{o as t,r as n,t as r}from"./body-parser-HN91kAf0.mjs";import{t as i}from"./dry-run-qsnRlRk6.mjs";import{t as a}from"./path-DRw6Y-nd.mjs";import{n as o}from"./input-validation-D7z60HJH.mjs";import{t as s}from"./local-B3zt9PXR.mjs";import{t as c}from"./output-hFMAotFl.mjs";import{t as l}from"./progress-DE_G09u2.mjs";import{a as u,i as d,n as f}from"./prompt-D274Im1O.mjs";import"./telemetry-COlodX5Z.mjs";import{E as p,S as m,T as h,_ as g,b as ee,f as _,h as te,p as v,s as y,t as b,u as ne,v as re}from"./deploy-context-B_lLfxt7.mjs";import{J as x}from"./dist-BxhwE-W1.mjs";import{t as S}from"./auth-token-CE3Wa5-b.mjs";import{a as C,n as w,t as T}from"./context-BGm5_wTT.mjs";import{n as E,t as D}from"./run-CXWkMU3x.mjs";import{n as O}from"./request-headers-Bopp5lH_.mjs";import{o as ie}from"./blocks-C3Im7AT0.mjs";import{t as k}from"./hand-written-dry-run-B82fRl2N.mjs";import{t as ae}from"./version-CcuBNjqg.mjs";var A={method:`POST`,path:e=>a`/accounts/${e.account_id}/containers/applications`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,500:`InternalServerError`}};function oe(e){return e.usage('$0 containers applications create\n\nCreate a Containers application. Use `scheduling_policy: "default"` for a scheduler-backed application. The Containers scheduler maintains the requested instance count and manages deployment configuration, placement, scaling, versions, and rollouts. Use `scheduling_policy: "durable_object"` for a Durable Object-managed application. Each Durable Object creates and manages the lifecycle of its container instance. Supply `name`, `scheduling_policy`, and `durable_objects`, with optional `configuration` and optional top-level `observability` settings. Deployment configuration, scaling, constraints, versions, and rollouts do not apply.').option(`configuration-authorized-keys`,{type:`string`,description:`The configuration.authorized_keys field. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"public_key": string, "name"?: string}]. ? marks optional keys.`}).option(`configuration-command`,{type:`string`,array:!0,description:`The command that runs when the container starts, passed to the entrypoint.
|
|
3
3
|
You can override this at run-time. If you override only the command,
|
|
4
4
|
it gets passed to the default entrypoint specified in the image.
|
|
5
5
|
`}).option(`configuration-entrypoint`,{type:`string`,array:!0,description:`The entry point for the container, specifying the executable to run when the container starts.
|
|
6
6
|
You can override this at run-time. If you do, the default command from the image is ignored.
|
|
7
7
|
Specify both entrypoint and command at run-time to completely replace the image defaults.
|
|
8
|
-
`}).option(`configuration-environment-variables`,{type:`string`,description:`Container environment variables. Provide as a JSON array of objects or @path/to/file.json.`}).option(`configuration-image`,{type:`string`,description:`Image url.`}).option(`configuration-instance-type`,{type:`string`,description:`The instance type configures vCPU, memory, and disk.
|
|
8
|
+
`}).option(`configuration-environment-variables`,{type:`string`,description:`Container environment variables. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"name": string, "value": string}].`}).option(`configuration-image`,{type:`string`,description:`Image url.`}).option(`configuration-instance-type`,{type:`string`,description:`The instance type configures vCPU, memory, and disk.
|
|
9
9
|
|
|
10
10
|
- "lite": 1/16 vCPU, 256 MiB memory, 2 GB disk
|
|
11
11
|
- "basic": 1/4 vCPU, 1 GiB memory, 4 GB disk
|
|
@@ -13,26 +13,26 @@ Specify both entrypoint and command at run-time to completely replace the image
|
|
|
13
13
|
- "standard-2": 1 vCPU, 6 GiB memory, 12 GB disk
|
|
14
14
|
- "standard-3": 2 vCPU, 8 GiB memory, 16 GB disk
|
|
15
15
|
- "standard-4": 4 vCPU, 12 GiB memory, 20 GB disk
|
|
16
|
-
`,choices:[`lite`,`basic`,`standard-1`,`standard-2`,`standard-3`,`standard-4`]}).coerce(`configuration-instance-type`,e=>
|
|
16
|
+
`,choices:[`lite`,`basic`,`standard-1`,`standard-2`,`standard-3`,`standard-4`]}).coerce(`configuration-instance-type`,e=>o(e,`configuration-instance-type`,`text`)).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(`durable-objects-namespace-id`,{type:`string`,description:`The namespace ID of the durable object namespace to use for this application.`}).option(`durable-objects-class-name`,{type:`string`,description:`The class name of the durable object.`}).option(`durable-objects-script-name`,{type:`string`,description:`The script name where the durable object class is defined.`}).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
17
|
Defaults to 0.
|
|
18
18
|
`}).option(`scheduling-policy`,{type:`string`,description:`Selects a scheduler-backed application. Use \`default\` when the Containers
|
|
19
19
|
scheduler should maintain the requested number of instances and manage deployment
|
|
20
|
-
configuration, placement, scaling, versions, and rollouts.`,choices:[`default`,`durable_object`]}).coerce(`scheduling-policy`,e=>
|
|
20
|
+
configuration, placement, scaling, versions, and rollouts.`,choices:[`default`,`durable_object`]}).coerce(`scheduling-policy`,e=>o(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-enabled`,`configuration-wrangler-ssh-port`]).implies(`configuration-command`,[`configuration-image`,`instances`,`max-instances`]).conflicts(`configuration-entrypoint`,[`configuration-wrangler-ssh-enabled`,`configuration-wrangler-ssh-port`]).implies(`configuration-entrypoint`,[`configuration-image`,`instances`,`max-instances`]).conflicts(`configuration-environment-variables`,[`configuration-wrangler-ssh-enabled`,`configuration-wrangler-ssh-port`]).implies(`configuration-environment-variables`,[`configuration-image`,`instances`,`max-instances`]).conflicts(`configuration-image`,[`configuration-wrangler-ssh-enabled`,`configuration-wrangler-ssh-port`]).implies(`configuration-image`,[`instances`,`max-instances`]).conflicts(`configuration-instance-type`,[`configuration-wrangler-ssh-enabled`,`configuration-wrangler-ssh-port`]).implies(`configuration-instance-type`,[`configuration-image`,`instances`,`max-instances`]).conflicts(`configuration-observability-logs-enabled`,[`configuration-wrangler-ssh-enabled`,`configuration-wrangler-ssh-port`]).implies(`configuration-observability-logs-enabled`,[`configuration-image`,`instances`,`max-instances`]).conflicts(`configuration-wrangler-ssh-enabled`,[`configuration-command`,`configuration-entrypoint`,`configuration-environment-variables`,`configuration-image`,`configuration-instance-type`,`configuration-observability-logs-enabled`,`constraints-regions`,`instances`,`max-instances`,`rollout-active-grace-period`]).conflicts(`configuration-wrangler-ssh-port`,[`configuration-command`,`configuration-entrypoint`,`configuration-environment-variables`,`configuration-image`,`configuration-instance-type`,`configuration-observability-logs-enabled`,`constraints-regions`,`instances`,`max-instances`,`rollout-active-grace-period`]).conflicts(`constraints-regions`,[`configuration-wrangler-ssh-enabled`,`configuration-wrangler-ssh-port`]).implies(`constraints-regions`,[`configuration-image`,`instances`,`max-instances`]).conflicts(`durable-objects-namespace-id`,[`durable-objects-class-name`,`durable-objects-script-name`]).conflicts(`durable-objects-class-name`,[`durable-objects-namespace-id`]).implies(`durable-objects-class-name`,[`durable-objects-script-name`]).conflicts(`durable-objects-script-name`,[`durable-objects-namespace-id`]).implies(`durable-objects-script-name`,[`durable-objects-class-name`]).conflicts(`instances`,[`configuration-wrangler-ssh-enabled`,`configuration-wrangler-ssh-port`]).implies(`instances`,[`configuration-image`,`max-instances`]).conflicts(`max-instances`,[`configuration-wrangler-ssh-enabled`,`configuration-wrangler-ssh-port`]).implies(`max-instances`,[`configuration-image`,`instances`]).conflicts(`rollout-active-grace-period`,[`configuration-wrangler-ssh-enabled`,`configuration-wrangler-ssh-port`]).implies(`rollout-active-grace-period`,[`configuration-image`,`instances`,`max-instances`])}const se={command:`create`,describe:`Create a new application`,builder:oe,handler:async a=>D({command:`containers applications create`,classification:{safeFlags:[`configuration-instance-type`,`configuration-observability-logs-enabled`,`configuration-wrangler-ssh-enabled`,`observability-logs-enabled`,`scheduling-policy`,`dry-run`]}},a,async()=>{if(a.dryRun){let e=await C();i({command:`cf containers applications create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/containers/applications`,pathParams:{},bodyKind:`json`,body:a.body===void 0?r({configuration:{authorized_keys:t(a[`configuration-authorized-keys`],`configuration-authorized-keys`),command:a[`configuration-command`],entrypoint:a[`configuration-entrypoint`],environment_variables:t(a[`configuration-environment-variables`],`configuration-environment-variables`),image:o(a[`configuration-image`],`configuration-image`,`text`),instance_type:a[`configuration-instance-type`],observability:{logs:{enabled:a[`configuration-observability-logs-enabled`]}},wrangler_ssh:{enabled:a[`configuration-wrangler-ssh-enabled`],port:a[`configuration-wrangler-ssh-port`]}},constraints:{jurisdiction:o(a[`constraints-jurisdiction`],`constraints-jurisdiction`,`text`),regions:a[`constraints-regions`]},durable_objects:{namespace_id:o(a[`durable-objects-namespace-id`],`durable-objects-namespace-id`,`text`),class_name:o(a[`durable-objects-class-name`],`durable-objects-class-name`,`text`),script_name:o(a[`durable-objects-script-name`],`durable-objects-script-name`,`text`)},instances:a.instances,max_instances:a[`max-instances`],name:o(a.name,`name`,`text`),observability:{logs:{enabled:a[`observability-logs-enabled`]}},rollout_active_grace_period:a[`rollout-active-grace-period`],scheduling_policy:a[`scheduling-policy`]}):n(a.body)});return}let f=a.body===void 0?void 0:n(a.body),p=await e(a),m=a.local?s:await T();if(a.accountId=m,a.body!==void 0){let e=f,t=await l(`Creating`,async()=>p.send(A,{body:e,account_id:m}));c(t,{successLabel:`Created`});return}a.name===void 0&&(a.name=await u(`name`,`The name for this application.`)),a[`scheduling-policy`]===void 0&&(a[`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 h=r({configuration:{authorized_keys:t(a[`configuration-authorized-keys`],`configuration-authorized-keys`),command:a[`configuration-command`],entrypoint:a[`configuration-entrypoint`],environment_variables:t(a[`configuration-environment-variables`],`configuration-environment-variables`),image:o(a[`configuration-image`],`configuration-image`,`text`),instance_type:a[`configuration-instance-type`],observability:{logs:{enabled:a[`configuration-observability-logs-enabled`]}},wrangler_ssh:{enabled:a[`configuration-wrangler-ssh-enabled`],port:a[`configuration-wrangler-ssh-port`]}},constraints:{jurisdiction:o(a[`constraints-jurisdiction`],`constraints-jurisdiction`,`text`),regions:a[`constraints-regions`]},durable_objects:{namespace_id:o(a[`durable-objects-namespace-id`],`durable-objects-namespace-id`,`text`),class_name:o(a[`durable-objects-class-name`],`durable-objects-class-name`,`text`),script_name:o(a[`durable-objects-script-name`],`durable-objects-script-name`,`text`)},instances:a.instances,max_instances:a[`max-instances`],name:o(a.name,`name`,`text`),observability:{logs:{enabled:a[`observability-logs-enabled`]}},rollout_active_grace_period:a[`rollout-active-grace-period`],scheduling_policy:a[`scheduling-policy`]}),g=await l(`Creating`,async()=>p.send(A,{body:h,account_id:m}));c(g,{successLabel:`Created`})})};var ce={method:`DELETE`,path:e=>a`/accounts/${e.account_id}/containers/applications/${e.application_id}`,errors:{401:`UnauthorizedError`,404:`NotFoundError`,500:`InternalServerError`}};function j(e){return e.usage(`$0 containers applications delete <application-id>
|
|
21
21
|
|
|
22
|
-
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 M={command:`delete <application-id>`,describe:`Delete a single application by id`,builder:j,handler:async
|
|
22
|
+
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 M={command:`delete <application-id>`,describe:`Delete a single application by id`,builder:j,handler:async t=>D({command:`containers applications delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){let e=await C();i({command:`cf containers applications delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/containers/applications/${t[`application-id`]==null?`<application-id>`:encodeURIComponent(String(t[`application-id`]))}`,pathParams:{"application-id":String(t[`application-id`]??``)},bodyKind:`none`});return}let n=await e(t),r=t.local?s:await T();if(t.accountId=r,!await f({force:!!t.force,message:`This operation permanently deletes the application and stops its containers.`}))return;let a=await l(`Deleting`,async()=>n.send(ce,{account_id:r,application_id:t[`application-id`]}));c(a,{successLabel:`Deleted`})})};var N={method:`PATCH`,path:e=>a`/accounts/${e.account_id}/containers/applications/${e.application_id}`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};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-authorized-keys`,{type:`string`,description:`The configuration.authorized_keys field. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"public_key": string, "name"?: string}]. ? marks optional keys.`}).option(`configuration-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.
|
|
23
23
|
Defaults to 0.
|
|
24
|
-
`}).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
|
|
24
|
+
`}).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 a=>D({command:`containers applications edit`,classification:{safeFlags:[`configuration-wrangler-ssh-enabled`,`observability-logs-enabled`,`dry-run`]}},a,async()=>{if(a.dryRun){let e=await C();i({command:`cf containers applications edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/containers/applications/${a[`application-id`]==null?`<application-id>`:encodeURIComponent(String(a[`application-id`]))}`,pathParams:{"application-id":String(a[`application-id`]??``)},bodyKind:`json`,body:a.body===void 0?r({configuration:{authorized_keys:t(a[`configuration-authorized-keys`],`configuration-authorized-keys`),wrangler_ssh:{enabled:a[`configuration-wrangler-ssh-enabled`],port:a[`configuration-wrangler-ssh-port`]}},constraints:{jurisdiction:o(a[`constraints-jurisdiction`],`constraints-jurisdiction`,`text`),regions:a[`constraints-regions`]},max_instances:a[`max-instances`],observability:{logs:{enabled:a[`observability-logs-enabled`]}},rollout_active_grace_period:a[`rollout-active-grace-period`]}):n(a.body)});return}let u=a.body===void 0?void 0:n(a.body),d=await e(a),f=a.local?s:await T();if(a.accountId=f,a.body!==void 0){let e=u,t=await l(`Updating`,async()=>d.send(N,{body:e,account_id:f,application_id:a[`application-id`]}));c(t,{successLabel:`Updated`});return}let p=r({configuration:{authorized_keys:t(a[`configuration-authorized-keys`],`configuration-authorized-keys`),wrangler_ssh:{enabled:a[`configuration-wrangler-ssh-enabled`],port:a[`configuration-wrangler-ssh-port`]}},constraints:{jurisdiction:o(a[`constraints-jurisdiction`],`constraints-jurisdiction`,`text`),regions:a[`constraints-regions`]},max_instances:a[`max-instances`],observability:{logs:{enabled:a[`observability-logs-enabled`]}},rollout_active_grace_period:a[`rollout-active-grace-period`]}),m=await l(`Updating`,async()=>d.send(N,{body:p,account_id:f,application_id:a[`application-id`]}));c(m,{successLabel:`Updated`})})};var I={method:`GET`,path:e=>a`/accounts/${e.account_id}/containers/applications/${e.application_id}`,errors:{401:`UnauthorizedError`,404:`NotFoundError`,500:`InternalServerError`}};function L(e){return e.usage(`$0 containers applications get <application-id>
|
|
25
25
|
|
|
26
|
-
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 R={command:`get <application-id>`,describe:`Get a single application by id`,builder:L,handler:async
|
|
26
|
+
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 R={command:`get <application-id>`,describe:`Get a single application by id`,builder:L,handler:async t=>D({command:`containers applications get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await C();i({command:`cf containers applications get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/containers/applications/${t[`application-id`]==null?`<application-id>`:encodeURIComponent(String(t[`application-id`]))}`,pathParams:{"application-id":String(t[`application-id`]??``)},bodyKind:`none`});return}let n=await e(t),r=t.local?s:await T();t.accountId=r;let a=await l(`Loading`,async()=>n.send(I,{account_id:r,application_id:t[`application-id`]}));c(a,{successLabel:`Loaded`})})};var z={method:`GET`,path:e=>a`/accounts/${e.account_id}/containers/applications/${e.application_id}/instances/${e.instance_id}`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,404:`NotFoundError`,500:`InternalServerError`}};function B(e){return e.usage(`$0 containers applications instances get <instance-id>
|
|
27
27
|
|
|
28
|
-
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 V={command:`get <instance-id>`,describe:`Get a container instance`,builder:B,handler:async
|
|
28
|
+
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 V={command:`get <instance-id>`,describe:`Get a container instance`,builder:B,handler:async t=>D({command:`containers applications instances get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await C();i({command:`cf containers applications instances get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/containers/applications/${t[`application-id`]==null?`<application-id>`:encodeURIComponent(String(t[`application-id`]))}/instances/${t[`instance-id`]==null?`<instance-id>`:encodeURIComponent(String(t[`instance-id`]))}`,pathParams:{"application-id":String(t[`application-id`]??``),"instance-id":String(t[`instance-id`]??``)},bodyKind:`none`});return}let n=await e(t),r=t.local?s:await T();t.accountId=r;let a=await l(`Loading`,async()=>n.send(z,{account_id:r,application_id:t[`application-id`],instance_id:t[`instance-id`]}));c(a,{successLabel:`Loaded`})})};var H={method:`GET`,path:e=>a`/accounts/${e.account_id}/containers/applications/${e.application_id}/instances-v2`,query:[`per_page`,`page_token`,`state`,`name_prefix`],errors:{400:`BadRequestError`,401:`UnauthorizedError`,404:`NotFoundError`,500:`InternalServerError`}};function U(e){return e.usage(`$0 containers applications instances list
|
|
29
29
|
|
|
30
|
-
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 W={command:`list`,describe:`List container instances`,builder:U,handler:async
|
|
30
|
+
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 W={command:`list`,describe:`List container instances`,builder:U,handler:async t=>D({command:`containers applications instances list`,classification:{safeFlags:[`state`,`dry-run`]}},t,async()=>{let n={per_page:t[`per-page`],page_token:t[`page-token`],state:t.state,name_prefix:t[`name-prefix`]};if(t.dryRun){let e=await C();i({command:`cf containers applications instances list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/containers/applications/${t[`application-id`]==null?`<application-id>`:encodeURIComponent(String(t[`application-id`]))}/instances-v2`,pathParams:{"application-id":String(t[`application-id`]??``)},query:n,bodyKind:`none`});return}let r=await e(t),a=t.local?s:await T();t.accountId=a;let o=await l(`Loading`,async()=>r.send(H,{account_id:a,application_id:t[`application-id`],...n}));c(o,{successLabel:`Loaded`})})},G={command:`instances`,describe:`Inspect Containers instances belonging to applications`,builder:e=>e.command(V).command(W).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var le={method:`GET`,path:e=>a`/accounts/${e.account_id}/containers/applications`,query:[`per_page`,`page_token`,`name`,`image`],errors:{400:`BadRequestError`,401:`UnauthorizedError`,500:`InternalServerError`}};function ue(e){return e.usage(`$0 containers applications list
|
|
31
31
|
|
|
32
|
-
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 de={command:`list`,describe:`List Applications associated with your account`,builder:ue,handler:async
|
|
32
|
+
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 de={command:`list`,describe:`List Applications associated with your account`,builder:ue,handler:async t=>D({command:`containers applications list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{let n={per_page:t[`per-page`],page_token:t[`page-token`],name:t.name,image:t.image};if(t.dryRun){let e=await C();i({command:`cf containers applications list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/containers/applications`,pathParams:{},query:n,bodyKind:`none`});return}let r=await e(t),a=t.local?s:await T();t.accountId=a;let o=await l(`Loading`,async()=>r.send(le,{account_id:a,...n}));c(o,{successLabel:`Loaded`})})};var K={method:`POST`,path:e=>a`/accounts/${e.account_id}/containers/applications/${e.application_id}/rollouts`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function fe(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".
|
|
33
33
|
- "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.
|
|
34
34
|
- "full_manual": Requires manually progressing each step in the rollout using the UpdateRollout's action parameter.
|
|
35
|
-
`,choices:[`full_auto`,`full_manual`],default:`full_auto`}).coerce(`kind`,e=>
|
|
35
|
+
`,choices:[`full_auto`,`full_manual`],default:`full_auto`}).coerce(`kind`,e=>o(e,`kind`,`text`)).option(`percentage`,{type:`number`,description:`Initial target version percentage (0-100). Version sync actively replaces instances to match.
|
|
36
36
|
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".
|
|
37
37
|
`}).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.
|
|
38
38
|
These create rollouts with 20, 10, 5, 4, 2, 1 steps respectively.
|
|
@@ -40,17 +40,16 @@ Only valid for "rolling" strategy.
|
|
|
40
40
|
`}).option(`steps`,{type:`string`,description:`Steps defining the rollout process, used when "step_percentage" is absent.
|
|
41
41
|
Specify only one of "step_percentage" or "steps" when creating a rollout.
|
|
42
42
|
"steps" allow granular control over each step.
|
|
43
|
-
Only valid for "rolling" strategy.
|
|
44
|
-
. Provide as a JSON array of objects or @path/to/file.json.`}).option(`strategy`,{type:`string`,description:`Strategy used for the rollout.
|
|
43
|
+
Only valid for "rolling" strategy. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"description": string, "step_size": {...}}].`}).option(`strategy`,{type:`string`,description:`Strategy used for the rollout.
|
|
45
44
|
- "rolling": Step-based rollout with health gates. Actively replaces instances to reach each step's target percentage.
|
|
46
45
|
- "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.
|
|
47
|
-
`,choices:[`rolling`,`new_instances`]}).coerce(`strategy`,e=>
|
|
46
|
+
`,choices:[`rolling`,`new_instances`]}).coerce(`strategy`,e=>o(e,`strategy`,`text`)).option(`target-configuration-authorized-keys`,{type:`string`,description:`The target_configuration.authorized_keys field. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"public_key": string, "name"?: string}]. ? marks optional keys.`}).option(`target-configuration-command`,{type:`string`,array:!0,description:`The command that runs when the container starts, passed to the entrypoint.
|
|
48
47
|
You can override this at run-time. If you override only the command,
|
|
49
48
|
it gets passed to the default entrypoint specified in the image.
|
|
50
49
|
`}).option(`target-configuration-entrypoint`,{type:`string`,array:!0,description:`The entry point for the container, specifying the executable to run when the container starts.
|
|
51
50
|
You can override this at run-time. If you do, the default command from the image is ignored.
|
|
52
51
|
Specify both entrypoint and command at run-time to completely replace the image defaults.
|
|
53
|
-
`}).option(`target-configuration-environment-variables`,{type:`string`,description:`Container environment variables. Provide as a JSON array of objects or @path/to/file.json.`}).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.
|
|
52
|
+
`}).option(`target-configuration-environment-variables`,{type:`string`,description:`Container environment variables. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"name": string, "value": string}].`}).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.
|
|
54
53
|
|
|
55
54
|
- "lite": 1/16 vCPU, 256 MiB memory, 2 GB disk
|
|
56
55
|
- "basic": 1/4 vCPU, 1 GiB memory, 4 GB disk
|
|
@@ -58,18 +57,20 @@ Specify both entrypoint and command at run-time to completely replace the image
|
|
|
58
57
|
- "standard-2": 1 vCPU, 6 GiB memory, 12 GB disk
|
|
59
58
|
- "standard-3": 2 vCPU, 8 GiB memory, 16 GB disk
|
|
60
59
|
- "standard-4": 4 vCPU, 12 GiB memory, 20 GB disk
|
|
61
|
-
`,choices:[`lite`,`basic`,`standard-1`,`standard-2`,`standard-3`,`standard-4`],default:`lite`}).coerce(`target-configuration-instance-type`,e=>
|
|
60
|
+
`,choices:[`lite`,`basic`,`standard-1`,`standard-2`,`standard-3`,`standard-4`],default:`lite`}).coerce(`target-configuration-instance-type`,e=>o(e,`target-configuration-instance-type`,`text`)).option(`target-configuration-observability-logs-enabled`,{type:`boolean`,description:`The target_configuration.observability.logs.enabled field`}).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 pe={command:`create <application-id>`,describe:`Create a new rollout for an application`,builder:fe,handler:async a=>D({command:`containers applications rollouts create`,classification:{safeFlags:[`kind`,`strategy`,`target-configuration-instance-type`,`target-configuration-observability-logs-enabled`,`dry-run`]}},a,async()=>{if(a.dryRun){let e=await C();i({command:`cf containers applications rollouts create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/containers/applications/${a[`application-id`]==null?`<application-id>`:encodeURIComponent(String(a[`application-id`]))}/rollouts`,pathParams:{"application-id":String(a[`application-id`]??``)},bodyKind:`json`,body:a.body===void 0?r({description:o(a.description,`description`,`text`),kind:a.kind,percentage:a.percentage,step_percentage:a[`step-percentage`],steps:t(a.steps,`steps`),strategy:a.strategy,target_configuration:{authorized_keys:t(a[`target-configuration-authorized-keys`],`target-configuration-authorized-keys`),command:a[`target-configuration-command`],entrypoint:a[`target-configuration-entrypoint`],environment_variables:t(a[`target-configuration-environment-variables`],`target-configuration-environment-variables`),image:o(a[`target-configuration-image`],`target-configuration-image`,`text`),instance_type:a[`target-configuration-instance-type`],observability:{logs:{enabled:a[`target-configuration-observability-logs-enabled`]}}}}):n(a.body)});return}let f=a.body===void 0?void 0:n(a.body),p=await e(a),m=a.local?s:await T();if(a.accountId=m,a.body!==void 0){let e=f,t=await l(`Creating`,async()=>p.send(K,{body:e,account_id:m,application_id:a[`application-id`]}));c(t,{successLabel:`Created`});return}a.description===void 0&&(a.description=await u(`description`,`Description of the rollout process.`)),a.strategy===void 0&&(a.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 h=r({description:o(a.description,`description`,`text`),kind:a.kind,percentage:a.percentage,step_percentage:a[`step-percentage`],steps:t(a.steps,`steps`),strategy:a.strategy,target_configuration:{authorized_keys:t(a[`target-configuration-authorized-keys`],`target-configuration-authorized-keys`),command:a[`target-configuration-command`],entrypoint:a[`target-configuration-entrypoint`],environment_variables:t(a[`target-configuration-environment-variables`],`target-configuration-environment-variables`),image:o(a[`target-configuration-image`],`target-configuration-image`,`text`),instance_type:a[`target-configuration-instance-type`],observability:{logs:{enabled:a[`target-configuration-observability-logs-enabled`]}}}}),g=await l(`Creating`,async()=>p.send(K,{body:h,account_id:m,application_id:a[`application-id`]}));c(g,{successLabel:`Created`})})},me={command:`rollouts`,describe:`Manage rollouts for scheduler-backed applications`,builder:e=>e.command(pe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var he={method:`GET`,path:e=>a`/accounts/${e.account_id}/containers/applications/${e.application_id}/versions`,errors:{401:`UnauthorizedError`,404:`NotFoundError`,500:`InternalServerError`}};function ge(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 _e={command:`list`,describe:`List all application versions`,builder:ge,handler:async t=>D({command:`containers applications versions list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await C();i({command:`cf containers applications versions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/containers/applications/${t[`application-id`]==null?`<application-id>`:encodeURIComponent(String(t[`application-id`]))}/versions`,pathParams:{"application-id":String(t[`application-id`]??``)},bodyKind:`none`});return}let n=await e(t),r=t.local?s:await T();t.accountId=r;let a=await l(`Loading`,async()=>n.send(he,{account_id:r,application_id:t[`application-id`]}));c(a,{successLabel:`Loaded`})})},ve={command:`versions`,describe:`Inspect versions of scheduler-backed applications`,builder:e=>e.command(_e).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ye={command:`applications`,describe:`Manage Containers applications`,builder:e=>e.command(se).command(M).command(F).command(R).command(de).command(G).command(me).command(ve).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var q={method:`POST`,path:e=>a`/accounts/${e.account_id}/containers/image-preparations`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,500:`InternalServerError`}};function be(e){return e.usage(`$0 containers images prepare
|
|
62
61
|
|
|
63
|
-
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 xe={command:`prepare`,describe:`Prepare a container image`,builder:be,handler:async
|
|
62
|
+
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 xe={command:`prepare`,describe:`Prepare a container image`,builder:be,handler:async t=>D({command:`containers images prepare`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await C();i({command:`cf containers images prepare`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/containers/image-preparations`,pathParams:{},bodyKind:`json`,body:t.body===void 0?r({image:o(t.image,`image`,`text`)}):n(t.body)});return}let a=t.body===void 0?void 0:n(t.body),d=await e(t),f=t.local?s:await T();if(t.accountId=f,t.body!==void 0){let e=a,t=await l(`Creating`,async()=>d.send(q,{body:e,account_id:f}));c(t,{successLabel:`Created`});return}t.image===void 0&&(t.image=await u(`image`,`Image url.`));let p=r({image:o(t.image,`image`,`text`)}),m=await l(`Creating`,async()=>d.send(q,{body:p,account_id:f}));c(m,{successLabel:`Created`})})};async function J(){let e=await S(),t=await T(),n={compliance_region:await w()};return y.HEADERS=O(),_(t,e,x(n)),{accountId:t,complianceConfig:n}}function Se(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 Ce=E({command:`delete <image>`,describe:`Delete an image tag from the Cloudflare managed registry`,builder:Se,async handler(e){if(e.local)throw Error("--local is not supported with `cf containers images delete`.");if(ee(e.image),!await f({force:e.force,message:`Delete ${e.image}? This action cannot be undone.`}))return;let t=await J(),n=await l(`Deleting`,()=>te({...t,image:e.image}));c({image:e.image,...n},{quiet:e.quiet}),n.warning&&console.warn(ie(n.warning))}},{command:`containers images delete`,classification:{safeFlags:[`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}});function we(e){return e.option(`filter`,{type:`string`,description:`Regex to filter repository names`})}var Te=E({command:`list`,describe:`List images in the Cloudflare managed registry`,builder:we,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 J(),n=await l(`Loading`,()=>re({...t,filter:e.filter}));c(n,{quiet:e.quiet})}},{command:`containers images list`,classification:{safeFlags:[]}});const Ee={command:`images`,describe:`Operations for images`,builder:e=>e.command(k(Ce,`preview`)).command(k(Te,`preview`)).command(xe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Y={method:`POST`,path:e=>a`/accounts/${e.account_id}/containers/registries`,body:`json`,errors:{400:`BadRequestError`,403:`ForbiddenError`,409:`ConflictError`,500:`InternalServerError`}};function De(e){return e.usage(`$0 containers registries create
|
|
64
63
|
|
|
65
64
|
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,
|
|
66
65
|
a username for Docker Hub, or a service account email for Google Artifact Registry.
|
|
67
66
|
`}).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
|
|
68
67
|
registry configuration and cannot be added with this endpoint.
|
|
69
|
-
`}).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=>
|
|
68
|
+
`}).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=>o(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 Oe={command:`create`,describe:`Configure a private external image registry`,builder:De,handler:async t=>D({command:`containers registries create`,classification:{safeFlags:[`is-public`,`kind`,`dry-run`]}},t,async()=>{if(t.dryRun){let e=await C();i({command:`cf containers registries create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/containers/registries`,pathParams:{},bodyKind:`json`,body:t.body===void 0?r({auth:{private_credential:{secret_name:o(t[`auth-private-credential-secret-name`],`auth-private-credential-secret-name`,`text`),store_id:o(t[`auth-private-credential-store-id`],`auth-private-credential-store-id`,`text`)},public_credential:o(t[`auth-public-credential`],`auth-public-credential`,`text`)},domain:o(t.domain,`domain`,`text`),is_public:t[`is-public`],kind:t.kind}):n(t.body)});return}let a=t.body===void 0?void 0:n(t.body),f=await e(t),p=t.local?s:await T();if(t.accountId=p,t.body!==void 0){let e=a,t=await l(`Creating`,async()=>f.send(Y,{body:e,account_id:p}));c(t,{successLabel:`Created`});return}t[`auth-private-credential-secret-name`]===void 0&&(t[`auth-private-credential-secret-name`]=await u(`auth-private-credential-secret-name`,`Name of the secret within the store.`)),t[`auth-private-credential-store-id`]===void 0&&(t[`auth-private-credential-store-id`]=await u(`auth-private-credential-store-id`,`Identifier of the Secrets Store containing the secret.`)),t[`auth-public-credential`]===void 0&&(t[`auth-public-credential`]=await u(`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. `)),t.domain===void 0&&(t.domain=await u(`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. ")),t.kind===void 0&&(t.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 m=r({auth:{private_credential:{secret_name:o(t[`auth-private-credential-secret-name`],`auth-private-credential-secret-name`,`text`),store_id:o(t[`auth-private-credential-store-id`],`auth-private-credential-store-id`,`text`)},public_credential:o(t[`auth-public-credential`],`auth-public-credential`,`text`)},domain:o(t.domain,`domain`,`text`),is_public:t[`is-public`],kind:t.kind}),h=await l(`Creating`,async()=>f.send(Y,{body:m,account_id:p}));c(h,{successLabel:`Created`})})};var X={method:`POST`,path:e=>a`/accounts/${e.account_id}/containers/registries/${e.domain}/credentials`,body:`json`,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`,409:`ConflictError`,500:`InternalServerError`}};function ke(e){return e.usage(`$0 containers registries credentials generate <domain>
|
|
69
|
+
|
|
70
|
+
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 Ae={command:`generate <domain>`,describe:`Generate a JWT to interact with the specified image registry.`,builder:ke,handler:async t=>D({command:`containers registries credentials generate`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await C();i({command:`cf containers registries credentials generate`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/containers/registries/${t.domain==null?`<domain>`:encodeURIComponent(String(t.domain))}/credentials`,pathParams:{domain:String(t.domain??``)},bodyKind:`json`,body:t.body===void 0?r({expiration_minutes:t[`expiration-minutes`],permissions:t.permissions}):n(t.body)});return}let a=t.body===void 0?void 0:n(t.body),o=await e(t),u=t.local?s:await T();if(t.accountId=u,t.body!==void 0){let e=a,n=await l(`Creating`,async()=>o.send(X,{body:e,account_id:u,domain:t.domain}));c(n,{successLabel:`Created`});return}let d=r({expiration_minutes:t[`expiration-minutes`],permissions:t.permissions}),f=await l(`Creating`,async()=>o.send(X,{body:d,account_id:u,domain:t.domain}));c(f,{successLabel:`Created`})})},je={command:`credentials`,describe:`Generate image registry credentials`,builder:e=>e.command(Ae).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Me={method:`DELETE`,path:e=>a`/accounts/${e.account_id}/containers/registries/${e.domain}`,errors:{403:`ForbiddenError`,404:`NotFoundError`,409:`ConflictError`,500:`InternalServerError`}};function Ne(e){return e.usage(`$0 containers registries delete <domain>
|
|
70
71
|
|
|
71
|
-
|
|
72
|
+
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 Pe={command:`delete <domain>`,describe:`Delete a registry from the account`,builder:Ne,handler:async t=>D({command:`containers registries delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){let e=await C();i({command:`cf containers registries delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/containers/registries/${t.domain==null?`<domain>`:encodeURIComponent(String(t.domain))}`,pathParams:{domain:String(t.domain??``)},bodyKind:`none`});return}let n=await e(t),r=t.local?s:await T();if(t.accountId=r,!await f({force:!!t.force,message:`This operation deletes the registry configuration. Containers will no longer be able to pull images from it.`}))return;let a=await l(`Deleting`,async()=>n.send(Me,{account_id:r,domain:t.domain}));c(a,{successLabel:`Deleted`})})};var Fe={method:`GET`,path:e=>a`/accounts/${e.account_id}/containers/registries`,errors:{401:`UnauthorizedError`,500:`InternalServerError`}};function Ie(e){return e.usage(`$0 containers registries list
|
|
72
73
|
|
|
73
|
-
|
|
74
|
+
Get the list of configured registries in the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Z={command:`list`,describe:`Get the list of configured registries in the account`,builder:Ie,handler:async t=>D({command:`containers registries list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await C();i({command:`cf containers registries list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/containers/registries`,pathParams:{},bodyKind:`none`});return}let n=await e(t),r=t.local?s:await T();t.accountId=r;let a=await l(`Loading`,async()=>n.send(Fe,{account_id:r}));c(a,{successLabel:`Loaded`})})},Le={command:`registries`,describe:`Manage Containers image registries`,builder:e=>e.command(Oe).command(Pe).command(Z).command(je).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Re={method:`GET`,path:e=>a`/accounts/${e.account_id}/containers/usage`,errors:{401:`UnauthorizedError`,403:`ForbiddenError`,500:`InternalServerError`}};function ze(e){return e.usage(`$0 containers usage
|
|
74
75
|
|
|
75
|
-
Get
|
|
76
|
+
Get current live resource usage and maximum limits for your account. Usage includes active and assigned instances.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Be={command:`usage`,describe:`Get live account usage`,builder:ze,handler:async t=>D({command:`containers usage`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await C();i({command:`cf containers usage`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/containers/usage`,pathParams:{},bodyKind:`none`});return}let n=await e(t),r=t.local?s:await T();t.accountId=r;let a=await l(`Loading`,async()=>n.send(Re,{account_id:r}));c(a,{successLabel:`Loaded`})})};function Ve(e){return e.positional(`path`,{type:`string`,demandOption:!0,description:`Directory containing the Dockerfile to build`}).option(`tag`,{alias:`t`,type:`string`,demandOption:!0,description:`Name and optional tag for the built image`}).option(`push`,{alias:`p`,type:`boolean`,default:!1,description:`Push the built image to Cloudflare's managed registry`}).option(`path-to-docker`,{type:`string`,description:`Path to the Docker binary if it is not on PATH`})}var He=E({command:`build <path>`,describe:`Build a Container image`,builder:Ve,handler:async e=>{if(e.local)throw Error("--local is not supported with `cf containers build`.");let t={compliance_region:e.push?await w():`public`},n=e.push?await S():``,r=b(n);g({logger:r.logger,fetchResult:r.fetchResult,fetchPagedListResult:r.fetchPagedListResult}),e.push&&_(await T(),n,x(t)),await ne({PATH:e.path,tag:e.tag,push:e.push,pathToDocker:e[`path-to-docker`]},t)}},{command:`containers build`,classification:{safeFlags:[`push`],shortFlagAliases:{p:{canonical:`push`,type:`boolean`},t:{canonical:`tag`,type:`value`}}}});function Ue(e){return e.option(`tag`,{alias:`t`,type:`string`,demandOption:!0,description:`Tag of the local image to push`}).option(`path-to-docker`,{type:`string`,description:`Path to the Docker binary if it is not on PATH`})}var We=E({command:`push`,describe:`Push a local image to the Cloudflare managed registry`,builder:Ue,handler:async e=>{if(e.local)throw Error("--local is not supported with `cf containers push`.");let t=await S(),n=await T(),r={compliance_region:await w()},i=b(t);g({logger:i.logger,fetchResult:i.fetchResult,fetchPagedListResult:i.fetchPagedListResult}),_(n,t,x(r)),await m({TAG:e.tag,pathToDocker:e[`path-to-docker`]},n,r)}},{command:`containers push`,classification:{safeFlags:[],shortFlagAliases:{t:{canonical:`tag`,type:`value`}}}});function Ge(e){return e.positional(`id`,{type:`string`,demandOption:!0,description:`ID of the container instance`}).positional(`ssh-command`,{type:`string`,array:!0,description:`Command and arguments to run in the container`}).options(v).middleware(e=>{h(e)&&(e.quiet=!0)},!0).parserConfiguration({"populate--":!0,"unknown-options-as-args":!0,"parse-positional-numbers":!1})}const Q={command:`ssh <id> [ssh-command..]`,describe:`SSH into a container`,builder:Ge,handler:async e=>{if(e.local)throw Error("--local is not supported with `cf containers ssh`.");let t=await S(),n=await T(),r={compliance_region:await w()},i=b(t);g({logger:i.logger,fetchResult:i.fetchResult}),y.HEADERS=O(),_(n,t,x(r)),await p({...e,id:e.id,command:[...e[`ssh-command`]??[],...Array.isArray(e[`--`])?e[`--`].map(String):[]]},ae)}},$=E(Q,{command:`containers ssh`,recordArgs:!1});var Ke={...$,handler:async e=>{if(h(e)){let{markCommandReported:t}=await import(`./telemetry-DF7A5Bpk.mjs`);return t(),Q.handler(e)}return $.handler(e)}};const qe={command:`containers`,describe:`Deploy and manage Containers applications on Cloudflare's global network`,builder:e=>e.command(k(He,`preview`)).command(k(We,`preview`)).command(k(Ke,`preview`)).command(Be).command(ye).command(Ee).command(Le).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{qe as default};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-DA1PHaHi.mjs";import{i as n}from"./context-BGm5_wTT.mjs";import{r,t as i}from"./body-parser-HN91kAf0.mjs";import{t as a}from"./dry-run-qsnRlRk6.mjs";import{t as o}from"./output-hFMAotFl.mjs";import{t as s}from"./run-CXWkMU3x.mjs";import{t as c}from"./progress-DE_G09u2.mjs";import"./telemetry-COlodX5Z.mjs";import{a as l,i as u,n as d}from"./prompt-D274Im1O.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";var p={method:`POST`,path:t=>e`/zones/${t.zone_id}/content-upload-scan/payloads`,body:`json`};function m(e){return e.usage(`$0 content-scan expressions create
|
|
3
3
|
|
|
4
|
-
Create one or more Content Scanning custom expressions, appending them to the existing list of the zone, and return the updated list. Each expression reaches content objects the scanner cannot find automatically, for example \`lookup_json_string(http.request.body.raw, "file")\`.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Array of Content Scanning custom expressions to create.`})}const h={command:`create`,describe:`Create Content Scanning custom expressions for a zone.`,builder:m,handler:async e=>
|
|
4
|
+
Create one or more Content Scanning custom expressions, appending them to the existing list of the zone, and return the updated list. Each expression reaches content objects the scanner cannot find automatically, for example \`lookup_json_string(http.request.body.raw, "file")\`.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Array of Content Scanning custom expressions to create.`})}const h={command:`create`,describe:`Create Content Scanning custom expressions for a zone.`,builder:m,handler:async e=>s({command:`content-scan expressions create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf content-scan expressions create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/content-upload-scan/payloads`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?void 0:r(e.body)});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`);let i=e.body===void 0?void 0:r(e.body),s=await t(e),l=await n({zone:e.zone},s,{quiet:e.quiet});if(e.zoneId=l,e.body!==void 0){let e=i,t=await c(`Creating`,async()=>s.send(p,{body:e,zone_id:l}));o(t,{successLabel:`Created`})}})};var g={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/content-upload-scan/payloads/${t.expression_id}`};function _(e){return e.usage(`$0 content-scan expressions delete <expression-id>
|
|
5
5
|
|
|
6
|
-
Delete the Content Scanning custom expression with the given identifier and return the expressions that remain. Content objects reached only by the deleted expression are no longer scanned.`).positional(`expression-id`,{type:`string`,description:`Defines the unique ID for this Content Scanning custom expression.`,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 v={command:`delete <expression-id>`,describe:`Delete a Content Scanning custom expression from a zone.`,builder:_,handler:async e=>
|
|
6
|
+
Delete the Content Scanning custom expression with the given identifier and return the expressions that remain. Content objects reached only by the deleted expression are no longer scanned.`).positional(`expression-id`,{type:`string`,description:`Defines the unique ID for this Content Scanning custom expression.`,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 v={command:`delete <expression-id>`,describe:`Delete a Content Scanning custom expression from a zone.`,builder:_,handler:async e=>s({command:`content-scan expressions delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){a({command:`cf content-scan expressions delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/content-upload-scan/payloads/${e[`expression-id`]==null?`<expression-id>`:encodeURIComponent(String(e[`expression-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"expression-id":String(e[`expression-id`]??``)},bodyKind:`none`});return}let r=await t(e),i=await n({zone:e.zone},r,{quiet:e.quiet});if(e.zoneId=i,!await d({force:!!e.force,message:`This operation deletes a Content Scanning custom expression.`}))return;let s=await c(`Deleting`,async()=>r.send(g,{zone_id:i,expression_id:e[`expression-id`]}));o(s,{successLabel:`Deleted`})})};var y={method:`GET`,path:t=>e`/zones/${t.zone_id}/content-upload-scan/payloads`};function b(e){return e.usage(`$0 content-scan expressions list
|
|
7
7
|
|
|
8
|
-
List the Content Scanning custom expressions configured for the zone, each with its own identifier. A custom expression tells the scanner how to reach content objects in a request it cannot parse on its own, such as files Base64-encoded inside a JSON body.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`list`,describe:`List the Content Scanning custom expressions of a zone.`,builder:b,handler:async e=>
|
|
8
|
+
List the Content Scanning custom expressions configured for the zone, each with its own identifier. A custom expression tells the scanner how to reach content objects in a request it cannot parse on its own, such as files Base64-encoded inside a JSON body.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`list`,describe:`List the Content Scanning custom expressions of a zone.`,builder:b,handler:async e=>s({command:`content-scan expressions list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf content-scan expressions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/content-upload-scan/payloads`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let r=await t(e),i=await n({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i;let s=await c(`Loading`,async()=>r.send(y,{zone_id:i}));o(s,{successLabel:`Loaded`})})};var S={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/content-upload-scan/payloads/${t.expression_id}`,body:`json`};function C(e){return e.usage(`$0 content-scan expressions update <expression-id>
|
|
9
9
|
|
|
10
|
-
Update the Content Scanning custom expression with the given identifier and return the updated list of expressions.`).positional(`expression-id`,{type:`string`,description:`Defines the unique ID for this Content Scanning custom expression.`,demandOption:!0}).option(`payload`,{type:`string`,description:`Defines the custom content extraction expression used to reach content objects in the request.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Content Scanning custom expression to update.`})}const w={command:`update <expression-id>`,describe:`Update a Content Scanning custom expression for a zone.`,builder:C,handler:async e=>
|
|
10
|
+
Update the Content Scanning custom expression with the given identifier and return the updated list of expressions.`).positional(`expression-id`,{type:`string`,description:`Defines the unique ID for this Content Scanning custom expression.`,demandOption:!0}).option(`payload`,{type:`string`,description:`Defines the custom content extraction expression used to reach content objects in the request.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Content Scanning custom expression to update.`})}const w={command:`update <expression-id>`,describe:`Update a Content Scanning custom expression for a zone.`,builder:C,handler:async e=>s({command:`content-scan expressions update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf content-scan expressions update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/content-upload-scan/payloads/${e[`expression-id`]==null?`<expression-id>`:encodeURIComponent(String(e[`expression-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"expression-id":String(e[`expression-id`]??``)},bodyKind:`json`,body:e.body===void 0?i({payload:f(e.payload,`payload`,`text`)}):r(e.body)});return}let s=e.body===void 0?void 0:r(e.body),u=await t(e),d=await n({zone:e.zone},u,{quiet:e.quiet});if(e.zoneId=d,e.body!==void 0){let t=s,n=await c(`Updating`,async()=>u.send(S,{body:t,zone_id:d,expression_id:e[`expression-id`]}));o(n,{successLabel:`Updated`});return}e.payload===void 0&&(e.payload=await l(`payload`,`Defines the custom content extraction expression used to reach content objects in the request.`));let p=i({payload:f(e.payload,`payload`,`text`)}),m=await c(`Updating`,async()=>u.send(S,{body:p,zone_id:d,expression_id:e[`expression-id`]}));o(m,{successLabel:`Updated`})})},T={command:`expressions`,describe:`Custom expressions that tell the scanner how to reach content objects it cannot parse on its own`,builder:e=>e.command(h).command(v).command(x).command(w).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var E={method:`GET`,path:t=>e`/zones/${t.zone_id}/content-upload-scan/settings`};function D(e){return e.usage(`$0 content-scan get
|
|
11
11
|
|
|
12
|
-
Get the current Content Scanning status for the zone, together with the date the status was last modified.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const O={command:`get`,describe:`Get the Content Scanning status for a zone.`,builder:D,handler:async e=>
|
|
12
|
+
Get the current Content Scanning status for the zone, together with the date the status was last modified.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const O={command:`get`,describe:`Get the Content Scanning status for a zone.`,builder:D,handler:async e=>s({command:`content-scan get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf content-scan get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/content-upload-scan/settings`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let r=await t(e),i=await n({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i;let s=await c(`Loading`,async()=>r.send(E,{zone_id:i}));o(s,{successLabel:`Loaded`})})};var k={method:`PUT`,path:t=>e`/zones/${t.zone_id}/content-upload-scan/settings`,body:`json`};function A(e){return e.usage("$0 content-scan update\n\nUpdate the Content Scanning status by setting the status value to `enabled` or `disabled`. This is equivalent to calling the dedicated enable and disable endpoints.").option(`value`,{type:`string`,description:`The status value for Content Scanning.`,choices:[`enabled`,`disabled`]}).coerce(`value`,e=>f(e,`value`,`text`)).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}).option(`body`,{type:`string`,description:`Content Scanning settings to update.`})}const j={command:`update`,describe:`Update the Content Scanning status for a zone.`,builder:A,handler:async e=>s({command:`content-scan update`,classification:{safeFlags:[`value`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){a({command:`cf content-scan update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/content-upload-scan/settings`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?i({value:e.value}):r(e.body)});return}let s=e.body===void 0?void 0:r(e.body),l=await t(e),f=await n({zone:e.zone},l,{quiet:e.quiet});if(e.zoneId=f,!await d({force:!!e.force,message:`This operation toggles Content Scanning for a zone.`}))return;if(e.body!==void 0){let e=s,t=await c(`Updating`,async()=>l.send(k,{body:e,zone_id:f}));o(t,{successLabel:`Updated`});return}e.value===void 0&&(e.value=await u(`value`,`The status value for Content Scanning.`,[`enabled`,`disabled`]));let p=i({value:e.value}),m=await c(`Updating`,async()=>l.send(k,{body:p,zone_id:f}));o(m,{successLabel:`Updated`})})},M={command:`content-scan`,describe:`Malicious uploads detection, scan uploaded content in HTTP requests for malware and malicious payloads`,builder:e=>e.command(O).command(j).command(T).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{M as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{
|
|
2
|
+
import{a as e,i as t}from"./project-settings-D_S-UC8I.mjs";import{n}from"./resolve-C3FmNlSO.mjs";function r(e,t){if(t)return{value:t,source:`flag`};let n=process.env[e];if(n)return{value:n,source:`env`}}async function i(n={}){let r=process.env.CLOUDFLARE_ACCOUNT_ID;if(r)return{value:r,source:`env`};if(n.skipProjectSettings)return;let i=t(void 0,n),a=i===void 0?await e(void 0,n):i;if(a?.settings?.accountId)return{value:a.settings.accountId,source:`settings`,path:a.path}}async function a(){let{getActiveAccountId:e,isTemporaryAccountRequested:t}=await import(`./oauth-V37G-PaV.mjs`);if(t())return;let n=await i();if(n)return n.value;try{return e()}catch{return}}async function o(e){let{getOrSelectAccountId:t,isTemporaryAccountRequested:n,requireTemporaryAccount:r}=await import(`./oauth-V37G-PaV.mjs`);if(n())return(await r(e)).accountId;let a=await i(e);return a&&s(a.value,h(a,`accountId`)),t(a?.value,e)}function s(e,t){if(!process.env.DEBUG)return;let n=e.length>12?e.slice(0,12)+`…`:e;process.stderr.write(`Using account: ${n} (${t})\n`)}async function c(e,t,n){if(e?.zoneId)return l(e.zoneId,t);let i=r(`CLOUDFLARE_ZONE_ID`,e?.zone);if(i){if(!n?.quiet&&i.source!==`flag`){let e=h(i);console.error(`Using zone: ${i.value} (from ${e})`)}return l(i.value,t)}throw Error(`No zone specified.
|
|
3
3
|
|
|
4
4
|
Please provide one of the following:
|
|
5
5
|
1. Zone as a positional argument: cf dns records list <zone>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{n as e}from"./auth-
|
|
2
|
+
import{n as e}from"./auth-DA1PHaHi.mjs";import{t}from"./dry-run-qsnRlRk6.mjs";import{t as n}from"./output-hFMAotFl.mjs";import{t as r}from"./progress-DE_G09u2.mjs";import{t as i}from"./run-CXWkMU3x.mjs";import"./telemetry-COlodX5Z.mjs";import{i as a,r as o,t as s}from"./body-parser-HN91kAf0.mjs";import{n as c}from"./input-validation-D7z60HJH.mjs";var l={method:`GET`,path:()=>`/user/communication_preferences`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function u(e){return e.usage(`$0 cps get
|
|
3
3
|
|
|
4
|
-
Retrieve the communication preferences for the authenticated user, including email verification status, marketing subscription opt-in/opt-out state, and language locale. Callers authenticate with standard Cloudflare API tokens or keys.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const d={command:`get`,describe:`Get communication preferences`,builder:u,handler:async a=>i({command:`cps get`,classification:{safeFlags:[`dry-run`]}},a,async()=>{if(a.dryRun){
|
|
4
|
+
Retrieve the communication preferences for the authenticated user, including email verification status, marketing subscription opt-in/opt-out state, and language locale. Callers authenticate with standard Cloudflare API tokens or keys.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const d={command:`get`,describe:`Get communication preferences`,builder:u,handler:async a=>i({command:`cps get`,classification:{safeFlags:[`dry-run`]}},a,async()=>{if(a.dryRun){t({command:`cf cps get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/communication_preferences`,pathParams:{},bodyKind:`none`});return}let i=await e(a),o=await r(`Loading`,async()=>i.send(l));n(o,{successLabel:`Loaded`})})};var f={method:`PUT`,path:()=>`/user/communication_preferences`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function p(e){return e.usage(`$0 cps update
|
|
5
5
|
|
|
6
|
-
Set one or more communication preferences for the authenticated user. Supply a map of preference keys to subscription states, and an optional language locale. This endpoint does not modify email verification settings. Callers authenticate with standard Cloudflare API tokens or keys.`).option(`language-locale`,{type:`string`,description:`The user's preferred language locale for communications. If omitted, the language locale does not change.`,choices:[`en-US`,`es-ES`,`de-DE`,`fr-FR`,`it-IT`,`ja-JP`,`ko-KR`,`pt-BR`,`zh-CN`,`zh-TW`]}).coerce(`language-locale`,e=>c(e,`language-locale`,`text`)).option(`preferences`,{type:`string`,description:`Preference keys mapped to subscription states to update. Only the preferences in this map change; others remain unchanged. Provide as a JSON object or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for updating communication preferences. An email field in the payload is ignored; email verification state is managed separately, so the field is excluded from this schema.`})}const m={command:`update`,describe:`Update communication preferences`,builder:p,handler:async c=>i({command:`cps update`,classification:{safeFlags:[`language-locale`,`dry-run`]}},c,async()=>{if(c.dryRun){
|
|
6
|
+
Set one or more communication preferences for the authenticated user. Supply a map of preference keys to subscription states, and an optional language locale. This endpoint does not modify email verification settings. Callers authenticate with standard Cloudflare API tokens or keys.`).option(`language-locale`,{type:`string`,description:`The user's preferred language locale for communications. If omitted, the language locale does not change.`,choices:[`en-US`,`es-ES`,`de-DE`,`fr-FR`,`it-IT`,`ja-JP`,`ko-KR`,`pt-BR`,`zh-CN`,`zh-TW`]}).coerce(`language-locale`,e=>c(e,`language-locale`,`text`)).option(`preferences`,{type:`string`,description:`Preference keys mapped to subscription states to update. Only the preferences in this map change; others remain unchanged. Provide as a JSON object or @path/to/file.json. Shape: {"<key>": {...}}.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for updating communication preferences. An email field in the payload is ignored; email verification state is managed separately, so the field is excluded from this schema.`})}const m={command:`update`,describe:`Update communication preferences`,builder:p,handler:async c=>i({command:`cps update`,classification:{safeFlags:[`language-locale`,`dry-run`]}},c,async()=>{if(c.dryRun){t({command:`cf cps update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/user/communication_preferences`,pathParams:{},bodyKind:`json`,body:c.body===void 0?s({"language-locale":c[`language-locale`],preferences:a(c.preferences,`preferences`)},[[`preferences`]]):o(c.body)});return}let i=c.body===void 0?void 0:o(c.body),l=await e(c);if(c.body!==void 0){let e=i,t=await r(`Updating`,async()=>l.send(f,{body:e}));n(t,{successLabel:`Updated`});return}let u=s({"language-locale":c[`language-locale`],preferences:a(c.preferences,`preferences`)},[[`preferences`]]),d=await r(`Updating`,async()=>l.send(f,{body:u}));n(d,{successLabel:`Updated`})})},h={command:`cps`,describe:`cps`,builder:e=>e.command(d).command(m).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{h as default};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-DA1PHaHi.mjs";import{i as n}from"./context-BGm5_wTT.mjs";import{i as r,r as i,t as a}from"./body-parser-HN91kAf0.mjs";import{t as o}from"./dry-run-qsnRlRk6.mjs";import{n as s}from"./input-validation-D7z60HJH.mjs";import{t as c}from"./run-CXWkMU3x.mjs";import{t as l}from"./output-hFMAotFl.mjs";import{t as u}from"./progress-DE_G09u2.mjs";import"./telemetry-COlodX5Z.mjs";var d={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/settings/csam_scanner_third_party`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function f(e){return e.usage("$0 csam-scanner edit\n\nUpdate the CSAM Scanner configuration for a zone. Allows enabling or disabling CSAM scanning, updating the notification email, and configuring scanning sources. This is a partial update: fields omitted from `value` keep their current setting, and `sources` is merged per source (`null` clears all sources). Send an empty `email` to clear the notification address. When a new email is provided, email verification is triggered automatically. The `enabled` field is a toggle; the server may adjust it based on whether the notification email is verified. Returns 403 if the zone or account is locked by Trust & Safety.").option(`id`,{type:`string`,description:`The feature identifier.`,choices:[`csam_scanner`]}).coerce(`id`,e=>s(e,`id`,`text`)).option(`value-email`,{type:`string`,description:`Notification email address for CSAM scan results. When changed,
|
|
3
|
+
email verification is triggered automatically.
|
|
4
|
+
`}).option(`value-enabled`,{type:`boolean`,description:`Whether CSAM scanning is enabled for this zone.`}).option(`value-resend-email`,{type:`boolean`,description:`Set to true to trigger re-sending the email verification.
|
|
5
|
+
Write-only; never appears in responses (omitted when false).
|
|
6
|
+
`}).option(`value-sources`,{type:`string`,description:`Map of scanning sources and their enabled state. Provide as a JSON object or @path/to/file.json. Shape: {"<key>": boolean}.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for updating CSAM Scanner configuration. `})}const p={command:`edit`,describe:`Update CSAM Scanner setting`,builder:f,handler:async e=>c({command:`csam-scanner edit`,classification:{safeFlags:[`id`,`value-enabled`,`value-resend-email`,`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf csam-scanner edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/csam_scanner_third_party`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?a({id:e.id,value:{email:s(e[`value-email`],`value-email`,`text`),enabled:e[`value-enabled`],resend_email:e[`value-resend-email`],sources:r(e[`value-sources`],`value-sources`)}},[[`value`,`sources`]]):i(e.body)});return}let c=e.body===void 0?void 0:i(e.body),f=await t(e),p=await n({zone:e.zone},f,{quiet:e.quiet});if(e.zoneId=p,e.body!==void 0){let e=c,t=await u(`Updating`,async()=>f.send(d,{body:e,zone_id:p}));l(t,{successLabel:`Updated`});return}let m=a({id:e.id,value:{email:s(e[`value-email`],`value-email`,`text`),enabled:e[`value-enabled`],resend_email:e[`value-resend-email`],sources:r(e[`value-sources`],`value-sources`)}},[[`value`,`sources`]]),h=await u(`Updating`,async()=>f.send(d,{body:m,zone_id:p}));l(h,{successLabel:`Updated`})})};var m={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/csam_scanner_third_party`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function h(e){return e.usage(`$0 csam-scanner get
|
|
7
|
+
|
|
8
|
+
Retrieve the current CSAM Scanner configuration for a zone. The notification email is masked by default in responses.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const g={command:`get`,describe:`Get CSAM Scanner setting`,builder:h,handler:async e=>c({command:`csam-scanner get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf csam-scanner get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/csam_scanner_third_party`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let r=await t(e),i=await n({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i;let a=await u(`Loading`,async()=>r.send(m,{zone_id:i}));l(a,{successLabel:`Loaded`})})},_={command:`csam-scanner`,describe:`csam-scanner`,builder:e=>e.command(p).command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{_ as default};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./
|
|
2
|
+
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-DA1PHaHi.mjs";import{r as n,t as r}from"./body-parser-HN91kAf0.mjs";import{a as i,i as a,t as o}from"./context-BGm5_wTT.mjs";import{t as s}from"./dry-run-qsnRlRk6.mjs";import{n as c}from"./input-validation-D7z60HJH.mjs";import{t as l}from"./local-B3zt9PXR.mjs";import{t as u}from"./run-CXWkMU3x.mjs";import{t as d}from"./output-hFMAotFl.mjs";import{t as f}from"./progress-DE_G09u2.mjs";import{a as p,n as m}from"./prompt-D274Im1O.mjs";import"./telemetry-COlodX5Z.mjs";var h={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/custom_csrs`,body:`json`};function g(e){return e.usage(`$0 custom-csrs create
|
|
3
3
|
|
|
4
4
|
Generate a new custom Certificate Signing Request (CSR) for an account or zone. Cloudflare generates and securely stores the private key associated with the CSR.
|
|
5
5
|
|
|
6
|
-
Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).option(`common-name`,{type:`string`,description:`The common name (domain) for the CSR. Must be at most 64 characters.`}).option(`country`,{type:`string`,description:`Two-letter ISO 3166-1 alpha-2 country code.`}).option(`description`,{type:`string`,description:`Optional description for the CSR.`}).option(`key-type`,{type:`string`,description:`Key algorithm to use for the CSR. Defaults to rsa2048 if not specified.`,choices:[`rsa2048`,`p256v1`],default:`rsa2048`}).coerce(`key-type`,e=>
|
|
6
|
+
Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).option(`common-name`,{type:`string`,description:`The common name (domain) for the CSR. Must be at most 64 characters.`}).option(`country`,{type:`string`,description:`Two-letter ISO 3166-1 alpha-2 country code.`}).option(`description`,{type:`string`,description:`Optional description for the CSR.`}).option(`key-type`,{type:`string`,description:`Key algorithm to use for the CSR. Defaults to rsa2048 if not specified.`,choices:[`rsa2048`,`p256v1`],default:`rsa2048`}).coerce(`key-type`,e=>c(e,`key-type`,`text`)).option(`locality`,{type:`string`,description:`City or locality name.`}).option(`name`,{type:`string`,description:`Human-readable name for the CSR.`}).option(`organization`,{type:`string`,description:`Organization name.`}).option(`organizational-unit`,{type:`string`,description:`Organizational unit name.`}).option(`sans`,{type:`string`,array:!0,description:`Subject Alternative Names for the CSR. At least one SAN is required.`}).option(`state`,{type:`string`,description:`State or province name.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for creating a custom CSR.`})}const _={command:`create`,describe:`Create Custom CSR`,builder:g,handler:async e=>u({command:`custom-csrs create`,classification:{safeFlags:[`key-type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,a=e.zone===void 0?`accounts`:`zones`,o=e.zone??t??`<account-id>`;s({command:`cf custom-csrs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${a}/${o}/custom_csrs`,pathParams:{"account-or-zone":String(a),"account-or-zone-id":String(o)},bodyKind:`json`,body:e.body===void 0?r({common_name:c(e[`common-name`],`common-name`,`text`),country:c(e.country,`country`,`text`),description:c(e.description,`description`,`text`),key_type:e[`key-type`],locality:c(e.locality,`locality`,`text`),name:c(e.name,`name`,`text`),organization:c(e.organization,`organization`,`text`),organizational_unit:c(e[`organizational-unit`],`organizational-unit`,`text`),sans:e.sans,state:c(e.state,`state`,`text`)}):n(e.body)});return}let u=e.body===void 0?void 0:n(e.body),m=await t(e),g=e.zone===void 0?`accounts`:`zones`,_=g===`zones`?await a({zone:e.zone},m,{quiet:e.quiet}):e.local?l:await o();if(g===`zones`?e.zoneId=_:e.accountId=_,e.body!==void 0){let e=u,t=await f(`Creating`,async()=>m.send(h,{body:e,account_or_zone:g,account_or_zone_id:_}));d(t,{successLabel:`Created`});return}if(e[`common-name`]===void 0&&(e[`common-name`]=await p(`common-name`,`The common name (domain) for the CSR. Must be at most 64 characters.`)),e.country===void 0&&(e.country=await p(`country`,`Two-letter ISO 3166-1 alpha-2 country code.`)),e.locality===void 0&&(e.locality=await p(`locality`,`City or locality name.`)),e.organization===void 0&&(e.organization=await p(`organization`,`Organization name.`)),e.sans===void 0)throw Error(`--sans is required (or pass --body with this field set).`);e.state===void 0&&(e.state=await p(`state`,`State or province name.`));let v=r({common_name:c(e[`common-name`],`common-name`,`text`),country:c(e.country,`country`,`text`),description:c(e.description,`description`,`text`),key_type:e[`key-type`],locality:c(e.locality,`locality`,`text`),name:c(e.name,`name`,`text`),organization:c(e.organization,`organization`,`text`),organizational_unit:c(e[`organizational-unit`],`organizational-unit`,`text`),sans:e.sans,state:c(e.state,`state`,`text`)}),y=await f(`Creating`,async()=>m.send(h,{body:v,account_or_zone:g,account_or_zone_id:_}));d(y,{successLabel:`Created`})})};var v={method:`DELETE`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/custom_csrs/${t.custom_csr_id}`};function y(e){return e.usage(`$0 custom-csrs delete <custom-csr-id>
|
|
7
7
|
|
|
8
8
|
Delete a custom Certificate Signing Request (CSR) and its associated private key.
|
|
9
9
|
|
|
10
|
-
Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).positional(`custom-csr-id`,{type:`string`,description:`Custom CSR identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const b={command:`delete <custom-csr-id>`,describe:`Delete Custom CSR`,builder:y,handler:async e=>
|
|
10
|
+
Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).positional(`custom-csr-id`,{type:`string`,description:`Custom CSR identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const b={command:`delete <custom-csr-id>`,describe:`Delete Custom CSR`,builder:y,handler:async e=>u({command:`custom-csrs delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;s({command:`cf custom-csrs delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/custom_csrs/${e[`custom-csr-id`]==null?`<custom-csr-id>`:encodeURIComponent(String(e[`custom-csr-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"custom-csr-id":String(e[`custom-csr-id`]??``)},bodyKind:`none`});return}let n=await t(e),r=e.zone===void 0?`accounts`:`zones`,c=r===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?l:await o();if(r===`zones`?e.zoneId=c:e.accountId=c,!await m({force:!!e.force}))return;let u=await f(`Deleting`,async()=>n.send(v,{account_or_zone:r,account_or_zone_id:c,custom_csr_id:e[`custom-csr-id`]}));d(u,{successLabel:`Deleted`})})};var x={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/custom_csrs/${t.custom_csr_id}`};function S(e){return e.usage(`$0 custom-csrs get <custom-csr-id>
|
|
11
11
|
|
|
12
12
|
Retrieve details for a specific custom Certificate Signing Request (CSR).
|
|
13
13
|
|
|
14
|
-
Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).positional(`custom-csr-id`,{type:`string`,description:`Custom CSR identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const C={command:`get <custom-csr-id>`,describe:`Custom CSR Details`,builder:S,handler:async e=>
|
|
14
|
+
Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).positional(`custom-csr-id`,{type:`string`,description:`Custom CSR identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const C={command:`get <custom-csr-id>`,describe:`Custom CSR Details`,builder:S,handler:async e=>u({command:`custom-csrs get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;s({command:`cf custom-csrs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/custom_csrs/${e[`custom-csr-id`]==null?`<custom-csr-id>`:encodeURIComponent(String(e[`custom-csr-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"custom-csr-id":String(e[`custom-csr-id`]??``)},bodyKind:`none`});return}let n=await t(e),r=e.zone===void 0?`accounts`:`zones`,c=r===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?l:await o();r===`zones`?e.zoneId=c:e.accountId=c;let u=await f(`Loading`,async()=>n.send(x,{account_or_zone:r,account_or_zone_id:c,custom_csr_id:e[`custom-csr-id`]}));d(u,{successLabel:`Loaded`})})};var w={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/custom_csrs`,query:[`page`,`per_page`,`order`,`direction`]};function T(e){return e.usage(`$0 custom-csrs list
|
|
15
15
|
|
|
16
16
|
List all custom Certificate Signing Requests (CSRs) for an account or zone.
|
|
17
17
|
|
|
18
|
-
Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of custom CSRs per page.`}).option(`order`,{type:`string`,description:`The field to sort the returned custom CSRs by.`,choices:[`name`,`account_tag`,`created_at`]}).option(`direction`,{type:`string`,description:`The direction to sort by.`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`list`,describe:`List Custom CSRs`,builder:T,handler:async e=>
|
|
18
|
+
Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of custom CSRs per page.`}).option(`order`,{type:`string`,description:`The field to sort the returned custom CSRs by.`,choices:[`name`,`account_tag`,`created_at`]}).option(`direction`,{type:`string`,description:`The direction to sort by.`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`list`,describe:`List Custom CSRs`,builder:T,handler:async e=>u({command:`custom-csrs list`,classification:{safeFlags:[`order`,`direction`,`dry-run`]}},e,async()=>{let n={page:e.page,per_page:e[`per-page`],order:e.order,direction:e.direction};if(e.dryRun){let t=e.zone===void 0?await i():void 0,r=e.zone===void 0?`accounts`:`zones`,a=e.zone??t??`<account-id>`;s({command:`cf custom-csrs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${r}/${a}/custom_csrs`,pathParams:{"account-or-zone":String(r),"account-or-zone-id":String(a)},query:n,bodyKind:`none`});return}let r=await t(e),c=e.zone===void 0?`accounts`:`zones`,u=c===`zones`?await a({zone:e.zone},r,{quiet:e.quiet}):e.local?l:await o();c===`zones`?e.zoneId=u:e.accountId=u;let p=await f(`Loading`,async()=>r.send(w,{account_or_zone:c,account_or_zone_id:u,...n}));d(p,{successLabel:`Loaded`})})},D={command:`custom-csrs`,describe:`custom-csrs`,builder:e=>e.command(_).command(b).command(C).command(E).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{D as default};
|