← Back to CLIs
Melvynx

twilio

Twilio CLI - send SMS, make calls, manage phone numbers, view logs. Use when user mentions 'twilio', 'send sms', 'twilio api', or wants to interact with Twilio communication services.

Install

$ npx api2cli install twilio

Details

Skill type: Official CLI
Auth type: bearer
Version: 1.0.0
Author: Melvynx
Views: 0

README

twilio

Setup

npm i -g twilio-cli

Verify installation:

twilio --version

Authentication

twilio login

Resources

Profiles

CommandDescription
twilio profiles listList all configured profiles
twilio profiles use <name>Switch to a profile
twilio profiles createCreate a new profile
twilio profiles remove <name>Remove a profile

Phone Numbers

CommandDescription
twilio phone-numbers listList all phone numbers
twilio phone-numbers buy --country-code US --type localBuy a phone number
twilio phone-numbers update <sid> --sms-url <url>Update SMS webhook for a number

Messages

CommandDescription
twilio api core messages create --from <from> --to <to> --body "Hello"Send an SMS
twilio api core messages listList recent messages
twilio api core messages list --limit 10List messages with limit
twilio api core messages fetch --sid <sid>Get a specific message

Calls

CommandDescription
twilio api core calls create --from <from> --to <to> --url <twiml-url>Make a phone call
twilio api core calls listList recent calls
twilio api core calls fetch --sid <sid>Get a specific call

Debugging

CommandDescription
twilio debugger logs listList recent debugging logs
twilio debugger logs list --log-level errorList only error logs

Plugins

CommandDescription
twilio pluginsList installed plugins
twilio plugins install <name>Install a plugin
twilio plugins remove <name>Remove a plugin

Global Flags

FlagDescription
-o jsonOutput as JSON
--silentSuppress output
--profile <name>Use a specific profile
-l debugEnable debug logging
Sponsors