cf 1.0.0-beta.0 → 1.0.0-beta.10
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 +12 -0
- package/dist/_meta/commands.json +11755 -14070
- package/dist/_meta/hand-written-commands.json +610 -42
- package/dist/_meta/schemas.json +18290 -20222
- package/dist/abuse-reports-BhSTEz7h.mjs +24 -0
- package/dist/access-D4DN4XZF.mjs +2 -0
- package/dist/{account-tags-BNrSShjj.mjs → account-tags-BWEIZLID.mjs} +5 -5
- package/dist/{accounts-CCAnDjFk.mjs → accounts-ZQvIqGJz.mjs} +66 -60
- package/dist/{acm-ZPYQbZQr.mjs → acm-OQqE8FMc.mjs} +3 -3
- package/dist/{addressing-BFpzLfTn.mjs → addressing-DCFm17JQ.mjs} +50 -50
- package/dist/agent-context-GRiQ4zRU.mjs +2 -0
- package/dist/{agent-memory-DEvy2dLU.mjs → agent-memory-BtfPt2me.mjs} +15 -15
- package/dist/ai-B0_sZbmy.mjs +29 -0
- package/dist/{ai-audit-Dn03zntn.mjs → ai-audit-DaubuhYF.mjs} +1 -1
- package/dist/ai-gateway-CJ-1Dzzr.mjs +82 -0
- package/dist/{ai-search-g0tR8Cut.mjs → ai-search-Dywa1kqX.mjs} +37 -37
- package/dist/{ai-security-BXXA0Jnk.mjs → ai-security-2wxMPqKS.mjs} +1 -1
- package/dist/{alerting-Bst10SOG.mjs → alerting-yad9DYRv.mjs} +26 -26
- package/dist/analytics-DKNw2fVc.mjs +20 -0
- package/dist/{analytics_engine-B4DvcYmB.mjs → analytics_engine-BA3kF46s.mjs} +2 -2
- package/dist/{api-security-Dkx1Codr.mjs → api-security-CSuYMpMO.mjs} +61 -61
- package/dist/{argo-BvswWPlP.mjs → argo-DMfNmOV4.mjs} +1 -1
- package/dist/args-CXgkQKK7.mjs +2 -0
- package/dist/{artifacts-D8kZKJq0.mjs → artifacts-Cb3hwClm.mjs} +20 -20
- package/dist/{audit-logs-Bp_yQpXJ.mjs → audit-logs-BrjNuiLx.mjs} +2 -2
- package/dist/auth-BBlAI8HG.mjs +2 -0
- package/dist/auth-BIr56Mbx.mjs +8 -0
- package/dist/autoconfig-DPUztTL2.mjs +511 -0
- package/dist/banner-ClclgnBn.mjs +2 -0
- package/dist/basin-catalog-BLsQhJP4.mjs +46 -0
- package/dist/{billing-Cqj64fqz.mjs → billing-CRwD7oQS.mjs} +10 -10
- package/dist/{bot-management-CzZx_aml.mjs → bot-management-CyW8F8Wm.mjs} +1 -1
- package/dist/{botnet-feed-Co0c8Xdj.mjs → botnet-feed-BBKsxf3Y.mjs} +5 -5
- package/dist/{brand-protection-CDsGaPIl.mjs → brand-protection-DSeD8LXl.mjs} +13 -13
- package/dist/browser-extension-C1zmKFDG.mjs +2 -0
- package/dist/{browser-run-DFrohJ1p.mjs → browser-run-BAcUTwB4.mjs} +23 -23
- package/dist/build-B5UYMEQH.mjs +2 -0
- package/dist/build-DLZ9gBNA.mjs +2 -0
- package/dist/{builds-CamhClyb.mjs → builds-W1HEG7Bv.mjs} +31 -31
- package/dist/{cache-BiTk4-Zc.mjs → cache-B7E_PXUp.mjs} +27 -27
- package/dist/{certificate-authorities-Dal9DNjW.mjs → certificate-authorities-D_uAJH9B.mjs} +1 -1
- package/dist/cf-Bh_fTFIj.mjs +18 -0
- package/dist/chunk-FT2NMTJB-1VFYM1Ro.mjs +97 -0
- package/dist/chunk-KKDV4JPS-DdzLLtnl.mjs +2 -0
- package/dist/chunk-U6NEESU5-BhF4rnpx.mjs +2 -0
- package/dist/chunk-WMOON6TZ-D_ToS88f.mjs +2 -0
- package/dist/cli-BeXSqJAj.mjs +6 -0
- package/dist/cli-exit-Dqoo6Jgb.mjs +2 -0
- package/dist/client-certificates-DqFcK_s1.mjs +13 -0
- package/dist/{client-side-security-CIO_YPtN.mjs → client-side-security-DJXZ1XAu.mjs} +1 -1
- package/dist/{cloud-connector-vwdixea0.mjs → cloud-connector-Czg1GdQi.mjs} +1 -1
- package/dist/{cloudflared-DhItYrCq.mjs → cloudflared-DGuau-lC.mjs} +1 -1
- package/dist/{cloudforce-one-C1cFVBGK.mjs → cloudforce-one-B1IhIZcp.mjs} +213 -222
- package/dist/command-6YTtWltE.mjs +2 -0
- package/dist/command-B6DqnUwt.mjs +2 -0
- package/dist/command-BCag-xjk.mjs +2 -0
- package/dist/command-BOLlvEan.mjs +2 -0
- package/dist/command-BrHTpaji.mjs +2 -0
- package/dist/command-CAtsHc1V.mjs +2 -0
- package/dist/command-C__qB2mo.mjs +2 -0
- package/dist/command-DUafPVUr.mjs +2 -0
- package/dist/command-DZookrfw.mjs +2 -0
- package/dist/command-DfffeX-k.mjs +2 -0
- package/dist/command-DxSJy_ym.mjs +2 -0
- package/dist/command-DzHL5LKI.mjs +2 -0
- package/dist/command-K1-DZFJS.mjs +2 -0
- package/dist/command-TCklVvOY.mjs +2 -0
- package/dist/command-xU78ACNA.mjs +2 -0
- package/dist/{completions-xPLd1cvL.mjs → completions-Cm9brGAI.mjs} +26 -26
- package/dist/{connector-interrupts-DQ5T-HMN.mjs → connector-interrupts-D93KTMkw.mjs} +3 -3
- package/dist/{connector-telemetry-events-DWam38_9.mjs → connector-telemetry-events-D6CmKR14.mjs} +3 -3
- package/dist/{connector-telemetry-snapshots-DX6AJf9Q.mjs → connector-telemetry-snapshots-WO9IUk0e.mjs} +3 -3
- package/dist/{connectors-CBhLWVd-.mjs → connectors-DNT6GTW3.mjs} +7 -7
- package/dist/{containers-C7blN-pe.mjs → containers-Btx7vCDP.mjs} +17 -17
- package/dist/{containers-Bx_44bmJ.mjs → containers-Ce7IO-Ia.mjs} +70 -72
- package/dist/{content-scan-CC91dAlv.mjs → content-scan-C_ROsbTJ.mjs} +1 -1
- package/dist/context-CEOHpZgd.mjs +7 -0
- package/dist/{cps-D9a4N_bH.mjs → cps-BPQqyL2E.mjs} +1 -1
- package/dist/{csamScanner-T7nbCnep.mjs → csamScanner-D-oO5cxT.mjs} +1 -1
- package/dist/{ct-alerting-CkjNJlla.mjs → ct-alerting-CnTRE1Fb.mjs} +1 -1
- package/dist/{custom-certificates-DnWnt9oJ.mjs → custom-certificates-DvnFBZdJ.mjs} +4 -4
- package/dist/{custom-csrs-Db2pF9Ib.mjs → custom-csrs-BZ8TXbuQ.mjs} +5 -5
- package/dist/{custom-hostnames-B_N-uSIa.mjs → custom-hostnames-CTqf-KlT.mjs} +6 -6
- package/dist/{custom-nameservers-DPA_sFY8.mjs → custom-nameservers-B0CpnUVg.mjs} +5 -5
- package/dist/{custom-pages-D6fxEBoh.mjs → custom-pages-DcoSGN56.mjs} +10 -10
- package/dist/{d1-DXs1xVmH.mjs → d1-m7UfzBzl.mjs} +16 -20
- package/dist/{dcv-delegation-as1ue_wx.mjs → dcv-delegation-yOtz90qE.mjs} +1 -1
- package/dist/{delegate-GctF_lrq.mjs → delegate-B6LetRpZ.mjs} +1 -1
- package/dist/delegate.mjs +1 -1
- package/dist/{deploy-D2XXCkqk.mjs → deploy-C4p6SzLH.mjs} +1 -1
- package/dist/{deploy-input-BCYyKXpp.mjs → deploy-input-DTjBGloL.mjs} +1 -1
- package/dist/dev-BML-bpNU.mjs +4 -0
- package/dist/{diagnostics-BKH1Oh-C.mjs → diagnostics-hOvnx5DT.mjs} +7 -7
- package/dist/dialog-BlUXJKbA.mjs +2 -0
- package/dist/discover-C5aiI6u0.mjs +2 -0
- package/dist/discover-DwczTkRX.mjs +2 -0
- package/dist/dist-BuCJ_55d.mjs +366 -0
- package/dist/dist-C3s9SXTd.mjs +48 -0
- package/dist/{dist-BpadEMNY.mjs → dist-DW47TUGh.mjs} +35 -35
- package/dist/{dls-C5kAQsN6.mjs → dls-v6DyEWTd.mjs} +8 -8
- package/dist/{dns-CYwXrdJO.mjs → dns-C9sUPsNt.mjs} +72 -63
- package/dist/{dns-firewall-BEw4QcXj.mjs → dns-firewall-EDiT-Zli.mjs} +8 -8
- package/dist/dot-prop-IITUZ2XW-BilKo4kO.mjs +2 -0
- package/dist/dotenv-CcQjGlV0.mjs +4 -0
- package/dist/dry-run-Bq0JAsbX.mjs +2 -0
- package/dist/durable-objects-C01phVwL.mjs +6 -0
- package/dist/{email-auth-B3MD8FrJ.mjs → email-auth-BgvoEHJk.mjs} +1 -1
- package/dist/{email-routing-C4YhZGPw.mjs → email-routing-Bggn219w.mjs} +24 -24
- package/dist/email-security-_t7rzrzd.mjs +158 -0
- package/dist/{email-sending-BO1GOAho.mjs → email-sending-_dKCs2VF.mjs} +23 -23
- package/dist/error-sanitization-CJ5OLJrh.mjs +2 -0
- package/dist/error-sanitization-hmi1CqE5.mjs +2 -0
- package/dist/{fieldExtractors-BJDnzNCN.mjs → fieldExtractors-Cm5QnkE0.mjs} +4 -4
- package/dist/firewall-CZEN8iA_.mjs +36 -0
- package/dist/flagship-B_SAI_ZL.mjs +28 -0
- package/dist/{fraud-C7kS7kP9.mjs → fraud-9_9hobAh.mjs} +1 -1
- package/dist/generate-BPqoDbck.mjs +2 -0
- package/dist/generate-CLqGOlOx.mjs +3 -0
- package/dist/{google-tag-gateway-8VR-j0sa.mjs → google-tag-gateway-O_N0vHRY.mjs} +1 -1
- package/dist/gt-DmcMNPX6.mjs +2 -0
- package/dist/{healthchecks-BJleItOD.mjs → healthchecks-Bt3Gw_JZ.mjs} +1 -1
- package/dist/{hostnames-CHajvoHa.mjs → hostnames-DdOube3R.mjs} +1 -1
- package/dist/hyperdrive-C14NAh9l.mjs +37 -0
- package/dist/{iam-B7oTr6vW.mjs → iam-DUW7neMx.mjs} +24 -24
- package/dist/{images-xLAYe436.mjs → images-B9dnr1z0.mjs} +38 -38
- package/dist/index.mjs +1 -1
- package/dist/init-BGcAIvV7.mjs +39 -0
- package/dist/{intel-DwZXY1YE.mjs → intel-BQpZMck3.mjs} +38 -38
- package/dist/interactive-C-o16XQs.mjs +32 -0
- package/dist/interactive-SgAjen2z.mjs +2 -0
- package/dist/{ips-BC_9nKE7.mjs → ips-PT_uQKAf.mjs} +1 -1
- package/dist/k2-nPYti7Y0.mjs +13 -0
- package/dist/keyless-certificates-BHvas2q1.mjs +13 -0
- package/dist/{keys-K-GFzhku.mjs → keys-O5kAW9ox.mjs} +2 -2
- package/dist/kv-BUP_ZLM_.mjs +15 -0
- package/dist/lazy-command-glNW3jzf.mjs +2 -0
- package/dist/{leaked-credential-checks-D8UuxztO.mjs → leaked-credential-checks-De9hI1rl.mjs} +1 -1
- package/dist/{load-balancers-B0XeGLhT.mjs → load-balancers-Cs6bUHS1.mjs} +39 -39
- package/dist/{local-B6b2OIBW.mjs → local-B5oRPTEN.mjs} +1 -1
- package/dist/local-Bj-l0TP6.mjs +2 -0
- package/dist/{local-runtime-DD8DAIlm.mjs → local-runtime-CZnegFEM.mjs} +1 -1
- package/dist/login-C5nSIS-T.mjs +2 -0
- package/dist/login-CUup7w0e.mjs +5 -0
- package/dist/{logo-matches-DWg5ezsM.mjs → logo-matches-BkQKdu4Z.mjs} +3 -3
- package/dist/{logos-6A6gJC5C.mjs → logos-C_sv-boo.mjs} +3 -3
- package/dist/{logpush-DwehajAw.mjs → logpush-NUcyMKHi.mjs} +23 -23
- package/dist/logs-BZT4PlqZ.mjs +36 -0
- package/dist/{magic-cloud-networking--14hNj2F.mjs → magic-cloud-networking-DQnSdmgA.mjs} +34 -34
- package/dist/{magic-network-monitoring-Dzo4L6kd.mjs → magic-network-monitoring-pHTU6aS8.mjs} +17 -17
- package/dist/{magic-transit-DDO0A5v4.mjs → magic-transit-5302bQNh.mjs} +154 -158
- package/dist/{managed-defense-DQ0iwWdG.mjs → managed-defense-8OEfDzuO.mjs} +9 -9
- package/dist/{managed-transforms-DDIdcPG0.mjs → managed-transforms-CCpUz4TY.mjs} +1 -1
- package/dist/{matches-D6ahHNaP.mjs → matches-BSiYXs99.mjs} +3 -3
- package/dist/{mcp-BcIrLbRv.mjs → mcp-CCMiS75R.mjs} +15 -15
- package/dist/{mesh-wLiPcWyN.mjs → mesh-DKBGTlCD.mjs} +12 -12
- package/dist/migrate-BJ9Go_wP.mjs +2 -0
- package/dist/monetization-CFf_lb6x.mjs +20 -0
- package/dist/mtls-certificates-DsF3NFNs.mjs +13 -0
- package/dist/{network-DZsrs_sw.mjs → network-Bm0qYRqY.mjs} +24 -24
- package/dist/{network-interconnects-Cjbu4EMv.mjs → network-interconnects-YiRUBbjx.mjs} +17 -17
- package/dist/{oauth-Cu1twz9z.mjs → oauth-DxGgIwFc.mjs} +1 -1
- package/dist/oauth-cNZUky3h.mjs +9 -0
- package/dist/{oauth-clients-DR0hzakz.mjs → oauth-clients-CP6alY0_.mjs} +7 -7
- package/dist/{oauth-scopes-BDNpJJ32.mjs → oauth-scopes-xl-pcWdg.mjs} +1 -1
- package/dist/{observability-BnHy2M6p.mjs → observability-Bp71PtlD.mjs} +44 -44
- package/dist/open-PCXX3ZDZ-BKRik1gi.mjs +4 -0
- package/dist/{organization-iasRm69J.mjs → organization-Dbom1gTR.mjs} +7 -7
- package/dist/{organizations-CUzCIKXV.mjs → organizations-OUMVsuen.mjs} +1 -1
- package/dist/{origin-ca-certificates-iQXSqBI0.mjs → origin-ca-certificates-B3-T0-Nn.mjs} +3 -3
- package/dist/{origin-post-quantum-encryption-DcMDK6Tz.mjs → origin-post-quantum-encryption-CGB6AfPa.mjs} +1 -1
- package/dist/{origin-tls-client-auth-D1X26X7y.mjs → origin-tls-client-auth-CgzzfAWr.mjs} +5 -5
- package/dist/output-CvQFJkvi.mjs +2 -0
- package/dist/{page-rules-CXa8EYcP.mjs → page-rules-B9BQKU4_.mjs} +1 -1
- package/dist/pages-DZPdyuT4.mjs +54 -0
- package/dist/{pay-per-crawl-DmF8xlm_.mjs → pay-per-crawl-CnveMVDi.mjs} +32 -32
- package/dist/{pay-per-use-DIp2fwJU.mjs → pay-per-use-Bpxe8PHv.mjs} +3 -3
- package/dist/{pipelines-MmXlsxYO.mjs → pipelines-CHev3o5G.mjs} +20 -20
- package/dist/precursor-C9PK9Bue.mjs +4 -0
- package/dist/previews-BIMI1dTz.mjs +4 -0
- package/dist/progress-A61dRbXl.mjs +2 -0
- package/dist/prompt-CGUzvBgY.mjs +3 -0
- package/dist/{queries-VzdcSR5H.mjs → queries-f-btyefs.mjs} +4 -4
- package/dist/{queues-BZYl2emH.mjs → queues-kLNdeb3q.mjs} +29 -35
- package/dist/r2-D_awYx2p.mjs +125 -0
- package/dist/r2-data-catalog-2jQrdAdo.mjs +2 -0
- package/dist/{radar-JzBTD249.mjs → radar-CU4T02Ag.mjs} +1 -1
- package/dist/raw-fetch-CvkmFO23.mjs +2 -0
- package/dist/{realtime-yIdAJ0Yf.mjs → realtime-C0dvcBBM.mjs} +78 -78
- package/dist/{registrar-D-Li9gNk.mjs → registrar-CHc-4vcf.mjs} +8 -8
- package/dist/{registrar-sandbox-CKSSHAyv.mjs → registrar-sandbox-Dq8LV2AI.mjs} +6 -6
- package/dist/{registry-vreNkX6u.mjs → registry-Cg5lP8oo.mjs} +1 -1
- package/dist/{reporting-Cf-pnw6h.mjs → reporting-4u21g6Dk.mjs} +7 -7
- package/dist/request-headers-D31kdxrQ.mjs +2 -0
- package/dist/{request-tracers-BegIQTzt.mjs → request-tracers-CupJ_83j.mjs} +2 -2
- package/dist/resolve-PZuJ878-.mjs +2 -0
- package/dist/{resource-sharing-DEVgiYzM.mjs → resource-sharing-CO-Lh-u7.mjs} +14 -14
- package/dist/{resource-tagging-Cm2yJkU9.mjs → resource-tagging-D0R5SzR6.mjs} +2 -2
- package/dist/{rules-DDCa7cYF.mjs → rules-BsmKzB9H.mjs} +8 -8
- package/dist/{rulesets-BhS7Hvtu.mjs → rulesets-HOOnxHZZ.mjs} +20 -20
- package/dist/{rum-EIj9ViSn.mjs → rum-wcLEvVJl.mjs} +14 -14
- package/dist/run-CIJTelJL.mjs +2 -0
- package/dist/run-quhbAvQi.mjs +2 -0
- package/dist/schema-GdBsV4P7.mjs +2 -0
- package/dist/{schema-flags--GosoCMU.mjs → schema-flags-D8vL2oiF.mjs} +2 -2
- package/dist/{scim-DA83eNe-.mjs → scim-BkdJmAS8.mjs} +10 -10
- package/dist/{sdk-CvIO3tWS.mjs → sdk-BCzcRJCi.mjs} +2 -2
- package/dist/{secrets-store-BTd3eGIB.mjs → secrets-store-CHs0oYA0.mjs} +11 -11
- package/dist/security-insights-vsl-4xFa.mjs +40 -0
- package/dist/{security-txt-DSrHhVEN.mjs → security-txt-Fnl3LdSn.mjs} +1 -1
- package/dist/session-CZTuHcbm.mjs +2 -0
- package/dist/shared-BS30oCf8.mjs +2 -0
- package/dist/{smart-shield-DnSTo-OI.mjs → smart-shield-DB0E7cZI.mjs} +1 -1
- package/dist/{snippets-An5kQs33.mjs → snippets-CFaF_NyG.mjs} +1 -1
- package/dist/source-38bULAR8.mjs +6 -0
- package/dist/spawn-B0Sl8lUu.mjs +10 -0
- package/dist/{spectrum-Ci79n7fd.mjs → spectrum-DtG0jYjE.mjs} +1 -1
- package/dist/{speed-BBL7LrLn.mjs → speed-B-RiNHGK.mjs} +1 -1
- package/dist/src-CM3XaB4p.mjs +109 -0
- package/dist/{ssl-B2psFIRm.mjs → ssl-DBVpCZAM.mjs} +4 -4
- package/dist/startup-profile-CLmojOrn.mjs +2 -0
- package/dist/startup-profile-CR7GMuLx.mjs +17 -0
- package/dist/{state-BxCejn42.mjs → state-BaGRaYow.mjs} +1 -1
- package/dist/state-CpXhcMdX.mjs +2 -0
- package/dist/{stream-Du0Q7UOh.mjs → stream-cAdBvpS1.mjs} +45 -45
- package/dist/{submit-CU8S2jBT.mjs → submit-Bkd7l2rK.mjs} +2 -2
- package/dist/{tags-C3l5aZSi.mjs → tags--eph7JbN.mjs} +2 -2
- package/dist/telemetry-51etasAu.mjs +2 -0
- package/dist/telemetry-Q3_UmwHj.mjs +2 -0
- package/dist/tenant-Bj-He2xO.mjs +10 -0
- package/dist/{tenant-custom-nameservers-DtKeyM5J.mjs → tenant-custom-nameservers-B5IIIwbz.mjs} +1 -1
- package/dist/{theme-BiIYWOed.mjs → theme-BIWQFmZ0.mjs} +2 -2
- package/dist/tools-BJZ0DDlL.mjs +2 -0
- package/dist/{tunnels-D1tRWQQi.mjs → tunnels-CgtuRpcD.mjs} +15 -15
- package/dist/turnstile-Bmcnrzw7.mjs +33 -0
- package/dist/ui-BQxRjahW.mjs +5 -0
- package/dist/update-check-BqSpgzHk.mjs +2 -0
- package/dist/update-check-DC0qP_8z.mjs +2 -0
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-info-BRA0XGT2.mjs → url-info-DhVehaT8.mjs} +2 -2
- package/dist/{url-normalization-B6N2m5s6.mjs → url-normalization-BpGDUUQc.mjs} +1 -1
- package/dist/{url-scanner-CeKkzkhe.mjs → url-scanner-DiLdqsQk.mjs} +8 -8
- package/dist/{user-CftksgmF.mjs → user-B6P5_OjP.mjs} +1 -1
- package/dist/{values-m7w9PX3o.mjs → values-Cxx4Lxrd.mjs} +2 -2
- package/dist/{vectorize-BWBEtsgZ.mjs → vectorize-YyxVpql-.mjs} +15 -15
- package/dist/version-C0pInAZ9.mjs +2 -0
- package/dist/{waiting-rooms-BVZSYTNJ.mjs → waiting-rooms-BdahlCdD.mjs} +25 -25
- package/dist/{web-assets-CLU5vAgP.mjs → web-assets-yaKxN4w_.mjs} +1 -1
- package/dist/{web3-Dkd4XRNH.mjs → web3-Bu9c_QAt.mjs} +1 -1
- package/dist/workers-5GgoGA2e.mjs +38 -0
- package/dist/{workers-builds-BgtPSDYJ.mjs → workers-builds-h-1FJjE1.mjs} +7 -7
- package/dist/workers-for-platforms-CV9iRrp9.mjs +42 -0
- package/dist/{workers-vpc-DjGfJgQn.mjs → workers-vpc-C1oUHHqk.mjs} +6 -6
- package/dist/{workflows-Cm7WsAgB.mjs → workflows-dtMlkj1-.mjs} +20 -20
- package/dist/wrangler-migration-CJEb9hY3.mjs +2 -0
- package/dist/{zaraz-DurWe32F.mjs → zaraz-838AbMEX.mjs} +1 -1
- package/dist/{zero-trust-D8SVU8YZ.mjs → zero-trust-CYt-eELJ.mjs} +460 -434
- package/dist/{zone-B3AEAfcd.mjs → zone-uJwRLSnn.mjs} +1 -1
- package/dist/{zones-DiX5LoSU.mjs → zones-Dpofsnth.mjs} +1 -1
- package/package.json +15 -12
- package/dist/abuse-reports-BwsJLiPN.mjs +0 -26
- package/dist/access-BVbIajYr.mjs +0 -27
- package/dist/account-DBLarar2.mjs +0 -12
- package/dist/ai-BF0_0NtS.mjs +0 -31
- package/dist/ai-gateway-CVABbCjv.mjs +0 -147
- package/dist/analytics-DgEaxta8.mjs +0 -21
- package/dist/auth-B9w55oRg.mjs +0 -2
- package/dist/auth-C80y97yu.mjs +0 -8
- package/dist/browser-extension-BRHJm3Qf.mjs +0 -15
- package/dist/build-BbjcJxKq.mjs +0 -2
- package/dist/build-DQh5-KK4.mjs +0 -2
- package/dist/cf-oadujOtC.mjs +0 -18
- package/dist/chunk-6EUZQHAF-QVTL_mC-.mjs +0 -2
- package/dist/chunk-DL5FNmn1.mjs +0 -2
- package/dist/chunk-Q72B4Q5Z-Cr1H_iK6.mjs +0 -2
- package/dist/chunk-Q72B4Q5Z-DKhx_4ok.mjs +0 -2
- package/dist/chunk-QBZBEHZB-Byagrlop.mjs +0 -2
- package/dist/chunk-XLADBZ7F-BXKOjWbx.mjs +0 -374
- package/dist/client-certificates-DDisXoTE.mjs +0 -13
- package/dist/command-BP7ldws1.mjs +0 -2
- package/dist/command-BtNRBTP6.mjs +0 -2
- package/dist/command-CF0giIIc.mjs +0 -3
- package/dist/command-Ck9rbHA4.mjs +0 -2
- package/dist/config-B4vIa0zp.mjs +0 -2
- package/dist/data-security-CVZAIzhe.mjs +0 -71
- package/dist/dev-nsNxyg2D.mjs +0 -4
- package/dist/dialog-Dx4rRcKM.mjs +0 -2
- package/dist/dist-BDOzKthe.mjs +0 -48
- package/dist/dist-dc4E1u01.mjs +0 -272
- package/dist/dot-prop-6SRZBKHT-Dj7YOlwR.mjs +0 -2
- package/dist/dry-run-CLX6Pbtq.mjs +0 -2
- package/dist/durable-objects-3jvUgzKd.mjs +0 -8
- package/dist/email-security-BcFyWNby.mjs +0 -160
- package/dist/error-sanitization-BkgUhGVc.mjs +0 -2
- package/dist/error-sanitization-DOlqWkNu.mjs +0 -2
- package/dist/firewall-BSMa9aH3.mjs +0 -56
- package/dist/flagship-BJYMb7hb.mjs +0 -28
- package/dist/hyperdrive-DlxQrok-.mjs +0 -37
- package/dist/interactive-B6woOLo-.mjs +0 -32
- package/dist/interactive-DnUvQHjc.mjs +0 -2
- package/dist/keyless-certificates-CtsCsbZ2.mjs +0 -13
- package/dist/kv-Bfwz_ULu.mjs +0 -21
- package/dist/local-BrfySqnx.mjs +0 -2
- package/dist/login-CAsRUF4c.mjs +0 -2
- package/dist/login-DaglE6WA.mjs +0 -5
- package/dist/logs-BWg7YymF.mjs +0 -48
- package/dist/mtls-certificates-AEuNOERQ.mjs +0 -13
- package/dist/oauth-C-QCVfWz.mjs +0 -14
- package/dist/open-PBXRGS4R-C4CKEADM.mjs +0 -4
- package/dist/open-PBXRGS4R-C_-G_4DC.mjs +0 -4
- package/dist/output-Bia1u2k5.mjs +0 -2
- package/dist/pages-Cu0m9GSH.mjs +0 -60
- package/dist/precursor-jqeEG_mJ.mjs +0 -4
- package/dist/previews-Cg6lc24N.mjs +0 -4
- package/dist/progress-Bpp73hIu.mjs +0 -2
- package/dist/prompt-CpZztV8c.mjs +0 -3
- package/dist/r2-data-catalog-DISnPFPY.mjs +0 -44
- package/dist/r2-omcKF8_A.mjs +0 -127
- package/dist/raw-fetch-DxGs_eRm.mjs +0 -2
- package/dist/request-headers-DaXBfmVn.mjs +0 -2
- package/dist/resolve-BXemCSyA.mjs +0 -2
- package/dist/run-CSFE1qVX.mjs +0 -2
- package/dist/run-ChM_YpZ0.mjs +0 -2
- package/dist/schema-DCBb3Fcs.mjs +0 -2
- package/dist/security-center-DbH_7h-T.mjs +0 -30
- package/dist/shared-CtBkOWGN.mjs +0 -2
- package/dist/source-BR4_k2ad.mjs +0 -6
- package/dist/spawn-7IW1UyoH.mjs +0 -523
- package/dist/src-CNHNCZpy.mjs +0 -108
- package/dist/startup-profile-CYEokTVe.mjs +0 -2
- package/dist/startup-profile-CgWHy4rE.mjs +0 -17
- package/dist/state-DSzkxXML.mjs +0 -2
- package/dist/telemetry-CNt8H3aA.mjs +0 -2
- package/dist/telemetry-Dk1GcQ0u.mjs +0 -5
- package/dist/telemetry-PHe8XxA2.mjs +0 -2
- package/dist/tenant-BZ0ysR9L.mjs +0 -12
- package/dist/tools-BMKpYraQ.mjs +0 -2
- package/dist/turnstile-DBa4_Vyz.mjs +0 -33
- package/dist/ui-DH95w1Qk.mjs +0 -5
- package/dist/undici-DTSBJHNS.mjs +0 -96
- package/dist/update-check-AAn7EXw8.mjs +0 -2
- package/dist/update-check-BbIXBq1o.mjs +0 -2
- package/dist/version-cPq-WKL8.mjs +0 -2
- package/dist/workers-BQi4_SBS.mjs +0 -36
- package/dist/workers-for-platforms-actLCM6Q.mjs +0 -25
- /package/dist/{Page-C-JHZnIy.mjs → Page-CjJht2qT.mjs} +0 -0
- /package/dist/{alerts-CstOk8n0.mjs → alerts-DY_7Nknx.mjs} +0 -0
- /package/dist/{autorag-PRTwXGgn.mjs → autorag-K396-M2S.mjs} +0 -0
- /package/dist/{body-parser-CUWbw_Tq.mjs → body-parser-hh2avzkz.mjs} +0 -0
- /package/dist/{brands-BHRXlWDm.mjs → brands-DeLbFxSt.mjs} +0 -0
- /package/dist/{clear-UvKESVx3.mjs → clear-CRfI7WS7.mjs} +0 -0
- /package/dist/{cli-types-tt_LZMbn.mjs → cli-types-DoVT5q_M.mjs} +0 -0
- /package/dist/{connector-telemetry-events-latest-DwnFeZg0.mjs → connector-telemetry-events-latest-D8p_dR8s.mjs} +0 -0
- /package/dist/{connector-telemetry-snapshots-latest-Dv6rZlxs.mjs → connector-telemetry-snapshots-latest-COFmzmlk.mjs} +0 -0
- /package/dist/{domain-info-BqTDXNBo.mjs → domain-info-aiwP60Fo.mjs} +0 -0
- /package/dist/{health-CwPzzrV6.mjs → health-Bz33n-_F.mjs} +0 -0
- /package/dist/{input-validation-Ch4Vllrm.mjs → input-validation-Dk52b0me.mjs} +0 -0
- /package/dist/{internal-WLHfxX64.mjs → internal-BHrJbbdA.mjs} +0 -0
- /package/dist/{lifecycle-Ichnb2x1.mjs → lifecycle-C7tAC1Mn.mjs} +0 -0
- /package/dist/{live-D_k7eHdv.mjs → live-MeJQXIei.mjs} +0 -0
- /package/dist/{metadata-APBiectA.mjs → metadata-C33s4rc-.mjs} +0 -0
- /package/dist/{project-settings-DSXevRvj.mjs → project-settings-DO6njFg_.mjs} +0 -0
- /package/dist/{rate-limit-analytics-CDTPxSET.mjs → rate-limit-analytics-CU55zqCU.mjs} +0 -0
- /package/dist/{rate-limits-C3K9smdl.mjs → rate-limits-CZ-qHDPK.mjs} +0 -0
- /package/dist/{ready-CvwvbdTX.mjs → ready-BOpbZ1pN.mjs} +0 -0
- /package/dist/{recent-submissions-CjzcT-iH.mjs → recent-submissions-KDqD2HyS.mjs} +0 -0
- /package/dist/{refute-CIAFMj00.mjs → refute-DkF4XIMw.mjs} +0 -0
- /package/dist/{resolve-CUDKxUrW.mjs → resolve-BCTrtcx7.mjs} +0 -0
- /package/dist/{scan-logo-zFkphtQ3.mjs → scan-logo-DQkf6glG.mjs} +0 -0
- /package/dist/{scan-page-CLl2MAkZ.mjs → scan-page-CMOJ_E0n.mjs} +0 -0
- /package/dist/{search-12jA1b4l.mjs → search-Bre1Zwn3.mjs} +0 -0
- /package/dist/{signed-url-U0T_PEMR.mjs → signed-url-24ZbX4yV.mjs} +0 -0
- /package/dist/{submission-info-CZ84a3Nb.mjs → submission-info-BmkbZVqM.mjs} +0 -0
- /package/dist/{total-queries-CJTc9Pde.mjs → total-queries-j8OAF_cE.mjs} +0 -0
- /package/dist/{tracked-domains-BKLxnnSv.mjs → tracked-domains-fe3EWYmF.mjs} +0 -0
- /package/dist/{verify-CZW5Fo1q.mjs → verify-CKgZYvln.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-B5oRPTEN.mjs";import{a as t,t as n}from"./context-CEOHpZgd.mjs";import{r}from"./auth-BIr56Mbx.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-A61dRbXl.mjs";import{t as s}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{t as c}from"./cli-types-DoVT5q_M.mjs";function l(e){return e.usage(`$0 tags resources list
|
|
3
3
|
|
|
4
|
-
Lists all tagged resources for an account.`).option(`type`,{type:`string`,description:`Filter by resource type. Can be repeated to filter by multiple types (OR logic). Example: ?type=zone&type=worker`}).option(`name`,{type:`string`,description:`Filter by resource name. Performs a case-insensitive substring match. Example: ?name=my-zone`}).option(`id`,{type:`string`,description:`Filter by resource ID. Can be repeated up to 50 times to filter by multiple IDs. Example: ?id=abc&id=def`}).option(`case-insensitive`,{type:`boolean`,description:"Match `tag` keys and values case-insensitively. Stored casing is unchanged. Example: ?tag=environment=production&case_insensitive=true"}).option(`tag`,{type:`string`,description:"Filter resources by tag criteria. This parameter can be repeated multiple times, with AND logic between parameters.\n\nSupported syntax:\n- **Key-only**: `tag=<key>` - Resource must have the tag key (e.g., `tag=production`)\n- **Key-value**: `tag=<key>=<value>` - Resource must have the tag with specific value (e.g., `tag=env=prod`)\n- **Multiple values (OR)**: `tag=<key>=<v1>,<v2>` - Resource must have tag with any of the values (e.g., `tag=env=prod,staging`)\n- **Negate key-only**: `tag=!<key>` - Resource must not have the tag key (e.g., `tag=!archived`)\n- **Negate key-value**: `tag=<key>!=<value>` - Resource must not have the tag with specific value (e.g., `tag=region!=us-west-1`)\n\nMultiple tag parameters are combined with AND logic."}).option(`cursor`,{type:`string`,description:`Cursor for pagination.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const u={command:`list`,describe:`List tagged resources`,builder:c(l),handler:async c=>s({command:`tags resources list`,classification:{safeFlags:[`case-insensitive`,`dry-run`]}},c,async()=>{let s={type:c.type,name:c.name,id:c.id,case_insensitive:c[`case-insensitive`],tag:c.tag,cursor:c.cursor};if(c.dryRun){a({command:`cf tags resources list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
4
|
+
Lists all tagged resources for an account.`).option(`type`,{type:`string`,description:`Filter by resource type. Can be repeated to filter by multiple types (OR logic). Example: ?type=zone&type=worker`}).option(`name`,{type:`string`,description:`Filter by resource name. Performs a case-insensitive substring match. Example: ?name=my-zone`}).option(`id`,{type:`string`,description:`Filter by resource ID. Can be repeated up to 50 times to filter by multiple IDs. Example: ?id=abc&id=def`}).option(`case-insensitive`,{type:`boolean`,description:"Match `tag` keys and values case-insensitively. Stored casing is unchanged. Example: ?tag=environment=production&case_insensitive=true"}).option(`tag`,{type:`string`,description:"Filter resources by tag criteria. This parameter can be repeated multiple times, with AND logic between parameters.\n\nSupported syntax:\n- **Key-only**: `tag=<key>` - Resource must have the tag key (e.g., `tag=production`)\n- **Key-value**: `tag=<key>=<value>` - Resource must have the tag with specific value (e.g., `tag=env=prod`)\n- **Multiple values (OR)**: `tag=<key>=<v1>,<v2>` - Resource must have tag with any of the values (e.g., `tag=env=prod,staging`)\n- **Negate key-only**: `tag=!<key>` - Resource must not have the tag key (e.g., `tag=!archived`)\n- **Negate key-value**: `tag=<key>!=<value>` - Resource must not have the tag with specific value (e.g., `tag=region!=us-west-1`)\n\nMultiple tag parameters are combined with AND logic."}).option(`cursor`,{type:`string`,description:`Cursor for pagination.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const u={command:`list`,describe:`List tagged resources`,builder:c(l),handler:async c=>s({command:`tags resources list`,classification:{safeFlags:[`case-insensitive`,`dry-run`]}},c,async()=>{let s={type:c.type,name:c.name,id:c.id,case_insensitive:c[`case-insensitive`],tag:c.tag,cursor:c.cursor};if(c.dryRun){a({command:`cf tags resources list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/tags/resources`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.tags.resources.list({account_id:u,...s})),{successLabel:`Loaded`})})},d={command:`resources`,describe:`Operations for resources`,builder:e=>e.command(u).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},f={command:`tags`,describe:`tags`,builder:e=>e.command(d).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{f as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{a as e,n as t,r as n,t as r}from"./lifecycle-C7tAC1Mn.mjs";import{a as i,c as a,d as o,f as s,i as c,l,m as u,n as d,o as f,p,r as m,s as h,t as g}from"./run-CIJTelJL.mjs";import{t as _}from"./telemetry-Q3_UmwHj.mjs";export{i as TELEMETRY_ENV_VAR,f as TELEMETRY_POLICY_DATE,_ as UNKNOWN_COMMAND_EVENT,r as allTelemetryDispatchesSettled,t as beginTelemetryRun,h as getBannerLastShown,a as getDeviceId,c as getTelemetryDispatcher,l as getTelemetryFromEnv,o as isFirstUsage,n as markCommandReported,s as resolveTelemetry,g as runWithTelemetry,m as sanitizeArgs,p as setBannerLastShown,u as setTelemetryPermission,e as wasCommandReported,d as withTelemetry};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{r as e}from"./auth-BIr56Mbx.mjs";import{t}from"./output-CvQFJkvi.mjs";import{t as n}from"./dry-run-Bq0JAsbX.mjs";import{t as r}from"./progress-A61dRbXl.mjs";import{t as i}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";function a(e){return e.usage(`$0 tenant account-type list
|
|
3
|
+
|
|
4
|
+
Lists the account types this tenant is allowed to provision.`).option(`tenant-id`,{type:`string`,description:`The ID of the tenant whose available account types to list.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const o={command:`list`,describe:`List tenant account types`,builder:a,handler:async a=>i({command:`tenant account-type list`,classification:{safeFlags:[`dry-run`]}},a,async()=>{if(a.dryRun){n({command:`cf tenant account-type list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/tenants/${a[`tenant-id`]==null?`<tenant-id>`:encodeURIComponent(String(a[`tenant-id`]))}/account_types`,pathParams:{"tenant-id":String(a[`tenant-id`]??``)},bodyKind:`none`});return}let i=await e(a);t(await r(`Loading`,async()=>i.tenant.accountType.list({tenant_id:a[`tenant-id`]})),{successLabel:`Loaded`})})},s={command:`account-type`,describe:`Operations for account-type`,builder:e=>e.command(o).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function c(e){return e.usage(`$0 tenant account list
|
|
5
|
+
|
|
6
|
+
Lists the Cloudflare accounts associated with this tenant.`).option(`tenant-id`,{type:`string`,description:`The ID of the tenant whose accounts to list.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`list`,describe:`List tenant accounts`,builder:c,handler:async a=>i({command:`tenant account list`,classification:{safeFlags:[`dry-run`]}},a,async()=>{if(a.dryRun){n({command:`cf tenant account list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/tenants/${a[`tenant-id`]==null?`<tenant-id>`:encodeURIComponent(String(a[`tenant-id`]))}/accounts`,pathParams:{"tenant-id":String(a[`tenant-id`]??``)},bodyKind:`none`});return}let i=await e(a);t(await r(`Loading`,async()=>i.tenant.account.list({tenant_id:a[`tenant-id`]})),{successLabel:`Loaded`})})},u={command:`account`,describe:`Operations for account`,builder:e=>e.command(l).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function d(e){return e.usage(`$0 tenant entitlement list
|
|
7
|
+
|
|
8
|
+
Retrieves the innate and custom entitlement allocations available to this tenant.`).option(`tenant-id`,{type:`string`,description:`The ID of the tenant whose entitlement allocations to retrieve.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const f={command:`list`,describe:`List tenant entitlements`,builder:d,handler:async a=>i({command:`tenant entitlement list`,classification:{safeFlags:[`dry-run`]}},a,async()=>{if(a.dryRun){n({command:`cf tenant entitlement list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/tenants/${a[`tenant-id`]==null?`<tenant-id>`:encodeURIComponent(String(a[`tenant-id`]))}/entitlements`,pathParams:{"tenant-id":String(a[`tenant-id`]??``)},bodyKind:`none`});return}let i=await e(a);t(await r(`Loading`,async()=>i.tenant.entitlement.list({tenant_id:a[`tenant-id`]})),{successLabel:`Loaded`})})},p={command:`entitlement`,describe:`Operations for entitlement`,builder:e=>e.command(f).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function m(e){return e.usage(`$0 tenant get <tenant-id>
|
|
9
|
+
|
|
10
|
+
Retrieves a tenant's identity, status, metadata, contacts, and organizational units.`).positional(`tenant-id`,{type:`string`,description:`The ID of the tenant to retrieve.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const h={command:`get <tenant-id>`,describe:`Get tenant details`,builder:m,handler:async a=>i({command:`tenant get`,classification:{safeFlags:[`dry-run`]}},a,async()=>{if(a.dryRun){n({command:`cf tenant get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/tenants/${a[`tenant-id`]==null?`<tenant-id>`:encodeURIComponent(String(a[`tenant-id`]))}`,pathParams:{"tenant-id":String(a[`tenant-id`]??``)},bodyKind:`none`});return}let i=await e(a);t(await r(`Loading`,async()=>i.tenant.get({tenant_id:a[`tenant-id`]})),{successLabel:`Loaded`})})},g={command:`tenant`,describe:`tenant`,builder:e=>e.command(h).command(u).command(s).command(p).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{g as default};
|
package/dist/{tenant-custom-nameservers-DtKeyM5J.mjs → tenant-custom-nameservers-B5IIIwbz.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{r as e}from"./auth-
|
|
2
|
+
import{r as e}from"./auth-BIr56Mbx.mjs";import{t}from"./output-CvQFJkvi.mjs";import{t as n}from"./dry-run-Bq0JAsbX.mjs";import{t as r}from"./progress-A61dRbXl.mjs";import{t as i}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{n as a,t as o}from"./body-parser-hh2avzkz.mjs";import{n as s}from"./input-validation-Dk52b0me.mjs";import{a as c,n as l}from"./prompt-CGUzvBgY.mjs";function u(e){return e.usage(`$0 tenant-custom-nameservers create <tenant-tag>
|
|
3
3
|
|
|
4
4
|
Adds a custom nameserver for a tenant.`).positional(`tenant-tag`,{type:`string`,description:`Tenant identifier tag.`,demandOption:!0}).option(`ns-name`,{type:`string`,description:`The FQDN of the name server.`}).option(`ns-set`,{type:`number`,description:`The number of the set that this name server belongs to.`,default:1}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const d={command:`create <tenant-tag>`,describe:`Add Tenant Custom Nameserver`,builder:u,handler:async l=>i({command:`tenant-custom-nameservers create`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){n({command:`cf tenant-custom-nameservers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/tenants/${l[`tenant-tag`]==null?`<tenant-tag>`:encodeURIComponent(String(l[`tenant-tag`]))}/custom_ns`,pathParams:{"tenant-tag":String(l[`tenant-tag`]??``)},bodyKind:`json`,body:l.body===void 0?o({ns_name:s(l[`ns-name`],`ns-name`,`text`),ns_set:l[`ns-set`]}):a(l.body)});return}let i=await e(l);if(l.body){let e=a(l.body);t(await r(`Creating`,async()=>i.tenantCustomNameservers.create({body:e,tenant_tag:l[`tenant-tag`]})),{successLabel:`Created`});return}l[`ns-name`]===void 0&&(l[`ns-name`]=await c(`ns-name`,`The FQDN of the name server.`));let u=o({ns_name:s(l[`ns-name`],`ns-name`,`text`),ns_set:l[`ns-set`]});t(await r(`Creating`,async()=>i.tenantCustomNameservers.create({body:u,tenant_tag:l[`tenant-tag`]})),{successLabel:`Created`})})};function f(e){return e.usage(`$0 tenant-custom-nameservers delete <custom-ns-id>
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import e from"node:
|
|
2
|
+
import e from"node:process";import t from"node:os";import n from"node:tty";const r=(e=0)=>t=>`\u001B[${t+e}m`,i=(e=0)=>t=>`\u001B[${38+e};5;${t}m`,a=(e=0)=>(t,n,r)=>`\u001B[${38+e};2;${t};${n};${r}m`,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(o.modifier);const s=Object.keys(o.color),c=Object.keys(o.bgColor);[...s,...c];function l(){let e=new Map;for(let[t,n]of Object.entries(o)){for(let[t,r]of Object.entries(n))o[t]={open:`\u001B[${r[0]}m`,close:`\u001B[${r[1]}m`},n[t]=o[t],e.set(r[0],r[1]);Object.defineProperty(o,t,{value:n,enumerable:!1})}return Object.defineProperty(o,`codes`,{value:e,enumerable:!1}),o.color.close=`\x1B[39m`,o.bgColor.close=`\x1B[49m`,o.color.ansi=r(),o.color.ansi256=i(),o.color.ansi16m=a(),o.bgColor.ansi=r(10),o.bgColor.ansi256=i(10),o.bgColor.ansi16m=a(10),Object.defineProperties(o,{rgbToAnsi256:{value(e,t,n){return e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;n.length===3&&(n=[...n].map(e=>e+e).join(``));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:e=>o.rgbToAnsi256(...o.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,n,r;if(e>=232)t=((e-232)*10+8)/255,n=t,r=t;else{e-=16;let i=e%36;t=Math.floor(e/36)/5,n=Math.floor(i/6)/5,r=i%6/5}let i=Math.max(t,n,r)*2;if(i===0)return 30;let a=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return i===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(e,t,n)=>o.ansi256ToAnsi(o.rgbToAnsi256(e,t,n)),enumerable:!1},hexToAnsi:{value:e=>o.ansi256ToAnsi(o.hexToAnsi256(e)),enumerable:!1}}),o}const u=l();function d(t,n=globalThis.Deno?globalThis.Deno.args:e.argv){let r=t.startsWith(`-`)?``:t.length===1?`-`:`--`,i=n.indexOf(r+t),a=n.indexOf(`--`);return i!==-1&&(a===-1||i<a)}const{env:f}=e;let p;d(`no-color`)||d(`no-colors`)||d(`color=false`)||d(`color=never`)?p=0:(d(`color`)||d(`colors`)||d(`color=true`)||d(`color=always`))&&(p=1);function m(){if(`FORCE_COLOR`in f)return f.FORCE_COLOR===`true`?1:f.FORCE_COLOR===`false`?0:f.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(f.FORCE_COLOR,10),3)}function h(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function g(n,{streamIsTTY:r,sniffFlags:i=!0}={}){let a=m();a!==void 0&&(p=a);let o=i?p:a;if(o===0)return 0;if(i){if(d(`color=16m`)||d(`color=full`)||d(`color=truecolor`))return 3;if(d(`color=256`))return 2}if(`TF_BUILD`in f&&`AGENT_NAME`in f)return 1;if(n&&!r&&o===void 0)return 0;let s=o||0;if(f.TERM===`dumb`)return s;if(e.platform===`win32`){let e=t.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in f)return[`GITHUB_ACTIONS`,`GITEA_ACTIONS`,`CIRCLECI`].some(e=>e in f)?3:[`TRAVIS`,`APPVEYOR`,`GITLAB_CI`,`BUILDKITE`,`DRONE`].some(e=>e in f)||f.CI_NAME===`codeship`?1:s;if(`TEAMCITY_VERSION`in f)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(f.TEAMCITY_VERSION);if(f.COLORTERM===`truecolor`||f.TERM===`xterm-kitty`||f.TERM===`xterm-ghostty`||f.TERM===`wezterm`)return 3;if(`TERM_PROGRAM`in f){let e=Number.parseInt((f.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch(f.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test(f.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(f.TERM)||`COLORTERM`in f?1:s}function _(e,t={}){return h(g(e,{streamIsTTY:e&&e.isTTY,...t}))}const v={stdout:_({isTTY:n.isatty(1)}),stderr:_({isTTY:n.isatty(2)})};function y(e,t,n){let r=e.indexOf(t);if(r===-1)return e;let i=t.length,a=0,o=``;do o+=e.slice(a,r)+t+n,a=r+i,r=e.indexOf(t,a);while(r!==-1);return o+=e.slice(a),o}function b(e,t,n,r){let i=0,a=``;do{let o=e[r-1]===`\r`;a+=e.slice(i,o?r-1:r)+t+(o?`\r
|
|
3
3
|
`:`
|
|
4
4
|
`)+n,i=r+1,r=e.indexOf(`
|
|
5
5
|
`,i)}while(r!==-1);return a+=e.slice(i),a}const{stdout:x,stderr:S}=v,C=Symbol(`GENERATOR`),w=Symbol(`STYLER`),T=Symbol(`IS_EMPTY`),E=[`ansi`,`ansi`,`ansi256`,`ansi16m`],D=Object.create(null),O=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let n=x?x.level:0;e.level=t.level===void 0?n:t.level},k=e=>{let t=(...e)=>e.join(` `);return O(t,e),Object.setPrototypeOf(t,A.prototype),t};function A(e){return k(e)}Object.setPrototypeOf(A.prototype,Function.prototype);for(let[e,t]of Object.entries(u))D[e]={get(){let n=P(this,N(t.open,t.close,this[w]),this[T]);return Object.defineProperty(this,e,{value:n}),n}};D.visible={get(){let e=P(this,this[w],!0);return Object.defineProperty(this,`visible`,{value:e}),e}};const j=(e,t,n,...r)=>e===`rgb`?t===`ansi16m`?u[n].ansi16m(...r):t===`ansi256`?u[n].ansi256(u.rgbToAnsi256(...r)):u[n].ansi(u.rgbToAnsi(...r)):e===`hex`?j(`rgb`,t,n,...u.hexToRgb(...r)):u[n][e](...r);for(let e of[`rgb`,`hex`,`ansi256`]){D[e]={get(){let{level:t}=this;return function(...n){let r=N(j(e,E[t],`color`,...n),u.color.close,this[w]);return P(this,r,this[T])}}};let t=`bg`+e[0].toUpperCase()+e.slice(1);D[t]={get(){let{level:t}=this;return function(...n){let r=N(j(e,E[t],`bgColor`,...n),u.bgColor.close,this[w]);return P(this,r,this[T])}}}}const M=Object.defineProperties(()=>{},{...D,level:{enumerable:!0,get(){return this[C].level},set(e){this[C].level=e}}}),N=(e,t,n)=>{let r,i;return n===void 0?(r=e,i=t):(r=n.openAll+e,i=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:i,parent:n}},P=(e,t,n)=>{let r=(...e)=>F(r,e.length===1?``+e[0]:e.join(` `));return Object.setPrototypeOf(r,M),r[C]=e,r[w]=t,r[T]=n,r},F=(e,t)=>{if(e.level<=0||!t)return e[T]?``:t;let n=e[w];if(n===void 0)return t;let{openAll:r,closeAll:i}=n;if(t.includes(`\x1B`))for(;n!==void 0;)t=y(t,n.close,n.open),n=n.parent;let a=t.indexOf(`
|
|
6
|
-
`);return a!==-1&&(t=b(t,i,r,a)),r+t+i};Object.defineProperties(A.prototype,D);const I=A();A({level:S?S.level:0});function L(){let{env:
|
|
6
|
+
`);return a!==-1&&(t=b(t,i,r,a)),r+t+i};Object.defineProperties(A.prototype,D);const I=A();A({level:S?S.level:0});function L(){let{env:t}=e,{TERM:n,TERM_PROGRAM:r}=t;return e.platform===`win32`?!!t.WT_SESSION||!!t.TERMINUS_SUBLIME||t.ConEmuTask===`{cmd::Cmder}`||r===`Terminus-Sublime`||r===`vscode`||n===`xterm-256color`||n===`alacritty`||n===`rxvt-unicode`||n===`rxvt-unicode-256color`||t.TERMINAL_EMULATOR===`JetBrains-JediTerm`:n!==`linux`}const R={circleQuestionMark:`(?)`,questionMarkPrefix:`(?)`,square:`█`,squareDarkShade:`▓`,squareMediumShade:`▒`,squareLightShade:`░`,squareTop:`▀`,squareBottom:`▄`,squareLeft:`▌`,squareRight:`▐`,squareCenter:`■`,bullet:`●`,dot:`․`,ellipsis:`…`,pointerSmall:`›`,triangleUp:`▲`,triangleUpSmall:`▴`,triangleDown:`▼`,triangleDownSmall:`▾`,triangleLeftSmall:`◂`,triangleRightSmall:`▸`,home:`⌂`,heart:`♥`,musicNote:`♪`,musicNoteBeamed:`♫`,arrowUp:`↑`,arrowDown:`↓`,arrowLeft:`←`,arrowRight:`→`,arrowLeftRight:`↔`,arrowUpDown:`↕`,almostEqual:`≈`,notEqual:`≠`,lessOrEqual:`≤`,greaterOrEqual:`≥`,identical:`≡`,infinity:`∞`,subscriptZero:`₀`,subscriptOne:`₁`,subscriptTwo:`₂`,subscriptThree:`₃`,subscriptFour:`₄`,subscriptFive:`₅`,subscriptSix:`₆`,subscriptSeven:`₇`,subscriptEight:`₈`,subscriptNine:`₉`,oneHalf:`½`,oneThird:`⅓`,oneQuarter:`¼`,oneFifth:`⅕`,oneSixth:`⅙`,oneEighth:`⅛`,twoThirds:`⅔`,twoFifths:`⅖`,threeQuarters:`¾`,threeFifths:`⅗`,threeEighths:`⅜`,fourFifths:`⅘`,fiveSixths:`⅚`,fiveEighths:`⅝`,sevenEighths:`⅞`,line:`─`,lineBold:`━`,lineDouble:`═`,lineDashed0:`┄`,lineDashed1:`┅`,lineDashed2:`┈`,lineDashed3:`┉`,lineDashed4:`╌`,lineDashed5:`╍`,lineDashed6:`╴`,lineDashed7:`╶`,lineDashed8:`╸`,lineDashed9:`╺`,lineDashed10:`╼`,lineDashed11:`╾`,lineDashed12:`−`,lineDashed13:`–`,lineDashed14:`‐`,lineDashed15:`⁃`,lineVertical:`│`,lineVerticalBold:`┃`,lineVerticalDouble:`║`,lineVerticalDashed0:`┆`,lineVerticalDashed1:`┇`,lineVerticalDashed2:`┊`,lineVerticalDashed3:`┋`,lineVerticalDashed4:`╎`,lineVerticalDashed5:`╏`,lineVerticalDashed6:`╵`,lineVerticalDashed7:`╷`,lineVerticalDashed8:`╹`,lineVerticalDashed9:`╻`,lineVerticalDashed10:`╽`,lineVerticalDashed11:`╿`,lineDownLeft:`┐`,lineDownLeftArc:`╮`,lineDownBoldLeftBold:`┓`,lineDownBoldLeft:`┒`,lineDownLeftBold:`┑`,lineDownDoubleLeftDouble:`╗`,lineDownDoubleLeft:`╖`,lineDownLeftDouble:`╕`,lineDownRight:`┌`,lineDownRightArc:`╭`,lineDownBoldRightBold:`┏`,lineDownBoldRight:`┎`,lineDownRightBold:`┍`,lineDownDoubleRightDouble:`╔`,lineDownDoubleRight:`╓`,lineDownRightDouble:`╒`,lineUpLeft:`┘`,lineUpLeftArc:`╯`,lineUpBoldLeftBold:`┛`,lineUpBoldLeft:`┚`,lineUpLeftBold:`┙`,lineUpDoubleLeftDouble:`╝`,lineUpDoubleLeft:`╜`,lineUpLeftDouble:`╛`,lineUpRight:`└`,lineUpRightArc:`╰`,lineUpBoldRightBold:`┗`,lineUpBoldRight:`┖`,lineUpRightBold:`┕`,lineUpDoubleRightDouble:`╚`,lineUpDoubleRight:`╙`,lineUpRightDouble:`╘`,lineUpDownLeft:`┤`,lineUpBoldDownBoldLeftBold:`┫`,lineUpBoldDownBoldLeft:`┨`,lineUpDownLeftBold:`┥`,lineUpBoldDownLeftBold:`┩`,lineUpDownBoldLeftBold:`┪`,lineUpDownBoldLeft:`┧`,lineUpBoldDownLeft:`┦`,lineUpDoubleDownDoubleLeftDouble:`╣`,lineUpDoubleDownDoubleLeft:`╢`,lineUpDownLeftDouble:`╡`,lineUpDownRight:`├`,lineUpBoldDownBoldRightBold:`┣`,lineUpBoldDownBoldRight:`┠`,lineUpDownRightBold:`┝`,lineUpBoldDownRightBold:`┡`,lineUpDownBoldRightBold:`┢`,lineUpDownBoldRight:`┟`,lineUpBoldDownRight:`┞`,lineUpDoubleDownDoubleRightDouble:`╠`,lineUpDoubleDownDoubleRight:`╟`,lineUpDownRightDouble:`╞`,lineDownLeftRight:`┬`,lineDownBoldLeftBoldRightBold:`┳`,lineDownLeftBoldRightBold:`┯`,lineDownBoldLeftRight:`┰`,lineDownBoldLeftBoldRight:`┱`,lineDownBoldLeftRightBold:`┲`,lineDownLeftRightBold:`┮`,lineDownLeftBoldRight:`┭`,lineDownDoubleLeftDoubleRightDouble:`╦`,lineDownDoubleLeftRight:`╥`,lineDownLeftDoubleRightDouble:`╤`,lineUpLeftRight:`┴`,lineUpBoldLeftBoldRightBold:`┻`,lineUpLeftBoldRightBold:`┷`,lineUpBoldLeftRight:`┸`,lineUpBoldLeftBoldRight:`┹`,lineUpBoldLeftRightBold:`┺`,lineUpLeftRightBold:`┶`,lineUpLeftBoldRight:`┵`,lineUpDoubleLeftDoubleRightDouble:`╩`,lineUpDoubleLeftRight:`╨`,lineUpLeftDoubleRightDouble:`╧`,lineUpDownLeftRight:`┼`,lineUpBoldDownBoldLeftBoldRightBold:`╋`,lineUpDownBoldLeftBoldRightBold:`╈`,lineUpBoldDownLeftBoldRightBold:`╇`,lineUpBoldDownBoldLeftRightBold:`╊`,lineUpBoldDownBoldLeftBoldRight:`╉`,lineUpBoldDownLeftRight:`╀`,lineUpDownBoldLeftRight:`╁`,lineUpDownLeftBoldRight:`┽`,lineUpDownLeftRightBold:`┾`,lineUpBoldDownBoldLeftRight:`╂`,lineUpDownLeftBoldRightBold:`┿`,lineUpBoldDownLeftBoldRight:`╃`,lineUpBoldDownLeftRightBold:`╄`,lineUpDownBoldLeftBoldRight:`╅`,lineUpDownBoldLeftRightBold:`╆`,lineUpDoubleDownDoubleLeftDoubleRightDouble:`╬`,lineUpDoubleDownDoubleLeftRight:`╫`,lineUpDownLeftDoubleRightDouble:`╪`,lineCross:`╳`,lineBackslash:`╲`,lineSlash:`╱`},z={tick:`✔`,info:`ℹ`,warning:`⚠`,cross:`✘`,squareSmall:`◻`,squareSmallFilled:`◼`,circle:`◯`,circleFilled:`◉`,circleDotted:`◌`,circleDouble:`◎`,circleCircle:`ⓞ`,circleCross:`ⓧ`,circlePipe:`Ⓘ`,radioOn:`◉`,radioOff:`◯`,checkboxOn:`☒`,checkboxOff:`☐`,checkboxCircleOn:`ⓧ`,checkboxCircleOff:`Ⓘ`,pointer:`❯`,triangleUpOutline:`△`,triangleLeft:`◀`,triangleRight:`▶`,lozenge:`◆`,lozengeOutline:`◇`,hamburger:`☰`,smiley:`㋡`,mustache:`෴`,star:`★`,play:`▶`,nodejs:`⬢`,oneSeventh:`⅐`,oneNinth:`⅑`,oneTenth:`⅒`},B={tick:`√`,info:`i`,warning:`‼`,cross:`×`,squareSmall:`□`,squareSmallFilled:`■`,circle:`( )`,circleFilled:`(*)`,circleDotted:`( )`,circleDouble:`( )`,circleCircle:`(○)`,circleCross:`(×)`,circlePipe:`(│)`,radioOn:`(*)`,radioOff:`( )`,checkboxOn:`[×]`,checkboxOff:`[ ]`,checkboxCircleOn:`(×)`,checkboxCircleOff:`( )`,pointer:`>`,triangleUpOutline:`∆`,triangleLeft:`◄`,triangleRight:`►`,lozenge:`♦`,lozengeOutline:`◊`,hamburger:`≡`,smiley:`☺`,mustache:`┌─┐`,star:`✶`,play:`►`,nodejs:`♦`,oneSeventh:`1/7`,oneNinth:`1/9`,oneTenth:`1/10`},V={...R,...z},H={...R,...B},U=L()?V:H;Object.entries(z);const W={brand:`#BF6600`,success:`#3A8E52`,error:`#D45350`,warning:`#BF6600`,info:`#3D82BB`,muted:`#7F7F7F`,code:`#3D82BB`,jsonKey:`#3D82BB`,jsonString:`#3A8E52`,jsonNumber:`#BF6600`,jsonBoolean:`#926CC1`};function G(e=process.env,t=process.stdout.isTTY===!0){return e.NO_COLOR===void 0?e.FORCE_COLOR===void 0?t:e.FORCE_COLOR!==`0`:!1}G()||(I.level=0);function K(e,t){return I.level>=3?I.hex(W[e])(t):e===`muted`?t:I.bold(t)}const q={brand:e=>K(`brand`,e),success:e=>K(`success`,e),error:e=>K(`error`,e),warning:e=>K(`warning`,e),info:e=>K(`info`,e),muted:e=>K(`muted`,e),code:e=>K(`code`,e),jsonKey:e=>K(`jsonKey`,e),jsonString:e=>K(`jsonString`,e),jsonNumber:e=>K(`jsonNumber`,e),jsonBoolean:e=>K(`jsonBoolean`,e),bold:e=>I.bold(e),italic:e=>I.italic(e)},J={success:U.tick,error:U.cross,warning:U.warning,info:U.info,arrow:U.arrowRight};export{J as n,q as r,G as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{n as e,t}from"./metadata-C33s4rc-.mjs";import{t as n}from"./output-CvQFJkvi.mjs";function r(e){return e.replace(/[\s-]+/g,`_`)}function i(e){let t={type:e.type,description:e.description};return`default`in e&&e.default!==void 0&&(t.default=e.default),e.enum&&e.enum.length>0&&(t.enum=e.enum),t}function a(e){let t={},n=[];for(let r of e.arguments)t[r.name]=i(r),r.required&&n.push(r.name);for(let r of e.options)t[r.name]=i(r),r.required&&n.push(r.name);return{name:r(e.command),description:e.description,inputSchema:{type:`object`,properties:t,required:n}}}const o={command:`tools`,describe:!1,builder:e=>e,handler:async r=>{let i=e(import.meta.url,`commands.json`,t)?.commands??null;if(i===null){console.error(`Warning: Command metadata file not found. Run the build to generate it.`),n({version:`1.0`,tools:[]});return}n({version:`1.0`,tools:i.map(a)})}};export{o as default};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{
|
|
2
|
+
import{t as e}from"./lazy-command-glNW3jzf.mjs";import{t}from"./local-B5oRPTEN.mjs";import{a as n,t as r}from"./context-CEOHpZgd.mjs";import{r as i}from"./auth-BIr56Mbx.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-A61dRbXl.mjs";import{t as c}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{n as l,t as u}from"./body-parser-hh2avzkz.mjs";import{n as d}from"./input-validation-Dk52b0me.mjs";import{a as f,n as p}from"./prompt-CGUzvBgY.mjs";import{t as m}from"./cli-types-DoVT5q_M.mjs";var h=e(`diag`,`Create a diagnostic report from a local cloudflared instance.`,()=>import(`./command-DUafPVUr.mjs`),{command:`tunnels diag`,recordArgs:!1}),g=e(`login`,`Authorize cloudflared and download an origin certificate for locally managed tunnels.`,()=>import(`./command-B6DqnUwt.mjs`),{command:`tunnels login`,recordArgs:!1}),_=e(`quick-start <url>`,`Expose a local URL with a temporary trycloudflare.com tunnel. The tunnel remains active until cf exits.`,()=>import(`./command-BCag-xjk.mjs`),{command:`tunnels quick-start`,recordArgs:!1}),v=e(`ready`,`Check the /ready endpoint exposed by a local cloudflared instance.`,()=>import(`./command-DfffeX-k.mjs`),{command:`tunnels ready`,recordArgs:!1}),y=e(`run [tunnel]`,`Run a named Cloudflare Tunnel using the cf-managed cloudflared binary.`,()=>import(`./command-CAtsHc1V.mjs`),{command:`tunnels run`,recordArgs:!1}),b=e(`tail [tunnel-id]`,`Stream logs from a remote cloudflared instance.`,()=>import(`./command-BOLlvEan.mjs`),{command:`tunnels tail`,recordArgs:!1});function x(e){return e.usage(`$0 tunnels config get <tunnel-id>
|
|
3
3
|
|
|
4
|
-
Retrieves the configuration for a remotely managed Cloudflare Tunnel.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
4
|
+
Retrieves the configuration for a remotely managed Cloudflare Tunnel.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`get <tunnel-id>`,describe:`Get Tunnel configuration`,builder:x,handler:async e=>c({command:`tunnels config get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf tunnels config get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/cfd_tunnel/${e[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(e[`tunnel-id`]))}/configurations`,pathParams:{"tunnel-id":String(e[`tunnel-id`]??``)},bodyKind:`none`});return}let c=await i(e),l=e.local?t:await r();e.accountId=l,a(await s(`Loading`,async()=>c.tunnels.config.get({account_id:l,tunnel_id:e[`tunnel-id`]})),{successLabel:`Loaded`})})};function C(e){return e.usage(`$0 tunnels config update <tunnel-id>
|
|
5
5
|
|
|
6
6
|
Replaces the configuration for a remotely managed Cloudflare Tunnel, including its ingress rules and origin request settings.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`config-origin-request-access-aud-tag`,{type:`string`,array:!0,description:`Access applications that are allowed to reach this hostname for this Tunnel. Audience tags can be identified in the dashboard or via the List Access policies API.`}).option(`config-origin-request-access-required`,{type:`boolean`,description:`Deny traffic that has not fulfilled Access authorization.`}).option(`config-origin-request-access-team-name`,{type:`string`,description:`The config.originRequest.access.teamName field`}).option(`config-origin-request-ca-pool`,{type:`string`,description:`Path to the certificate authority (CA) for the certificate of your origin. This option should be used only if your certificate is not signed by Cloudflare.`}).option(`config-origin-request-connect-timeout`,{type:`number`,description:`Timeout for establishing a new TCP connection to your origin server. This excludes the time taken to establish TLS, which is controlled by tlsTimeout.`}).option(`config-origin-request-disable-chunked-encoding`,{type:`boolean`,description:`Disables chunked transfer encoding. Useful if you are running a WSGI server.`}).option(`config-origin-request-http2origin`,{type:`boolean`,description:`Attempt to connect to origin using HTTP2. Origin must be configured as https.`}).option(`config-origin-request-http-host-header`,{type:`string`,description:`Sets the HTTP Host header on requests sent to the local service.`}).option(`config-origin-request-keep-alive-connections`,{type:`number`,description:`Maximum number of idle keepalive connections between Tunnel and your origin. This does not restrict the total number of concurrent connections.`}).option(`config-origin-request-keep-alive-timeout`,{type:`number`,description:`Timeout after which an idle keepalive connection can be discarded.`}).option(`config-origin-request-match-snito-host`,{type:`boolean`,description:`Auto configure the Hostname on the origin server certificate.`}).option(`config-origin-request-no-happy-eyeballs`,{type:`boolean`,description:`Disable the “happy eyeballs” algorithm for IPv4/IPv6 fallback if your local network has misconfigured one of the protocols.`}).option(`config-origin-request-no-tlsverify`,{type:`boolean`,description:`Disables TLS verification of the certificate presented by your origin. Will allow any certificate from the origin to be accepted.`}).option(`config-origin-request-origin-server-name`,{type:`string`,description:`Hostname that cloudflared should expect from your origin server certificate.`}).option(`config-origin-request-proxy-type`,{type:`string`,description:`cloudflared starts a proxy server to translate HTTP traffic into TCP when proxying, for example, SSH or RDP. This configures what type of proxy will be started. Valid options are: "" for the regular proxy and "socks" for a SOCKS5 proxy.
|
|
7
|
-
`}).option(`config-origin-request-tcp-keep-alive`,{type:`number`,description:`The timeout after which a TCP keepalive packet is sent on a connection between Tunnel and the origin server.`}).option(`config-origin-request-tls-timeout`,{type:`number`,description:`Timeout for completing a TLS handshake to your origin server, if you have chosen to connect Tunnel to an HTTPS server.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).check(e=>{if([`config-origin-request-access-aud-tag`,`config-origin-request-access-required`,`config-origin-request-access-team-name`,`config-origin-request-ca-pool`,`config-origin-request-connect-timeout`,`config-origin-request-disable-chunked-encoding`,`config-origin-request-http2origin`,`config-origin-request-http-host-header`,`config-origin-request-keep-alive-connections`,`config-origin-request-keep-alive-timeout`,`config-origin-request-match-snito-host`,`config-origin-request-no-happy-eyeballs`,`config-origin-request-no-tlsverify`,`config-origin-request-origin-server-name`,`config-origin-request-proxy-type`,`config-origin-request-tcp-keep-alive`,`config-origin-request-tls-timeout`].some(t=>e[t]!==void 0)){let t=[`config-origin-request-access-aud-tag`,`config-origin-request-access-team-name`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --config-* flag is set`)}return!0})}const
|
|
7
|
+
`}).option(`config-origin-request-tcp-keep-alive`,{type:`number`,description:`The timeout after which a TCP keepalive packet is sent on a connection between Tunnel and the origin server.`}).option(`config-origin-request-tls-timeout`,{type:`number`,description:`Timeout for completing a TLS handshake to your origin server, if you have chosen to connect Tunnel to an HTTPS server.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).check(e=>{if([`config-origin-request-access-aud-tag`,`config-origin-request-access-required`,`config-origin-request-access-team-name`,`config-origin-request-ca-pool`,`config-origin-request-connect-timeout`,`config-origin-request-disable-chunked-encoding`,`config-origin-request-http2origin`,`config-origin-request-http-host-header`,`config-origin-request-keep-alive-connections`,`config-origin-request-keep-alive-timeout`,`config-origin-request-match-snito-host`,`config-origin-request-no-happy-eyeballs`,`config-origin-request-no-tlsverify`,`config-origin-request-origin-server-name`,`config-origin-request-proxy-type`,`config-origin-request-tcp-keep-alive`,`config-origin-request-tls-timeout`].some(t=>e[t]!==void 0)){let t=[`config-origin-request-access-aud-tag`,`config-origin-request-access-team-name`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --config-* flag is set`)}return!0})}const w={command:`update <tunnel-id>`,describe:`Update Tunnel configuration`,builder:C,handler:async e=>c({command:`tunnels config update`,classification:{safeFlags:[`config-origin-request-access-required`,`config-origin-request-disable-chunked-encoding`,`config-origin-request-http2origin`,`config-origin-request-match-snito-host`,`config-origin-request-no-happy-eyeballs`,`config-origin-request-no-tlsverify`,`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf tunnels config update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/cfd_tunnel/${e[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(e[`tunnel-id`]))}/configurations`,pathParams:{"tunnel-id":String(e[`tunnel-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({config:{originRequest:{access:{audTag:e[`config-origin-request-access-aud-tag`],required:e[`config-origin-request-access-required`],teamName:d(e[`config-origin-request-access-team-name`],`config-origin-request-access-team-name`,`text`)},caPool:d(e[`config-origin-request-ca-pool`],`config-origin-request-ca-pool`,`text`),connectTimeout:e[`config-origin-request-connect-timeout`],disableChunkedEncoding:e[`config-origin-request-disable-chunked-encoding`],http2Origin:e[`config-origin-request-http2origin`],httpHostHeader:d(e[`config-origin-request-http-host-header`],`config-origin-request-http-host-header`,`text`),keepAliveConnections:e[`config-origin-request-keep-alive-connections`],keepAliveTimeout:e[`config-origin-request-keep-alive-timeout`],matchSNItoHost:e[`config-origin-request-match-snito-host`],noHappyEyeballs:e[`config-origin-request-no-happy-eyeballs`],noTLSVerify:e[`config-origin-request-no-tlsverify`],originServerName:d(e[`config-origin-request-origin-server-name`],`config-origin-request-origin-server-name`,`text`),proxyType:d(e[`config-origin-request-proxy-type`],`config-origin-request-proxy-type`,`text`),tcpKeepAlive:e[`config-origin-request-tcp-keep-alive`],tlsTimeout:e[`config-origin-request-tls-timeout`]}}}):l(e.body)});return}let c=await i(e),f=e.local?t:await r();if(e.accountId=f,e.body){let t=l(e.body);a(await s(`Updating`,async()=>c.tunnels.config.update({...t,account_id:f,tunnel_id:e[`tunnel-id`]})),{successLabel:`Updated`});return}let p=u({config:{originRequest:{access:{audTag:e[`config-origin-request-access-aud-tag`],required:e[`config-origin-request-access-required`],teamName:d(e[`config-origin-request-access-team-name`],`config-origin-request-access-team-name`,`text`)},caPool:d(e[`config-origin-request-ca-pool`],`config-origin-request-ca-pool`,`text`),connectTimeout:e[`config-origin-request-connect-timeout`],disableChunkedEncoding:e[`config-origin-request-disable-chunked-encoding`],http2Origin:e[`config-origin-request-http2origin`],httpHostHeader:d(e[`config-origin-request-http-host-header`],`config-origin-request-http-host-header`,`text`),keepAliveConnections:e[`config-origin-request-keep-alive-connections`],keepAliveTimeout:e[`config-origin-request-keep-alive-timeout`],matchSNItoHost:e[`config-origin-request-match-snito-host`],noHappyEyeballs:e[`config-origin-request-no-happy-eyeballs`],noTLSVerify:e[`config-origin-request-no-tlsverify`],originServerName:d(e[`config-origin-request-origin-server-name`],`config-origin-request-origin-server-name`,`text`),proxyType:d(e[`config-origin-request-proxy-type`],`config-origin-request-proxy-type`,`text`),tcpKeepAlive:e[`config-origin-request-tcp-keep-alive`],tlsTimeout:e[`config-origin-request-tls-timeout`]}}});a(await s(`Updating`,async()=>c.tunnels.config.update({...p,account_id:f,tunnel_id:e[`tunnel-id`]})),{successLabel:`Updated`})})},T={command:`config`,describe:`Operations for config`,builder:e=>e.command(S).command(w).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function E(e){return e.usage(`$0 tunnels connections cleanup <tunnel-id>
|
|
8
8
|
|
|
9
|
-
Removes a connection (aka Cloudflare Tunnel Connector) from a Cloudflare Tunnel independently of its current state. If no connector id (client_id) is provided all connectors will be removed. We recommend running this command after rotating tokens.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`client-id`,{type:`string`,description:`UUID of the Cloudflare Tunnel connector.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const
|
|
10
|
-
`);return}a(await s(`Deleting`,async()=>l.tunnels.connections.cleanup({account_id:u,tunnel_id:e[`tunnel-id`],...c})),{successLabel:`Deleted`})})};function
|
|
9
|
+
Removes a connection (aka Cloudflare Tunnel Connector) from a Cloudflare Tunnel independently of its current state. If no connector id (client_id) is provided all connectors will be removed. We recommend running this command after rotating tokens.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`client-id`,{type:`string`,description:`UUID of the Cloudflare Tunnel connector.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const D={command:`cleanup <tunnel-id>`,describe:`Clean up Cloudflare Tunnel connections`,builder:E,handler:async e=>c({command:`tunnels connections cleanup`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{let c={client_id:e[`client-id`]};if(e.dryRun){o({command:`cf tunnels connections cleanup`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/cfd_tunnel/${e[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(e[`tunnel-id`]))}/connections`,pathParams:{"tunnel-id":String(e[`tunnel-id`]??``)},query:c,bodyKind:`none`});return}let l=await i(e),u=e.local?t:await r();if(e.accountId=u,!await p({force:!!e.force,message:`This operation removes Cloudflare Tunnel connections.`})){process.stderr.write(`Aborted.
|
|
10
|
+
`);return}a(await s(`Deleting`,async()=>l.tunnels.connections.cleanup({account_id:u,tunnel_id:e[`tunnel-id`],...c})),{successLabel:`Deleted`})})};function O(e){return e.usage(`$0 tunnels connections list
|
|
11
11
|
|
|
12
|
-
Lists the connections for a Cloudflare Tunnel, including connector IDs, cloudflared versions, and Cloudflare locations.`).option(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
12
|
+
Lists the connections for a Cloudflare Tunnel, including connector IDs, cloudflared versions, and Cloudflare locations.`).option(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const k={command:`list`,describe:`List Cloudflare Tunnel connections`,builder:O,handler:async e=>c({command:`tunnels connections list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf tunnels connections list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/cfd_tunnel/${e[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(e[`tunnel-id`]))}/connections`,pathParams:{"tunnel-id":String(e[`tunnel-id`]??``)},bodyKind:`none`});return}let c=await i(e),l=e.local?t:await r();e.accountId=l,a(await s(`Loading`,async()=>c.tunnels.connections.list({account_id:l,tunnel_id:e[`tunnel-id`]})),{successLabel:`Loaded`})})},A={command:`connections`,describe:`Operations for connections`,builder:e=>e.command(D).command(k).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function j(e){return e.usage(`$0 tunnels connectors get <connector-id>
|
|
13
13
|
|
|
14
|
-
Retrieves a connector and its connection details for a Cloudflare Tunnel, including its cloudflared version, architecture, and connected Cloudflare locations.`).positional(`connector-id`,{type:`string`,description:`UUID of the Cloudflare Tunnel connector.`,demandOption:!0}).option(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
14
|
+
Retrieves a connector and its connection details for a Cloudflare Tunnel, including its cloudflared version, architecture, and connected Cloudflare locations.`).positional(`connector-id`,{type:`string`,description:`UUID of the Cloudflare Tunnel connector.`,demandOption:!0}).option(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const M={command:`get <connector-id>`,describe:`Get Cloudflare Tunnel connector`,builder:j,handler:async e=>c({command:`tunnels connectors get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf tunnels connectors get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/cfd_tunnel/${e[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(e[`tunnel-id`]))}/connectors/${e[`connector-id`]==null?`<connector-id>`:encodeURIComponent(String(e[`connector-id`]))}`,pathParams:{"tunnel-id":String(e[`tunnel-id`]??``),"connector-id":String(e[`connector-id`]??``)},bodyKind:`none`});return}let c=await i(e),l=e.local?t:await r();e.accountId=l,a(await s(`Loading`,async()=>c.tunnels.connectors.get({account_id:l,tunnel_id:e[`tunnel-id`],connector_id:e[`connector-id`]})),{successLabel:`Loaded`})})},N={command:`connectors`,describe:`Operations for connectors`,builder:e=>e.command(M).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function P(e){return e.usage(`$0 tunnels create
|
|
15
15
|
|
|
16
|
-
Creates a remotely or locally managed Cloudflare Tunnel in an account. After creation, retrieve its token and run cloudflared to establish the connector connection.`).option(`config-src`,{type:`string`,description:"Indicates if this is a locally or remotely configured tunnel. If `local`, manage the tunnel using a YAML file on the origin machine. If `cloudflare`, manage the tunnel on the Zero Trust dashboard.",choices:[`local`,`cloudflare`],default:`local`}).option(`name`,{type:`string`,description:`A user-friendly name for a tunnel.`}).option(`tunnel-secret`,{type:`string`,description:`Sets the password required to run a locally-managed tunnel. Must be at least 32 bytes and encoded as a base64 string.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const
|
|
16
|
+
Creates a remotely or locally managed Cloudflare Tunnel in an account. After creation, retrieve its token and run cloudflared to establish the connector connection.`).option(`config-src`,{type:`string`,description:"Indicates if this is a locally or remotely configured tunnel. If `local`, manage the tunnel using a YAML file on the origin machine. If `cloudflare`, manage the tunnel on the Zero Trust dashboard.",choices:[`local`,`cloudflare`],default:`local`}).option(`name`,{type:`string`,description:`A user-friendly name for a tunnel.`}).option(`tunnel-secret`,{type:`string`,description:`Sets the password required to run a locally-managed tunnel. Must be at least 32 bytes and encoded as a base64 string.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const F={command:`create`,describe:`Create a Cloudflare Tunnel`,builder:P,handler:async e=>c({command:`tunnels create`,classification:{safeFlags:[`config-src`,`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf tunnels create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/cfd_tunnel`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({config_src:d(e[`config-src`],`config-src`,`text`),name:d(e.name,`name`,`text`),tunnel_secret:d(e[`tunnel-secret`],`tunnel-secret`,`text`)}):l(e.body)});return}let c=await i(e),p=e.local?t:await r();if(e.accountId=p,e.body){let t=l(e.body);a(await s(`Creating`,async()=>c.tunnels.create({...t,account_id:p})),{successLabel:`Created`});return}e.name===void 0&&(e.name=await f(`name`,`A user-friendly name for a tunnel.`));let m=u({config_src:d(e[`config-src`],`config-src`,`text`),name:d(e.name,`name`,`text`),tunnel_secret:d(e[`tunnel-secret`],`tunnel-secret`,`text`)});a(await s(`Creating`,async()=>c.tunnels.create({...m,account_id:p})),{successLabel:`Created`})})};function I(e){return e.usage(`$0 tunnels delete <tunnel-id>
|
|
17
17
|
|
|
18
|
-
Permanently deletes a Cloudflare Tunnel from an account. The tunnel must have no active connections.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const
|
|
19
|
-
`);return}a(await s(`Deleting`,async()=>c.tunnels.delete({account_id:l,tunnel_id:e[`tunnel-id`]})),{successLabel:`Deleted`})})};function
|
|
18
|
+
Permanently deletes a Cloudflare Tunnel from an account. The tunnel must have no active connections.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const L={command:`delete <tunnel-id>`,describe:`Delete a Cloudflare Tunnel`,builder:I,handler:async e=>c({command:`tunnels delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){o({command:`cf tunnels delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/cfd_tunnel/${e[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(e[`tunnel-id`]))}`,pathParams:{"tunnel-id":String(e[`tunnel-id`]??``)},bodyKind:`none`});return}let c=await i(e),l=e.local?t:await r();if(e.accountId=l,!await p({force:!!e.force,message:`This operation permanently deletes a Cloudflare Tunnel.`})){process.stderr.write(`Aborted.
|
|
19
|
+
`);return}a(await s(`Deleting`,async()=>c.tunnels.delete({account_id:l,tunnel_id:e[`tunnel-id`]})),{successLabel:`Deleted`})})};function R(e){return e.usage(`$0 tunnels edit <tunnel-id>
|
|
20
20
|
|
|
21
|
-
Updates the name or secret of an existing Cloudflare Tunnel.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`name`,{type:`string`,description:`A user-friendly name for a tunnel.`}).option(`tunnel-secret`,{type:`string`,description:`Sets the password required to run a locally-managed tunnel. Must be at least 32 bytes and encoded as a base64 string.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const
|
|
21
|
+
Updates the name or secret of an existing Cloudflare Tunnel.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`name`,{type:`string`,description:`A user-friendly name for a tunnel.`}).option(`tunnel-secret`,{type:`string`,description:`Sets the password required to run a locally-managed tunnel. Must be at least 32 bytes and encoded as a base64 string.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const z={command:`edit <tunnel-id>`,describe:`Update a Cloudflare Tunnel`,builder:R,handler:async e=>c({command:`tunnels edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf tunnels edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/cfd_tunnel/${e[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(e[`tunnel-id`]))}`,pathParams:{"tunnel-id":String(e[`tunnel-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({name:d(e.name,`name`,`text`),tunnel_secret:d(e[`tunnel-secret`],`tunnel-secret`,`text`)}):l(e.body)});return}let c=await i(e),f=e.local?t:await r();if(e.accountId=f,e.body){let t=l(e.body);a(await s(`Updating`,async()=>c.tunnels.edit({...t,account_id:f,tunnel_id:e[`tunnel-id`]})),{successLabel:`Updated`});return}let p=u({name:d(e.name,`name`,`text`),tunnel_secret:d(e[`tunnel-secret`],`tunnel-secret`,`text`)});a(await s(`Updating`,async()=>c.tunnels.edit({...p,account_id:f,tunnel_id:e[`tunnel-id`]})),{successLabel:`Updated`})})};function B(e){return e.usage(`$0 tunnels get <tunnel-id>
|
|
22
22
|
|
|
23
|
-
Fetches a single Cloudflare Tunnel.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
23
|
+
Fetches a single Cloudflare Tunnel.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const V={command:`get <tunnel-id>`,describe:`Get a Cloudflare Tunnel`,builder:B,handler:async e=>c({command:`tunnels get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf tunnels get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/cfd_tunnel/${e[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(e[`tunnel-id`]))}`,pathParams:{"tunnel-id":String(e[`tunnel-id`]??``)},bodyKind:`none`});return}let c=await i(e),l=e.local?t:await r();e.accountId=l,a(await s(`Loading`,async()=>c.tunnels.get({account_id:l,tunnel_id:e[`tunnel-id`]})),{successLabel:`Loaded`})})};function H(e){return e.usage(`$0 tunnels list
|
|
24
24
|
|
|
25
|
-
Lists and filters all types of Tunnels in an account.`).option(`name`,{type:`string`,description:`A user-friendly name for the tunnel.`}).option(`is-deleted`,{type:`boolean`,description:"If `true`, only include deleted tunnels. If `false`, exclude deleted tunnels. If empty, all tunnels will be included."}).option(`existed-at`,{type:`string`,description:`If provided, include only resources that were created (and not deleted) before this time. URL encoded.`}).option(`uuid`,{type:`string`,description:`UUID of the tunnel.`}).option(`was-active-at`,{type:`string`,description:`Was active at`}).option(`was-inactive-at`,{type:`string`,description:`Was inactive at`}).option(`include-prefix`,{type:`string`,description:`Include prefix`}).option(`exclude-prefix`,{type:`string`,description:`Exclude prefix`}).option(`tun-types`,{type:`string`,description:`The types of tunnels to filter by, separated by commas.`}).option(`status`,{type:`string`,description:"The status of the tunnel. Valid values are `inactive` (tunnel has never been run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy state), `healthy` (tunnel is active and able to serve traffic), or `down` (tunnel can not serve traffic as it has no connections to the Cloudflare Edge).",choices:[`inactive`,`degraded`,`healthy`,`down`]}).option(`per-page`,{type:`number`,description:`Number of results to display.`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
25
|
+
Lists and filters all types of Tunnels in an account.`).option(`name`,{type:`string`,description:`A user-friendly name for the tunnel.`}).option(`is-deleted`,{type:`boolean`,description:"If `true`, only include deleted tunnels. If `false`, exclude deleted tunnels. If empty, all tunnels will be included."}).option(`existed-at`,{type:`string`,description:`If provided, include only resources that were created (and not deleted) before this time. URL encoded.`}).option(`uuid`,{type:`string`,description:`UUID of the tunnel.`}).option(`was-active-at`,{type:`string`,description:`Was active at`}).option(`was-inactive-at`,{type:`string`,description:`Was inactive at`}).option(`include-prefix`,{type:`string`,description:`Include prefix`}).option(`exclude-prefix`,{type:`string`,description:`Exclude prefix`}).option(`tun-types`,{type:`string`,description:`The types of tunnels to filter by, separated by commas.`}).option(`status`,{type:`string`,description:"The status of the tunnel. Valid values are `inactive` (tunnel has never been run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy state), `healthy` (tunnel is active and able to serve traffic), or `down` (tunnel can not serve traffic as it has no connections to the Cloudflare Edge).",choices:[`inactive`,`degraded`,`healthy`,`down`]}).option(`per-page`,{type:`number`,description:`Number of results to display.`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const U={command:`list`,describe:`List All Tunnels`,builder:m(H),handler:async e=>c({command:`tunnels list`,classification:{safeFlags:[`is-deleted`,`status`,`dry-run`]}},e,async()=>{let c={name:e.name,is_deleted:e[`is-deleted`],existed_at:e[`existed-at`],uuid:e.uuid,was_active_at:e[`was-active-at`],was_inactive_at:e[`was-inactive-at`],include_prefix:e[`include-prefix`],exclude_prefix:e[`exclude-prefix`],tun_types:e[`tun-types`],status:e.status,per_page:e[`per-page`],page:e.page};if(e.dryRun){o({command:`cf tunnels list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/tunnels`,pathParams:{},query:c,bodyKind:`none`});return}let l=await i(e),u=e.local?t:await r();e.accountId=u,a(await s(`Loading`,async()=>l.tunnels.list({account_id:u,...c})),{successLabel:`Loaded`})})};function W(e){return e.usage(`$0 tunnels management-token create <tunnel-id>
|
|
26
26
|
|
|
27
|
-
Creates a short-lived management token for the requested Tunnel management resources, such as streaming logs. Treat the token as a secret.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`resources`,{type:`string`,array:!0,description:`The resources field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const
|
|
27
|
+
Creates a short-lived management token for the requested Tunnel management resources, such as streaming logs. Treat the token as a secret.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`resources`,{type:`string`,array:!0,description:`The resources field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const G={command:`create <tunnel-id>`,describe:`Get a Cloudflare Tunnel management token`,builder:W,handler:async e=>c({command:`tunnels management-token create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf tunnels management-token create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/cfd_tunnel/${e[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(e[`tunnel-id`]))}/management`,pathParams:{"tunnel-id":String(e[`tunnel-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({resources:e.resources}):l(e.body)});return}let c=await i(e),d=e.local?t:await r();if(e.accountId=d,e.body){let t=l(e.body);a(await s(`Creating`,async()=>c.tunnels.managementToken.create({...t,account_id:d,tunnel_id:e[`tunnel-id`]})),{successLabel:`Created`});return}if(e.resources===void 0)throw Error(`--resources is required (or pass --body with this field set).`);let f=u({resources:e.resources});a(await s(`Creating`,async()=>c.tunnels.managementToken.create({...f,account_id:d,tunnel_id:e[`tunnel-id`]})),{successLabel:`Created`})})},K={command:`management-token`,describe:`Operations for management-token`,builder:e=>e.command(G).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function q(e){return e.usage(`$0 tunnels token get <tunnel-id>
|
|
28
28
|
|
|
29
|
-
Retrieves the token used to run cloudflared and associate it with a specific Cloudflare Tunnel. Treat the token as a secret.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
29
|
+
Retrieves the token used to run cloudflared and associate it with a specific Cloudflare Tunnel. Treat the token as a secret.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const J={command:`get <tunnel-id>`,describe:`Get a Cloudflare Tunnel token`,builder:q,handler:async e=>c({command:`tunnels token get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf tunnels token get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/cfd_tunnel/${e[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(e[`tunnel-id`]))}/token`,pathParams:{"tunnel-id":String(e[`tunnel-id`]??``)},bodyKind:`none`});return}let c=await i(e),l=e.local?t:await r();e.accountId=l,a(await s(`Loading`,async()=>c.tunnels.token.get({account_id:l,tunnel_id:e[`tunnel-id`]})),{successLabel:`Loaded`})})},Y={command:`token`,describe:`Operations for token`,builder:e=>e.command(J).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},X={command:`tunnels`,describe:`tunnels`,builder:e=>e.command(F).command(L).command(h).command(z).command(V).command(U).command(g).command(_).command(v).command(y).command(b).command(T).command(A).command(N).command(K).command(Y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{X as default};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{t as e}from"./local-B5oRPTEN.mjs";import{a as t,t as n}from"./context-CEOHpZgd.mjs";import{r}from"./auth-BIr56Mbx.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-A61dRbXl.mjs";import{t as s}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{a as d,n as f}from"./prompt-CGUzvBgY.mjs";import{t as p}from"./cli-types-DoVT5q_M.mjs";function m(e){return e.usage(`$0 turnstile widgets create
|
|
3
|
+
|
|
4
|
+
Creates a Turnstile widget for an account.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of items per page.`}).option(`order`,{type:`string`,description:`Field to order widgets by.`,choices:[`id`,`sitekey`,`name`,`created_on`,`modified_on`]}).option(`direction`,{type:`string`,description:`Direction to order widgets.`,choices:[`asc`,`desc`]}).option(`filter`,{type:`string`,description:"Filter widgets by field. The `name` field uses case-insensitive\nsubstring matching; `sitekey` uses exact matching.\nFormat: `field:value`\n\nSupported fields:\n- `name` - Filter by widget name (e.g., `filter=name:login-form`)\n- `sitekey` - Filter by sitekey (e.g., `filter=sitekey:0x4AAA`)\n\nReturns 400 Bad Request if the field is unsupported or format is invalid.\nAn empty filter value returns all results."}).option(`bot-fight-mode`,{type:`boolean`,description:`If bot_fight_mode is set to \`true\`, Cloudflare issues computationally
|
|
5
|
+
expensive challenges in response to malicious bots (ENT only).
|
|
6
|
+
`}).option(`clearance-level`,{type:`string`,description:`If Turnstile is embedded on a Cloudflare site and the widget should grant challenge clearance,
|
|
7
|
+
this setting can determine the clearance level to be set
|
|
8
|
+
`,choices:[`no_clearance`,`jschallenge`,`managed`,`interactive`]}).option(`domains`,{type:`string`,array:!0,description:`The domains field`}).option(`ephemeral-id`,{type:`boolean`,description:`Return the Ephemeral ID in /siteverify (ENT only).
|
|
9
|
+
`}).option(`name`,{type:`string`,description:`Human readable widget name. Not unique. Cloudflare suggests that you
|
|
10
|
+
set this to a meaningful string to make it easier to identify your
|
|
11
|
+
widget, and where it is used.
|
|
12
|
+
`}).option(`offlabel`,{type:`boolean`,description:`Do not show any Cloudflare branding on the widget (ENT only).
|
|
13
|
+
`}).option(`region`,{type:`string`,description:`Region where this widget can be used. This cannot be changed after creation.
|
|
14
|
+
`,choices:[`world`,`china`],default:`world`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const h={command:`create`,describe:`Create a Turnstile Widget`,builder:p(m),handler:async f=>s({command:`turnstile widgets create`,classification:{safeFlags:[`order`,`direction`,`bot-fight-mode`,`clearance-level`,`ephemeral-id`,`offlabel`,`region`,`dry-run`]}},f,async()=>{let s={page:f.page,per_page:f[`per-page`],order:f.order,direction:f.direction,filter:f.filter};if(f.dryRun){a({command:`cf turnstile widgets create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/challenges/widgets`,pathParams:{},query:s,bodyKind:`json`,body:f.body===void 0?l({bot_fight_mode:f[`bot-fight-mode`],clearance_level:u(f[`clearance-level`],`clearance-level`,`text`),domains:f.domains,ephemeral_id:f[`ephemeral-id`],name:u(f.name,`name`,`text`),offlabel:f.offlabel,region:u(f.region,`region`,`text`)}):c(f.body)});return}let p=await r(f),m=f.local?e:await n();if(f.accountId=m,f.body){let e=c(f.body);new URLSearchParams(Object.entries(s).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString(),i(await o(`Creating`,async()=>p.turnstile.widgets.create({...e,account_id:m,...s})),{successLabel:`Created`});return}if(f.domains===void 0)throw Error(`--domains is required (or pass --body with this field set).`);f.name===void 0&&(f.name=await d(`name`,`Human readable widget name. Not unique. Cloudflare suggests that you set this to a meaningful string to make it easier to identify your widget, and where it is used. `));let h=l({bot_fight_mode:f[`bot-fight-mode`],clearance_level:u(f[`clearance-level`],`clearance-level`,`text`),domains:f.domains,ephemeral_id:f[`ephemeral-id`],name:u(f.name,`name`,`text`),offlabel:f.offlabel,region:u(f.region,`region`,`text`)});new URLSearchParams(Object.entries(s).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString(),i(await o(`Creating`,async()=>p.turnstile.widgets.create({...h,account_id:m,...s})),{successLabel:`Created`})})};function g(e){return e.usage(`$0 turnstile widgets delete <sitekey>
|
|
15
|
+
|
|
16
|
+
Deletes a Turnstile widget from an account.`).positional(`sitekey`,{type:`string`,description:`Unique identifier for a Turnstile widget.`,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 _={command:`delete <sitekey>`,describe:`Delete a Turnstile Widget`,builder:g,handler:async c=>s({command:`turnstile widgets delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf turnstile widgets delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/challenges/widgets/${c.sitekey==null?`<sitekey>`:encodeURIComponent(String(c.sitekey))}`,pathParams:{sitekey:String(c.sitekey??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();if(c.accountId=l,!await f({force:!!c.force})){process.stderr.write(`Aborted.
|
|
17
|
+
`);return}i(await o(`Deleting`,async()=>s.turnstile.widgets.delete({account_id:l,sitekey:c.sitekey})),{successLabel:`Deleted`})})};function v(e){return e.usage(`$0 turnstile widgets get <sitekey>
|
|
18
|
+
|
|
19
|
+
Returns the configuration of a Turnstile widget.`).positional(`sitekey`,{type:`string`,description:`Unique identifier for a Turnstile widget.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const y={command:`get <sitekey>`,describe:`Turnstile Widget Details`,builder:v,handler:async c=>s({command:`turnstile widgets get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf turnstile widgets get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/challenges/widgets/${c.sitekey==null?`<sitekey>`:encodeURIComponent(String(c.sitekey))}`,pathParams:{sitekey:String(c.sitekey??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.turnstile.widgets.get({account_id:l,sitekey:c.sitekey})),{successLabel:`Loaded`})})};function b(e){return e.usage(`$0 turnstile widgets list
|
|
20
|
+
|
|
21
|
+
Lists Turnstile widgets for an account.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of items per page.`}).option(`order`,{type:`string`,description:`Field to order widgets by.`,choices:[`id`,`sitekey`,`name`,`created_on`,`modified_on`]}).option(`direction`,{type:`string`,description:`Direction to order widgets.`,choices:[`asc`,`desc`]}).option(`filter`,{type:`string`,description:"Filter widgets by field. The `name` field uses case-insensitive\nsubstring matching; `sitekey` uses exact matching.\nFormat: `field:value`\n\nSupported fields:\n- `name` - Filter by widget name (e.g., `filter=name:login-form`)\n- `sitekey` - Filter by sitekey (e.g., `filter=sitekey:0x4AAA`)\n\nReturns 400 Bad Request if the field is unsupported or format is invalid.\nAn empty filter value returns all results."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`list`,describe:`List Turnstile Widgets`,builder:p(b),handler:async c=>s({command:`turnstile widgets list`,classification:{safeFlags:[`order`,`direction`,`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`],order:c.order,direction:c.direction,filter:c.filter};if(c.dryRun){a({command:`cf turnstile widgets list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/challenges/widgets`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.turnstile.widgets.list({account_id:u,...s})),{successLabel:`Loaded`})})};function S(e){return e.usage("$0 turnstile widgets rotate-secret <sitekey>\n\nGenerates a new secret key for this widget. If `invalidate_immediately` is set to `false`, the previous secret remains valid for 2 hours. Note that secrets cannot be rotated again during the grace period.").positional(`sitekey`,{type:`string`,description:`Unique identifier for a Turnstile widget.`,demandOption:!0}).option(`invalidate-immediately`,{type:`boolean`,description:"If `invalidate_immediately` is set to `false`, the previous secret will\nremain valid for two hours. Otherwise, the secret is immediately\ninvalidated, and requests using it will be rejected.\n",default:!1}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const C={command:`rotate-secret <sitekey>`,describe:`Rotate Secret for a Turnstile Widget`,builder:S,handler:async u=>s({command:`turnstile widgets rotate-secret`,classification:{safeFlags:[`invalidate-immediately`,`dry-run`]}},u,async()=>{if(u.dryRun){a({command:`cf turnstile widgets rotate-secret`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/challenges/widgets/${u.sitekey==null?`<sitekey>`:encodeURIComponent(String(u.sitekey))}/rotate_secret`,pathParams:{sitekey:String(u.sitekey??``)},bodyKind:`json`,body:u.body===void 0?l({invalidate_immediately:u[`invalidate-immediately`]}):c(u.body)});return}let s=await r(u),d=u.local?e:await n();if(u.accountId=d,u.body){let e=c(u.body);i(await o(`Creating`,async()=>s.turnstile.widgets.rotateSecret({...e,account_id:d,sitekey:u.sitekey})),{successLabel:`Created`});return}let f=l({invalidate_immediately:u[`invalidate-immediately`]});i(await o(`Creating`,async()=>s.turnstile.widgets.rotateSecret({...f,account_id:d,sitekey:u.sitekey})),{successLabel:`Created`})})};function w(e){return e.usage(`$0 turnstile widgets update <sitekey>
|
|
22
|
+
|
|
23
|
+
Updates the configuration of a Turnstile widget.`).positional(`sitekey`,{type:`string`,description:`Unique identifier for a Turnstile widget.`,demandOption:!0}).option(`bot-fight-mode`,{type:`boolean`,description:`If bot_fight_mode is set to \`true\`, Cloudflare issues computationally
|
|
24
|
+
expensive challenges in response to malicious bots (ENT only).
|
|
25
|
+
`}).option(`clearance-level`,{type:`string`,description:`If Turnstile is embedded on a Cloudflare site and the widget should grant challenge clearance,
|
|
26
|
+
this setting can determine the clearance level to be set
|
|
27
|
+
`,choices:[`no_clearance`,`jschallenge`,`managed`,`interactive`]}).option(`domains`,{type:`string`,array:!0,description:`The domains field`}).option(`ephemeral-id`,{type:`boolean`,description:`Return the Ephemeral ID in /siteverify (ENT only).
|
|
28
|
+
`}).option(`name`,{type:`string`,description:`Human readable widget name. Not unique. Cloudflare suggests that you
|
|
29
|
+
set this to a meaningful string to make it easier to identify your
|
|
30
|
+
widget, and where it is used.
|
|
31
|
+
`}).option(`offlabel`,{type:`boolean`,description:`Do not show any Cloudflare branding on the widget (ENT only).
|
|
32
|
+
`}).option(`region`,{type:`string`,description:`Region where this widget can be used. This cannot be changed after creation.
|
|
33
|
+
`,choices:[`world`,`china`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const T={command:`update <sitekey>`,describe:`Update a Turnstile Widget`,builder:w,handler:async f=>s({command:`turnstile widgets update`,classification:{safeFlags:[`bot-fight-mode`,`clearance-level`,`ephemeral-id`,`offlabel`,`region`,`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf turnstile widgets update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/challenges/widgets/${f.sitekey==null?`<sitekey>`:encodeURIComponent(String(f.sitekey))}`,pathParams:{sitekey:String(f.sitekey??``)},bodyKind:`json`,body:f.body===void 0?l({bot_fight_mode:f[`bot-fight-mode`],clearance_level:u(f[`clearance-level`],`clearance-level`,`text`),domains:f.domains,ephemeral_id:f[`ephemeral-id`],name:u(f.name,`name`,`text`),offlabel:f.offlabel,region:u(f.region,`region`,`text`)}):c(f.body)});return}let s=await r(f),p=f.local?e:await n();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Updating`,async()=>s.turnstile.widgets.update({...e,account_id:p,sitekey:f.sitekey})),{successLabel:`Updated`});return}if(f.domains===void 0)throw Error(`--domains is required (or pass --body with this field set).`);f.name===void 0&&(f.name=await d(`name`,`Human readable widget name. Not unique. Cloudflare suggests that you set this to a meaningful string to make it easier to identify your widget, and where it is used. `));let m=l({bot_fight_mode:f[`bot-fight-mode`],clearance_level:u(f[`clearance-level`],`clearance-level`,`text`),domains:f.domains,ephemeral_id:f[`ephemeral-id`],name:u(f.name,`name`,`text`),offlabel:f.offlabel,region:u(f.region,`region`,`text`)});i(await o(`Updating`,async()=>s.turnstile.widgets.update({...m,account_id:p,sitekey:f.sitekey})),{successLabel:`Updated`})})},E={command:`widgets`,describe:`Turnstile widget configurations — site keys, secret rotation, and challenge mode settings`,builder:e=>e.command(h).command(_).command(y).command(x).command(C).command(T).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},D={command:`turnstile`,describe:`CAPTCHA-free bot verification widgets that protect forms and APIs without degrading user experience`,builder:e=>e.command(E).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{D as default};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{r as e}from"./theme-BIWQFmZ0.mjs";import"./banner-ClclgnBn.mjs";const t={bar:`│`,top:`┌`,bottom:`└`};function n(n,i,a){let o=a?.title??`Error`,s=e.error(t.bar),c=e.error(t.top),l=e.error(t.bottom),u=Math.max(20,(process.stdout.columns||80)-2),d=[];if(d.push(``),d.push(`${c} ${e.error(e.bold(o))}`),a?.rawMessage)for(let e of n.split(`
|
|
3
|
+
`))d.push(e.length>0?`${s} ${e}`:s);else for(let t of r(n,u))d.push(t.length>0?`${s} ${e.error(e.bold(t))}`:s);if(i){d.push(s);for(let t of r(i,u))d.push(t.length>0?`${s} ${e.muted(t)}`:s)}return d.push(l),d.join(`
|
|
4
|
+
`)}function r(e,t){let n=[];for(let r of e.split(`
|
|
5
|
+
`)){if(r.length<=t){n.push(r);continue}let e=r.split(/\s+/),i=``;for(let r of e){if(!i){i=r;continue}i.length+1+r.length<=t?i+=` `+r:(n.push(i),i=r)}i&&n.push(i)}return n}export{n as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{i as e,n as t}from"./source-38bULAR8.mjs";import{n}from"./version-C0pInAZ9.mjs";import{i as r}from"./cf-Bh_fTFIj.mjs";import{r as i,t as a}from"./gt-DmcMNPX6.mjs";import{closeSync as o,mkdirSync as s,openSync as c,readFileSync as l,renameSync as u,statSync as d,unlinkSync as f,writeFileSync as p}from"node:fs";import{dirname as m,join as h}from"node:path";import{fileURLToPath as g}from"node:url";import{spawn as _}from"node:child_process";var v=t(((e,t)=>{let n=i();t.exports=(e,t)=>new n(e,t).major})),y=t(((e,t)=>{let n=i();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),b=t(((e,t)=>{let n=y();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),x=t(((e,t)=>{let n=y();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),S=e(a(),1),C=e(v(),1),w=e(b(),1),T=e(x(),1);const E=1440*60*1e3;function D(e){return(0,w.default)(e)?.includes(`beta`)?`beta`:`latest`}function O(e=n){return h(r(),`cache`,`update-check-${D(e)}.json`)}function k(e=O()){try{let t=JSON.parse(l(e,`utf8`));if(typeof t!=`object`||!t||Array.isArray(t))return{};let n=t;return{lastAttemptedAt:typeof n.lastAttemptedAt==`number`&&Number.isFinite(n.lastAttemptedAt)?n.lastAttemptedAt:void 0,lastSuccessfulAt:typeof n.lastSuccessfulAt==`number`&&Number.isFinite(n.lastSuccessfulAt)?n.lastSuccessfulAt:void 0,latestVersion:typeof n.latestVersion==`string`&&(0,T.default)(n.latestVersion)?n.latestVersion:void 0}}catch{return{}}}function A(e,t=O()){let n=`${t}.${process.pid}.tmp`;try{return s(m(t),{recursive:!0}),p(n,`${JSON.stringify(e)}\n`,{encoding:`utf8`,mode:384}),u(n,t),!0}catch{try{f(n)}catch{}return!1}}function j(e,t,n){let r=`${e}.lock`,i;try{s(m(e),{recursive:!0});try{i=c(r,`wx`,384)}catch{try{if(t-d(r).mtimeMs<=5e3)return;f(r),i=c(r,`wx`,384)}catch{return}}return n()}catch{return}finally{if(i!==void 0)try{o(i),f(r)}catch{}}}function M(e,t){if(!(0,T.default)(e)||!t.latestVersion||!(0,S.default)(t.latestVersion,e))return;let n=(0,C.default)(t.latestVersion)>(0,C.default)(e);return{latestVersion:t.latestVersion,isMajor:n}}function N(e,t=O(e)){return M(e,k(t))}function P(){let e=import.meta.url.endsWith(`.ts`),t=new URL(e?`../update-check-worker.ts`:`./update-check-worker.mjs`,import.meta.url),n=e?[...process.execArgv,g(t)]:[g(t)];_(process.execPath,n,{detached:!0,stdio:`ignore`,windowsHide:!0}).unref()}function F(e={}){let t=e.cachePath??O(e.currentVersion??n),r=e.now??Date.now();if(j(t,r,()=>{let e=k(t);return e.lastAttemptedAt!==void 0&&r-e.lastAttemptedAt<864e5?!1:A({...e,lastAttemptedAt:r},t)}))try{(e.spawnWorker??P)()}catch{}}async function I(e,t,r,i){if(!(0,T.default)(t))return{status:`failed`};let a=await i(`https://registry.npmjs.org/${encodeURIComponent(e)}/${r}`,{headers:{accept:`application/json`,"user-agent":`cf-cli/${n}`},signal:AbortSignal.timeout(3e3)});if(!a.ok)return{status:`failed`};let o=await a.json();if(typeof o!=`object`||!o||Array.isArray(o))return{status:`failed`};let s=o;return s.name!==e||typeof s.version!=`string`||!(0,T.default)(s.version)?{status:`failed`}:(0,S.default)(s.version,t)?{status:`update-available`,latest:s.version}:{status:`up-to-date`}}async function L(e={}){let t=e.currentVersion??n,r=e.cachePath??O(t),i=e.now??Date.now();try{let n=await(e.check??((t,n,r)=>I(t,n,r,e.fetch??globalThis.fetch)))(`cf`,t,`latest`);if(n.status===`failed`)return;let a=n.status===`update-available`?n.latest:t;if(!(0,T.default)(a))return;A({...k(r),latestVersion:a,lastSuccessfulAt:i},r)}catch{}}export{L as i,N as n,F as r,E as t};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{i as e}from"./update-check-
|
|
2
|
+
import{i as e}from"./update-check-DC0qP_8z.mjs";await e();export{};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-B5oRPTEN.mjs";import{a as t,t as n}from"./context-CEOHpZgd.mjs";import{r}from"./auth-BIr56Mbx.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-A61dRbXl.mjs";import{t as s}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";function c(e){return e.usage(`$0 url-info get
|
|
3
3
|
|
|
4
|
-
Return submitted URLs based on ID`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`get`,describe:`Read submitted URLs by ID`,builder:c,handler:async c=>s({command:`url-info get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf url-info get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
4
|
+
Return submitted URLs based on ID`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`get`,describe:`Read submitted URLs by ID`,builder:c,handler:async c=>s({command:`url-info get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf url-info get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/brand-protection/url-info`,pathParams:{},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.urlInfo.get({account_id:l})),{successLabel:`Loaded`})})},u={command:`url-info`,describe:`url-info`,builder:e=>e.command(l).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{u as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{
|
|
2
|
+
import{i as e}from"./context-CEOHpZgd.mjs";import{r as t}from"./auth-BIr56Mbx.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-A61dRbXl.mjs";import{t as a}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{i as l,n as u}from"./prompt-CGUzvBgY.mjs";function d(e){return e.usage(`$0 url-normalization delete
|
|
3
3
|
|
|
4
4
|
Deletes the URL Normalization settings.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const f={command:`delete`,describe:`Delete URL Normalization settings`,builder:d,handler:async o=>a({command:`url-normalization delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf url-normalization delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/url_normalization`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});if(o.zoneId=s,!await u({force:!!o.force})){process.stderr.write(`Aborted.
|
|
5
5
|
`);return}n(await i(`Deleting`,async()=>a.urlNormalization.delete({zone_id:s})),{successLabel:`Deleted`})})};function p(e){return e.usage(`$0 url-normalization get
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-B5oRPTEN.mjs";import{a as t,t as n}from"./context-CEOHpZgd.mjs";import{r}from"./auth-BIr56Mbx.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-A61dRbXl.mjs";import{t as s}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{a as d}from"./prompt-CGUzvBgY.mjs";import{n as f,t as p}from"./raw-fetch-CvkmFO23.mjs";function m(e){return e.usage("$0 url-scanner responses get <response-id>\n\nReturns the raw response of the network request. Find the `response_id` in the `data.requests.response.hash`.").positional(`response-id`,{type:`string`,description:`Response hash.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const h={command:`get <response-id>`,describe:`Get raw response`,builder:m,handler:async i=>s({command:`url-scanner responses get`,classification:{safeFlags:[`dry-run`]}},i,async()=>{if(i.dryRun){a({command:`cf url-scanner responses get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/urlscanner/v2/responses/${i[`response-id`]==null?`<response-id>`:encodeURIComponent(String(i[`response-id`]))}`,pathParams:{"response-id":String(i[`response-id`]??``)},bodyKind:`none`});return}await r(i);let s=i.local?e:await n();i.accountId=s,f((await o(`Loading`,async()=>p(`/accounts/${s}/urlscanner/v2/responses/${encodeURIComponent(String(i[`response-id`]))}`,{method:`GET`,local:i.local===!0,persistTo:i.persistTo}))).toString(`utf-8`))})},g={command:`responses`,describe:`Raw HTTP response data captured during URL scans`,builder:e=>e.command(h).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function _(e){return e.usage(`$0 url-scanner scans bulk-create
|
|
3
3
|
|
|
4
|
-
Submit URLs to scan. Check limits at https://developers.cloudflare.com/security-center/investigate/scan-limits/ and take into account scans submitted in bulk have lower priority and may take longer to finish.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`List of urls to scan (up to a 100).`})}const v={command:`bulk-create`,describe:`Bulk create URL Scans`,builder:_,handler:async l=>s({command:`url-scanner scans bulk-create`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf url-scanner scans bulk-create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
4
|
+
Submit URLs to scan. Check limits at https://developers.cloudflare.com/security-center/investigate/scan-limits/ and take into account scans submitted in bulk have lower priority and may take longer to finish.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`List of urls to scan (up to a 100).`})}const v={command:`bulk-create`,describe:`Bulk create URL Scans`,builder:_,handler:async l=>s({command:`url-scanner scans bulk-create`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf url-scanner scans bulk-create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/urlscanner/v2/bulk`,pathParams:{},bodyKind:`json`,body:l.body===void 0?void 0:c(l.body)});return}let s=await r(l),u=l.local?e:await n();if(l.accountId=u,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.urlScanner.scans.bulkCreate({body:e,account_id:u})),{successLabel:`Created`});return}if(l.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function y(e){return e.usage(`$0 url-scanner scans create
|
|
5
5
|
|
|
6
|
-
Submit a URL to scan. Check limits at https://developers.cloudflare.com/security-center/investigate/scan-limits/.`).option(`agent-readiness`,{type:`boolean`,description:`Enable agent readiness checks.`}).option(`country`,{type:`string`,description:`Country to geo egress from`,choices:`AF.AL.DZ.AD.AO.AG.AR.AM.AU.AT.AZ.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BR.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CO.KM.CG.CR.CI.HR.CU.CY.CZ.CD.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.SZ.ET.FJ.FI.FR.GA.GE.DE.GH.GR.GL.GD.GT.GN.GW.GY.HT.HN.HU.IS.IN.ID.IR.IQ.IE.IL.IT.JM.JP.JO.KZ.KE.KI.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MG.MW.MY.MV.ML.MR.MU.MX.FM.MD.MC.MN.MS.MA.MZ.MM.NA.NR.NP.NL.NZ.NI.NE.NG.KP.MK.NO.OM.PK.PS.PA.PG.PY.PE.PH.PL.PT.QA.RO.RU.RW.SH.KN.LC.VC.WS.SM.ST.SA.SN.RS.SC.SL.SK.SI.SB.SO.ZA.KR.SS.ES.LK.SD.SR.SE.CH.SY.TW.TJ.TZ.TH.BS.GM.TL.TG.TO.TT.TN.TR.TM.UG.UA.AE.GB.US.UY.UZ.VU.VE.VN.YE.ZM.ZW`.split(`.`)}).option(`customagent`,{type:`string`,description:`The customagent field`}).option(`referer`,{type:`string`,description:`The referer field`}).option(`screenshots-resolutions`,{type:`string`,array:!0,description:`Take multiple screenshots targeting different device types.`}).option(`url`,{type:`string`,description:`The url field`}).option(`visibility`,{type:`string`,description:"The option `Public` means it will be included in listings like recent scans and search results. `Unlisted` means it will not be included in the aforementioned listings, users will need to have the scan's ID to access it. A a scan will be automatically marked as unlisted if it fails, if it contains potential PII or other sensitive material.",choices:[`Public`,`Unlisted`],default:`Public`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const b={command:`create`,describe:`Create URL Scan`,builder:y,handler:async f=>s({command:`url-scanner scans create`,classification:{safeFlags:[`agent-readiness`,`country`,`visibility`,`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf url-scanner scans create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
6
|
+
Submit a URL to scan. Check limits at https://developers.cloudflare.com/security-center/investigate/scan-limits/.`).option(`agent-readiness`,{type:`boolean`,description:`Enable agent readiness checks.`}).option(`country`,{type:`string`,description:`Country to geo egress from`,choices:`AF.AL.DZ.AD.AO.AG.AR.AM.AU.AT.AZ.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BR.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CO.KM.CG.CR.CI.HR.CU.CY.CZ.CD.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.SZ.ET.FJ.FI.FR.GA.GE.DE.GH.GR.GL.GD.GT.GN.GW.GY.HT.HN.HU.IS.IN.ID.IR.IQ.IE.IL.IT.JM.JP.JO.KZ.KE.KI.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MG.MW.MY.MV.ML.MR.MU.MX.FM.MD.MC.MN.MS.MA.MZ.MM.NA.NR.NP.NL.NZ.NI.NE.NG.KP.MK.NO.OM.PK.PS.PA.PG.PY.PE.PH.PL.PT.QA.RO.RU.RW.SH.KN.LC.VC.WS.SM.ST.SA.SN.RS.SC.SL.SK.SI.SB.SO.ZA.KR.SS.ES.LK.SD.SR.SE.CH.SY.TW.TJ.TZ.TH.BS.GM.TL.TG.TO.TT.TN.TR.TM.UG.UA.AE.GB.US.UY.UZ.VU.VE.VN.YE.ZM.ZW`.split(`.`)}).option(`customagent`,{type:`string`,description:`The customagent field`}).option(`referer`,{type:`string`,description:`The referer field`}).option(`screenshots-resolutions`,{type:`string`,array:!0,description:`Take multiple screenshots targeting different device types.`}).option(`url`,{type:`string`,description:`The url field`}).option(`visibility`,{type:`string`,description:"The option `Public` means it will be included in listings like recent scans and search results. `Unlisted` means it will not be included in the aforementioned listings, users will need to have the scan's ID to access it. A a scan will be automatically marked as unlisted if it fails, if it contains potential PII or other sensitive material.",choices:[`Public`,`Unlisted`],default:`Public`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const b={command:`create`,describe:`Create URL Scan`,builder:y,handler:async f=>s({command:`url-scanner scans create`,classification:{safeFlags:[`agent-readiness`,`country`,`visibility`,`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf url-scanner scans create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/urlscanner/v2/scan`,pathParams:{},bodyKind:`json`,body:f.body===void 0?l({agentReadiness:f[`agent-readiness`],country:u(f.country,`country`,`text`),customagent:u(f.customagent,`customagent`,`text`),referer:u(f.referer,`referer`,`text`),screenshotsResolutions:f[`screenshots-resolutions`],url:u(f.url,`url`,`text`),visibility:u(f.visibility,`visibility`,`text`)}):c(f.body)});return}let s=await r(f),p=f.local?e:await n();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Creating`,async()=>s.urlScanner.scans.create({...e,account_id:p})),{successLabel:`Created`});return}f.url===void 0&&(f.url=await d(`url`,`The url field`));let m=l({agentReadiness:f[`agent-readiness`],country:u(f.country,`country`,`text`),customagent:u(f.customagent,`customagent`,`text`),referer:u(f.referer,`referer`,`text`),screenshotsResolutions:f[`screenshots-resolutions`],url:u(f.url,`url`,`text`),visibility:u(f.visibility,`visibility`,`text`)});i(await o(`Creating`,async()=>s.urlScanner.scans.create({...m,account_id:p})),{successLabel:`Created`})})};function x(e){return e.usage(`$0 url-scanner scans dom <scan-id>
|
|
7
7
|
|
|
8
|
-
Returns a plain text response, with the scan's DOM content as rendered by Chrome.`).positional(`scan-id`,{type:`string`,description:`Scan UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`dom <scan-id>`,describe:`Get URL scan's DOM`,builder:x,handler:async i=>s({command:`url-scanner scans dom`,classification:{safeFlags:[`dry-run`]}},i,async()=>{if(i.dryRun){a({command:`cf url-scanner scans dom`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
8
|
+
Returns a plain text response, with the scan's DOM content as rendered by Chrome.`).positional(`scan-id`,{type:`string`,description:`Scan UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`dom <scan-id>`,describe:`Get URL scan's DOM`,builder:x,handler:async i=>s({command:`url-scanner scans dom`,classification:{safeFlags:[`dry-run`]}},i,async()=>{if(i.dryRun){a({command:`cf url-scanner scans dom`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/urlscanner/v2/dom/${i[`scan-id`]==null?`<scan-id>`:encodeURIComponent(String(i[`scan-id`]))}`,pathParams:{"scan-id":String(i[`scan-id`]??``)},bodyKind:`none`});return}await r(i);let s=i.local?e:await n();i.accountId=s,f((await o(`Loading`,async()=>p(`/accounts/${s}/urlscanner/v2/dom/${encodeURIComponent(String(i[`scan-id`]))}`,{method:`GET`,local:i.local===!0,persistTo:i.persistTo}))).toString(`utf-8`))})};function C(e){return e.usage(`$0 url-scanner scans get <scan-id>
|
|
9
9
|
|
|
10
|
-
Get URL scan by uuid`).positional(`scan-id`,{type:`string`,description:`Scan UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const w={command:`get <scan-id>`,describe:`Get URL scan`,builder:C,handler:async c=>s({command:`url-scanner scans get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf url-scanner scans get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
10
|
+
Get URL scan by uuid`).positional(`scan-id`,{type:`string`,description:`Scan UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const w={command:`get <scan-id>`,describe:`Get URL scan`,builder:C,handler:async c=>s({command:`url-scanner scans get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf url-scanner scans get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/urlscanner/v2/result/${c[`scan-id`]==null?`<scan-id>`:encodeURIComponent(String(c[`scan-id`]))}`,pathParams:{"scan-id":String(c[`scan-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.urlScanner.scans.get({account_id:l,scan_id:c[`scan-id`]})),{successLabel:`Loaded`})})};function T(e){return e.usage(`$0 url-scanner scans har <scan-id>
|
|
11
11
|
|
|
12
|
-
Get a URL scan's HAR file. See HAR spec at http://www.softwareishard.com/blog/har-12-spec/.`).positional(`scan-id`,{type:`string`,description:`Scan UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`har <scan-id>`,describe:`Get URL scan's HAR`,builder:T,handler:async c=>s({command:`url-scanner scans har`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf url-scanner scans har`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
12
|
+
Get a URL scan's HAR file. See HAR spec at http://www.softwareishard.com/blog/har-12-spec/.`).positional(`scan-id`,{type:`string`,description:`Scan UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`har <scan-id>`,describe:`Get URL scan's HAR`,builder:T,handler:async c=>s({command:`url-scanner scans har`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf url-scanner scans har`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/urlscanner/v2/har/${c[`scan-id`]==null?`<scan-id>`:encodeURIComponent(String(c[`scan-id`]))}`,pathParams:{"scan-id":String(c[`scan-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.urlScanner.scans.har({account_id:l,scan_id:c[`scan-id`]})),{successLabel:`Loaded`})})};function D(e){return e.usage(`$0 url-scanner scans list
|
|
13
13
|
|
|
14
|
-
Use a subset of ElasticSearch Query syntax to filter scans. Some example queries:<br/> <br/>- 'path:"/bundles/jquery.js"': Searches for scans who requested resources with the given path.<br/>- 'page.asn:AS24940 AND hash:xxx': Websites hosted in AS24940 where a resource with the given hash was downloaded.<br/>- 'page.domain:microsoft* AND verdicts.malicious:true AND NOT page.domain:microsoft.com': malicious scans whose hostname starts with "microsoft".<br/>- 'apikey:me AND date:[2025-01 TO 2025-02]': my scans from 2025 January to 2025 February.`).option(`size`,{type:`number`,description:`Limit the number of objects in the response.`}).option(`query`,{type:`string`,description:`Filter scans`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const O={command:`list`,describe:`Search URL scans`,builder:D,handler:async c=>s({command:`url-scanner scans list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={size:c.size,q:c.query};if(c.dryRun){a({command:`cf url-scanner scans list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
14
|
+
Use a subset of ElasticSearch Query syntax to filter scans. Some example queries:<br/> <br/>- 'path:"/bundles/jquery.js"': Searches for scans who requested resources with the given path.<br/>- 'page.asn:AS24940 AND hash:xxx': Websites hosted in AS24940 where a resource with the given hash was downloaded.<br/>- 'page.domain:microsoft* AND verdicts.malicious:true AND NOT page.domain:microsoft.com': malicious scans whose hostname starts with "microsoft".<br/>- 'apikey:me AND date:[2025-01 TO 2025-02]': my scans from 2025 January to 2025 February.`).option(`size`,{type:`number`,description:`Limit the number of objects in the response.`}).option(`query`,{type:`string`,description:`Filter scans`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const O={command:`list`,describe:`Search URL scans`,builder:D,handler:async c=>s({command:`url-scanner scans list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={size:c.size,q:c.query};if(c.dryRun){a({command:`cf url-scanner scans list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/urlscanner/v2/search`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.urlScanner.scans.list({account_id:u,...s})),{successLabel:`Loaded`})})};function k(e){return e.usage(`$0 url-scanner scans screenshot <scan-id>
|
|
15
15
|
|
|
16
|
-
Get scan's screenshot by resolution (desktop/mobile/tablet).`).positional(`scan-id`,{type:`string`,description:`Scan UUID.`,demandOption:!0}).option(`resolution`,{type:`string`,description:`Target device type.`,choices:[`desktop`,`mobile`,`tablet`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`text`,{type:`boolean`,description:`Decode the response body as UTF-8 text instead of writing raw bytes`,default:!1})}const A={command:`screenshot <scan-id>`,describe:`Get screenshot`,builder:k,handler:async i=>s({command:`url-scanner scans screenshot`,classification:{safeFlags:[`resolution`,`dry-run`,`text`]}},i,async()=>{let s={resolution:i.resolution};if(i.dryRun){a({command:`cf url-scanner scans screenshot`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
16
|
+
Get scan's screenshot by resolution (desktop/mobile/tablet).`).positional(`scan-id`,{type:`string`,description:`Scan UUID.`,demandOption:!0}).option(`resolution`,{type:`string`,description:`Target device type.`,choices:[`desktop`,`mobile`,`tablet`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`text`,{type:`boolean`,description:`Decode the response body as UTF-8 text instead of writing raw bytes`,default:!1})}const A={command:`screenshot <scan-id>`,describe:`Get screenshot`,builder:k,handler:async i=>s({command:`url-scanner scans screenshot`,classification:{safeFlags:[`resolution`,`dry-run`,`text`]}},i,async()=>{let s={resolution:i.resolution};if(i.dryRun){a({command:`cf url-scanner scans screenshot`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/urlscanner/v2/screenshots/${i[`scan-id`]==null?`<scan-id>`:encodeURIComponent(String(i[`scan-id`]))}.png`,pathParams:{"scan-id":String(i[`scan-id`]??``)},query:s,bodyKind:`none`});return}await r(i);let c=i.local?e:await n();i.accountId=c;let l=new URLSearchParams(Object.entries(s).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString(),u=await o(`Loading`,async()=>p(`/accounts/${c}/urlscanner/v2/screenshots/${encodeURIComponent(String(i[`scan-id`]))}.png${l?`?`+l:``}`,{method:`GET`,local:i.local===!0,persistTo:i.persistTo}));f(i.text===!0?u.toString(`utf-8`):u)})},j={command:`scans`,describe:`URL scan requests and results — submit URLs for analysis and retrieve threat verdicts`,builder:e=>e.command(v).command(b).command(S).command(w).command(E).command(O).command(A).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},M={command:`url-scanner`,describe:`Scan URLs for phishing, malware, and other threats — submit scans and retrieve detailed results`,builder:e=>e.command(g).command(j).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{M as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{a as e,r as t}from"./auth-
|
|
2
|
+
import{a as e,r as t}from"./auth-BIr56Mbx.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-A61dRbXl.mjs";import{t as a}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{i as o,n as s,r as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{a as d,n as f}from"./prompt-CGUzvBgY.mjs";import{t as p}from"./cli-types-DoVT5q_M.mjs";function ee(e){return e.usage(`$0 user audit-logs list
|
|
3
3
|
|
|
4
4
|
Gets a list of audit logs for a user account. Can be filtered by who made the change, on which zone, and the timeframe of the change.`).option(`id`,{type:`string`,description:`Finds a specific log by its ID.`}).option(`export`,{type:`boolean`,description:`Indicates that this request is an export of logs in CSV format.`}).option(`action-type`,{type:`string`,description:`Filters by the action type.`}).option(`actor-ip`,{type:`string`,description:`Filters by the IP address of the request that made the change by specific IP address or valid CIDR Range.`}).option(`actor-email`,{type:`string`,description:`Filters by the email address of the actor that made the change.`}).option(`since`,{type:`string`,description:"Limits the returned results to logs newer than the specified date. A `full-date` that conforms to RFC3339."}).option(`before`,{type:`string`,description:"Limits the returned results to logs older than the specified date. A `full-date` that conforms to RFC3339."}).option(`zone-name`,{type:`string`,description:`Filters by the name of the zone associated to the change.`}).option(`direction`,{type:`string`,description:`Changes the direction of the chronological sorting.`,choices:[`desc`,`asc`]}).option(`per-page`,{type:`number`,description:`Sets the number of results to return per page.`}).option(`page`,{type:`number`,description:`Defines which page of results to return.`}).option(`hide-user-logs`,{type:`boolean`,description:`Indicates whether or not to hide user level audit logs.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const te={command:`list`,describe:`Get user audit logs`,builder:p(ee),handler:async e=>a({command:`user audit-logs list`,classification:{safeFlags:[`export`,`direction`,`hide-user-logs`,`dry-run`]}},e,async()=>{let a={id:e.id,export:e.export,"action.type":e[`action-type`],"actor.ip":e[`actor-ip`],"actor.email":e[`actor-email`],since:e.since,before:e.before,"zone.name":e[`zone-name`],direction:e.direction,per_page:e[`per-page`],page:e.page,hide_user_logs:e[`hide-user-logs`]};if(e.dryRun){r({command:`cf user audit-logs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/audit_logs`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e);n(await i(`Loading`,async()=>o.user.auditLogs.list(a)),{successLabel:`Loaded`})})},m={command:`audit-logs`,describe:`Operations for audit-logs`,builder:e=>e.command(te).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function h(e){return e.usage(`$0 user billing history list
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-B5oRPTEN.mjs";import{a as t,t as n}from"./context-CEOHpZgd.mjs";import{r}from"./auth-BIr56Mbx.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-A61dRbXl.mjs";import{t as s}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{t as c}from"./cli-types-DoVT5q_M.mjs";function l(e){return e.usage(`$0 values list
|
|
3
3
|
|
|
4
|
-
Lists all distinct values for a given tag key, optionally filtered by resource type.`).option(`tag-key`,{type:`string`,description:`The tag key to retrieve values for.`,demandOption:!0}).option(`type`,{type:`string`,description:`Filter by resource type.`,choices:`access_application.access_application_policy.access_group.account.account_ruleset.ai_gateway.alerting_policy.alerting_webhook.api_gateway_operation.cloudflared_tunnel.custom_certificate.custom_hostname.cws_deployment.cws_policy.cws_policy_set.cws_workload.d1_database.dns_record.durable_object_namespace.gateway_list.gateway_rule.healthcheck.image.infrastructure_target.kv_namespace.load_balancer.load_balancer_monitor.load_balancer_pool.managed_client_certificate.pages_project.queue.r2_bucket.resource_share.stream_live_input.stream_video.vectorize_index.worker.worker_route.worker_version.zone.zone_ruleset`.split(`.`)}).option(`cursor`,{type:`string`,description:`Cursor for pagination.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const u={command:`list`,describe:`List tag values`,builder:c(l),handler:async c=>s({command:`values list`,classification:{safeFlags:[`type`,`dry-run`]}},c,async()=>{let s={type:c.type,cursor:c.cursor};if(c.dryRun){a({command:`cf values list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
4
|
+
Lists all distinct values for a given tag key, optionally filtered by resource type.`).option(`tag-key`,{type:`string`,description:`The tag key to retrieve values for.`,demandOption:!0}).option(`type`,{type:`string`,description:`Filter by resource type.`,choices:`access_application.access_application_policy.access_group.account.account_ruleset.ai_gateway.alerting_policy.alerting_webhook.api_gateway_operation.cloudflared_tunnel.custom_certificate.custom_hostname.cws_deployment.cws_policy.cws_policy_set.cws_workload.d1_database.dns_record.durable_object_namespace.gateway_list.gateway_rule.healthcheck.image.infrastructure_target.kv_namespace.load_balancer.load_balancer_monitor.load_balancer_pool.managed_client_certificate.pages_project.queue.r2_bucket.resource_share.stream_live_input.stream_video.vectorize_index.worker.worker_route.worker_version.zone.zone_ruleset`.split(`.`)}).option(`cursor`,{type:`string`,description:`Cursor for pagination.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const u={command:`list`,describe:`List tag values`,builder:c(l),handler:async c=>s({command:`values list`,classification:{safeFlags:[`type`,`dry-run`]}},c,async()=>{let s={type:c.type,cursor:c.cursor};if(c.dryRun){a({command:`cf values list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/tags/values/${c[`tag-key`]==null?`<tag-key>`:encodeURIComponent(String(c[`tag-key`]))}`,pathParams:{"tag-key":String(c[`tag-key`]??``)},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.values.list({account_id:u,tag_key:c[`tag-key`],...s})),{successLabel:`Loaded`})})},d={command:`values`,describe:`values`,builder:e=>e.command(u).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{d as default};
|