cd /news/developer-tools/manage-vercel-flags-segments-with-ve… · home topics developer-tools article
[ARTICLE · art-46961] src=vercel.com ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

Manage Vercel Flags segments with Vercel CLI

Vercel released a new CLI command, `vercel flags segments`, enabling developers to manage flag segments directly from the terminal. The command supports incremental edits with `--add` and `--remove`, full replacement via `--data`, and `--json` output for scripting. This update streamlines flag targeting management for CI, local workflows, and automated pipelines.

read1 min views1 publishedJul 3, 2026

Vercel Flags segments can now be managed from the Vercel CLI with the new vercel flags segments command.

A segment is the targeting primitive a flag uses to decide who sees what. Membership composes from three repeatable tokens: include:

, exclude:

, and rule:

. Pass them to `--add`

or `--remove`

for incremental edits. For full replacement, `--data`

takes the entire segment definition as raw JSON.

All segment commands support --json output, making them scriptable from CI, local workflows, and agent-driven pipelines that need to inspect or update flag targeting from the terminal.

Update to the latest version of the Vercel CLI and learn more in the Vercel Flags CLI documentation to get started.

── more in #developer-tools 4 stories · sorted by recency
── more on @vercel 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/manage-vercel-flags-…] indexed:0 read:1min 2026-07-03 ·