About Twilio CLI
Twilio CLI provides a command-line interface to manage Twilio accounts and resources. It enables sending messages, configuring phone numbers, querying API resources, and extending functionality through plugins.
Key features
- 01Send and receive SMS and WhatsApp messages
- 02Purchase, configure, and manage phone numbers
- 03Install plugins to extend functionality or create custom workflows
Use cases
- 01Test messaging and voice APIs during development
- 02Manage multiple Twilio account profiles
- 03Automate communication tasks in deployment scripts
Install
Pick your OS or package manager and run the command in a terminal.
Once installed, runtwilio --versionto confirm it works.
Example commands
Common commands in the order you’d use them.
Details
From the project READMEA CLI for Twilio
Requirements
Currently, Node 22+ is supported. We support the LTS versions of Node.
Setup
Head over to the Twilio CLI documentation.
Verifying the RPM release
RPM packages are signed with Twilio's GPG key. yum install/dnf install of a downloaded .rpm
does not check that signature by default, so verify it yourself if you want to confirm the package
came from Twilio and was not modified:
sudo rpm --import https://raw.githubusercontent.com/twilio/twilio-cli/main/.github/rpm/gpg_pub.asc
rpm -K twilio-<version>-1.el9.x86_64.rpm
# twilio-<version>-1.el9.x86_64.rpm: digests signatures OK
digests signatures OK means the signature matched. Without the key imported, rpm -K reports
digests SIGNATURES NOT OK — the signature is present but rpm has no key to check it against.
Architecture and Functional Overview
Head over to the CLI Architecture and Functional Overview
Versioning
twilio-cli uses a modified version of Semantic Versioning for all changes. See this document for details.
Usage
See the General usage guide.
Examples
Review the Examples.
Plugins
You can review the docs on available plugins and how to install them. If you are interested in writing your own plugin, refer to the plugin authoring docs.
Contributing
- Clone this repo.
- From the repo directory, run:
npm install - Run
./bin/runfrom the repo directory to run the CLI.
Node 22 update
From version 7.0.0, the Twilio CLI will no longer support Node 20. If you are using Node 20, please upgrade to Node 22 or later. For more information, see the Twilio-CLI Support Update: Node 20 Version Deprecation EDIT this- https://www.twilio.com/docs/twilio-cli/getting-started/twilio-cli-support-update
Feedback
Please file a GitHub issue in this repository for any issues/bugs.
We’d love to hear from you. Any time you have feedback you’d like to send us, fill the CLI Feedback form or just run: the twilio feedback command.
License
MIT