vercel 58.1.0 → 58.3.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 (106) hide show
  1. package/dist/chunks/{add-QKP6ZCHQ.js → add-3RKTVRL7.js} +10 -8
  2. package/dist/chunks/{add-WKV7KU4Y.js → add-X634O3US.js} +12 -9
  3. package/dist/chunks/add-YTFWON7N.js +187 -0
  4. package/dist/chunks/{build-ZXEK6YEA.js → build-DJIDUWYB.js} +12 -9
  5. package/dist/chunks/{chunk-E4LXCO7U.js → chunk-2SFMOCWR.js} +1 -1
  6. package/dist/chunks/{chunk-NYURBHZJ.js → chunk-3KNPVXJ3.js} +1 -1
  7. package/dist/chunks/chunk-3ZE5CFVM.js +346 -0
  8. package/dist/chunks/{chunk-AX3N4MO2.js → chunk-4LDQIDRM.js} +1 -1
  9. package/dist/chunks/{chunk-LXA2GZ7U.js → chunk-4N7XLXM2.js} +1 -1
  10. package/dist/chunks/{chunk-75MDJ6TK.js → chunk-4UYKSYKQ.js} +1 -1
  11. package/dist/chunks/{chunk-OVW5WUCR.js → chunk-5YXUTGSY.js} +1 -1
  12. package/dist/chunks/{chunk-OG7DIS52.js → chunk-752Z4JQP.js} +1 -1
  13. package/dist/chunks/{chunk-VSMCQSGH.js → chunk-7QVJTI5H.js} +1 -1
  14. package/dist/chunks/{chunk-TCBOCSWF.js → chunk-A5KP5HAI.js} +1 -1
  15. package/dist/chunks/{chunk-V6WHZAPP.js → chunk-AW5YINX6.js} +8 -4
  16. package/dist/chunks/{chunk-YITWM37U.js → chunk-AZNCOIGT.js} +2 -2
  17. package/dist/chunks/{chunk-NGYOR3MN.js → chunk-B3JTF4CF.js} +1 -1
  18. package/dist/chunks/{chunk-4QVAYRYH.js → chunk-BEQV3X2L.js} +16 -1
  19. package/dist/chunks/{chunk-DKS4XDVC.js → chunk-BM5FP7VW.js} +7 -5
  20. package/dist/chunks/{chunk-3YARBN7P.js → chunk-C33L5ZKY.js} +4 -4
  21. package/dist/chunks/{chunk-XTQADJ6S.js → chunk-C6BDHNNF.js} +3 -3
  22. package/dist/chunks/{chunk-TPB4F5XN.js → chunk-CSJBZKC5.js} +1 -1
  23. package/dist/chunks/{chunk-QCB22TQG.js → chunk-D3EEVTWR.js} +2 -2
  24. package/dist/chunks/{chunk-XAWGGWSG.js → chunk-EBLH23AQ.js} +2 -2
  25. package/dist/chunks/{chunk-32IPC6RB.js → chunk-GFG6QDIE.js} +1 -1
  26. package/dist/chunks/{chunk-CSI7GEDD.js → chunk-IH5JOYGQ.js} +2 -2
  27. package/dist/chunks/chunk-J6LK45HT.js +163 -0
  28. package/dist/chunks/{chunk-CXICXWXJ.js → chunk-JID5CRQL.js} +3 -3
  29. package/dist/chunks/{chunk-FBPCJV72.js → chunk-JLWQWYKO.js} +2 -2
  30. package/dist/chunks/{chunk-RL7X7JGK.js → chunk-KBEX5MYS.js} +1 -136
  31. package/dist/chunks/{chunk-LA3BQQQK.js → chunk-KT4XXKJK.js} +1 -1
  32. package/dist/chunks/{chunk-FR352QKR.js → chunk-M22O6CYY.js} +1 -1
  33. package/dist/chunks/{chunk-XTLNPNWY.js → chunk-MAHXF73X.js} +2 -2
  34. package/dist/chunks/{chunk-KLNWR2JI.js → chunk-MTW6MVY7.js} +10 -8
  35. package/dist/chunks/{chunk-JNP3FQR3.js → chunk-NVSQ6KXI.js} +1 -1
  36. package/dist/chunks/{chunk-KY3ZOYJW.js → chunk-O5GNPPTU.js} +1 -1
  37. package/dist/chunks/{chunk-BAUVB2VF.js → chunk-OTQD3MHJ.js} +4 -4
  38. package/dist/chunks/{chunk-C267R2FA.js → chunk-PNXQB4IO.js} +5 -5
  39. package/dist/chunks/{chunk-552YY6QY.js → chunk-QZV24TDR.js} +10 -8
  40. package/dist/chunks/{chunk-TF627KEI.js → chunk-RQ7H43CJ.js} +1 -1
  41. package/dist/chunks/{chunk-JA3QX2H6.js → chunk-RUOBMMEA.js} +2 -2
  42. package/dist/chunks/{chunk-U6PPDPR5.js → chunk-SOFC4MLS.js} +1 -0
  43. package/dist/chunks/{chunk-HXTQVMJZ.js → chunk-UDDCOV62.js} +2 -2
  44. package/dist/chunks/{chunk-5AG7MR7W.js → chunk-UJNNTGJY.js} +3 -3
  45. package/dist/chunks/{chunk-4LSERVQQ.js → chunk-UQJMDWCY.js} +7 -5
  46. package/dist/chunks/{chunk-2D22CMQ7.js → chunk-WXJ6E3MY.js} +6 -4
  47. package/dist/chunks/{chunk-4I7DTZAJ.js → chunk-XIG4GH62.js} +2 -2
  48. package/dist/chunks/chunk-XLKFJPMT.js +150 -0
  49. package/dist/chunks/{chunk-S7LXRKLD.js → chunk-Z5ZQJ5VJ.js} +14 -14
  50. package/dist/chunks/{chunk-6QUKJKFX.js → chunk-ZPH66MB6.js} +313 -290
  51. package/dist/chunks/{chunk-P7IO46BQ.js → chunk-ZX2FSPWV.js} +2 -2
  52. package/dist/chunks/clear-J3OCB2DQ.js +132 -0
  53. package/dist/chunks/{compile-vercel-config-AFGCQEYG.js → compile-vercel-config-G2WILJR4.js} +5 -4
  54. package/dist/chunks/{delete-UGSJQBE7.js → delete-3NQLU7PQ.js} +7 -6
  55. package/dist/chunks/{delete-Y5LNEZXI.js → delete-HKUZTZE7.js} +7 -6
  56. package/dist/chunks/{disable-IF3AHKJD.js → disable-7AIA4JV3.js} +7 -6
  57. package/dist/chunks/{discard-Y6GZBIHJ.js → discard-MIGUGPGO.js} +7 -6
  58. package/dist/chunks/{edit-6TGJKUI5.js → edit-3AU746TG.js} +8 -7
  59. package/dist/chunks/{edit-HNMKZ3YT.js → edit-MDQW3S4R.js} +7 -6
  60. package/dist/chunks/{enable-SE4QM4X3.js → enable-EGNWRQEI.js} +7 -6
  61. package/dist/chunks/{export-5AYL7HCJ.js → export-EMBHNUMU.js} +7 -6
  62. package/dist/chunks/{image-6BYNQVGW.js → image-XXZ5DRIW.js} +5 -5
  63. package/dist/chunks/{inspect-FGYXO4K5.js → inspect-7V5ZHBBB.js} +13 -11
  64. package/dist/chunks/{inspect-LTHZUXA2.js → inspect-MYUNZMLJ.js} +10 -8
  65. package/dist/chunks/{inspect-3KCFHDWA.js → inspect-O7SVDBHM.js} +13 -10
  66. package/dist/chunks/{inspect-DPTRYDFH.js → inspect-S5WJ47OH.js} +8 -7
  67. package/dist/chunks/{inspect-MA36GG73.js → inspect-TXVTHRAZ.js} +10 -8
  68. package/dist/chunks/{list-BTOXZBQK.js → list-BQLJJACX.js} +13 -11
  69. package/dist/chunks/{list-VTQZSIIT.js → list-LC2ON7OM.js} +8 -6
  70. package/dist/chunks/{list-OCW34SRV.js → list-NZ4ZOO6B.js} +8 -7
  71. package/dist/chunks/{login-VSXLK5ZU.js → login-4B7KPSUW.js} +12 -9
  72. package/dist/chunks/ls-4J2WGR7U.js +178 -0
  73. package/dist/chunks/{ls-DRI2AOFB.js → ls-7XMM4KCU.js} +14 -11
  74. package/dist/chunks/{ls-76YTWNKD.js → ls-FRSKR6K2.js} +11 -9
  75. package/dist/chunks/{ls-3UA57DZZ.js → ls-TWNQ7KZN.js} +13 -11
  76. package/dist/chunks/{ls-ZBLTJ5RE.js → ls-WCTLFAPI.js} +11 -9
  77. package/dist/chunks/{open-DVKAE5HP.js → open-J4SAVWUP.js} +7 -6
  78. package/dist/chunks/permissions-67T43WNH.js +95 -0
  79. package/dist/chunks/{publish-F5C4ZA7M.js → publish-CSXOTJLD.js} +7 -6
  80. package/dist/chunks/{push-PKJFQTLO.js → push-7KOVRV5N.js} +12 -9
  81. package/dist/chunks/{query-GT5LCT45.js → query-CTRPYYXR.js} +12 -10
  82. package/dist/chunks/{reorder-AQW4XFDS.js → reorder-E4PPJNEX.js} +7 -6
  83. package/dist/chunks/{reply-FI7SADGU.js → reply-Z742BMF3.js} +7 -6
  84. package/dist/chunks/{resolve-C5G7JJZJ.js → resolve-KPZJZ6IQ.js} +7 -6
  85. package/dist/chunks/{restore-5TLSHQOS.js → restore-ZTH2FY4I.js} +7 -6
  86. package/dist/chunks/{rm-2EN66OYO.js → rm-C4ODJDWP.js} +10 -8
  87. package/dist/chunks/{rm-L7OQPCIE.js → rm-DE37CFKU.js} +13 -10
  88. package/dist/chunks/{rm-C37BHGQI.js → rm-FVGLSIHP.js} +10 -8
  89. package/dist/chunks/rm-VOFJM4XW.js +186 -0
  90. package/dist/chunks/{rule-inspect-V5DRHOTZ.js → rule-inspect-6RLS3ZNB.js} +13 -11
  91. package/dist/chunks/{rules-5XEMLN5G.js → rules-VSXJT2QE.js} +8 -8
  92. package/dist/chunks/{schema-UEOZVBY5.js → schema-3E24G2AG.js} +11 -9
  93. package/dist/chunks/{tags-ZGANV4YD.js → tags-AIZLNITP.js} +4 -4
  94. package/dist/chunks/{types-IKWGLSDF.js → types-QTOA2BTQ.js} +7 -5
  95. package/dist/chunks/{update-DHWSMSMS.js → update-QHWT7YG4.js} +10 -8
  96. package/dist/commands/build/index.js +15 -15
  97. package/dist/commands/deploy/index.js +28 -25
  98. package/dist/commands/dev/index.js +85 -17
  99. package/dist/commands/env/index.js +27 -24
  100. package/dist/commands/link/index.js +25 -22
  101. package/dist/commands/list/index.js +11 -9
  102. package/dist/commands-bulk.js +2204 -1817
  103. package/dist/help.js +1 -1
  104. package/dist/index.js +37 -34
  105. package/dist/version.mjs +1 -1
  106. package/package.json +38 -31
