Global Commands
bot
The main CLI entry point for BuilderBot tools.
bot without arguments launches the interactive project creation wizard, equivalent to npm create builderbot.
Project Creation
Interactive Creation
Launch the interactive setup wizard:- Confirmation prompt: “Do you want to continue?”
- Provider selection: Choose your WhatsApp/messaging provider
- Database selection: Choose your data storage backend
- Language selection: Choose TypeScript or JavaScript
Non-Interactive Creation
Create a project with predefined configuration:--provider- WhatsApp/messaging provider--database- Database backend--language- Programming language (ts or js)
Command Reference
While the main CLI focuses on project creation, here are the internal commands and modules available:Check Commands
These commands run automatically during project creation to verify system requirements.Check Node Version
Verifies Node.js version is 20 or higher. Source:src/check/index.ts:9
Check Git Installation
Verifies Git is installed and accessible. Source:src/check/index.ts:31
Check Operating System
Detects the current operating system. Source:src/check/index.ts:21
Clean Commands
Clean Session
Removes WhatsApp Web session files and authentication data. Source:src/clean/index.ts:11
.wwebjs_authdirectorysession.jsonfile
Install Commands
Install All Dependencies
Installs or updates BuilderBot packages. Source:src/install/index.ts:27
Get Package Manager
Detects the package manager being used (npm, yarn, or pnpm). Source:src/install/tool.ts:11
Currently defaults to npm.
Configuration Options
The CLI uses predefined configurations for providers, databases, and languages.Provider List
Source:src/configuration/index.ts:19
All available WhatsApp and messaging providers:
Database List
Source:src/configuration/index.ts:34
All available database backends:
Language Options
Source:src/configuration/index.ts:42
Supported programming languages:
Usage Examples
Example 1: Create a Baileys Bot with MongoDB (TypeScript)
Example 2: Create a Twilio Bot with PostgreSQL (JavaScript)
Example 3: Create an Email Bot with JSON Storage
Example 4: Create a Meta Bot for Production
Command Options Reference
Provider Options
| Value | Label | Type | Description |
|---|---|---|---|
baileys | Baileys | Open Source | Pure TypeScript WhatsApp library |
sherpa | Sherpa | Open Source | Lightweight WhatsApp integration |
evolution-api | Evolution API | Open Source | RESTful WhatsApp API |
wppconnect | WPPConnect | Open Source | Browser-based automation |
twilio | Twilio | Commercial | Enterprise messaging platform |
meta | Meta | Commercial | Official WhatsApp Business API |
facebook-messenger | Facebook Messenger | Commercial | Facebook messaging |
instagram | Commercial | Instagram direct messages | |
gohighlevel | GoHighLevel | Commercial | Marketing automation |
email | Open Source | IMAP/SMTP email integration |
Database Options
| Value | Label | Best For | Persistence |
|---|---|---|---|
memory | Memory | Development, testing | No |
json | JSON | Small projects, prototypes | Yes (file-based) |
mongo | MongoDB | Scalable applications | Yes (NoSQL) |
mysql | MySQL | Traditional applications | Yes (SQL) |
postgres | PostgreSQL | Production systems | Yes (SQL) |
Language Options
| Value | Label | Features | Best For |
|---|---|---|---|
ts | TypeScript | Type safety, autocomplete, compile-time checks | Large projects, teams |
js | JavaScript | Quick start, flexibility | Rapid prototyping, simple bots |
Programmatic Usage
You can use the CLI programmatically in your Node.js scripts:Environment Variables
NODE_ENV
Set to dev to enable development mode:
Troubleshooting
TTY Initialization Failed
If you seeERR_TTY_INIT_FAILED, the CLI will automatically fall back to legacy mode with basic prompts.
Template Not Found
If you getTEMPLATE_PATH_NOT_FOUND, ensure you’re using valid provider, database, and language combinations.
Permission Errors
On Unix systems, you may need to make the CLI executable:Version Information
Check your installed CLI version:1.3.15-alpha.10
Package Information
@builderbot/cli
- npm package:
@builderbot/cli - Binary:
bot - Repository: GitHub
create-builderbot
- npm package:
create-builderbot - Usage:
npm create builderbot - Repository: GitHub