Skip to content

Commit c0a5cec

Browse files
authored
feat: Migrate to the new update-flag contract, and flag update --weight (#92)
1 parent 110158a commit c0a5cec

11 files changed

Lines changed: 1978 additions & 526 deletions

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,12 @@ flagsmith flag list # list the flags in the current environment
5656

5757
## Commands
5858

59+
Reading works against any Flagsmith instance. Changing flags — `flag update`, `flag enable`/`disable`, `flag reorder`, `flag delete` — needs Flagsmith 2.263.0 or newer, self-hosted or SaaS.
60+
5961
- `flagsmith init` — bind the current directory to a project (writes `flagsmith.json`).
6062
- `flagsmith flag list` — list feature flags in the current environment.
6163
- `flagsmith flag get <feature>` — show a single flag's state (`--segment <id>` or `--identifier <id>` for an override).
62-
- `flagsmith flag update <feature>` — toggle (`--enable`/`--disable`) or set the value (`--value`, `--type`); `--segment <id>` or `--identifier <id>` targets an override.
64+
- `flagsmith flag update <feature>` — toggle (`--enable`/`--disable`), set the value (`--value`, `--type`), or re-weight a multivariate flag's variants (`--weight <key|id>=<percentage>`); `--segment <id>` or `--identifier <id>` targets an override.
6365
- `flagsmith flag enable|disable <feature>` — shorthand for `flag update --enable`/`--disable` (same `--segment`/`--identifier` targeting).
6466
- `flagsmith flag delete <feature> --segment <id>|--identifier <id>` — delete a segment or identity override.
6567
- `flagsmith segment list` — list segments (`--include-feature-specific` to include feature-scoped ones).

0 commit comments

Comments
 (0)