The Kana CLI is a command-line interface making it easy for engineers to review and update pricing and entitlement configurations programmatically. It allows you to define Kana packages and features through code without initial dashboard setup, reducing the friction to get started with Kana.
.env
file in your project like so:
kana
folder in
your repository../kana/kana.dev.yaml
file with your existing configuration:
./kana/kana.dev.yaml
file:
Field | Description |
---|---|
version | The version of the configuration for experimentation or if you have multiple pricing models. Not functional currently. |
updated | The time when the configuration was last updated. |
project | The identifier of the workspace within Kana. |
features
.
Field | Description |
---|---|
id | The identifier of the feature. |
name | The name of the feature. |
type | The type of the feature. Can be either BINARY or CONSUMABLE. |
packages
and the status of the package. This can be draft
or published
.
Field | Description |
---|---|
id | The identifier of the package. |
name | The name of the package. |
features | The features within the package. Can have an id which corresponds to that in ‘Features’ and a limit if the type of that feature is CONSUMABLE. |
kana.yaml
file to production by running the following command: