When to use ChatbotX CLI
When to use ChatbotX CLI?
- Scripting & Cronjobs: Automating bulk tasks like syncing CRM custom fields or importing contacts.
- Zero Token Costs: Communicates directly with the ChatbotX API, saving 100% of LLM API fees.
- Speed & Precision: Delivers instantaneous results with 100% predictability and zero AI hallucinations.
Installation
Install ChatbotX CLI globally on your computer, VPS, or automation server using npm or pnpm:- npm
- pnpm
Authentication
Before running Workspace commands, connect the CLI to your self-hosted ChatbotX instance.Option 1: CLI Configuration (Recommended)
Save your credentials globally to your local CLI configuration:--apiKey: Your Workspace token (found under Settings → Developer → API Keys or Settings → Integrations → Workspace token).--apiUrl: The API URL of your ChatbotX instance.
Option 2: Environment Variables
Use environment variables to avoid saving secrets in your shell history:Custom API URL (Self-Hosted)
If you are self-hosting ChatbotX, point the CLI configuration to your custom domain:Quick Start
Get started with the ChatbotX CLI by checking your connection and inspecting workspace resources:Use a test Contact before running commands on real customer data.