Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.knowledgestack.ai/llms.txt

Use this file to discover all available pages before exploring further.

Environment variables

VariableDescriptionDefault
KSCLI_BASE_URLAPI base URLhttps://api-staging.knowledgestack.ai
KSCLI_FORMATDefault output formattable
KSCLI_VERIFY_SSLEnable SSL verificationtrue
KSCLI_CA_BUNDLEPath to CA certificate bundleSystem default
KSCLI_CONFIGConfig file path~/.config/kscli/config.json
KSCLI_CREDENTIALS_PATHCredentials file path/tmp/kscli/.credentials

Config file

The config file lives at ~/.config/kscli/config.json by default. It stores your preferred settings:
{
  "base_url": "https://api.knowledgestack.ai",
  "format": "table",
  "verify_ssl": true
}

Environment presets

Quickly switch between environments:
# Local development (http://localhost:8000)
kscli settings environment local

# Production
kscli settings environment prod
View your current configuration:
kscli settings show

Global options

These options can appear anywhere in the command line:
OptionShortDescription
--format <fmt>-fOutput format: table, json, yaml, id-only, tree
--no-header-HSuppress table headers
--base-url <url>Override API URL for this command

Authentication

Credentials are stored at /tmp/kscli/.credentials by default. The CLI uses API key authentication:
# Login with API key
kscli login --api-key sk-user-your-key-here

# Or paste interactively
kscli login

# Check current identity
kscli whoami

# Clear credentials
kscli logout
API keys are user-scoped and can be created from the Knowledge Stack web app under My Account > API Keys.