Vercel

Vercel Adds Weighted Traffic Splitting to Feature Flags via New CLI


Executive Summary

Vercel has enhanced its Vercel Flags feature by introducing a new `vercel flags split` command in the Vercel CLI. This update allows developers to configure precise, percentage-based traffic splits between different feature variants for gradual rollouts and A/B testing. The command enables fine-grained control over which users see a new feature by specifying the environment, bucketing attribute (e.g., `user.id`), and exact weight for each variant.

Key Takeaways

* New CLI Command: The `vercel flags split` command is now available in the Vercel CLI.

* Weighted Traffic Splits: Developers can send a specific percentage of traffic to one feature flag variant and the remainder to another (e.g., 95% to 'off', 5% to 'on').

* Granular Control: The command allows specifying the deployment environment (e.g., production) and the attribute for bucketing users (e.g., `user.id`).

* Availability: The feature is available immediately upon updating to the latest version of the Vercel CLI.

Strategic Importance

This enhancement provides developers with more sophisticated control over feature rollouts, strengthening Vercel's platform for safer deployments, A/B testing, and experimentation.

Original article