vercel 61.0.0 → 62.0.0

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.
Files changed (167) hide show
  1. package/dist/chunks/{add-KKZS2KRG.js → add-3IGZTUFX.js} +1 -1
  2. package/dist/chunks/{add-NLTAYU5Z.js → add-MCZFWZIP.js} +1 -1
  3. package/dist/chunks/{add-I5N2DAIP.js → add-PVWJ6JM2.js} +1 -1
  4. package/dist/chunks/{build-V6DQKDOO.js → build-4KB4NLDZ.js} +1 -1
  5. package/dist/chunks/{chunk-TB4CAJ7K.js → chunk-2A2GVGNS.js} +4 -4
  6. package/dist/chunks/chunk-2F5ENFZE.js +7 -0
  7. package/dist/chunks/chunk-2HB5UL2I.js +9 -0
  8. package/dist/chunks/{chunk-KRQNSFGI.js → chunk-2RU3W7DI.js} +1 -1
  9. package/dist/chunks/{chunk-SIRSBEOT.js → chunk-2YSKT6HL.js} +1 -1
  10. package/dist/chunks/{chunk-5ENY7DSN.js → chunk-36RTKJWB.js} +1 -1
  11. package/dist/chunks/{chunk-RBJ4IMRF.js → chunk-3AZEJ674.js} +1 -1
  12. package/dist/chunks/{chunk-OTP26MC7.js → chunk-3CJI4EAR.js} +1 -1
  13. package/dist/chunks/{chunk-XF4GWZT2.js → chunk-3RR5CAUY.js} +1 -1
  14. package/dist/chunks/{chunk-OEICO6OI.js → chunk-43XQUIXX.js} +2 -2
  15. package/dist/chunks/{chunk-KEVHEKQZ.js → chunk-4DGSVSWX.js} +1 -1
  16. package/dist/chunks/{chunk-4KJZA5JH.js → chunk-4HR5QZI5.js} +1 -1
  17. package/dist/chunks/{chunk-2VAKGA3F.js → chunk-53BZCZTW.js} +1 -1
  18. package/dist/chunks/{chunk-TDR4D3EL.js → chunk-56CIPRSY.js} +3 -3
  19. package/dist/chunks/{chunk-IMN3Z3VV.js → chunk-56FBKYDJ.js} +1 -1
  20. package/dist/chunks/{chunk-MEAY2K5Z.js → chunk-63524SZ2.js} +1 -1
  21. package/dist/chunks/{chunk-2XUWYQ5P.js → chunk-6FGTAOZC.js} +1 -1
  22. package/dist/chunks/{chunk-O7G3CZ42.js → chunk-6HWPJHPE.js} +1 -1
  23. package/dist/chunks/{chunk-BFHLAM7O.js → chunk-6MNJOHPD.js} +1 -1
  24. package/dist/chunks/chunk-6RUAMGHK.js +9 -0
  25. package/dist/chunks/chunk-6WAQETPS.js +7 -0
  26. package/dist/chunks/{chunk-YMVDWVMO.js → chunk-AKZAWY6R.js} +1 -1
  27. package/dist/chunks/chunk-F46FFOPY.js +7 -0
  28. package/dist/chunks/{chunk-4GA73K74.js → chunk-GA25RADA.js} +1 -1
  29. package/dist/chunks/{chunk-Y7TY3VO2.js → chunk-GP62PIK6.js} +2 -2
  30. package/dist/chunks/{chunk-WSZHNPA6.js → chunk-HBB6S6FN.js} +1 -1
  31. package/dist/chunks/{chunk-UTVDFSQS.js → chunk-HRW6JPGE.js} +1 -1
  32. package/dist/chunks/{chunk-2JRC4QJO.js → chunk-HTPAVQS4.js} +1 -1
  33. package/dist/chunks/chunk-HXKTQSVU.js +7 -0
  34. package/dist/chunks/{chunk-EMDAZAWN.js → chunk-IDWEEGMC.js} +1 -1
  35. package/dist/chunks/{chunk-SZJLH6TE.js → chunk-J27GIFGM.js} +1 -1
  36. package/dist/chunks/{chunk-YTUFUBDL.js → chunk-J3HVEQRC.js} +2 -2
  37. package/dist/chunks/{chunk-AP36GAOG.js → chunk-J4WPHU3P.js} +1 -1
  38. package/dist/chunks/chunk-J6OPPI3A.js +63 -0
  39. package/dist/chunks/{chunk-ZKYS7EAB.js → chunk-JV2R73IG.js} +1 -1
  40. package/dist/chunks/{chunk-65JYSI26.js → chunk-K7RJ5LI6.js} +1 -1
  41. package/dist/chunks/{chunk-OVOQNHSJ.js → chunk-KMHCNMWF.js} +1 -1
  42. package/dist/chunks/{chunk-Y7PHTVZ6.js → chunk-LQMW75EU.js} +1 -1
  43. package/dist/chunks/{chunk-EQ52F4LH.js → chunk-LW7WCZ52.js} +1 -1
  44. package/dist/chunks/{chunk-WWB66KP5.js → chunk-NNEWLQZ2.js} +1 -1
  45. package/dist/chunks/{chunk-ROQLVSZT.js → chunk-O242I22A.js} +1 -1
  46. package/dist/chunks/{chunk-S3ZJ6ZBN.js → chunk-O5GXI6UQ.js} +1 -1
  47. package/dist/chunks/{chunk-3B4P7YHO.js → chunk-ODEEQEAD.js} +1 -1
  48. package/dist/chunks/{chunk-SCNNUBUE.js → chunk-OGQRWLHV.js} +1 -1
  49. package/dist/chunks/{chunk-N3N5UHIL.js → chunk-OMXVC7WL.js} +1 -1
  50. package/dist/chunks/{chunk-QFXHS36S.js → chunk-ORF2KLRG.js} +1 -1
  51. package/dist/chunks/{chunk-KCARCOP5.js → chunk-QKIDYVDL.js} +2 -2
  52. package/dist/chunks/{chunk-3RV2B7D3.js → chunk-QMLU6UFC.js} +1 -1
  53. package/dist/chunks/chunk-QS3H2ANN.js +8 -0
  54. package/dist/chunks/{chunk-QFPCR4NL.js → chunk-SVOAPAXM.js} +1 -1
  55. package/dist/chunks/{chunk-FYRK4GX7.js → chunk-T72CT7NM.js} +1 -1
  56. package/dist/chunks/{chunk-WKZ6JSGZ.js → chunk-TKBORMUF.js} +1 -1
  57. package/dist/chunks/{chunk-USSZAG2L.js → chunk-U2Z3MYSU.js} +1 -1
  58. package/dist/chunks/{chunk-JAJW3P42.js → chunk-UKVHDIP7.js} +1 -1
  59. package/dist/chunks/{chunk-WUZD4KBL.js → chunk-UMSD2UEI.js} +1 -1
  60. package/dist/chunks/{chunk-WOFE2X43.js → chunk-UNXGP4T4.js} +1 -1
  61. package/dist/chunks/{chunk-5BQ25PMQ.js → chunk-UOS7HE4I.js} +1 -1
  62. package/dist/chunks/{chunk-2R6NQXTQ.js → chunk-VNOZYSNT.js} +1 -1
  63. package/dist/chunks/{chunk-Q5CKKVCX.js → chunk-WPC7UHAS.js} +1 -1
  64. package/dist/chunks/{chunk-IVWPQYIH.js → chunk-WVQLFM45.js} +1 -1
  65. package/dist/chunks/{chunk-HQZXUIZY.js → chunk-X7REKM7I.js} +1 -1
  66. package/dist/chunks/chunk-XKSNY65J.js +7 -0
  67. package/dist/chunks/{chunk-57DOAKMY.js → chunk-XSBLZMTW.js} +1 -1
  68. package/dist/chunks/{chunk-7QVVD3WT.js → chunk-XWD3HYWE.js} +1 -1
  69. package/dist/chunks/{chunk-GIIG5KNF.js → chunk-XYPCSFQH.js} +1 -1
  70. package/dist/chunks/{chunk-RAQCLWCR.js → chunk-YIJERP7V.js} +1 -1
  71. package/dist/chunks/{chunk-JSKGZLE4.js → chunk-YZH6RUFI.js} +1 -1
  72. package/dist/chunks/{chunk-P33CQ5CD.js → chunk-ZQZL5YQA.js} +2 -2
  73. package/dist/chunks/{chunk-TKNV5ONT.js → chunk-ZRNMJQX5.js} +5 -5
  74. package/dist/chunks/{chunk-YJZFFNUB.js → chunk-ZRVFN7YO.js} +1 -1
  75. package/dist/chunks/{clear-FP53TC7K.js → clear-6NP2IT4F.js} +1 -1
  76. package/dist/chunks/{compile-vercel-config-EVBLB7VS.js → compile-vercel-config-7JBRIIM7.js} +1 -1
  77. package/dist/chunks/config-562NRVVZ.js +7 -0
  78. package/dist/chunks/{config-L2HMQKZN.js → config-ZP32YP6C.js} +1 -1
  79. package/dist/chunks/{constants-G4UYVLOF.js → constants-NCE2LWSS.js} +1 -1
  80. package/dist/chunks/{delete-F75LDVGB.js → delete-J4TGLAU6.js} +1 -1
  81. package/dist/chunks/{delete-UAJRL4OB.js → delete-UL76FA4Q.js} +1 -1
  82. package/dist/chunks/{detect-services-XZEOFBIS.js → detect-services-MGWUCUFW.js} +1 -1
  83. package/dist/chunks/{disable-F22ULQBR.js → disable-CNJCXFS4.js} +1 -1
  84. package/dist/chunks/{discard-RTIHE562.js → discard-2YP7E4YP.js} +1 -1
  85. package/dist/chunks/{edit-OQYEMSTW.js → edit-I5L443ZZ.js} +1 -1
  86. package/dist/chunks/{edit-A2YLMFJY.js → edit-NTJXKEVD.js} +1 -1
  87. package/dist/chunks/{enable-PQE7IYLJ.js → enable-JQVGB5EU.js} +1 -1
  88. package/dist/chunks/{export-MXCHIXRP.js → export-KK46QDGW.js} +1 -1
  89. package/dist/chunks/{future-EJDVAUMH.js → future-T4Q7RANL.js} +1 -1
  90. package/dist/chunks/{generate-cert-for-deploy-CORREIMU.js → generate-cert-for-deploy-LUHAFVYC.js} +1 -1
  91. package/dist/chunks/{image-IWWMC6OL.js → image-4F5NKSSP.js} +1 -1
  92. package/dist/chunks/{import-builders-ZBNF3EDI.js → import-builders-B2QQXOHS.js} +1 -1
  93. package/dist/chunks/{inspect-CQAFY6OA.js → inspect-MSDBVOII.js} +1 -1
  94. package/dist/chunks/{inspect-QPEB2PYJ.js → inspect-OZH4CRGR.js} +1 -1
  95. package/dist/chunks/{inspect-BRSK7FWE.js → inspect-TDCFV3JA.js} +1 -1
  96. package/dist/chunks/{inspect-PCDAOGYE.js → inspect-UINFK4D6.js} +1 -1
  97. package/dist/chunks/{inspect-L6XPIN4I.js → inspect-VJ4JXO4W.js} +1 -1
  98. package/dist/chunks/{list-UNOHMSYJ.js → list-GDUN5WEP.js} +1 -1
  99. package/dist/chunks/{list-MHFZCZLT.js → list-VYCM7K3Y.js} +1 -1
  100. package/dist/chunks/{list-HBPNOZ36.js → list-W2AYLMXB.js} +1 -1
  101. package/dist/chunks/{login-GZEBYAAZ.js → login-DFTGXDX2.js} +1 -1
  102. package/dist/chunks/{login-4RTE52M4.js → login-EBMKYY53.js} +1 -1
  103. package/dist/chunks/{logs-OCIAVVYS.js → logs-IXHYNZLV.js} +1 -1
  104. package/dist/chunks/{ls-CR7MEDCH.js → ls-4MYTCHNA.js} +1 -1
  105. package/dist/chunks/{ls-GCIPXWXQ.js → ls-63MC7N47.js} +1 -1
  106. package/dist/chunks/{ls-4IBSWNBN.js → ls-6K3MIAYQ.js} +1 -1
  107. package/dist/chunks/{ls-MZV54WLV.js → ls-AR2DBNXD.js} +1 -1
  108. package/dist/chunks/{ls-CDMZQWTZ.js → ls-EXRSJHKJ.js} +1 -1
  109. package/dist/chunks/{ls-KYR3NKYY.js → ls-XZO3FMRZ.js} +1 -1
  110. package/dist/chunks/{ls-XI2PIZR4.js → ls-Z3VHVO6V.js} +1 -1
  111. package/dist/chunks/{mutate-KROV5RBJ.js → mutate-QDPLCRQI.js} +1 -1
  112. package/dist/chunks/{notifications-5CF5744G.js → notifications-T32HQJY3.js} +1 -1
  113. package/dist/chunks/{open-JSSJIIAC.js → open-EN657452.js} +1 -1
  114. package/dist/chunks/{openapi-SEMT6PBJ.js → openapi-V26Z3DHE.js} +1 -1
  115. package/dist/chunks/{permissions-OIMJWVL6.js → permissions-FOQAHGJV.js} +1 -1
  116. package/dist/chunks/{prompt-missing-credentials-QCUYKCHH.js → prompt-missing-credentials-OHEVPOTD.js} +1 -1
  117. package/dist/chunks/{publish-LY3THAIP.js → publish-72BFQW57.js} +1 -1
  118. package/dist/chunks/{pull-CULSXHFY.js → pull-LZHMR2OS.js} +1 -1
  119. package/dist/chunks/{purchase-domain-if-available-FFNNBECE.js → purchase-domain-if-available-GNUGZD5G.js} +1 -1
  120. package/dist/chunks/{push-YEQRRX7B.js → push-KXIA3WMX.js} +1 -1
  121. package/dist/chunks/{query-IRNHCI3O.js → query-3YKNY4BU.js} +1 -1
  122. package/dist/chunks/{reauthenticate-7HYVS7DU.js → reauthenticate-L4S7TZ4L.js} +1 -1
  123. package/dist/chunks/{reorder-DSBV4PC7.js → reorder-OUMHYKGW.js} +1 -1
  124. package/dist/chunks/{reply-WEUR5QKT.js → reply-RY25JMY6.js} +1 -1
  125. package/dist/chunks/{resolve-KEPX7J5A.js → resolve-5BCDAP6S.js} +1 -1
  126. package/dist/chunks/{restore-YW2G6UVL.js → restore-UUSDAZCM.js} +1 -1
  127. package/dist/chunks/{rm-RJ7FOO54.js → rm-677RFR3N.js} +1 -1
  128. package/dist/chunks/{rm-TP5O3DFW.js → rm-HLZI2UGH.js} +1 -1
  129. package/dist/chunks/{rm-6TV3ABUA.js → rm-LA26QYTP.js} +1 -1
  130. package/dist/chunks/{rm-NUUHW6XI.js → rm-OY4YZTBH.js} +1 -1
  131. package/dist/chunks/{rm-CYZTYWOW.js → rm-Y7E3Y4EY.js} +1 -1
  132. package/dist/chunks/{rule-inspect-OVUBNDW6.js → rule-inspect-TW56Z4DI.js} +1 -1
  133. package/dist/chunks/{rules-B2XF44SN.js → rules-IMBUQQNG.js} +1 -1
  134. package/dist/chunks/{schema-5XTHUY2F.js → schema-CJ7N23WS.js} +1 -1
  135. package/dist/chunks/{schema-O7WKXTFS.js → schema-HZIWO2YM.js} +1 -1
  136. package/dist/chunks/{select-org-6AA7XX6E.js → select-org-EIEVJ6Z7.js} +1 -1
  137. package/dist/chunks/set-G3SGK3DK.js +7 -0
  138. package/dist/chunks/setup-and-link-ARUWFOSZ.js +7 -0
  139. package/dist/chunks/{tags-M6DJBEV4.js → tags-P3BOHMPP.js} +1 -1
  140. package/dist/chunks/{types-F6SLL27E.js → types-CMM7WKD6.js} +1 -1
  141. package/dist/chunks/{update-YP44NRTW.js → update-L5QEVUQO.js} +1 -1
  142. package/dist/commands/build/index.js +1 -1
  143. package/dist/commands/deploy/index.js +4 -4
  144. package/dist/commands/dev/index.js +2 -2
  145. package/dist/commands/env/index.js +1 -1
  146. package/dist/commands/link/index.js +1 -1
  147. package/dist/commands/list/index.js +1 -1
  148. package/dist/commands-bulk.js +688 -675
  149. package/dist/help.js +1 -1
  150. package/dist/index.js +4 -3
  151. package/dist/internal-build-worker.js +2 -2
  152. package/dist/root-help-commands.mjs +1 -0
  153. package/dist/vc.js +62 -7
  154. package/dist/version.mjs +1 -1
  155. package/package.json +19 -19
  156. package/dist/chunks/chunk-5U25FWD5.js +0 -8
  157. package/dist/chunks/chunk-5UOVEMYX.js +0 -7
  158. package/dist/chunks/chunk-6FHZ2IVO.js +0 -9
  159. package/dist/chunks/chunk-DKV4IVH5.js +0 -7
  160. package/dist/chunks/chunk-GBWSLOL5.js +0 -7
  161. package/dist/chunks/chunk-JS5WLQ6E.js +0 -7
  162. package/dist/chunks/chunk-RYZ5FAUA.js +0 -131
  163. package/dist/chunks/chunk-SW7MNF4H.js +0 -7
  164. package/dist/chunks/chunk-YBXO6YRZ.js +0 -7
  165. package/dist/chunks/config-5Q37O5JW.js +0 -7
  166. package/dist/chunks/set-JQ5LDT2W.js +0 -7
  167. package/dist/chunks/setup-and-link-NEEWO4NE.js +0 -7
