Skip to main content
Run totebot <command> --help for the full list of flags. Every command takes --json, --profile, --api-key and --api-url, before or after the command (totebot --json agents list works). --api-url must be https://, or http:// to this machine (localhost, 127.0.0.1); any other http:// URL is refused unless you add --insecure, since the key would travel unencrypted. Commands that change data also take --dry-run, and destructive and confirm-required ones take --yes. Wherever a command takes <agent>, you can pass the agent’s id or its exact name (case does not matter), use --agent <id|name> instead, or set TOTEBOT_AGENT once for a session. A name that matches several agents is rejected; pass the id then.

Sign-in

Agents

--set takes any field of the agent settings, for example --set isPublic=false --set allowedDomains='["example.com"]'. agents update, agents rollback, widget set and bulk update change how agents answer or what visitors see, so they ask first on a terminal and need --yes otherwise. With --dry-run they also print changes: { field: { before, after } } for agents update and widget set, the same per agent id for bulk update, and { field: { from, to } } plus skippedFields for agents rollback. agents delete is a soft delete and needs a key that covers all agents. Every change to an agent’s instructions, model, temperature, language, AI flags, security, email capture or widget is kept as a revision, whichever way it was made: dashboard, API, Sidekick or a template. A rollback is a revision too, so it can be undone.

Knowledge and training

--valid-from and --valid-until take an ISO date or time, best with your time zone (2026-11-30T23:59:59+01:00), or none to clear the date. Outside those dates the agent does not use the source. A date you leave out keeps its current value. For example, a Black Friday text that stops on Sunday night:

Analyse and improve

Reads need knowledge:read; answers, searches and stats also need conversations:read. Test questions need quality:read (opt-in: an owner turns it on), and quality:write to change them or start a run. See Analyse your agent with Claude Code and Optimize your agents with Claude Code. Emails and phone numbers in customer text are masked unless the key has customers:read.

Spot checks and events

In CI:

Bulk (several agents at once)

Each bulk command takes --all-agents or --agents id,id (ids or exact names). When a bulk write fails on some agents, the CLI exits with code 9 and puts every per-agent result in error.details. bulk qa --from-file … --train trains, once at the end, every agent any of the FAQs changed. faq.json is an array: [{"question": "...", "answer": "..."}].

Help desk

Data

List commands print the API’s pagination (pagination, or meta.pagination for conversations) with the items. Without the customers:read scope, emails and phone numbers in conversation and ticket text come back as [email] and [phone].

Team

Other