Skip to content

fix: login and credentials configuration#4

Merged
frankgu968 merged 5 commits intomainfrom
saeid/login
Mar 11, 2026
Merged

fix: login and credentials configuration#4
frankgu968 merged 5 commits intomainfrom
saeid/login

Conversation

@saeidalz13
Copy link
Copy Markdown
Contributor

Summary

  • kscli login now accepts --url to set the API base URL (defaults to https://api-staging.knowledgestack.ai), making onboarding
    a single step instead of two
  • Removed the settings environment command and environment presets (local/staging/prod) — auth is now simply an API key bound
    to a base URL
  • Simplified credentials to a single file instead of per-environment files (.credentials_local, .credentials_staging, etc.)
  • Removed get_current_environment() from config

Test plan

  • kscli login --api-key defaults to staging URL
  • kscli login --api-key --url persists custom URL
  • kscli settings show displays resolved config without environment field
  • kscli logout clears the single credentials file
  • make pre-commit passes (lint, typecheck)

@saeidalz13 saeidalz13 self-assigned this Mar 10, 2026
@saeidalz13 saeidalz13 marked this pull request as ready for review March 10, 2026 19:38
@frankgu968 frankgu968 changed the title Simplify logging implementation fix: login and credentials configuration Mar 11, 2026
@frankgu968 frankgu968 enabled auto-merge (squash) March 11, 2026 04:28
@frankgu968 frankgu968 merged commit 0f45d04 into main Mar 11, 2026
3 checks passed
@frankgu968 frankgu968 deleted the saeid/login branch March 11, 2026 04:31
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

Successfully merging this pull request may close these issues.

2 participants