Skip to content
Dashboard

Manage Vercel Flags segments with Vercel CLI

Engineering Manager
# Create a segment and seed it with specific users
vercel flags segments create beta-users \
--label "Beta users" \
--add include:user.id=user_123 \
--add include:user.id=user_456
# Add a rule-based condition and remove a specific user
vercel flags segments update beta-users \
--add rule:user.plan:eq:enterprise \
--remove include:user.id=user_123

Combining include, exclude, and rule tokens across create and update

Ready to deploy?