vercel flags set changes served variant in an environment
Introduced 2026-03-11 · score 0.94
HOW TO USE IT
When changing the variant served by a flag in an environment, run `vercel flags set` with the flag, environment, and variant. Select the variant by ID or value; boolean `enable`/`disable` shortcuts apply only to boolean flags.
vercel flags set <flag> --environment <production|preview|development> --variant <variant-id-or-value>vercel flags set <flag> --environment <production|preview|development> --variant <variant-id-or-value> --message "<reason>"WHY THIS HELPS
Change which feature flag variant is served in a Vercel environment.
REQUIREMENTS AND LIMITATIONS
- Version: 50.31.2
- <flag> (required): Feature flag slug or ID.
- --environment, -e (required): Target environment: production, preview, or development.
- --variant, -v (required): Selects a variant by ID or value; labels are not selectors.
- --message: Optional revision message.
- Prerequisite: Vercel CLI must be installed and authenticated to access or administer Vercel resources.
- Explicit variant selection matches by ID or value only.
FIRST-PARTY EVIDENCE
- https://github.com/vercel/vercel/blob/main/packages/cli/CHANGELOG.md#50312
- https://vercel.com/docs/cli/flags
- https://vercel.com/docs/cli
Check the installed version and the source before using it. Entry JSON