Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not require config.json when environment variables is set #190

Open
AndersBennedsgaard opened this issue Nov 20, 2024 · 0 comments
Open

Comments

@AndersBennedsgaard
Copy link

You write that it should be possible to use environment variables instead of the config.json, but I can't seem to get it to work:

Configuration can be provided either as environment variables or inside a config.json file. The config.json can be created by executing `cognigy init`.

Having set CAI_BASEURL, CAI_APIKEY, CAI_AGENT, CAI_AGENTDIR, and CAI_PLAYBOOK_TIMEOUT_SECONDS, I would expect that the config file should be redundant. However, when running cognigy clone, it fails with No config.json file found. Please run cognigy init..

Alternatively, running cognigy init when the environment variables set, should probably populate the input fields that is asked for during initialization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant