@labelbox/flags

1.0.7 • Public • Published

flags

Generates source code artifacts based on LaunchDarkly feature flags

@labelbox/flags

Typescript definitions of flag names

Generate typescript definitions for launchdarkly flags

USAGE
  $ flags definitions

OPTIONS
  --apiKey=apiKey    (required) Launchdarkly API key
  --outFile=outFile  (required) Output typescript file path

Example

flags definitions \
 --apiKey $LD_API_KEY \
 --outFile ./flags.ts

Get default rules for all flags of an environment

Builds a yaml file of all flags and their default values. Uses the FLAG_ prefix for flag keys.

Get default rule value for all flags in an environment. Defaults to yaml format

USAGE
  $ flags evaluations

OPTIONS
  --apiKey=apiKey             (required) Launchdarkly API key
  --env=env                   (required) Launchdarkly environment name
  --platform=(server|client)  (required) [default: server] The platform for which these evaluation apply. See here for more details: https://docs.launchdarkly.com/sdk/concepts/client-side-server-side

Example

flags evaluations \
 --apiKey $LD_API_KEY \
 --env production \
 --platform server > flags.yaml

Readme

Keywords

none

Package Sidebar

Install

npm i @labelbox/flags

Weekly Downloads

482

Version

1.0.7

License

UNLICENSED

Unpacked Size

10.3 kB

Total Files

17

Last publish

Collaborators

  • midhun-lb
  • bbalinski
  • manastalukdar
  • tomislav-peharda-labelbox
  • miotchev
  • lms5400
  • lnash4
  • mroberson82
  • sfendell
  • yaggarwal
  • abacchi
  • aaung
  • gstrimpakos
  • sabraham
  • manuaero
  • adrian-chang
  • labelbox-operator
  • ibrahim-lb
  • matyas-labelbox
  • huy-lb
  • mt-lb
  • lukaszmateuszgluszek
  • mm-lb
  • valbro13
  • kjamrozy
  • dapollonin
  • mkozik-lb
  • 41clark
  • sissayenko
  • mnoszczak
  • lgluszek
  • attilapapai-lb
  • uvatti
  • paulnoirellb
  • tim-kerr-labelbox
  • mrclbx
  • kozikkamillb
  • sergeydubinin
  • jakefleming
  • ikerr
  • uj-lb
  • adamatlabelbox