Knowledge commands manage the content SiteGPT uses to answer questions.
Run this first when exploring:
Knowledge resources
| Resource | Purpose |
|---|
knowledge documents | List, inspect, edit, resync, delete, and measure ingested documents. Alias: knowledge docs. |
knowledge links | Add one or more exact URLs. |
knowledge website | Crawl a website from a starting URL. |
knowledge sitemap | Add URLs from a sitemap. |
knowledge youtube | Add YouTube video URLs. |
knowledge text | Replace the chatbot text knowledge document. |
knowledge files | Upload local files. |
knowledge sync-jobs | Manage recurring content sync and sitemap scan jobs. |
knowledge sources | Manage external data-source connections. Alias: knowledge connections. |
knowledge custom-responses | Manage dashboard Custom Responses. |
Add knowledge
Add exact links
Use this when you know the exact pages to train:
Crawl a website
Use this when you have a starting URL and want SiteGPT to discover pages:
Website options:
| Option | Description |
|---|
--depth <1-5> | Maximum crawl depth. Default: 3. |
--max-links <1-1000> | Maximum URLs to queue. Default: 50, capped by remaining quota. |
--include-path <path> | Include path pattern. Repeatable. |
--exclude-path <path> | Exclude path pattern. Repeatable. |
--allowed-domain <domain> | Allowed domain. Repeatable. |
Add a sitemap
Prefer sitemap ingestion when the website exposes a sitemap:
Sitemap options:
| Option | Description |
|---|
--max-links <1-1000> | Maximum URLs to queue. Default: 50, capped by remaining quota. |
--include-path <path> | Include path pattern. Repeatable. |
--exclude-path <path> | Exclude path pattern. Repeatable. |
--sync <frequency> | Refresh known page content. Values: NEVER, DAILY, WEEKLY, MONTHLY. Default: NEVER. |
--scan <frequency> | Scan sitemap for added/deleted URLs. Values: NEVER, DAILY, WEEKLY, MONTHLY. Default: NEVER. |
Sync and scan frequencies are plan-gated. Unsupported requests may be downgraded by the API with warnings.
Add YouTube videos
Upload local files
The CLI reads local files and uploads them. Pass file paths, not remote URLs.
Add or update text knowledge
text update creates or replaces the chatbot’s text knowledge document:
text add is accepted as an alias, but text update is clearer because the text block is replaced.
Scrape options
These options work with links, website, sitemap, and document config updates:
| Option | Description |
|---|
--only-main-content <boolean> | Extract main content only. Accepts true, false, 1, 0, yes, no, on, off. Default: true for new URL ingestion. |
--include-selector <selector> | CSS selector to include. Repeatable. |
--exclude-selector <selector> | CSS selector to exclude. Repeatable. |
--header "Name: value" | Send request header. Repeatable. Allowed names: User-Agent, Accept, Accept-Language. |
--sync <frequency> | Auto-sync page content. Values: NEVER, DAILY, WEEKLY, MONTHLY. |
Example:
Documents
Documents are individual trained, pending, failed, or queued knowledge items.
List documents
knowledge docs is accepted as an alias for knowledge documents.
Filters:
| Option | Description |
|---|
--query <text> | Search by document name/content. |
--source <source> | Filter by source. Repeatable. |
--status <status> | Filter by ingestion status. Repeatable. |
--type <type> | Filter by document type. Repeatable. |
--limit <1-100> | Limit results. Default: 50. |
--cursor <cursor> | Continue from a previous response. |
Allowed source values:
Allowed status values:
Allowed type values:
Get document details
--content includes raw and parsed text when available. Use --max-content-chars <1-500000> to limit included text.
Edit document content
documents update is accepted as an alias for documents edit.
Resync documents
Delete documents
documents remove is an alias for documents delete.
Bulk selector options:
| Option | Description |
|---|
--document <id> | Select a document ID. Repeatable. |
--document-id <id> | Alias for --document. Repeatable. |
--state <state> | Values: all, trained, pending, failed. |
--all | Select every matching document. Use carefully. |
| Filters | --query, --source, --status, and --type can narrow bulk operations. |
Update document config
Document stats
Sync jobs
Sync jobs are recurring maintenance jobs. Auto-sync refreshes known content. Sitemap auto-scan discovers URL additions/deletions.
Aliases:
knowledge jobs → knowledge sync-jobs
knowledge sync-jobs disable → knowledge sync-jobs delete
List filters:
| Option | Values |
|---|
--source <source> | URLS_LIST, SITEMAP, WEBSITE, YOUTUBE, GITHUB; repeatable |
--sync <frequency> | DAILY, WEEKLY, MONTHLY; repeatable |
--scan <frequency> | NEVER, DAILY, WEEKLY, MONTHLY; repeatable |
--limit <1-100> | Default: 50 |
--cursor <cursor> | Continue pagination |
Deleting a sync job disables recurring sync/scan. It does not delete existing knowledge documents.
Custom responses
Custom Responses are manual question-and-answer overrides in the Knowledge section.
Filters:
| Option | Values |
|---|
--query <text> | Search questions. |
--state <state> | ALL, OPEN, UPDATED. Default: ALL. |
--source <source> | DOWNVOTED_BY_USER, MANUALLY_ADDED, MARKED_BY_ADMIN. Repeatable. |
Fields:
| Option | Description |
|---|
--question <question> | Custom response question. |
--answer <answer> | Custom response answer. |
--original-answer <answer> | Optional original answer when adding a custom response. |
Full reference