@versatly/twilio-cli
A simple CLI for Twilio SMS and voice calls.
Installation
npm install -g @versatly/twilio-cli
Configuration
Set these environment variables:
export TWILIO_ACCOUNT_SID="your_account_sid"
export TWILIO_AUTH_TOKEN="your_auth_token"
export TWILIO_PHONE_NUMBER="+1234567890"
Usage
SMS Commands
Send an SMS:
twilio sms send --to "+1234567890" --message "Hello from CLI!"
List recent messages:
twilio sms list
twilio sms list --limit 50
twilio sms list --to "+1234567890"
Call Commands
Make an outbound call:
twilio call make --to "+1234567890"
twilio call make --to "+1234567890" --say "Your order is ready for pickup"
twilio call make --to "+1234567890" --twiml "https://example.com/twiml.xml"
List recent calls:
twilio call list
twilio call list --limit 50
twilio call list --status completed
Account Status
Check balance and account info:
twilio status
License
MIT