15 v

Twilio CLI

Twilio REST API - SMS, voice calls, WhatsApp messaging

pip install cli-anything-twilio
← Back to CLI-Anything Toolkit

Quick Start

# 1. Install
pip install cli-anything-twilio

# 2. Configure
export TWILIO_ACCOUNT_SID=ACxxxxxxxxxxxxxxxx
export TWILIO_AUTH_TOKEN=your-auth-token
export TWILIO_FROM_NUMBER=+15551234567

# 3. Verify
twilio-cli detect

# 4. Discover capabilities (Agent-friendly)
twilio-cli schema

Agent Integration

twilio-cli --json schema        # Discover all commands without credentials
twilio-cli --json detect        # Verify connectivity and credentials
twilio-cli --json sms send --to +1234 --from +9876 --body 'msg'

Command Reference

CommandDescription
detectVerify credentials
sms send --to +1234 --from +9876 --body 'msg'Send SMS
sms list [--limit N]List messages
calls make --to +1234 --from +9876 --twiml URLMake call
calls list [--limit N]List calls
whatsapp send --to whatsapp:+1234 --from whatsapp:+9876 --body 'msg'WhatsApp
numbers listList owned phone numbers
schemaOutput capability schema

Environment Variables

TWILIO_ACCOUNT_SID=ACxxxxxxxxxxxxxxxx
TWILIO_AUTH_TOKEN=your-auth-token
TWILIO_FROM_NUMBER=+15551234567