Description
cora auth login --provider zai --api-key <key> still enters interactive mode asking for provider selection and API key input. The --provider and --api-key flags are ignored.
Impact
- Cannot automate cora setup in CI/CD or Dockerfile
- Must use
printf pipe as workaround, which is fragile
Expected Behavior
cora auth login --provider zai --api-key sk-xxx
# Should write to ~/.cora/auth.toml non-interactively
Workaround
Write ~/.cora/auth.toml directly:
[auth]
api_key = "sk-xxx"
Description
cora auth login --provider zai --api-key <key>still enters interactive mode asking for provider selection and API key input. The--providerand--api-keyflags are ignored.Impact
printfpipe as workaround, which is fragileExpected Behavior
cora auth login --provider zai --api-key sk-xxx # Should write to ~/.cora/auth.toml non-interactivelyWorkaround
Write
~/.cora/auth.tomldirectly: