# Manage Vercel Flags segments with Vercel CLI

DevFeed: [Manage Vercel Flags segments with Vercel CLI](<https://devfeed.tech/articles/manage-vercel-flags-segments-with-vercel-cli-1006.md>)

Original publisher: [Read original article](<https://vercel.com/changelog/manage-vercel-flags-segments-with-vercel-cli>)

Author: Chris Widmaier

Published: 2026-07-03T00:00:00Z

Content type: release

Language: en

Sources: [Vercel News](<https://devfeed.tech/sources/vercel-news.md>)

Topics: [Vercel](<https://devfeed.tech/topics/vercel.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Terminal](<https://devfeed.tech/topics/terminal.md>), [JSON](<https://devfeed.tech/topics/json.md>), [ci](<https://devfeed.tech/topics/ci.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [ci](<https://devfeed.tech/tags/ci.md>), [cli](<https://devfeed.tech/tags/cli.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [json](<https://devfeed.tech/tags/json.md>), [local](<https://devfeed.tech/tags/local.md>), [terminal](<https://devfeed.tech/tags/terminal.md>), [update](<https://devfeed.tech/tags/update.md>), [vercel](<https://devfeed.tech/tags/vercel.md>), [workflows](<https://devfeed.tech/tags/workflows.md>)

## AI overview

Vercel Flags segments can now be managed through the Vercel CLI. The update supports incremental membership changes, full replacement with raw JSON, and JSON output for automation.

## Source excerpt

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. Read more