envs

Optimizely — feature experimentation

optimizely/flags · version 1

envs add optimizely/flags

This declares the keys below in your catalog and sets none of them. A template is a schema for keys; it never carries a value.

Key Needed Kind Notes
OPTIMIZELY_SDK_KEY required config Optimizely never calls it public. It is public here because it names the environment's datafile and is what the client SDKs are initialised with, and because Optimizely's warnings about exposure are about the other two values rather than this one.. where to get it
OPTIMIZELY_DATAFILE_ACCESS_TOKEN optional secret For secure environments, and Optimizely says it is server-side only, recommending it only for projects using server SDKs, because fetching a datafile client-side can make it reachable by end users.. where to get it
OPTIMIZELY_API_TOKEN optional secret A personal access token for the REST API. Optimizely says to keep tokens secret and treat them like passwords, and to revoke and generate rather than change one.. where to get it

The JSON the CLI reads