Skip to main content
This page is the complete CLI reference. It is organized by entity so humans and AI agents can quickly find the exact command surface for the thing they want to manage. For workflow guidance, use the task pages:

How to read this reference

The installed command is:
Every command level has contextual help:
Use --json whenever you need full IDs, cursors, nested data, or automation-safe output.

Global options

Global options can be used with any command. Environment variable overrides: Local profiles are stored at:

Agent-first onboarding

Onboarding commands are for users who do not have a SiteGPT account yet, or who want to preview a chatbot before signup. onboarding start is public. All other onboarding commands require the temporary token returned by onboarding start. Options: Examples:
See Agent-first onboarding for the full flow.

Login

Login creates or stores a local CLI profile. sitegpt login uses OAuth device authorization with client_id=sitegpt-cli. See OAuth device flow for direct endpoint usage. Options: Examples:
Manual dashboard-token flow:
  1. Open the SiteGPT dashboard.
  2. Go to Agents.
  3. Click Create token.
  4. Choose access level, scopes, and chatbot restrictions.
  5. Copy the token while it is visible.
  6. Save it locally:

Logout

Logout removes the selected local profile from your machine. It does not revoke the token in SiteGPT. To revoke server-side access, use sitegpt tokens revoke <token-id>.

Whoami

Shows the authenticated account for the active token/profile.

Profiles

Profiles are local named credentials. Examples:

Token scopes

Scopes control what a token can do.

API tokens

API tokens are scoped credentials used by the CLI and agents. Create options: Examples:
New and rotated token secrets are shown once. Store them before closing the terminal or modal.

Account

Account commands manage your SiteGPT account profile. Examples:

Usage

Usage commands show account usage.

Limits

Limits commands show account quotas and remaining capacity.

Billing

Billing commands are read-oriented account billing commands. Examples:
Invoice output includes invoice number, status, billing date, amount, currency, and download URL when available.

Chatbots

Chatbots are the main SiteGPT resource. Most chatbot-scoped commands require --chatbot <chatbot-id>. Create/update options: Examples:

Dashboard summary

Dashboard commands return a chatbot operational summary. Example:
The summary includes training state, document counts, knowledge counts, feedback summary, chat URL, and widget script URL.

Installation

Installation commands return widget install metadata. Example:

Icons

Icon commands upload or delete chatbot visual assets. Icon types:
Supported image extensions:
Examples:

Knowledge documents

Documents are individual ingested knowledge items. List filters: Get options: Edit options: Stats options: Update-config options: Bulk selector options for resync and delete: Source values:
Status values:
Type values:
Examples:
Links add exact URLs to a chatbot. Options: Example:

Knowledge website

Website commands crawl from a starting URL. Options: Example:

Knowledge sitemap

Sitemap commands add URLs from a sitemap. Options: Example:

Knowledge YouTube

YouTube commands add video URLs. Options: Example:

Knowledge text

Text commands create or replace the chatbot text knowledge document. Options: Examples:

Knowledge files

File commands upload local files. Example:

Knowledge sync jobs

Sync jobs manage recurring sync and sitemap scan behavior. Jobs with NEVER are hidden from normal user-facing lists. List filters: Update options: Examples:

External data sources

Data-source commands connect cloud systems and ingest selected documents. Connector values:
Status values:
List filters: Create options: Update options: Authorize options: Documents options: Ingest options: Examples:

GitHub source helpers

GitHub helpers are nested under knowledge sources github. Repository options: File options: Examples:

Confluence source helpers

Confluence helpers are nested under knowledge sources confluence. Options: Examples:

Custom responses

Custom Responses are manual question-and-answer overrides in the Knowledge area. Filters: Fields: Examples:

Personas

Personas describe chatbot role, tone, and identity. Options: Examples:

Instructions

Instructions control response behavior and temperature. Options: Examples:

Settings overview

Settings can be read all at once, updated from a JSON file, or changed section by section. Sections:
Accepted aliases:

Settings: general

Options:

Settings: appearance

Text and color options: Layout and enum options: Boolean options:
Example:

Settings: chat mode

Mode values:

Settings: localization

Settings: advanced

Options:

Settings: user data

Pre-chat user details (off by default). In the dashboard this now lives in Leads → Settings as Pre-Chat User Details; see lead collection. Options:

Settings: lead form

Options:

Settings: human support

Options:

Settings: webhooks

Options:

Conversation starters

Conversation starters are prompt buttons shown before a visitor sends a message. Options:

Conversation followups

Conversation followups are prompt buttons shown after chatbot responses. Options:

Conversations

Conversations are visitor chat threads. List filters: Update options: Escalation and mode-switch options: Bulk actions:
Examples:

Messages

Messages are individual entries inside a conversation. List options: Reaction values:
Examples:

Tags

Tags organize conversations. Options: Examples:

Leads

Leads are collected visitor/contact records. List filters: Update options: Bulk options: Examples:

Members

Members are users with access to a chatbot. Role values:
Examples:

Member invites

Member invite commands manage pending chatbot invitations. Example:

MCP server

Runs the SiteGPT MCP server over stdio, for AI assistants that spawn local MCP servers. Most remote MCP clients (Claude, and others) should connect to the hosted MCP server with browser OAuth instead; see MCP server.

Agent guide

Prints the end-to-end agent workflow and command map. AI agents should run this first. The guide links to the full skill file at https://sitegpt.ai/agents/sitegpt-cli-skill.md.

Shell completion

Example: