sincecutoff.com
← all changes

vercel flags CLI manages feature flags and SDK keys

Introduced 2026-02-11 · score 0.98

HOW TO USE IT

For a Vercel project, use `vercel flags` to list, inspect, create, archive, enable, disable, and delete feature flags; use `vercel flags sdk-keys` to list, create, and delete SDK keys. Archive a flag before deleting it.

vercel flags ls vercel flags inspect <flag> vercel flags add <slug> vercel flags archive <flag> vercel flags disable <flag> --environment <production|preview|development> vercel flags enable <flag> --environment <production|preview|development> vercel flags rm <flag> --yes
vercel flags sdk-keys ls vercel flags sdk-keys add --type <type> --environment <production|preview|development> vercel flags sdk-keys rm <hash-key> --yes

WHY THIS HELPS

Manage feature flags and SDK keys from the CLI for a project.

REQUIREMENTS AND LIMITATIONS

  • Version: 50.15.0
  • <slug> (required): Slug identifying the new feature flag.
  • <flag> (required): Flag identifier used by inspect, archive, enable, disable, and rm.
  • <key> / <hash-key> (required): SDK key identifier used by sdk-keys rm; the docs call it `[hash-key]`.
  • --environment, -e (required): Selects production, preview, or development for enable/disable. For sdk-keys add, if omitted, the CLI prompts for an environment.
  • --type (required): Sets the SDK key type when creating a key; the page's examples use `server` but do not enumerate allowed values.
  • --yes, -y: Skips confirmation when archiving or deleting a flag, or deleting an SDK key.
  • --kind, -k: Sets a new flag's kind: boolean, string, or number; defaults to boolean.
  • --description, -d: Sets a description when creating a flag.
  • --variant, -v: Sets the variant ID served when disabling a flag.
  • --label, -l: Sets an optional label when creating an SDK key.
  • --state, -s: Filters flag listing by active or archived; defaults to active.
  • Prerequisite: Vercel CLI installed; commands operate on a project.
  • Prerequisite: Enable and disable work only with boolean flags; string and number flags must be updated in the dashboard.
  • A feature flag must be archived before it can be deleted.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card