@versatly/twilio-cli
v1.0.0
Published
A CLI for Twilio SMS and voice calls
Readme
@versatly/twilio-cli
A simple CLI for Twilio SMS and voice calls.
Installation
npm install -g @versatly/twilio-cliConfiguration
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:
# Default greeting
twilio call make --to "+1234567890"
# Custom spoken message
twilio call make --to "+1234567890" --say "Your order is ready for pickup"
# Custom TwiML URL
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 completedAccount Status
Check balance and account info:
twilio statusLicense
MIT
