Skip to content

SDK setup

This guide assumes you already have a featurectrl platform running. If not, follow Platform setup first.

Sign in to the dashboard and open Settings → API keys. Generate a new API key, you should get a pair of keys:

  • Public key — used at runtime for fetching flags. It’s safe to use on the frontend side.
  • Private key — It’s used by the CLI to upload flag definitions and shouldn’t be used in runtime.

Initialize a config in your project using featurectrl CLI:

Terminal window
featurectrl init --app-name my-app

This creates featurectrl.config.json for the project which can be uploaded to the platform using the following command:

Terminal window
featurectrl push