@@ -6,35 +6,35 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  vcrCommand
9
- } from "./chunk-V6WHZAPP.js";
9
+ } from "./chunk-AW5YINX6.js";
10
10
  import {
11
11
  metricsCommand
12
- } from "./chunk-TPB4F5XN.js";
12
+ } from "./chunk-CSJBZKC5.js";
13
13
  import {
14
14
  routesCommand
15
- } from "./chunk-FR352QKR.js";
15
+ } from "./chunk-M22O6CYY.js";
16
16
  import {
17
17
  commentsCommand
18
- } from "./chunk-AX3N4MO2.js";
18
+ } from "./chunk-4LDQIDRM.js";
19
19
  import {
20
20
  activityCommand
21
- } from "./chunk-NYURBHZJ.js";
21
+ } from "./chunk-3KNPVXJ3.js";
22
22
  import {
23
23
  alertsCommand
24
- } from "./chunk-XTLNPNWY.js";
24
+ } from "./chunk-MAHXF73X.js";
25
25
  import {
26
26
  devCommand
27
- } from "./chunk-VSMCQSGH.js";
27
+ } from "./chunk-7QVJTI5H.js";
28
28
  import {
29
29
  listCommand
30
- } from "./chunk-KY3ZOYJW.js";
30
+ } from "./chunk-O5GNPPTU.js";
31
31
  import {
32
32
  buildCommand,
33
33
  pullCommand
34
- } from "./chunk-JA3QX2H6.js";
34
+ } from "./chunk-RUOBMMEA.js";
35
35
  import {
36
36
  envCommand
37
- } from "./chunk-DKS4XDVC.js";
37
+ } from "./chunk-BM5FP7VW.js";
38
38
  import {
39
39
  confirmOption,
40
40
  deploymentOption,
@@ -47,7 +47,7 @@ import {
47
47
  projectOption,
48
48
  protectionBypassOption,
49
49
  yesOption
50
- } from "./chunk-U6PPDPR5.js";
50
+ } from "./chunk-SOFC4MLS.js";
51
51
  import {
52
52
  output_manager_default
53
53
  } from "./chunk-OX7KI3LF.js";
