plazbot-cli
Version:
CLI para Plazbot SDK
102 lines (74 loc) ⢠2.11 kB
Markdown
# Plazbot CLI
Official Command Line Interface for Plazbot - Manage your AI agents and portals directly from the terminal.
## Features
š¤ **Agent Management**
```bash
# Create a new agent
plazbot agent create -n "My Agent" -d "Description"
# List all agents
plazbot agent list
# Delete an agent
plazbot agent delete -i agent_id
```
š **Portal Management**
```bash
# Add a link to portal
plazbot portal add-link -n "Example" -u "https://example.com"
# Clear all links
plazbot portal clear-links
```
š¬ **WhatsApp Integration**
```bash
# Send a message
plazbot whatsapp send-message -t "+1234567890" -m "Hello"
# Send a template
plazbot whatsapp send-template -t "+1234567890" -n "welcome"
# Manage webhooks
plazbot whatsapp register-webhook -u "https://your-webhook.com"
plazbot whatsapp delete-webhook
```
## Installation
```bash
npm install -g plazbot-cli
```
## Usage
### Portal Commands
```bash
# Add a link to portal
plazbot portal add-link -n "Example Link" -u "https://example.com"
# Clear all links
plazbot portal clear-links
```
### WhatsApp Commands
```bash
# Send a direct message
plazbot whatsapp send-message -t "+1234567890" -m "Hello World"
# Send a template message
plazbot whatsapp send-template -t "+1234567890" -n "welcome_template"
# Register a webhook
plazbot whatsapp register-webhook -u "https://your-webhook.com"
# Delete a webhook
plazbot whatsapp delete-webhook
```
## Command Options
### Portal Commands
- `add-link`
- `-n, --name`: Link name
- `-u, --url`: Link URL
- `clear-links`: No options required
### WhatsApp Commands
- `send-message`
- `-t, --to`: Recipient phone number
- `-m, --message`: Message text
- `send-template`
- `-t, --to`: Recipient phone number
- `-n, --name`: Template name
- `register-webhook`
- `-u, --url`: Webhook URL
- `delete-webhook`: No options required
## Requirements
- Node.js 14 or higher
- npm or yarn package manager
- Valid Plazbot API credentials
## Support
For issues and feature requests, please visit our [GitHub repository](https://github.com/plazbot/plazbot-cli) or contact support@plazbot.com