[Feedback Requested] [Community Tooling] Introducing flagctl: Ergonomic CLI for flagd & OpenFeature GitOps Feature Flag Workflows #2034
khan-rasul
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Summary
Hi OpenFeature & flagd maintainers,
I have built and released
flagctl, an open-source CLI tool designed to simplify managingflagdfeature flag configurations (flags.json/flags.yaml) for GitOps workflows.Motivation
CNCF OpenFeature and flagd provide a vendor-neutral specification and high-performance in-process evaluation engine. However, manually authoring and maintaining
flags.jsonorflags.yamlin Git repositories—especially managing complex JsonLogic targeting rules, progressive percentage rollouts, and multi-language code cleanup—can be error-prone for development teams.flagctlprovides an ergonomic CLI interface to safely create, update, target, ramp, deprecate, audit, and generate code accessors for flagd configurations.Key Capabilities
flagctl launch): Ramp feature percentages up/down (flagctl launch ramp --percent 50), configure multi-variant splits, or run cohort-specific progressive launches with spec-compliant Bucket ID support ({ "var": "<bucketId>" }).flagctl target): Configure allowlists, denylists, and SemVer version gates with automatic tier-based priority ordering and overlap analysis hints.flagctl deprecatetags flags as deprecated while preservingstate: ENABLEDto prevent runtimeFLAG_NOT_FOUNDerrors while freezing further edits.flagctl deletescans source code (TypeScript, Go, Python, Java, C#, PHP, Rust) and blocks flag removal if active code references exist.flagctl auditscans source code for missing flags, orphaned flags, and uncleaned deprecated flags (includes--strictmode for CI/CD pipelines).flagctl generateproduces strongly-typed wrapper accessors for TypeScript and Go for compile-time flag safety.v0) enable validation without internet access.Usage Example
Feedback
I would love to hear your thoughts about this and if this makes sense.
All reactions