@@ -1737,7 +1737,27 @@ var bisectCommand = {
1737
1737
  ]
1738
1738
  };
1739
1739
 
1740
+ // src/util/buy/custom-environment-addon.ts
1741
+ var CUSTOM_ENVIRONMENTS_PER_PACK = 5;
1742
+ var CUSTOM_ENVIRONMENT_EXAMPLE_PACK_COUNT = 2;
1743
+ var CUSTOM_ENVIRONMENT_ADDON_ALIASES = /* @__PURE__ */ new Set([
1744
+ "customenvironment",
1745
+ "custom-environment",
1746
+ "custom-environments",
1747
+ "custom_environment",
1748
+ "custom_environments"
1749
+ ]);
1750
+ function isCustomEnvironmentAddonAlias(name) {
1751
+ return CUSTOM_ENVIRONMENT_ADDON_ALIASES.has(name.toLowerCase());
1752
+ }
1753
+ function customEnvironmentPackEnvironments(packs) {
1754
+ return packs * CUSTOM_ENVIRONMENTS_PER_PACK;
1755
+ }
1756
+
1740
1757
  // src/commands/buy/command.ts
1758
+ var EXAMPLE_CUSTOM_ENVIRONMENT_COUNT = customEnvironmentPackEnvironments(
1759
+ CUSTOM_ENVIRONMENT_EXAMPLE_PACK_COUNT
1760
+ );
1741
1761
  var SUPPORTED_CREDIT_TYPES = ["v0", "gateway", "agent"];
