ezgh flags rollout <key> --env <environment> --percent N [--variation key] [--bucket-by attribute] [--comment text] [flags]Make a flag’s default rule (what’s served when targeting is on and no target or rule matches) a percentage rollout: --percent of contexts get --variation (true for a boolean flag, else the flag’s first variation), the rest the other one, bucketed by targetingKey or --bucket-by (an account ID, say, to roll out by account).
A default rule that’s already a rollout over the two variations keeps its order and bucketing and changes only its weights, so raising the percentage keeps everyone who already had the variation. It’s for flags with exactly two variations; anything richer goes through ezgh flags config set.
Part of ezgh flags.
Examples
ezgh flags rollout new-checkout --env production --percent 25 --comment "A quarter"
ezgh flags rollout banner-color --env production --percent 10 --variation greenFlags
| Flag | Type | Default | Description |
|---|---|---|---|
--bucket-by |
string | the context attribute to bucket by (default: the rollout’s, else targetingKey) | |
--comment |
string | why, kept with the version | |
--env |
string | the environment’s key (required) | |
--percent |
float64 | the percentage that gets --variation, 0 to 100 (to 0.001) |
|
--variation |
string | the variation that gets --percent (default true for a boolean flag, else the first) |
This command also takes the global flags.