AI Briefing
KO

Manage Vercel Flags targeting rules from the CLI

·2026.07.13 09:00

Key point

You can now add, reorder, and inspect Vercel Flags targeting rules directly from the terminal via the Vercel CLI.

Details

You can now manage targeting rules for Vercel Flags without leaving the terminal, using the vercel flags rules command in the Vercel CLI. Users can add new rules, reorder existing rules, and instantly check the currently configured rules.

Rules created from the CLI follow the same model as the dashboard. Key features include:

  • Flexible targeting: You can set conditions based on specific entities or reusable segments.
  • Various rollout methods: Supports serving a single variant, weighted split, or progressive rollout.
  • Automation-friendly: The vercel flags rules ls --json command can output the rule set in JSON format, making it easy to use in scripts and agents.

Inheritance between environments is also supported. When a given environment inherits settings from another environment, adding or updating a rule from the CLI automatically switches that environment into its own configuration mode, applying independent rules without affecting the original inherited environment.

This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.

Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.