1742
1762
  var CREDIT_TYPE_LABELS = {
1743
1763
  v0: "v0",
@@ -1784,12 +1804,12 @@ var creditsSubcommand = {
1784
1804
  var SUPPORTED_ADDON_ALIASES = ["siem", "customEnvironment"];
1785
1805
  var ADDON_LABELS = {
1786
1806
  siem: "SIEM",
1787
- customEnvironment: "Custom Environments"
1807
+ customEnvironment: "Custom Environment"
1788
1808
  };
1789
1809
  var addonSubcommand = {
1790
1810
  name: "addon",
1791
- aliases: ["addons"],
1792
- description: "Purchase a Vercel addon for your team",
1811
+ aliases: ["addons", "add-on"],
1812
+ description: `Purchase a Vercel addon for your team. Supported addons: ${SUPPORTED_ADDON_ALIASES.join(", ")}. Custom environment purchases are per project and use packs (each pack adds ${CUSTOM_ENVIRONMENTS_PER_PACK} environments).`,
1793
1813
  arguments: [
1794
1814
  {
1795
1815
  name: "addon-name",
@@ -1805,17 +1825,21 @@ var addonSubcommand = {
1805
1825
  ...yesOption,
1806
1826
  description: "Skip the confirmation prompt"
1807
1827
  },
1808
- formatOption,
1809
- jsonOption
1828
+ jsonOption,
1829
+ projectOption
1810
1830
  ],
1811
1831
  examples: [
1812
1832
  {
1813
- name: "Purchase 1 unit of the SIEM addon",
1833
+ name: "Purchase 1 SIEM addon",
1814
1834
  value: `${packageName} buy addon siem 1`
1815
1835
  },
1816
1836
  {
1817
- name: "Purchase 1 unit of the Custom Environments addon",
1818
- value: `${packageName} buy addon customEnvironment 1`
1837
+ name: `Purchase ${CUSTOM_ENVIRONMENT_EXAMPLE_PACK_COUNT} custom environment packs (${EXAMPLE_CUSTOM_ENVIRONMENT_COUNT} environments) for a project`,
1838
+ value: `${packageName} buy addon customEnvironment ${CUSTOM_ENVIRONMENT_EXAMPLE_PACK_COUNT} --project my-app`
1839
+ },
1840
+ {
1841
+ name: "Remove purchased custom environment capacity",
1842
+ value: `${packageName} buy addon customEnvironment 0 --project my-app --yes`
1819
1843
  }
1820
1844
  ]
1821
1845
  };
@@ -1882,10 +1906,6 @@ var buyCommand = {
1882
1906
  name: "Purchase the SIEM addon",
1883
1907
  value: `${packageName} buy addon siem 1`
1884
1908
  },
1885
- {
1886
- name: "Purchase the Custom Environments addon",
1887
- value: `${packageName} buy addon customEnvironment 1`
1888
- },
1889
1909
  {
1890
1910
  name: "Upgrade to Pro",
1891
1911
  value: `${packageName} buy pro`
@@ -3509,254 +3529,6 @@ var domainsCommand = {
3509
3529
  examples: []
3510
3530
  };
3511
3531
 
3512
- // src/commands/edge-config/command.ts
3513
- var listSubcommand11 = {
3514
- name: "list",
3515
- aliases: ["ls"],
3516
- description: "List Edge Config stores for the current team",
3517
- default: true,
3518
- arguments: [],
3519
- options: [formatOption, jsonOption],
3520
- examples: [
3521
- {
3522
- name: "List Edge Configs as JSON",
3523
- value: `${packageName} edge-config list --json`
3524
- }
3525
- ]
3526
- };
3527
- var addSubcommand6 = {
3528
- name: "add",
3529
- aliases: ["create"],
3530
- description: "Create an Edge Config store",
3531
- arguments: [
3532
- {
3533
- name: "slug",
3534
- required: true
3535
- }
3536
- ],
3537
- options: [
3538
- formatOption,
3539
- jsonOption,
3540
- {
3541
- name: "items",
3542
- shorthand: null,
3543
- type: String,
3544
- argument: "JSON",
3545
- deprecated: false,
3546
- description: 'Optional JSON object of initial items `{ "key": <value>, ... }`'
3547
- }
3548
- ],
3549
- examples: [
3550
- {
3551
- name: "Create a store with slug `flags`",
3552
- value: `${packageName} edge-config add flags`
3553
- }
3554
- ]
3555
- };
3556
- var getSubcommand = {
3557
- name: "get",
3558
- aliases: ["inspect"],
3559
- description: "Show metadata for an Edge Config (id `ecfg_\u2026` or slug)",
3560
- arguments: [
3561
- {
3562
- name: "id-or-slug",
3563
- required: true
3564
- }
3565
- ],
3566
- options: [formatOption, jsonOption],
3567
- examples: []
3568
- };
3569
- var updateSubcommand2 = {
3570
- name: "update",
3571
- aliases: [],
3572
- description: "Rename an Edge Config (`--slug`) and/or patch items (`--patch` JSON)",
3573
- arguments: [
3574
- {
3575
- name: "id-or-slug",
3576
- required: true
3577
- }
3578
- ],
3579
- options: [
3580
- formatOption,
3581
- jsonOption,
3582
- {
3583
- name: "slug",
3584
- shorthand: null,
3585
- type: String,
3586
- argument: "SLUG",
3587
- deprecated: false,
3588
- description: "New slug for the Edge Config"
3589
- },
3590
- {
3591
- name: "patch",
3592
- shorthand: null,
3593
- type: String,
3594
- argument: "JSON",
3595
- deprecated: false,
3596
- description: 'JSON for `PATCH /v1/edge-config/:id/items`: `{"items":[...]}` or a bare array. Each item needs `operation` (create | update | upsert | delete), `key`, and usually `value` (see REST API: update-edge-config-items-in-batch)'
3597
- }
3598
- ],
3599
- examples: []
3600
- };
3601
- var removeSubcommand8 = {
3602
- name: "remove",
3603
- aliases: ["rm", "delete"],
3604
- description: "Delete an Edge Config store",
3605
- arguments: [
3606
- {
3607
- name: "id-or-slug",
3608
- required: true
3609
- }
3610
- ],
3611
- options: [yesOption, formatOption, jsonOption],
3612
- examples: []
3613
- };
3614
- var itemsSubcommand = {
3615
- name: "items",
3616
- aliases: [],
3617
- description: "List items in an Edge Config, or fetch one item with `--key`",
3618
- arguments: [
3619
- {
3620
- name: "id-or-slug",
3621
- required: true
3622
- }
3623
- ],
3624
- options: [
3625
- formatOption,
3626
- jsonOption,
3627
- {
3628
- name: "key",
3629
- shorthand: "k",
3630
- type: String,
3631
- argument: "KEY",
3632
- deprecated: false,
3633
- description: "When set, fetch a single item by key"
3634
- }
3635
- ],
3636
- examples: []
3637
- };
3638
- var tokensSubcommand = {
3639
- name: "tokens",
3640
- aliases: [],
3641
- description: "List, create (`--add`), or revoke (`--remove`) read tokens for an Edge Config",
3642
- arguments: [
3643
- {
3644
- name: "id-or-slug",
3645
- required: true
3646
- }
3647
- ],
3648
- options: [
3649
- formatOption,
3650
- jsonOption,
3651
- yesOption,
3652
- {
3653
- name: "add",
3654
- shorthand: null,
3655
- type: String,
3656
- argument: "LABEL",
3657
- deprecated: false,
3658
- description: "Create a token with this label (1\u201352 characters)"
3659
- },
3660
- {
3661
- name: "remove",
3662
- shorthand: null,
3663
- type: [String],
3664
- argument: "ID_OR_TOKEN",
3665
- deprecated: false,
3666
- description: "Revoke one or more tokens by id or plaintext token (repeatable). Requires `--yes` in non-interactive mode"
3667
- }
3668
- ],
3669
- examples: []
3670
- };
3671
- var backupsSubcommand = {
3672
- name: "backups",
3673
- aliases: [],
3674
- description: "List, inspect, or restore Edge Config backups",
3675
- arguments: [
3676
- {
3677
- name: "id-or-slug",
3678
- required: true
3679
- }
3680
- ],
3681
- options: [
3682
- formatOption,
3683
- jsonOption,
3684
- {
3685
- ...yesOption,
3686
- description: "Skip the confirmation prompt when restoring"
3687
- },
3688
- {
3689
- name: "backup-version",
3690
- shorthand: null,
3691
- type: String,
3692
- argument: "VERSION_ID",
3693
- deprecated: false,
3694
- description: "Fetch a single backup by version id"
3695
- },
3696
- {
3697
- name: "restore",
3698
- shorthand: null,
3699
- type: String,
3700
- argument: "VERSION_ID",
3701
- deprecated: false,
3702
- description: "Restore items from the backup version id. Requires confirmation because it updates live Edge Config items"
3703
- },
3704
- {
3705
- name: "limit",
3706
- shorthand: null,
3707
- type: Number,
3708
- argument: "NUMBER",
3709
- deprecated: false,
3710
- description: "Maximum number of backups to list (0-50)"
3711
- },
3712
- {
3713
- name: "next",
3714
- shorthand: null,
3715
- type: String,
3716
- argument: "CURSOR",
3717
- deprecated: false,
3718
- description: "Pagination cursor from a previous backup list response"
3719
- }
3720
- ],
3721
- examples: [
3722
- {
3723
- name: "List backups for an Edge Config",
3724
- value: `${packageName} edge-config backups my-store`
3725
- },
3726
- {
3727
- name: "Inspect a backup as JSON",
3728
- value: `${packageName} edge-config backups my-store --backup-version <version-id> --json`
3729
- },
3730
- {
3731
- name: "Restore a backup",
3732
- value: `${packageName} edge-config backups my-store --restore <version-id> --yes`
3733
- }
3734
- ]
3735
- };
3736
- var edgeConfigCommand = {
3737
- name: "edge-config",
3738
- aliases: [],
3739
- description: "Manage Edge Config stores (dashboard API parity)",
3740
- arguments: [],
3741
- subcommands: [
3742
- listSubcommand11,
3743
- addSubcommand6,
3744
- getSubcommand,
3745
- updateSubcommand2,
3746
- removeSubcommand8,
3747
- itemsSubcommand,
3748
- tokensSubcommand,
3749
- backupsSubcommand
3750
- ],
3751
- options: [],
3752
- examples: [
3753
- {
3754
- name: "List stores",
3755
- value: `${packageName} edge-config list`
3756
- }
3757
- ]
3758
- };
3759
-
3760
3532
  // src/commands/firewall/command.ts
3761
3533
  var overviewSubcommand = {
3762
3534
  name: "overview",
@@ -4735,7 +4507,7 @@ function isFlagEvaluationsGranularity(value) {
4735
4507
 
4736
4508
  // src/commands/flags/command.ts
4737
4509
  var segmentRuleOperatorDescription = `Valid operators: ${formatFlagConditionComparatorList()}`;
4738
- var listSubcommand12 = {
4510
+ var listSubcommand11 = {
4739
4511
  name: "list",
4740
4512
  aliases: ["ls"],
4741
4513
  description: "List all feature flags for the current project",
@@ -5102,7 +4874,7 @@ var openSubcommand2 = {
5102
4874
  }
5103
4875
  ]
5104
4876
  };
5105
- var updateSubcommand3 = {
4877
+ var updateSubcommand2 = {
5106
4878
  name: "update",
5107
4879
  aliases: [],
5108
4880
  description: "Update an existing feature flag",
@@ -5677,7 +5449,7 @@ var rulesSubcommand3 = {
5677
5449
  options: [],
5678
5450
  examples: []
5679
5451
  };
5680
- var removeSubcommand9 = {
5452
+ var removeSubcommand8 = {
5681
5453
  name: "remove",
5682
5454
  aliases: ["rm"],
5683
5455
  description: "Delete a feature flag",
@@ -6251,17 +6023,17 @@ var flagsCommand = {
6251
6023
  description: "Manage feature flags for a Vercel project",
6252
6024
  arguments: [],
6253
6025
  subcommands: [
6254
- listSubcommand12,
6026
+ listSubcommand11,
6255
6027
  inspectSubcommand4,
6256
6028
  versionsSubcommand,
6257
6029
  evaluationsSubcommand,
6258
6030
  createSubcommand4,
6259
6031
  openSubcommand2,
6260
- updateSubcommand3,
6032
+ updateSubcommand2,
6261
6033
  setSubcommand2,
6262
6034
  splitSubcommand,
6263
6035
  rolloutSubcommand,
6264
- removeSubcommand9,
6036
+ removeSubcommand8,
6265
6037
  archiveSubcommand,
6266
6038
  disableSubcommand,
6267
6039
  enableSubcommand,
@@ -6321,6 +6093,254 @@ var gitCommand = {
6321
6093
  examples: []
6322
6094
  };
6323
6095
 
6096
+ // src/commands/global-config/command.ts
6097
+ var listSubcommand12 = {
6098
+ name: "list",
6099
+ aliases: ["ls"],
6100
+ description: "List Global Config stores for the current team",
6101
+ default: true,
6102
+ arguments: [],
6103
+ options: [formatOption, jsonOption],
6104
+ examples: [
6105
+ {
6106
+ name: "List Global Configs as JSON",
6107
+ value: `${packageName} global-config list --json`
6108
+ }
6109
+ ]
6110
+ };
6111
+ var addSubcommand6 = {
6112
+ name: "add",
6113
+ aliases: ["create"],
6114
+ description: "Create a Global Config store",
6115
+ arguments: [
6116
+ {
6117
+ name: "slug",
6118
+ required: true
6119
+ }
6120
+ ],
6121
+ options: [
6122
+ formatOption,
6123
+ jsonOption,
6124
+ {
6125
+ name: "items",
6126
+ shorthand: null,
6127
+ type: String,
6128
+ argument: "JSON",
6129
+ deprecated: false,
6130
+ description: 'Optional JSON object of initial items `{ "key": <value>, ... }`'
6131
+ }
6132
+ ],
6133
+ examples: [
6134
+ {
6135
+ name: "Create a store with slug `flags`",
6136
+ value: `${packageName} global-config add flags`
6137
+ }
6138
+ ]
6139
+ };
6140
+ var getSubcommand = {
6141
+ name: "get",
6142
+ aliases: ["inspect"],
6143
+ description: "Show metadata for a Global Config (id `ecfg_\u2026` or slug)",
6144
+ arguments: [
6145
+ {
6146
+ name: "id-or-slug",
6147
+ required: true
6148
+ }
6149
+ ],
6150
+ options: [formatOption, jsonOption],
6151
+ examples: []
6152
+ };
6153
+ var updateSubcommand3 = {
6154
+ name: "update",
6155
+ aliases: [],
6156
+ description: "Rename a Global Config (`--slug`) and/or patch items (`--patch` JSON)",
6157
+ arguments: [
6158
+ {
6159
+ name: "id-or-slug",
6160
+ required: true
6161
+ }
6162
+ ],
6163
+ options: [
6164
+ formatOption,
6165
+ jsonOption,
6166
+ {
6167
+ name: "slug",
6168
+ shorthand: null,
6169
+ type: String,
6170
+ argument: "SLUG",
6171
+ deprecated: false,
6172
+ description: "New slug for the Global Config"
6173
+ },
6174
+ {
6175
+ name: "patch",
6176
+ shorthand: null,
6177
+ type: String,
6178
+ argument: "JSON",
6179
+ deprecated: false,
6180
+ description: 'JSON for `PATCH /v1/global-config/:id/items`: `{"items":[...]}` or a bare array. Each item needs `operation` (create | update | upsert | delete), `key`, and usually `value` (see REST API: update-edge-config-items-in-batch)'
6181
+ }
6182
+ ],
6183
+ examples: []
6184
+ };
6185
+ var removeSubcommand9 = {
6186
+ name: "remove",
6187
+ aliases: ["rm", "delete"],
6188
+ description: "Delete a Global Config store",
6189
+ arguments: [
6190
+ {
6191
+ name: "id-or-slug",
6192
+ required: true
6193
+ }
6194
+ ],
6195
+ options: [yesOption, formatOption, jsonOption],
6196
+ examples: []
6197
+ };
6198
+ var itemsSubcommand = {
6199
+ name: "items",
6200
+ aliases: [],
6201
+ description: "List items in a Global Config, or fetch one item with `--key`",
6202
+ arguments: [
6203
+ {
6204
+ name: "id-or-slug",
6205
+ required: true
6206
+ }
6207
+ ],
6208
+ options: [
6209
+ formatOption,
6210
+ jsonOption,
6211
+ {
6212
+ name: "key",
6213
+ shorthand: "k",
6214
+ type: String,
6215
+ argument: "KEY",
6216
+ deprecated: false,
6217
+ description: "When set, fetch a single item by key"
6218
+ }
6219
+ ],
6220
+ examples: []
6221
+ };
6222
+ var tokensSubcommand = {
6223
+ name: "tokens",
6224
+ aliases: [],
6225
+ description: "List, create (`--add`), or revoke (`--remove`) read tokens for a Global Config",
6226
+ arguments: [
6227
+ {
6228
+ name: "id-or-slug",
6229
+ required: true
6230
+ }
6231
+ ],
6232
+ options: [
6233
+ formatOption,
6234
+ jsonOption,
6235
+ yesOption,
6236
+ {
6237
+ name: "add",
6238
+ shorthand: null,
6239
+ type: String,
6240
+ argument: "LABEL",
6241
+ deprecated: false,
6242
+ description: "Create a token with this label (1\u201352 characters)"
6243
+ },
6244
+ {
6245
+ name: "remove",
6246
+ shorthand: null,
6247
+ type: [String],
6248
+ argument: "ID_OR_TOKEN",
6249
+ deprecated: false,
6250
+ description: "Revoke one or more tokens by id or plaintext token (repeatable). Requires `--yes` in non-interactive mode"
6251
+ }
6252
+ ],
6253
+ examples: []
6254
+ };
6255
+ var backupsSubcommand = {
6256
+ name: "backups",
6257
+ aliases: [],
6258
+ description: "List, inspect, or restore Global Config backups",
6259
+ arguments: [
6260
+ {
6261
+ name: "id-or-slug",
6262
+ required: true
6263
+ }
6264
+ ],
6265
+ options: [
6266
+ formatOption,
6267
+ jsonOption,
6268
+ {
6269
+ ...yesOption,
6270
+ description: "Skip the confirmation prompt when restoring"
6271
+ },
6272
+ {
6273
+ name: "backup-version",
6274
+ shorthand: null,
6275
+ type: String,
6276
+ argument: "VERSION_ID",
6277
+ deprecated: false,
6278
+ description: "Fetch a single backup by version id"
6279
+ },
6280
+ {
6281
+ name: "restore",
6282
+ shorthand: null,
6283
+ type: String,
6284
+ argument: "VERSION_ID",
6285
+ deprecated: false,
6286
+ description: "Restore items from the backup version id. Requires confirmation because it updates live Global Config items"
6287
+ },
6288
+ {
6289
+ name: "limit",
6290
+ shorthand: null,
6291
+ type: Number,
6292
+ argument: "NUMBER",
6293
+ deprecated: false,
6294
+ description: "Maximum number of backups to list (0-50)"
6295
+ },
6296
+ {
6297
+ name: "next",
6298
+ shorthand: null,
6299
+ type: String,
6300
+ argument: "CURSOR",
6301
+ deprecated: false,
6302
+ description: "Pagination cursor from a previous backup list response"
6303
+ }
6304
+ ],
6305
+ examples: [
6306
+ {
6307
+ name: "List backups for a Global Config",
6308
+ value: `${packageName} global-config backups my-store`
6309
+ },
6310
+ {
6311
+ name: "Inspect a backup as JSON",
6312
+ value: `${packageName} global-config backups my-store --backup-version <version-id> --json`
6313
+ },
6314
+ {
6315
+ name: "Restore a backup",
6316
+ value: `${packageName} global-config backups my-store --restore <version-id> --yes`
6317
+ }
6318
+ ]
6319
+ };
6320
+ var globalConfigCommand = {
6321
+ name: "global-config",
6322
+ aliases: ["edge-config"],
6323
+ description: "Manage Global Config stores (dashboard API parity)",
6324
+ arguments: [],
6325
+ subcommands: [
6326
+ listSubcommand12,
6327
+ addSubcommand6,
6328
+ getSubcommand,
6329
+ updateSubcommand3,
6330
+ removeSubcommand9,
6331
+ itemsSubcommand,
6332
+ tokensSubcommand,
6333
+ backupsSubcommand
6334
+ ],
6335
+ options: [],
6336
+ examples: [
6337
+ {
6338
+ name: "List stores",
6339
+ value: `${packageName} global-config list`
6340
+ }
6341
+ ]
6342
+ };
6343
+
6324
6344
  // src/commands/guidance/command.ts
6325
6345
  var statusSubcommand = {
6326
6346
  name: "status",
@@ -10730,11 +10750,11 @@ var commandsStructs = [
10730
10750
  devCommand,
10731
10751
  dnsCommand,
10732
10752
  domainsCommand,
10733
- edgeConfigCommand,
10734
10753
  envCommand,
10735
10754
  firewallCommand,
10736
10755
  flagsCommand,
10737
10756
  gitCommand,
10757
+ globalConfigCommand,
10738
10758
  httpstatCommand,
10739
10759
  initCommand,
10740
10760
  inspectCommand,
@@ -10836,6 +10856,9 @@ export {
10836
10856
  listSubcommand4,
10837
10857
  apiCommand,
10838
10858
  bisectCommand,
10859
+ CUSTOM_ENVIRONMENTS_PER_PACK,
10860
+ CUSTOM_ENVIRONMENT_EXAMPLE_PACK_COUNT,
10861
+ isCustomEnvironmentAddonAlias,
10839
10862
  SUPPORTED_CREDIT_TYPES,
10840
10863
  CREDIT_TYPE_LABELS,
10841
10864
  creditsSubcommand,
@@ -10895,15 +10918,6 @@ export {
10895
10918
  transferInSubcommand,
10896
10919
  verifySubcommand,
10897
10920
  domainsCommand,
10898
- listSubcommand11,
10899
- addSubcommand6 as addSubcommand5,
10900
- getSubcommand,
10901
- updateSubcommand2,
10902
- removeSubcommand8,
10903
- itemsSubcommand,
10904
- tokensSubcommand,
10905
- backupsSubcommand,
10906
- edgeConfigCommand,
10907
10921
  overviewSubcommand,
10908
10922
  diffSubcommand,
10909
10923
  publishSubcommand,
@@ -10938,7 +10952,7 @@ export {
10938
10952
  formatFlagConditionComparator,
10939
10953
  FLAG_EVALUATIONS_GRANULARITIES,
10940
10954
  isFlagEvaluationsGranularity,
10941
- listSubcommand12,
10955
+ listSubcommand11,
10942
10956
  inspectSubcommand4,
10943
10957
  versionsListSubcommand,
10944
10958
  versionsDiffSubcommand,
@@ -10946,7 +10960,7 @@ export {
10946
10960
  evaluationsSubcommand,
10947
10961
  createSubcommand4,
10948
10962
  openSubcommand2,
10949
- updateSubcommand3,
10963
+ updateSubcommand2,
10950
10964
  setSubcommand2,
10951
10965
  splitSubcommand,
10952
10966
  rolloutSubcommand,
@@ -10956,7 +10970,7 @@ export {
10956
10970
  rulesRemoveSubcommand3,
10957
10971
  rulesMoveSubcommand,
10958
10972
  rulesSubcommand3,
10959
- removeSubcommand9,
10973
+ removeSubcommand8,
10960
10974
  archiveSubcommand,
10961
10975
  disableSubcommand,
10962
10976
  enableSubcommand,
@@ -10976,6 +10990,15 @@ export {
10976
10990
  connectSubcommand,
10977
10991
  disconnectSubcommand,
10978
10992
  gitCommand,
10993
+ listSubcommand12,
10994
+ addSubcommand6 as addSubcommand5,
10995
+ getSubcommand,
10996
+ updateSubcommand3,
10997
+ removeSubcommand9,
10998
+ itemsSubcommand,
10999
+ tokensSubcommand,
11000
+ backupsSubcommand,
11001
+ globalConfigCommand,
10979
11002
  statusSubcommand,
10980
11003
  enableSubcommand2,
10981
11004
  disableSubcommand2,