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.…