ezgh flags keys create --env <environment> --kind server|client --name <name> [flags]Create an SDK key for an environment. The key is printed once, alone on stdout, and can’t be shown again.
A server key (--kind server) is a secret for your backends: it reads every flag and its rules, and EZGH’s server providers evaluate locally with it. A client key (--kind client) is publishable, for web pages: it sees only client-side flags, never their rules.
Part of ezgh flags keys.
Examples
EZGH_FLAGS_SDK_KEY=$(ezgh flags keys create --env production --kind server --name checkout-api)Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--env |
string | the environment’s key (required) | |
--kind |
string | server |
server (secret, backends) or client (publishable, web pages) |
--name |
string | what uses the key (required) |
This command also takes the global flags.