Menu

Manage Vercel Flags targeting rules from the CLI - Vercel
📰

Manage Vercel Flags targeting rules from the CLI - Vercel

Vercel News·Chris Widmaier·5 days ago
#J39gr0lL
#vercel#rules#flags#environment#rule
Reading 0:00
15s threshold

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.

vercel flags rules add checkout-redesign \

--environment production \

--condition "user.country:in:DE,FR,ES" \

--variant new-checkout

Adding a rule in production that serves the new-checkout variant to users in Germany, France, and Spain.

An environment can inherit its flag configuration from another environment.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.