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.

Authentication

CommandDescription
kscli login --api-key <key>Authenticate with an API key
kscli logoutClear stored credentials
kscli whoamiShow current user identity

Settings

CommandDescription
kscli settings showPrint current configuration
kscli settings environment localSwitch to local development API
kscli settings environment prodSwitch to production API

Folders

Manage the folder hierarchy in your knowledge base.
CommandDescription
kscli folders listList folders
kscli folders describe <id>Get folder details
kscli folders createCreate a folder
kscli folders update <id>Update folder name or parent
kscli folders delete <id>Delete a folder
kscli folders bulk-ingest <path>Upload a local directory tree

folders list

OptionDescription
--parent-path-part-idParent folder to list under
--folder-idFolder to list (use with --show-content)
--show-contentInclude documents alongside folders
--max-depthLimit tree traversal depth
--sort-orderLOGICAL, NAME, UPDATED_AT, CREATED_AT
--with-tagsInclude tags in response
--limit, --offsetPagination

folders bulk-ingest

OptionDescription
--folder-id or --path-part-idTarget parent folder (one required)
--extensionsFile extensions to include (default: .pdf,.docx)
--dry-runPreview without uploading

Documents

Manage documents in your knowledge base.
CommandDescription
kscli documents listList documents
kscli documents describe <id>Get document details
kscli documents createCreate document metadata
kscli documents update <id>Update document
kscli documents delete <id>Delete document
kscli documents ingestUpload file and start processing

documents ingest

OptionDescription
--filePath to the file to upload (required)
--path-part-idParent folder path part ID (required)
--nameCustom document name (defaults to filename)

Document Versions

Manage versions of documents.
CommandDescription
kscli document-versions listList versions of a document
kscli document-versions describe <id>Get version details
kscli document-versions contents <id>View document structure
kscli document-versions createCreate a new version
kscli document-versions update <id>Update version metadata
kscli document-versions delete <id>Delete a version
kscli document-versions clear-contents <id>Remove all content under a version

document-versions contents

OptionDescription
--show-contentInclude chunk text inline
--sections-onlyShow sections without chunks
Works great with --format tree for a hierarchical view.

Sections

Manage sections within document versions.
CommandDescription
kscli sections describe <id>Get section details
kscli sections createCreate a section
kscli sections update <id>Rename, reorder, or change page number
kscli sections delete <id>Delete a section

Chunks

Manage content chunks — the atomic units of your knowledge base.
CommandDescription
kscli chunks describe <id>Get chunk details
kscli chunks createCreate a chunk
kscli chunks update <id>Update chunk metadata
kscli chunks update-content <id>Update chunk text content
kscli chunks delete <id>Delete a chunk
kscli chunks get-bulkFetch up to 200 chunks by ID
kscli chunks version-chunk-ids <id>List all chunk IDs in a version
kscli chunks searchSearch across chunks
OptionDescription
--querySearch query (required)
--limitNumber of results (default: 10)
--search-typedense_only (semantic) or full_text (keyword)
--parent-path-idsScope to specific folders
--tag-idsFilter by tags (AND logic)
--chunk-typesFilter by TEXT, TABLE, IMAGE, UNKNOWN
--score-thresholdMinimum relevance score
--active-version-onlySearch only active document versions

Tags

Organize content with tags.
CommandDescription
kscli tags listList all tags
kscli tags describe <id>Get tag details
kscli tags createCreate a tag
kscli tags update <id>Update tag
kscli tags delete <id>Delete a tag
kscli tags attach <id>Attach tag to a folder, document, or chunk
kscli tags detach <id>Remove tag from content

Workflows

Monitor and manage document processing workflows.
CommandDescription
kscli workflows listList all workflows
kscli workflows describe <id>Get workflow details with live status
kscli workflows cancel <id>Cancel a running workflow
kscli workflows rerun <id>Re-run a workflow

Threads

Manage conversation threads.
CommandDescription
kscli threads listList threads
kscli threads describe <id>Get thread details
kscli threads createCreate a thread
kscli threads update <id>Update thread title or parent
kscli threads delete <id>Delete a thread

Thread Messages

Manage messages within threads.
CommandDescription
kscli thread-messages listList messages in a thread
kscli thread-messages describe <id>Get message details
kscli thread-messages createAdd a message to a thread

Tenants

Multi-tenant management (requires admin or owner role).
CommandDescription
kscli tenants listList tenants
kscli tenants describe <id>Get tenant details
kscli tenants update <id>Update tenant settings
kscli tenants delete <id>Delete tenant (owner only)
kscli tenants list-users <id>List users in a tenant

Users

CommandDescription
kscli users updateUpdate current user preferences

Permissions

Manage path-based permissions for users.
CommandDescription
kscli permissions listList permissions
kscli permissions createGrant a permission
kscli permissions update <id>Change permission level
kscli permissions delete <id>Revoke a permission

Invites

CommandDescription
kscli invites listList pending invites
kscli invites createSend an invite
kscli invites delete <id>Cancel an invite
kscli invites accept <id>Accept an invite

Chunk Lineages

Track derivation relationships between chunks.
CommandDescription
kscli chunk-lineages describe <id>View lineage graph
kscli chunk-lineages createLink parent to child chunk
kscli chunk-lineages deleteRemove a lineage link

Path Parts

Low-level path hierarchy access.
CommandDescription
kscli path-parts listList path parts
kscli path-parts describe <id>Get path part details