Vercel CLI now supports direct management of Flags segments via the new `vercel flags segments` command.
Segments are the targeting primitives that determine who sees which flag variant. The command exposes three composable tokens: `include:`, `exclude:`, and `rule:`. Use `--add` or `--remove` for incremental edits, or `--data` to replace the entire segment definition with raw JSON. Every command supports `--json` output, making the whole surface scriptable inside CI pipelines, local dev workflows, or agent-driven automation.
The full documentation covers the exact token syntax and how segments compose, which is where the real implementation detail lives. Update to the latest Vercel CLI and read the Vercel Flags CLI documentation before assuming the JSON schema matches what you already have.
[READ ORIGINAL →]