edgedb-cli
edgedb-cli copied to clipboard
`EDGEDB_SECRET_KEY` is sometimes ignored by the CLI
When trying to connect to an EdgeDB Cloud instance via CLI providing the secret key via the EDGEDB_SECRET_KEY
env var and the instance name via CLI option, the user receives an error: edgedb error: NoCloudConfigFound: connecting cloud instance requires a secret key
If you instead provide both via environment variable, the CLI connects as expected.
- EdgeDB Version: 4.2
- EdgeDB CLI Version: 4.0.2+500be79
- OS Version: macOS 14.0
Steps to Reproduce:
- Create an EdgeDB Cloud instance
- Create (and capture) a secret key
- Run
edgedb cloud logout
- Try to connect to your instance with this:
EDGEDB_SECRET_KEY="<key>" edgedb -I <instance-name>