feature-flags-cli
v0.1.1
Published
CLI to manage local .featureflags.json
Readme
feature-flags-cli
CLI for managing local feature flags in .featureflags.json.
Installs the binary:
feature-flags
Install
npm install -g feature-flags-clior as a dev dependency:
npm install -D feature-flags-cliThen run with npx feature-flags ....
Commands
Initialize
feature-flags initCreates an empty .featureflags.json in the current directory.
List flags
feature-flags listEnable a flag
feature-flags enable newUIDisable a flag
feature-flags disable newUISync from remote JSON
feature-flags sync https://example.com/flags.jsonThe URL should return a JSON object with boolean values.
Notes
- Commands operate relative to
process.cwd(). - Run the CLI in the app folder where you want
.featureflags.jsonstored.
