Manage Vercel Flags targeting rules from the CLI
Vercel enables management of Flags targeting rules through the CLI with commands to add, move, and inspect rules without leaving the terminal.
You can now manage targeting rules for through the . With the command, you and your agents can add new rules, move existing ones, and inspect the current ordering without leaving your terminal.Vercel FlagsVercel CLIvercel flags rules Rules you create from the CLI use the same model as the dashboard. Conditions can target or reusable , outcomes can serve a single variant, a weighted split, or a progressive rollout, and rules evaluate top to bottom. For scripts and agents, prints the full rule set.entitiessegmentsvercel flags rules ls --json 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 to get started. Learn more in the .vercel flags rulesVercel Flags CLI documentation Read more