Skip to content

bug: cora auth login not scriptable despite --provider and --api-key flags #184

Description

@ajianaz

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions