# Manage Vercel Flags targeting rules from the CLI

DevFeed: [Manage Vercel Flags targeting rules from the CLI](<https://devfeed.tech/articles/manage-vercel-flags-targeting-rules-from-the-cli-1007.md>)

Original publisher: [Read original article](<https://vercel.com/changelog/manage-vercel-flags-targeting-rules-from-the-cli>)

Author: Chris Widmaier

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

Content type: release

Language: en

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

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

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [checkout](<https://devfeed.tech/tags/checkout.md>), [cli](<https://devfeed.tech/tags/cli.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [json](<https://devfeed.tech/tags/json.md>), [ls](<https://devfeed.tech/tags/ls.md>), [production](<https://devfeed.tech/tags/production.md>), [terminal](<https://devfeed.tech/tags/terminal.md>), [update](<https://devfeed.tech/tags/update.md>), [vercel](<https://devfeed.tech/tags/vercel.md>)

## AI overview

Vercel CLI now supports managing Vercel Flags targeting rules from the terminal. Users and agents can add, reorder, and inspect rules, including entity or segment conditions and single-variant, weighted, or progressive rollout outcomes. The CLI also supports JSON output and handles configuration inheritance when rules are changed in an inheriting environment.

## Source excerpt

You can now manage targeting rules for Vercel Flags through the Vercel CLI. With the vercel flags rules command, you and your agents can add new rules, move existing ones, and inspect the current ordering without leaving your terminal. Rules you create from the CLI use the same model as the dashboard. Conditions can target entities or reusable segments, outcomes can serve a single variant, a weighted split, or a progressive rollout, and rules evaluate top to bottom. For scripts and agents, vercel flags rules ls --json prints the full rule set. An environment can inherit its flag configuration from another environment. When you add or update a rule in an inheriting environment, the CLI switches that environment to its own configuration, so your rule applies there without changing the environment it inherited from. Update to the latest Vercel CLI version and run vercel flags rules to get started. Learn more in the Vercel Flags CLI documentation. Read more