ezgh flags toggle <key> --env <environment> --on|--off [--comment text] [flags]Turn a flag’s targeting on (its targets, rules and default apply) or off (everyone gets its off variation) in one environment. The change is a new version of the flag’s config there, with --comment (required where the environment requires one). If someone else changes the config at the same moment, ezgh reads it again and retries once.
Part of ezgh flags.
Examples
ezgh flags toggle new-checkout --env production --on --comment "Launch"Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--comment |
string | why, kept with the version | |
--env |
string | the environment’s key (required) | |
--off |
boolean | turn targeting off | |
--on |
boolean | turn targeting on |
This command also takes the global flags.