Manage Vercel Flags targeting rules from the CLI
By Steven Van ·
Vercel CLI's new "flags rules" command adds, reorders, and lists feature flag targeting rules without the dashboard.
Vercel's CLI can now manage targeting rules for Vercel Flags, so rules can be added, reordered, and inspected without opening the dashboard. The vercel flags rules command uses the same rule 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.
- vercel flags rules add creates a new rule, for example targeting users in specific countries with a given variant.
- vercel flags rules ls --json prints the full rule set for scripts and agents.
- If an environment inherits its configuration from another environment, adding or updating a rule there switches that environment to its own configuration, leaving the environment it inherited from unchanged.
The feature requires updating to the latest Vercel CLI, then running vercel flags rules. Details are in the Vercel Flags CLI documentation.
Vercel
The platform for frontend developers — deploy, preview, and scale web apps and AI agents with zero config.
View Vercel →