@mlhkinfotech/wa-cli
v1.0.3
Published
Command-line tool to bootstrap and manage MLHK WhatsApp AI Agent projects
Readme
@mlhkinfotech/wa-cli
Official Command-Line Interface (CLI) for the MLHK WhatsApp AI Agent Ecosystem. Allows developers and agencies to instantly scaffold client bots, launch servers, and verify local environments.
📦 Installation
You can run commands without installing via npx:
npx @mlhkinfotech/wa-cli <command>Or install globally on your machine:
npm install -g @mlhkinfotech/wa-cliOnce installed, use either mlhk-wa or wa-cli:
mlhk-wa --help🛠️ Commands
1. create <projectName>
Scaffold a complete, production-ready WhatsApp AI Agent bot in seconds:
mlhk-wa create my-pharmacy-botThis generates:
package.jsonpre-configured with@mlhkinfotech/*packages..env.examplewith API key templates.src/index.tscontaining WhatsApp Baileys connection and Gemini AI integration.tsconfig.jsonready for TypeScript compilation.
To run the newly created bot:
cd my-pharmacy-bot
npm install
npm run dev2. start [options]
Instantly launch the turnkey REST API & WebSocket server with terminal QR codes:
mlhk-wa start --port 3001 --provider gemini --key YOUR_GEMINI_API_KEYOptions:
-p, --port <port>: Port to bind (default:3001).-t, --token <token>: Optional security token for protected REST endpoints.--provider <provider>: AI provider (geminioropenrouter, default:gemini).--key <key>: AI provider API key.
3. doctor
Verify your system environment, Node.js version, platform, and network readiness:
mlhk-wa doctorExample Output:
🩺 Checking System Environment:
Node Version: v22.13.0 (Required: >= 20.0.0)
Platform: linux (x64)
Status: Ready to build & run WhatsApp bots!📄 License
MIT © MLHK Infotech
