From 62c6641b951b1a193b7759577e201e6bdb4ecd88 Mon Sep 17 00:00:00 2001 From: Arnav Goel Date: Mon, 4 May 2026 14:24:33 -0400 Subject: [PATCH] fix: default base URL to production api.knowledgestack.ai Switch the built-in default from api-staging to api.knowledgestack.ai so fresh installs hit prod by default. Users can still override via --base-url, KSCLI_BASE_URL, or kscli login --url. Co-Authored-By: Claude Opus 4.7 (1M context) --- README.md | 2 +- src/kscli/commands/auth.py | 2 +- src/kscli/config.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 02b0d4a..15ab6b8 100644 --- a/README.md +++ b/README.md @@ -175,7 +175,7 @@ kscli folders list -f yaml # config-friendly | Env var | Default | Purpose | |---|---|---| -| `KSCLI_BASE_URL` | `https://api-staging.knowledgestack.ai` | API endpoint | +| `KSCLI_BASE_URL` | `https://api.knowledgestack.ai` | API endpoint | | `KSCLI_FORMAT` | `table` | Default output format | | `KSCLI_VERIFY_SSL` | `true` | TLS verification | | `KSCLI_CONFIG` | `~/.config/kscli/config.json` | Config file | diff --git a/src/kscli/commands/auth.py b/src/kscli/commands/auth.py index e8f9e00..9cafd7d 100644 --- a/src/kscli/commands/auth.py +++ b/src/kscli/commands/auth.py @@ -21,7 +21,7 @@ @click.option( "--url", default=None, - help="API base URL. Defaults to the staging instance.", + help="API base URL. Defaults to the production instance.", ) @click.pass_context def login(ctx: click.Context, api_key: str, url: str | None) -> None: diff --git a/src/kscli/config.py b/src/kscli/config.py index e046625..5828cc6 100644 --- a/src/kscli/config.py +++ b/src/kscli/config.py @@ -6,7 +6,7 @@ from typing import Any _DEFAULT_CONFIG_PATH = Path.home() / ".config" / "kscli" / "config.json" -_DEFAULT_BASE_URL = "https://api-staging.knowledgestack.ai" +_DEFAULT_BASE_URL = "https://api.knowledgestack.ai" _DEFAULT_FORMAT = "table"