@@ -1,7 +0,0 @@
1
- import { createRequire as __createRequire } from 'node:module';
2
- import { fileURLToPath as __fileURLToPath } from 'node:url';
3
- import { dirname as __dirname_ } from 'node:path';
4
- const require = __createRequire(import.meta.url);
5
- const __filename = __fileURLToPath(import.meta.url);
6
- const __dirname = __dirname_(__filename);
7
- import{tracesConfigCommand}from"./chunk-IVWPQYIH.js";import{deploymentOption,projectOption,protectionBypassOption,yesOption}from"./chunk-JAJW3P42.js";import{packageName}from"./chunk-FI772UVH.js";var spanQueryOptions=[{...projectOption,shorthand:"p"},{name:"environment",shorthand:null,type:String,deprecated:!1,description:"Environment: production or preview (case-insensitive)"},{name:"service",shorthand:null,type:String,deprecated:!1,description:"Filter by service name"},{name:"name",shorthand:null,type:String,deprecated:!1,description:"Filter by span name"},{name:"kind",shorthand:null,type:String,deprecated:!1,description:"Filter by span kind: unspecified (0), internal (1), server (2), client (3), producer (4), consumer (5)"},{name:"status",shorthand:null,type:String,deprecated:!1,description:"Status: error, ok, or unset (case-insensitive)"},{name:"deployment-id",shorthand:null,type:String,deprecated:!1,description:"Filter by deployment ID"},{name:"request-id",shorthand:null,type:String,deprecated:!1,description:"Filter by request ID. Some IDs return 404 in traces get. Reuse --scope and --project. See traces get --help."},{name:"trace-id",shorthand:null,type:String,deprecated:!1,description:"Filter by trace ID"},{name:"span-id",shorthand:null,type:String,deprecated:!1,description:"Filter by span ID"},{name:"root",shorthand:null,type:Boolean,deprecated:!1,description:"Show root spans only"},{name:"since",shorthand:null,type:String,deprecated:!1,description:"Start time: 30m, ISO timestamp, or YYYY-MM-DD UTC (default: 1h)"},{name:"until",shorthand:null,type:String,deprecated:!1,description:"End time: same formats as --since (default: now)"}];var requestIdLookupHelp={title:"Request-ID lookup",body:["A request ID in search results does not guarantee traces get can retrieve the trace. Lookup requires a matching root span in the same project within 30 minutes after the request-ID timestamp.","","If no matching root is found, lookup returns 404. Use the same --scope and --project for search and get."]},getSubcommand={name:"get",aliases:[],default:!0,description:"Fetch a captured trace by request id.",helpSections:[requestIdLookupHelp],arguments:[{name:"requestId",required:!1}],options:[{name:"json",shorthand:null,type:Boolean,deprecated:!1,description:"Print the raw trace JSON to stdout instead of the markdown summary."},{name:"project",shorthand:null,type:String,argument:"NAME|ID",deprecated:!1,description:"Project name or id to fetch the trace from (overrides the linked project)."},{name:"open",shorthand:null,type:Boolean,deprecated:!1,description:"Open the trace in the Vercel Dashboard instead of printing it."},{name:"view",shorthand:null,type:String,argument:"timeline|tree|waterfall",deprecated:!1,description:"Dashboard view to open. Only valid with --open. Defaults to timeline."}],examples:[{name:"Fetch a trace by request id",value:`${packageName} traces get req_1234567890`},{name:"Print the raw trace JSON",value:`${packageName} traces get req_1234567890 --json`},{name:"`get` is the default \u2014 this is equivalent to the above",value:`${packageName} traces req_1234567890`},{name:"Fetch a trace from a specific team and project",value:`${packageName} traces get req_1234567890 --scope my-team --project my-app`},{name:"Open the trace in the Vercel Dashboard",value:`${packageName} traces get req_1234567890 --open`},{name:"Open the trace in the Vercel Dashboard with the waterfall view",value:`${packageName} traces get req_1234567890 --open --view waterfall`}]},createSubcommand={name:"create",aliases:[],description:"Capture a session trace for a request (alias for `vercel curl --trace`).",arguments:[{name:"path",required:!0}],options:[deploymentOption,protectionBypassOption,{name:"json",shorthand:null,type:Boolean,deprecated:!1,description:"Emit { response, requestId } as JSON on stdout"},{...yesOption,description:"Skip the production confirmation prompt (e.g. in non-interactive mode)"}],examples:[{name:"Capture a session trace for a request",value:`${packageName} traces create /api/hello`},{name:"Target a specific deployment",value:`${packageName} traces create /api/status --deployment https://your-project-abc123.vercel.app`},{name:"Pass curl flags after the separator",value:`${packageName} traces create /api/test -- --request POST --data '{"name": "John"}'`}]},searchSubcommand={name:"search",aliases:[],description:"Search project spans. Results are newest first. Duration filters do not sort results.",helpSections:[{title:"Table columns",body:["Available: span.startTime, span.duration, span.name, span.status.code, service.name, environment, request.id, trace.id, span.id, parent.id, span.kind","Default: all except environment, request.id, and span.kind."]},{title:"KQL filters",body:["Fields: project.id, environment, service.name, deployment.id, request.id, user.id, session.id","Span fields: span.name, span.kind, span.id, parent.id, span.isRoot, span.status.code, span.duration","Trace fields: trace.id, trace.state","","Other fields search span attributes first, then resource attributes.","","span.duration uses milliseconds.","span.kind uses the numeric values shown under --kind.","span.status.code uses Error, Ok, or Unset.","Use field:value filters. Plain text search is not supported.","Use NOT to exclude values. End a value with * to match a prefix.","Wrap values with spaces in double quotes. Keep the full query in single quotes."]}],arguments:[],options:[...spanQueryOptions,{name:"limit",shorthand:"n",type:Number,deprecated:!1,description:"Maximum number of spans (default: 100)"},{name:"query",shorthand:"q",type:String,deprecated:!1,description:"Filter spans using KQL"},{name:"columns",shorthand:null,argument:"LIST",type:String,deprecated:!1,description:"Columns to show, in order. Separate names with commas. Cannot be used with --json or --non-interactive."},{name:"json",shorthand:"j",type:Boolean,deprecated:!1,description:"Output one JSON object per line"}],examples:[{name:"Find production errors for one service",value:`${packageName} traces search --environment production --service checkout-api --status error --since 1h`},{name:"Use KQL and output JSON Lines",value:`${packageName} traces search --query 'http.route:"/api/checkout"' --kind server --json`},{name:"Exclude span names starting with app/lib/fetch-api",value:`${packageName} traces search --query 'NOT span.name:app/lib/fetch-api*'`},{name:"Exclude exact span names",value:`${packageName} traces search --query 'NOT span.name:("GET /screenshot/v2" OR "middleware GET")'`},{name:"Find spans longer than 2 seconds",value:`${packageName} traces search --query 'span.duration > 2000' --columns span.startTime,span.duration,span.name,span.kind,span.status.code`}]},tracesCommand={name:"traces",aliases:[],description:"Fetch and search traces captured for a Vercel project.",arguments:[{name:"requestId",required:!1}],subcommands:[getSubcommand,searchSubcommand,createSubcommand,tracesConfigCommand],options:[],examples:[{name:"Fetch a trace by request id",value:`${packageName} traces get req_1234567890`},{name:"Print the raw trace JSON",value:`${packageName} traces get req_1234567890 --json`},{name:"Capture a session trace for a request",value:`${packageName} traces create /api/hello`},{name:"Search recent spans",value:`${packageName} traces search --status error`},{name:"List the trace sampling rules for a project",value:`${packageName} traces config ls`}]};export{getSubcommand,createSubcommand,searchSubcommand,tracesCommand};
@@ -1,7 +0,0 @@
1
- import { createRequire as __createRequire } from 'node:module';
2
- import { fileURLToPath as __fileURLToPath } from 'node:url';
3
- import { dirname as __dirname_ } from 'node:path';
4
- const require = __createRequire(import.meta.url);
5
- const __filename = __fileURLToPath(import.meta.url);
6
- const __dirname = __dirname_(__filename);
7
- import{printProjectNotFoundError}from"./chunk-RBJ4IMRF.js";import{detectExplicitScope}from"./chunk-ROQLVSZT.js";import{getLinkedProject}from"./chunk-TKNV5ONT.js";import{omitGlobalFlagsFromArgs}from"./chunk-KCARCOP5.js";function getInvokingCommandFromArgv(argv){let args=omitGlobalFlagsFromArgs(argv.slice(2)),positionals=[];for(let arg of args){if(arg.startsWith("-"))break;positionals.push(arg)}return positionals.join(" ")}async function resolveProjectContext({client,cwd=client.cwd,projectNameOrId,commandName="",projectNotFoundHandling="report"}){let context=await getLinkedProject(client,{cwd,projectName:projectNameOrId,projectNameIsExplicit:!!projectNameOrId,scopeIsExplicit:detectExplicitScope(client)});return context.status==="not_linked"&&projectNameOrId&&projectNotFoundHandling==="report"?(await printProjectNotFoundError(client,projectNameOrId,commandName||getInvokingCommandFromArgv(client.argv),context.orgId),{status:"error",exitCode:1,orgId:context.orgId}):context}export{resolveProjectContext};
@@ -1,7 +0,0 @@
1
- import { createRequire as __createRequire } from 'node:module';
2
- import { fileURLToPath as __fileURLToPath } from 'node:url';
3
- import { dirname as __dirname_ } from 'node:path';
4
- const require = __createRequire(import.meta.url);
5
- const __filename = __fileURLToPath(import.meta.url);
6
- const __dirname = __dirname_(__filename);
7
- import{printProjectNotFoundError}from"./chunk-RBJ4IMRF.js";import{param}from"./chunk-SXUEGVWB.js";import{detectExplicitScope}from"./chunk-ROQLVSZT.js";import{getLinkedProject,resolveProjectCwd}from"./chunk-TKNV5ONT.js";import{buildCommandWithYes,outputActionRequired}from"./chunk-KCARCOP5.js";import{getCommandName,getCommandNamePlain}from"./chunk-FI772UVH.js";import{output_manager_default}from"./chunk-EWWFNMPZ.js";var parseEnv=env=>{if(!env)return{};if(typeof env=="string"&&(env=[env]),Array.isArray(env)){let startingDict={};return env.reduce((o,e)=>{let key,value,equalsSign=e.indexOf("=");return equalsSign===-1?key=e:(key=e.slice(0,equalsSign),value=e.slice(equalsSign+1)),o[key]=value,o},startingDict)}return env};async function ensureLink(commandName,client,cwd,opts={}){cwd=await resolveProjectCwd(cwd);let link=opts.link,nonInteractive=opts.nonInteractive??client.nonInteractive??!1;if(opts.nonInteractive=nonInteractive,link||(opts.forceDelete?link={status:"not_linked",org:null,project:null}:link=await getLinkedProject(client,{cwd,projectName:opts.projectName,projectNameIsExplicit:!!(opts.projectName&&opts.failIfNotFound),scopeIsExplicit:detectExplicitScope(client),allowOwnerLookupFallback:opts.allowOwnerLookupFallback,skipRemoteLookup:opts.skipRemoteLookup}),opts.link=link),link.status==="linked"&&opts.forceDelete||link.status==="not_linked"){if(link.status==="not_linked"&&opts.failIfNotFound&&opts.projectName)return await printProjectNotFoundError(client,opts.projectName,commandName,link.orgId),1;if(link.status==="not_linked"&&opts.requireExistingLink)return output_manager_default.error(`Project is not linked. Run ${getCommandName("link")} first.`),1;let{default:setupAndLink}=await import("./setup-and-link-NEEWO4NE.js");if(link=await setupAndLink(client,cwd,opts),link.status==="not_linked")return 0}return link.status==="error"?(link.reason==="HEADLESS"&&(nonInteractive?outputActionRequired(client,{status:"action_required",reason:"confirmation_required",message:`Command ${getCommandNamePlain(commandName)} requires confirmation. Use option --yes to confirm.`,next:[{command:buildCommandWithYes(client.argv),when:"Confirm and run"}]},link.exitCode):output_manager_default.error(`Command ${getCommandName(commandName)} requires confirmation. Use option ${param("--yes")} to confirm.`)),nonInteractive&&process.exit(link.exitCode),link.exitCode):link}export{parseEnv,ensureLink};
@@ -1,131 +0,0 @@
1
- import { createRequire as __createRequire } from 'node:module';
2
- import { fileURLToPath as __fileURLToPath } from 'node:url';
3
- import { dirname as __dirname_ } from 'node:path';
4
- const require = __createRequire(import.meta.url);
5
- const __filename = __fileURLToPath(import.meta.url);
6
- const __dirname = __dirname_(__filename);
7
- import{require_source}from"./chunk-U7KCDTCH.js";import{__toESM}from"./chunk-6L236MNA.js";var import_chalk=__toESM(require_source(),1),packageName="vercel",logo="\u25B2",help=()=>`
8
- ${import_chalk.default.bold(`${logo} ${packageName}`)} [options] <command | path>
9
-
10
- ${import_chalk.default.dim("For deploy command help, run `vercel deploy --help`")}
11
-
12
- ${import_chalk.default.dim("Commands:")}
13
-
14
- ${import_chalk.default.dim("Basic")}
15
-
16
- deploy [path] Performs a deployment ${import_chalk.default.bold("(default)")}
17
- build Build the project locally into './vercel/output'
18
- cache [cmd] Manages cache for your current Project
19
- dev Start a local development server
20
- env Manages the Environment Variables for your current Project
21
- git Manage Git provider repository for your current Project
22
- help [cmd] Displays complete help for [cmd]
23
- init [example] Initialize an example project
24
- inspect [id] Displays information related to a deployment
25
- i | install [name] Install an integration from the Marketplace
26
- integration [cmd] Manages your Marketplace integrations
27
- ir | integration-resource [cmd] Manages your Marketplace integration resources
28
- link [path] Link local directory to a Vercel Project
29
- ls | list [app] Lists deployments
30
- login [email] Logs into your account or creates a new one
31
- logout Logs out of your account
32
- open Opens the current project in the Vercel Dashboard
33
- promote [url|id] Promote an existing deployment to current
34
- pull [path] Pull your Project Settings from the cloud
35
- redeploy [url|id] Rebuild and deploy a previous deployment.
36
- rollback [url|id] Quickly revert back to a previous deployment
37
- signup Creates a new account and logs in
38
- switch [scope] Switches between different scopes
39
-
40
- ${import_chalk.default.dim("Advanced")}
41
-
42
- activity List user activity events
43
- agent [init] Generate AGENTS.md with Vercel best practices
44
- ai-gateway [cmd] Manage AI Gateway resources
45
- agent-runs [cmd] Inspect Agent Runs observability data
46
- alerts List alerts for a project or team
47
- alias [cmd] Manages your domain aliases
48
- api [endpoint] Make authenticated HTTP requests to the Vercel API [beta]
49
- bisect Use binary search to find the deployment that introduced a bug
50
- blob [cmd] Manages your Blob stores and files
51
- budgets [cmd] Spend Management for on-demand usage [beta]
52
- buy [cmd] Purchase Vercel products for your team
53
- certs [cmd] Manages your SSL certificates
54
- changelog [cmd] Show the latest Vercel product updates
55
- connect [cmd] Manage connectors
56
- contract Show contract information for billing periods
57
- cron | crons [cmd] Manage cron jobs for a project [beta]
58
- curl [url|path] cURL requests with automatic deployment protection bypass [beta]
59
- deploy-hooks [cmd] Manage deploy hooks for Git-triggered builds
60
- dns [name] Manages your DNS records
61
- domains [name] Manages your domain names
62
- firewall [cmd] Manages Vercel Firewall configuration and custom rules
63
- flags [cmd] Manage feature flags for a Vercel project
64
- global-config [cmd] Manage Global Config stores
65
- httpstat path Visualize HTTP timing statistics for deployments
66
- kms [cmd] Manage KMS issuers, signing keys, and project grants [beta]
67
- logs [url] Displays the logs for a deployment
68
- metrics <metric> Queries observability metrics for your project or team
69
- mcp Set up MCP agents and configuration
70
- microfrontends Manages your microfrontends
71
- projects Manages your Projects
72
- redirects [cmd] Manages redirects for your current Project
73
- rm | remove [id] Removes a deployment
74
- routes [cmd] Manages routing rules for your current Project
75
- rr | rolling-release [cmd] Manage rolling releases for gradual traffic shifting
76
- sandbox Interact with Vercel Sandbox
77
- schedules [cmd] Manage schedules for the current project [beta]
78
- setup Set up the Vercel plugin and AI Gateway for coding agents
79
- skills [query] Discover agent skills relevant to your project
80
- storage [cmd] Connect and manage storage resources for your Projects
81
- target [cmd] Manage custom environments for your Project
82
- teams Manages your teams
83
- telemetry [cmd] Enable or disable telemetry collection
84
- tokens [cmd] Manage your personal Vercel authentication tokens
85
- traces [cmd] Fetch and capture traces for your project's deployment
86
- upgrade Upgrade the Vercel CLI to the latest version
87
- usage Show billing usage for the current billing period
88
- vcr [cmd] Manages your Container Registry repositories and images
89
- webhooks [cmd] Manages webhooks [beta]
90
- whoami Shows the username of the currently logged in user
91
-
92
- ${import_chalk.default.dim("Global Options:")}
93
-
94
- -h, --help Output usage information
95
- -v, --version Output the version number
96
- --changelog Show the 5 latest Vercel product updates
97
- --cwd Current working directory
98
- -A ${import_chalk.default.bold.underline("FILE")}, --local-config=${import_chalk.default.bold.underline("FILE")} Path to the local \`vercel.json\` file
99
- -Q ${import_chalk.default.bold.underline("DIR")}, --global-config=${import_chalk.default.bold.underline("DIR")} Path to the global \`.vercel\` directory
100
- -d, --debug Debug mode [off]
101
- --no-color No color mode [off]
102
- --non-interactive Run without interactive prompts (default when agent detected)
103
- -S, --scope Set a custom scope
104
- -t ${import_chalk.default.underline("TOKEN")}, --token=${import_chalk.default.underline("TOKEN")} Login token
105
-
106
- ${import_chalk.default.dim("Examples:")}
107
-
108
- ${import_chalk.default.gray("\u2013")} Deploy the current directory
109
-
110
- ${import_chalk.default.cyan(`$ ${packageName}`)}
111
-
112
- ${import_chalk.default.gray("\u2013")} Deploy a custom path
113
-
114
- ${import_chalk.default.cyan(`$ ${packageName} /usr/src/project`)}
115
-
116
- ${import_chalk.default.gray("\u2013")} Deploy with Environment Variables
117
-
118
- ${import_chalk.default.cyan(`$ ${packageName} -e NODE_ENV=production`)}
119
-
120
- ${import_chalk.default.gray("\u2013")} Show the usage information for the sub command ${import_chalk.default.dim("`list`")}
121
-
122
- ${import_chalk.default.cyan(`$ ${packageName} help list`)}
123
-
124
- ${import_chalk.default.gray("\u2013")} Show the 5 latest Vercel product updates
125
-
126
- ${import_chalk.default.cyan(`$ ${packageName} --changelog`)}
127
-
128
- ${import_chalk.default.gray("\u2013")} Search Vercel product updates
129
-
130
- ${import_chalk.default.cyan(`$ ${packageName} changelog search "AI SDK"`)}
131
- `;export{help};
@@ -1,7 +0,0 @@
1
- import { createRequire as __createRequire } from 'node:module';
2
- import { fileURLToPath as __fileURLToPath } from 'node:url';
3
- import { dirname as __dirname_ } from 'node:path';
4
- const require = __createRequire(import.meta.url);
5
- const __filename = __fileURLToPath(import.meta.url);
6
- const __dirname = __dirname_(__filename);
7
- import{formatOption,jsonOption,projectOption,yesOption}from"./chunk-JAJW3P42.js";import{packageName}from"./chunk-FI772UVH.js";var projectScopeOption={...projectOption,shorthand:"p",description:"Use a project by name or ID"},listAllOption={name:"all",shorthand:"a",type:Boolean,deprecated:!1,description:"List all accessible rules in the selected team"},mutationAllOption={...listAllOption,description:"Apply the rule to all projects in the selected team"},deprecatedItemScopeOptions=[{...projectScopeOption,deprecated:!0},{...listAllOption,deprecated:!0}],bodyOption={name:"body",shorthand:null,type:String,argument:"PATH",deprecated:!1,description:"Read the alert rule body from a JSON file"},rulesLsSubcommand={name:"ls",aliases:["list"],description:"List alert rules for a project or team",arguments:[],options:[projectScopeOption,listAllOption,{name:"type",shorthand:null,type:[String],argument:"TYPE",deprecated:!1,description:"Filter by rule type"},formatOption,jsonOption],examples:[{name:"List rules affecting the linked project",value:`${packageName} alerts rules ls`},{name:"List all rules in the selected team",value:`${packageName} alerts rules ls --all`},{name:"Write JSON output",value:`${packageName} alerts rules ls --all --json`}]},rulesSchemaSubcommand={name:"schema",aliases:[],description:"Show alert rule request fields and examples",arguments:[],options:[{name:"type",shorthand:null,type:String,argument:"TYPE",deprecated:!1,description:"Rule type to describe"},formatOption],examples:[{name:"List supported rule types",value:`${packageName} alerts rules schema`},{name:"Show the built-in rule schema",value:`${packageName} alerts rules schema --type built-in`}]},rulesAddSubcommand={name:"add",aliases:["create"],description:"Create an alert rule from a JSON body",arguments:[],options:[projectScopeOption,mutationAllOption,formatOption,jsonOption,bodyOption],examples:[{name:"Create a project-scoped rule",value:`${packageName} alerts rules add --project my-app --body ./rule.json`},{name:"Create a team-wide built-in rule",value:`${packageName} alerts rules add --all --body ./rule.json`}]},rulesInspectSubcommand={name:"inspect",aliases:["get"],description:"Show one alert rule by ID",arguments:[{name:"ruleId",required:!0}],options:[...deprecatedItemScopeOptions,formatOption,jsonOption],examples:[{name:"Inspect a rule",value:`${packageName} alerts rules inspect ar_abc123`},{name:"Write JSON output",value:`${packageName} alerts rules inspect ar_abc123 --json`}]},rulesRmSubcommand={name:"rm",aliases:["remove","delete"],description:"Delete an alert rule",arguments:[{name:"ruleId",required:!0}],options:[...deprecatedItemScopeOptions,formatOption,jsonOption,yesOption],examples:[{name:"Delete with confirmation",value:`${packageName} alerts rules rm ar_abc123`},{name:"Delete without a prompt",value:`${packageName} alerts rules rm ar_abc123 --yes`}]},rulesUpdateSubcommand={name:"update",aliases:["patch"],description:"Patch an alert rule or change its scope",arguments:[{name:"ruleId",required:!0}],options:[projectScopeOption,mutationAllOption,formatOption,jsonOption,{...bodyOption,description:"Read the partial update body from a JSON file"}],examples:[{name:"Update fields from a file",value:`${packageName} alerts rules update ar_abc123 --body ./patch.json`},{name:"Move a rule to a project",value:`${packageName} alerts rules update ar_abc123 --project my-app`}]},notificationTargetOptions=[{name:"webhook",shorthand:null,type:String,argument:"WEBHOOK_ID",deprecated:!1,description:"Select an account webhook by ID"},{name:"slack-channel",shorthand:null,type:String,argument:"CHANNEL_ID",deprecated:!1,description:"Select a Slack channel by ID"},{name:"slack-installation-id",shorthand:null,type:String,argument:"INSTALLATION_ID",deprecated:!1,description:"Slack installation ID. Optional only when the team has exactly one completed Slack installation."}],criticalOnlyOption={name:"critical-only",shorthand:null,type:Boolean,deprecated:!1,description:"Notify only when Vercel Agent escalates an alert to Critical"},noCriticalOnlyOption={name:"no-critical-only",shorthand:null,type:Boolean,deprecated:!1,description:"Deliver every alert matched by the rule"},rulesNotificationsLsSubcommand={name:"ls",aliases:["list"],default:!0,description:"List notification destinations for all readable rules or one alert rule",arguments:[{name:"ruleId",required:!1}],options:[formatOption,jsonOption],examples:[{name:"List notification destinations for all readable rules",value:`${packageName} alerts rules notifications ls`},{name:"List notification destinations for one rule",value:`${packageName} alerts rules notifications ls ar_abc123`},{name:"Write JSON output",value:`${packageName} alerts rules notifications ar_abc123 --json`}]},rulesNotificationsLinkSubcommand={name:"link",aliases:[],description:"Link a Slack channel or account webhook to an alert rule",arguments:[{name:"<ruleId>",required:!0}],options:[...notificationTargetOptions,criticalOnlyOption,formatOption,jsonOption],examples:[{name:"Link a Slack channel",value:`${packageName} alerts rules notifications link ar_abc123 --slack-channel C123`},{name:"Link a Slack channel from a specific installation",value:`${packageName} alerts rules notifications link ar_abc123 --slack-channel C123 --slack-installation-id icfg_abc123`},{name:"Link a webhook",value:`${packageName} alerts rules notifications link ar_abc123 --webhook wh_abc123`},{name:"Link a Critical-only webhook",value:`${packageName} alerts rules notifications link ar_abc123 --webhook wh_abc123 --critical-only`}]},rulesNotificationsUpdateSubcommand={name:"update",aliases:["patch"],description:"Update a notification destination's delivery setting",arguments:[{name:"<ruleId>",required:!0}],options:[...notificationTargetOptions,criticalOnlyOption,noCriticalOnlyOption,formatOption,jsonOption],examples:[{name:"Restrict a Slack channel to Critical alerts",value:`${packageName} alerts rules notifications update ar_abc123 --slack-channel C123 --critical-only`},{name:"Restore delivery for every alert matched by the rule",value:`${packageName} alerts rules notifications update ar_abc123 --webhook wh_abc123 --no-critical-only`}]},rulesNotificationsUnlinkSubcommand={name:"unlink",aliases:[],description:"Unlink a Slack channel or account webhook from an alert rule",arguments:[{name:"<ruleId>",required:!0}],options:[...notificationTargetOptions,formatOption,jsonOption],examples:[{name:"Unlink a Slack channel",value:`${packageName} alerts rules notifications unlink ar_abc123 --slack-channel C123`},{name:"Unlink a webhook",value:`${packageName} alerts rules notifications unlink ar_abc123 --webhook wh_abc123`}]},rulesNotificationsAggregateCommand={name:"notifications",aliases:[],description:"List and manage linked Slack and webhook destinations for alert rules",arguments:[],subcommands:[rulesNotificationsLsSubcommand,rulesNotificationsLinkSubcommand,rulesNotificationsUpdateSubcommand,rulesNotificationsUnlinkSubcommand],options:[formatOption,jsonOption],examples:[{name:"List destinations for all readable rules",value:`${packageName} alerts rules notifications`},{name:"List destinations for one rule",value:`${packageName} alerts rules notifications ar_abc123`},{name:"Link Slack with the team's only installation",value:`${packageName} alerts rules notifications link ar_abc123 --slack-channel C123`}]},rulesAggregateCommand={name:"rules",aliases:[],description:"Create, inspect, list, update, and delete alert rules and manage their notification destinations",arguments:[],subcommands:[rulesLsSubcommand,rulesSchemaSubcommand,rulesAddSubcommand,rulesInspectSubcommand,rulesRmSubcommand,rulesUpdateSubcommand,rulesNotificationsAggregateCommand],options:[],examples:[{name:"List rules for the linked project",value:`${packageName} alerts rules ls`},{name:"Add a rule",value:`${packageName} alerts rules add --project my-app --body ./rule.json`},{name:"Inspect a rule",value:`${packageName} alerts rules inspect ar_abc123`},{name:"Update a rule",value:`${packageName} alerts rules update ar_abc123 --body ./patch.json`},{name:"Delete a rule",value:`${packageName} alerts rules rm ar_abc123`},{name:"List notification destinations for a rule",value:`${packageName} alerts rules notifications ar_abc123`}]};export{rulesLsSubcommand,rulesSchemaSubcommand,rulesAddSubcommand,rulesInspectSubcommand,rulesRmSubcommand,rulesUpdateSubcommand,rulesNotificationsLsSubcommand,rulesNotificationsLinkSubcommand,rulesNotificationsUpdateSubcommand,rulesNotificationsUnlinkSubcommand,rulesNotificationsAggregateCommand,rulesAggregateCommand};
@@ -1,7 +0,0 @@
1
- import { createRequire as __createRequire } from 'node:module';
2
- import { fileURLToPath as __fileURLToPath } from 'node:url';
3
- import { dirname as __dirname_ } from 'node:path';
4
- const require = __createRequire(import.meta.url);
5
- const __filename = __fileURLToPath(import.meta.url);
6
- const __dirname = __dirname_(__filename);
7
- import{formatOption,jsonOption}from"./chunk-JAJW3P42.js";import{packageName}from"./chunk-FI772UVH.js";var specUrlOption={name:"spec-url",shorthand:null,type:String,argument:"URL",deprecated:!1,description:"Fetch endpoints from a custom OpenAPI spec URL instead of the public Vercel spec"},listSubcommand={name:"list",aliases:["ls"],description:"List all available API endpoints",arguments:[],options:[formatOption,jsonOption,specUrlOption,{name:"refresh",shorthand:null,type:Boolean,deprecated:!1,description:"Force refresh the cached OpenAPI spec"}],examples:[{name:"List all endpoints in table format",value:`${packageName} api ls`},{name:"List all endpoints as JSON",value:`${packageName} api ls --json`},{name:"List endpoints from a custom OpenAPI spec",value:`${packageName} api ls --spec-url https://openapi-internal.vercel.sh --refresh`}]},apiCommand={name:"api",aliases:[],description:"Make authenticated HTTP requests to the Vercel API",arguments:[{name:"endpoint",required:!1}],subcommands:[listSubcommand],options:[{name:"method",shorthand:"X",type:String,argument:"METHOD",deprecated:!1,description:"HTTP method (GET, POST, PUT, PATCH, DELETE). Defaults to GET, or POST if body is provided"},{name:"field",shorthand:"F",type:[String],argument:"KEY=VALUE",deprecated:!1,description:"Add a typed parameter (numbers, booleans parsed). Use @file for file contents"},{name:"raw-field",shorthand:"f",type:[String],argument:"KEY=VALUE",deprecated:!1,description:"Add a string option (no type parsing)"},{name:"header",shorthand:"H",type:[String],argument:"KEY:VALUE",deprecated:!1,description:"Add a custom HTTP header"},{name:"input",shorthand:null,type:String,argument:"FILE",deprecated:!1,description:"Read request body from file (use - for stdin)"},{name:"paginate",shorthand:null,type:Boolean,deprecated:!1,description:"Fetch all pages of results"},{name:"include",shorthand:"i",type:Boolean,deprecated:!1,description:"Include response headers in output"},{name:"silent",shorthand:null,type:Boolean,deprecated:!1,description:"Suppress response output"},{name:"verbose",shorthand:null,type:Boolean,deprecated:!1,description:"Show debug information including full request/response"},{name:"raw",shorthand:null,type:Boolean,deprecated:!1,description:"Output raw JSON without pretty-printing (the default when output is piped)"},{name:"refresh",shorthand:null,type:Boolean,deprecated:!1,description:"Force refresh the cached OpenAPI spec"},specUrlOption,{name:"generate",shorthand:null,type:String,argument:"FORMAT",deprecated:!1,description:"Generate output instead of executing (e.g., --generate=curl)"},{name:"dangerously-skip-permissions",shorthand:null,type:Boolean,deprecated:!1,description:"Skip confirmation prompts for DELETE operations (use with caution)"}],examples:[{name:"Get current user information",value:`${packageName} api /v2/user`},{name:"List projects with team scope",value:`${packageName} api /v9/projects --scope my-team`},{name:"Create a new project",value:`${packageName} api /v10/projects -X POST -F name=my-project`},{name:"Delete a deployment",value:`${packageName} api /v13/deployments/dpl_abc123 -X DELETE`},{name:"Paginate through all deployments",value:`${packageName} api /v6/deployments --paginate`},{name:"Post JSON from file",value:`${packageName} api /v10/projects -X POST --input config.json`},{name:"Add custom header",value:`${packageName} api /v2/user -H "X-Custom-Header: value"`},{name:"Interactive mode (select endpoint)",value:`${packageName} api`},{name:"Interactive mode with a custom OpenAPI spec",value:`${packageName} api --spec-url https://openapi-internal.vercel.sh --refresh`}]};export{listSubcommand,apiCommand};
@@ -1,7 +0,0 @@
1
- import { createRequire as __createRequire } from 'node:module';
2
- import { fileURLToPath as __fileURLToPath } from 'node:url';
3
- import { dirname as __dirname_ } from 'node:path';
4
- const require = __createRequire(import.meta.url);
5
- const __filename = __fileURLToPath(import.meta.url);
6
- const __dirname = __dirname_(__filename);
7
- import{getSubcommand}from"./chunk-ETV3C2CV.js";import{getCommandAliases}from"./chunk-6FHZ2IVO.js";import{tracesCommand}from"./chunk-DKV4IVH5.js";import{lsSubcommand,rmSubcommand,setSubcommand,tracesConfigCommand}from"./chunk-IVWPQYIH.js";import"./chunk-65JYSI26.js";import"./chunk-YMVDWVMO.js";import"./chunk-O7G3CZ42.js";import"./chunk-N3N5UHIL.js";import"./chunk-WUZD4KBL.js";import"./chunk-QFPCR4NL.js";import"./chunk-5ENY7DSN.js";import"./chunk-UTVDFSQS.js";import"./chunk-SW7MNF4H.js";import"./chunk-MEAY2K5Z.js";import"./chunk-EQ52F4LH.js";import"./chunk-YBXO6YRZ.js";import"./chunk-JKTQV2QJ.js";import"./chunk-Y7PHTVZ6.js";import"./chunk-WSZHNPA6.js";import"./chunk-FAW6NBLQ.js";import"./chunk-5UOVEMYX.js";import{help}from"./chunk-5U25FWD5.js";import"./chunk-6TAQ6OWD.js";import"./chunk-WPS6JZF6.js";import"./chunk-ZKYS7EAB.js";import{TelemetryClient}from"./chunk-A5VLP25I.js";import"./chunk-RCTYVKM5.js";import"./chunk-7T6TL3GQ.js";import"./chunk-F2ZWW2IO.js";import"./chunk-BRK4OB4B.js";import"./chunk-OSCCYU74.js";import"./chunk-JAJW3P42.js";import"./chunk-FI772UVH.js";import{output_manager_default}from"./chunk-EWWFNMPZ.js";import"./chunk-QGIQK47P.js";import"./chunk-AVSPFBLM.js";import"./chunk-XCJDGQO7.js";import"./chunk-YPTLSODC.js";import"./chunk-7HL2RPUO.js";import"./chunk-U7KCDTCH.js";import"./chunk-N3ZZ7FHQ.js";import"./chunk-GU6VIFR5.js";import"./chunk-6L236MNA.js";var TracesConfigTelemetryClient=class extends TelemetryClient{trackCliSubcommandLs(actual){this.trackCliSubcommand({subcommand:"ls",value:actual})}trackCliSubcommandSet(actual){this.trackCliSubcommand({subcommand:"set",value:actual})}trackCliSubcommandRm(actual){this.trackCliSubcommand({subcommand:"rm",value:actual})}};var COMMAND_CONFIG={ls:getCommandAliases(lsSubcommand),set:getCommandAliases(setSubcommand),rm:getCommandAliases(rmSubcommand)},SUBCOMMAND_METADATA={ls:lsSubcommand,set:setSubcommand,rm:rmSubcommand};async function config(client,{args,needHelp,subcommandOriginal,telemetry}){let{subcommand:action,subcommandOriginal:actionOriginal}=getSubcommand(args,COMMAND_CONFIG),actionMetadata=typeof action=="string"?SUBCOMMAND_METADATA[action]:void 0;function printHelp(command,nested){return output_manager_default.print(help(command,{parent:nested?{...tracesCommand,name:"traces config"}:tracesCommand,columns:client.stderr.columns})),needHelp?0:2}if(needHelp)return telemetry.trackCliFlagHelp("traces",subcommandOriginal),actionMetadata?printHelp(actionMetadata,!0):printHelp(tracesConfigCommand,!1);telemetry.trackCliSubcommandConfig(subcommandOriginal);let configTelemetry=new TracesConfigTelemetryClient({opts:{store:client.telemetryEventStore}});switch(action){case"ls":return configTelemetry.trackCliSubcommandLs(actionOriginal),(await import("./ls-MZV54WLV.js")).default(client);case"set":return configTelemetry.trackCliSubcommandSet(actionOriginal),(await import("./set-JQ5LDT2W.js")).default(client);case"rm":return configTelemetry.trackCliSubcommandRm(actionOriginal),(await import("./rm-CYZTYWOW.js")).default(client);default:return printHelp(tracesConfigCommand,!1)}}export{config as default};
@@ -1,7 +0,0 @@
1
- import { createRequire as __createRequire } from 'node:module';
2
- import { fileURLToPath as __fileURLToPath } from 'node:url';
3
- import { dirname as __dirname_ } from 'node:path';
4
- const require = __createRequire(import.meta.url);
5
- const __filename = __fileURLToPath(import.meta.url);
6
- const __dirname = __dirname_(__filename);
7
- import{EMPTY_PATH_ERROR,ENVIRONMENT_ERROR,RATE_ERROR,RULE_LIMIT,formatRate,formatRuleTarget,hasSameKey,isRuleEnvironment,parseSampleRate,readProjectTracing,subcommandArguments,toApiRate,toRule,writeConfigJson,writeSamplingRules}from"./chunk-2VAKGA3F.js";import{handleTracingApiError,invalidArguments,resolveConfigScope}from"./chunk-BFHLAM7O.js";import{validateJsonOutput}from"./chunk-D4MW3RDW.js";import"./chunk-GBWSLOL5.js";import"./chunk-RBJ4IMRF.js";import"./chunk-EMDAZAWN.js";import{tracesCommand}from"./chunk-DKV4IVH5.js";import{setSubcommand}from"./chunk-IVWPQYIH.js";import{help}from"./chunk-5U25FWD5.js";import"./chunk-6TAQ6OWD.js";import"./chunk-WPS6JZF6.js";import"./chunk-ROQLVSZT.js";import"./chunk-JSKGZLE4.js";import{TelemetryClient}from"./chunk-A5VLP25I.js";import"./chunk-RCTYVKM5.js";import"./chunk-7T6TL3GQ.js";import"./chunk-GHM7V3GG.js";import"./chunk-5XJNPXQK.js";import{printError}from"./chunk-IMN3Z3VV.js";import{parseArguments}from"./chunk-WWB66KP5.js";import"./chunk-MY4MONOH.js";import"./chunk-TKNV5ONT.js";import"./chunk-F2ZWW2IO.js";import"./chunk-B4ATVYZW.js";import"./chunk-PPCFQQSU.js";import"./chunk-BRK4OB4B.js";import"./chunk-OSCCYU74.js";import"./chunk-KCARCOP5.js";import"./chunk-BKV35LVB.js";import{getFlagsSpecification}from"./chunk-JAJW3P42.js";import"./chunk-YMM3VY3J.js";import"./chunk-SM5JI6QM.js";import"./chunk-VOZEB6PD.js";import"./chunk-RINZXCDJ.js";import{getCommandName,getCommandNamePlain}from"./chunk-FI772UVH.js";import{output_manager_default}from"./chunk-EWWFNMPZ.js";import"./chunk-QGIQK47P.js";import"./chunk-AVSPFBLM.js";import"./chunk-XCJDGQO7.js";import"./chunk-YPTLSODC.js";import"./chunk-7HL2RPUO.js";import{require_source}from"./chunk-U7KCDTCH.js";import"./chunk-N3ZZ7FHQ.js";import"./chunk-GU6VIFR5.js";import{__toESM}from"./chunk-6L236MNA.js";var import_chalk=__toESM(require_source(),1);var TracesConfigSetTelemetryClient=class extends TelemetryClient{trackCliArgumentEnvironment(environment){environment&&this.trackCliArgument({arg:"environment",value:isRuleEnvironment(environment)?environment:this.redactedValue})}trackCliArgumentRate(rate){rate&&this.trackCliArgument({arg:"rate",value:this.redactedValue})}trackCliArgumentRequestPath(requestPath){requestPath&&this.trackCliArgument({arg:"requestPath",value:this.redactedValue})}trackCliFlagJson(json){json&&this.trackCliFlag("json")}};var USAGE="traces config set <environment> <rate> [requestPath]";async function set(client){let telemetry=new TracesConfigSetTelemetryClient({opts:{store:client.telemetryEventStore}}),parsedArgs,flagsSpecification=getFlagsSpecification(setSubcommand.options);try{parsedArgs=parseArguments(client.argv.slice(2),flagsSpecification)}catch(err){return printError(err),1}let{flags}=parsedArgs,[environmentArg,rateArg,...pathArgs]=subcommandArguments(parsedArgs.args),pathArg=pathArgs[0];if(telemetry.trackCliArgumentEnvironment(environmentArg),telemetry.trackCliArgumentRate(rateArg),telemetry.trackCliArgumentRequestPath(pathArg),telemetry.trackCliOptionFormat(flags["--format"]),telemetry.trackCliFlagJson(flags["--json"]),telemetry.trackCliOptionProject(flags["--project"]),environmentArg===void 0||rateArg===void 0)return output_manager_default.print(help(setSubcommand,{parent:{...tracesCommand,name:"traces config"},columns:client.stderr.columns})),2;if(pathArgs.length>1)return output_manager_default.error(`Too many arguments. Usage: ${getCommandName(USAGE)}`),2;if(!isRuleEnvironment(environmentArg))return invalidArguments(client,`${ENVIRONMENT_ERROR} Received: ${environmentArg}`);let sampleRate=parseSampleRate(rateArg);if(sampleRate===void 0)return invalidArguments(client,`${RATE_ERROR} Received: ${rateArg}`);if(pathArg!==void 0&&pathArg.trim()==="")return invalidArguments(client,EMPTY_PATH_ERROR);let formatResult=validateJsonOutput(flags);if(!formatResult.valid)return output_manager_default.error(formatResult.error),1;let asJson=formatResult.jsonOutput||client.nonInteractive,scope=await resolveConfigScope(client,{project:flags["--project"]});if("exitCode"in scope)return scope.exitCode;let rule={environment:environmentArg,requestPath:pathArg??null,sampleRate};asJson||output_manager_default.spinner("Updating trace sampling rules\u2026");let project,tracing,entries;try{({project,tracing,entries}=await readProjectTracing({client,...scope}))}catch(err){return output_manager_default.stopSpinner(),handleTracingApiError(client,err)}let existingIndex=entries.findIndex(entry=>hasSameKey(entry.row,rule)),previous=existingIndex===-1?void 0:entries[existingIndex].row,nextRules=existingIndex===-1?[...entries.map(entry=>entry.rule),toRule(rule)]:entries.map((entry,index)=>index===existingIndex?{...entry.rule,rate:toApiRate(rule.sampleRate)}:entry.rule);if(nextRules.length>RULE_LIMIT)return output_manager_default.stopSpinner(),invalidArguments(client,`A project can have at most ${RULE_LIMIT} trace sampling rules, and ${project.name} already has ${entries.length}. Remove one with ${getCommandName("traces config rm <environment> [requestPath]")} first.`);try{await writeSamplingRules({client,...scope,tracing,rules:nextRules})}catch(err){return output_manager_default.stopSpinner(),handleTracingApiError(client,err)}output_manager_default.stopSpinner();let target=formatRuleTarget(rule.environment,rule.requestPath),wasClause=previous?` (was ${formatRate(previous.sampleRate)})`:"",successLine=subject=>`Set ${subject} to ${formatRate(rule.sampleRate)}${wasClause}. ${nextRules.length} of ${RULE_LIMIT} rules.`;return asJson?(writeConfigJson(client,{project,bare:rule,envelope:{rule,previousSampleRate:previous?.sampleRate??null,ruleCount:nextRules.length,ruleLimit:RULE_LIMIT},message:successLine(target),next:[{command:getCommandNamePlain("traces config ls"),when:"Read back every sampling rule"}]}),0):(output_manager_default.success(successLine(import_chalk.default.bold(target))),0)}export{set as default};
@@ -1,7 +0,0 @@
1
- import { createRequire as __createRequire } from 'node:module';
2
- import { fileURLToPath as __fileURLToPath } from 'node:url';
3
- import { dirname as __dirname_ } from 'node:path';
4
- const require = __createRequire(import.meta.url);
5
- const __filename = __fileURLToPath(import.meta.url);
6
- const __dirname = __dirname_(__filename);
7
- import{applyGitConnectIntent,connectGitRepository,resolveGitConnectIntent,setupAndLink,shouldPromptForRootDirectory}from"./chunk-2JRC4QJO.js";import"./chunk-KEVHEKQZ.js";import"./chunk-BN3XAVPG.js";import"./chunk-7RR7MIMT.js";import"./chunk-QHJLRTVY.js";import"./chunk-3B4P7YHO.js";import"./chunk-57DOAKMY.js";import"./chunk-4GA73K74.js";import"./chunk-XQQGQ55A.js";import"./chunk-2H77IRPI.js";import"./chunk-OHDEHZLX.js";import"./chunk-M2W3HKV3.js";import"./chunk-PHW54NU5.js";import"./chunk-GIIG5KNF.js";import"./chunk-DT3EUC6S.js";import"./chunk-4KJZA5JH.js";import"./chunk-P2O5DOYE.js";import"./chunk-L3JDEHCQ.js";import"./chunk-OEICO6OI.js";import"./chunk-GBWSLOL5.js";import"./chunk-USSZAG2L.js";import"./chunk-ULLWCOYC.js";import"./chunk-N6CNMMSZ.js";import"./chunk-I46LFJJG.js";import"./chunk-JS5WLQ6E.js";import"./chunk-RBJ4IMRF.js";import"./chunk-EMDAZAWN.js";import"./chunk-23NBYS6R.js";import"./chunk-5UOVEMYX.js";import"./chunk-SOJCELXH.js";import"./chunk-SXUEGVWB.js";import"./chunk-6BZCSVH6.js";import"./chunk-6TAQ6OWD.js";import"./chunk-R3B67TKQ.js";import"./chunk-C5KVTG2O.js";import"./chunk-6NPXWN5F.js";import"./chunk-WPS6JZF6.js";import"./chunk-ROQLVSZT.js";import"./chunk-JSKGZLE4.js";import"./chunk-A5VLP25I.js";import"./chunk-RCTYVKM5.js";import"./chunk-7T6TL3GQ.js";import"./chunk-GHM7V3GG.js";import"./chunk-5XJNPXQK.js";import"./chunk-IMN3Z3VV.js";import"./chunk-WWB66KP5.js";import"./chunk-MY4MONOH.js";import"./chunk-TKNV5ONT.js";import"./chunk-F2ZWW2IO.js";import"./chunk-B4ATVYZW.js";import"./chunk-PPCFQQSU.js";import"./chunk-BRK4OB4B.js";import"./chunk-OSCCYU74.js";import"./chunk-KCARCOP5.js";import"./chunk-BKV35LVB.js";import"./chunk-JAJW3P42.js";import"./chunk-YMM3VY3J.js";import"./chunk-SM5JI6QM.js";import"./chunk-VOZEB6PD.js";import"./chunk-RINZXCDJ.js";import"./chunk-FI772UVH.js";import"./chunk-EWWFNMPZ.js";import"./chunk-QGIQK47P.js";import"./chunk-AVSPFBLM.js";import"./chunk-XCJDGQO7.js";import"./chunk-YPTLSODC.js";import"./chunk-7HL2RPUO.js";import"./chunk-U7KCDTCH.js";import"./chunk-N3ZZ7FHQ.js";import"./chunk-GU6VIFR5.js";import"./chunk-6L236MNA.js";export{applyGitConnectIntent,connectGitRepository,setupAndLink as default,resolveGitConnectIntent,shouldPromptForRootDirectory};