{"slug": "manage-vercel-flags-segments-with-vercel-cli", "title": "Manage Vercel Flags segments with Vercel CLI", "summary": "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.", "body_md": "[Vercel Flags](https://vercel.com/docs/flags) segments can now be managed from the [Vercel CLI](https://vercel.com/docs/cli/flags) with the new `vercel flags segments`\n\ncommand.\n\nA segment is the targeting primitive a flag uses to decide who sees what. Membership composes from three repeatable tokens: `include:`\n\n, `exclude:`\n\n, and `rule:`\n\n. Pass them to `--add`\n\nor `--remove`\n\nfor incremental edits. For full replacement, `--data`\n\ntakes the entire segment definition as raw JSON.\n\nAll segment commands support `--json`\n\noutput, making them scriptable from CI, local workflows, and agent-driven pipelines that need to inspect or update flag targeting from the terminal.\n\nUpdate to the latest version of the Vercel CLI and learn more in the [Vercel Flags CLI documentation](https://vercel.com/docs/cli/flags) to get started.", "url": "https://wpnews.pro/news/manage-vercel-flags-segments-with-vercel-cli", "canonical_source": "https://vercel.com/changelog/manage-vercel-flags-segments-with-vercel-cli", "published_at": "2026-07-03 00:00:00+00:00", "updated_at": "2026-07-03 20:50:41.415897+00:00", "lang": "en", "topics": ["developer-tools", "ai-tools"], "entities": ["Vercel", "Vercel CLI"], "alternates": {"html": "https://wpnews.pro/news/manage-vercel-flags-segments-with-vercel-cli", "markdown": "https://wpnews.pro/news/manage-vercel-flags-segments-with-vercel-cli.md", "text": "https://wpnews.pro/news/manage-vercel-flags-segments-with-vercel-cli.txt", "jsonld": "https://wpnews.pro/news/manage-vercel-flags-segments-with-vercel-cli.jsonld"}}