Skip to content
Docs

vercel global-config

The vercel global-config command manages Global Config stores from the CLI. It mirrors the dashboard API surface: create stores, inspect metadata, patch items in batch, list items, manage read tokens, and restore backups. For an overview of Global Config and how to read from it at runtime, see Vercel Global Config.

vercel edge-config continues to work as an alias for vercel global-config following the rename from Edge Config to Global Config.

terminal
vercel global-config [subcommand]

Using the vercel global-config command to manage Global Config stores.

Lists Global Config stores for the current team. Running vercel global-config with no subcommand runs list.

terminal
vercel global-config
vercel global-config list
vercel global-config list --format json
List stores. Use --format json for machine-readable output.
OptionTypeDescription
-F, --format <FORMAT>StringOutput format (json)

Creates a new Global Config store with the given slug. Optionally seeds it with initial items.

terminal
vercel global-config add flags
vercel global-config add flags --items '{"betaUiEnabled":true,"region":"sfo1"}'

Create a store with slug flags, optionally with seed items.

ArgumentRequiredDescription
slugYesSlug for the new Global Config store
OptionTypeDescription
--items <JSON>StringOptional JSON object of initial items ({ "key": <value>, ... })
-F, --format <FORMAT>StringOutput format (json)

Shows metadata for a Global Config store. Accepts either the store ID (starts with ecfg_) or the slug.

terminal
vercel global-config get flags
vercel global-config get ecfg_abc123 --format json
Inspect a store by ID or slug.
ArgumentRequiredDescription
id-or-slugYesStore ID (e.g. ecfg_abc123) or slug
OptionTypeDescription
-F, --format <FORMAT>StringOutput format (json)

Renames a Global Config store (--slug) and/or patches its items (--patch). For complex updates, use the batch items API shape.

terminal
vercel global-config update flags --slug feature-flags
vercel global-config update flags --patch '{"items":[{"operation":"upsert","key":"betaUiEnabled","value":true}]}'

Rename a store and/or patch items in batch.

ArgumentRequiredDescription
id-or-slugYesStore ID or slug
OptionTypeDescription
--slug <SLUG>StringNew slug for the store
--patch <JSON>StringBatch items payload ({"items":[...]} or a bare array). Each item needs operation (create, update, upsert, or delete), key, and usually value
-F, --format <FORMAT>StringOutput format (json)

Deletes a Global Config store.

terminal
vercel global-config remove flags --yes
Delete a store. Use --yes to skip the confirmation prompt.
ArgumentRequiredDescription
id-or-slugYesStore ID or slug
OptionTypeDescription
-y, --yesBooleanSkip the confirmation prompt
-F, --format <FORMAT>StringOutput format (json)

Lists items in a Global Config store, or fetches one item with --key.

terminal
vercel global-config items flags
vercel global-config items flags --key betaUiEnabled
List all items, or fetch a single item by key.
ArgumentRequiredDescription
id-or-slugYesStore ID or slug
OptionTypeDescription
-k, --key <KEY>StringWhen set, fetch a single item by key
-F, --format <FORMAT>StringOutput format (json)

Lists, creates (--add), or revokes (--remove) read tokens for a Global Config store. Read tokens authenticate Global Config reads from your application at runtime.

terminal
vercel global-config tokens flags
vercel global-config tokens flags --add "Production read"
vercel global-config tokens flags --remove tok_abc123 --yes
List, create, or revoke read tokens for a store.
ArgumentRequiredDescription
id-or-slugYesStore ID or slug
OptionTypeDescription
--add <LABEL>StringCreate a new read token with this label (1-52 characters)
--remove <ID_OR_TOKEN>String[]Revoke one or more tokens by ID or plaintext token (repeatable). Requires --yes in non-interactive mode
-y, --yesBooleanSkip the confirmation prompt
-F, --format <FORMAT>StringOutput format (json)

Lists backups for a Global Config store, fetches a single backup version with --backup-version, or restores items from a backup with --restore.

terminal
vercel global-config backups flags
vercel global-config backups flags --backup-version backup_version_abc123 --format json
vercel global-config backups flags --restore backup_version_abc123 --yes
List, inspect, or restore backups for a store.

Restoring a backup updates live Global Config items immediately. Use --yes to skip the confirmation prompt in non-interactive environments.

ArgumentRequiredDescription
id-or-slugYesStore ID or slug
OptionTypeDescription
--backup-version <VERSION_ID>StringFetch a single backup version by ID
--restore <VERSION_ID>StringRestore items from a backup version. Cannot be used with --backup-version
--limit <NUMBER>NumberMaximum number of backups to list (0 to 50)
--next <CURSOR>StringPagination cursor from a previous backup list response
-y, --yesBooleanSkip the confirmation prompt when restoring
-F, --format <FORMAT>StringOutput format (json)
terminal
vercel global-config add flags --items '{"betaUiEnabled":false,"region":"sfo1"}'
Create a store with two initial items.
terminal
vercel global-config update flags --patch '{"items":[
  {"operation":"upsert","key":"betaUiEnabled","value":true},
  {"operation":"delete","key":"oldFlag"}
]}'

Apply a batch of item operations in one call. See the batch items REST API reference.

terminal
vercel global-config tokens flags --add "Production read"

Create a labeled read token. The CLI prints the plaintext token (and its ID) once; capture it before it scrolls away.

terminal
vercel global-config backups flags --restore backup_version_abc123 --yes

Restore flags from a backup version and skip the confirmation prompt.

The Global Config SDK reads from a GLOBAL_CONFIG environment variable (falling back to EDGE_CONFIG) that contains a full connection string, not just the token. The connection string format is:

connection string
https://global-config.vercel.com/<globalConfigId>?token=<token>

Use vercel global-config get <id-or-slug> to look up the Global Config ID, then combine it with the token. See Global Config dashboard for details on the connection string format.

The following global options can be passed when using the vercel global-config command:

For more information on global options and their usage, refer to the options section.

Last updated August 11, 2026

Was this helpful?

supported.