mcpField
T
Twilio CLI

Twilio CLI

Official
twilio.comDeveloper Tools194twilioUpdated 2w ago
RepositoryVisit website

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

  1. 01Send and receive SMS and WhatsApp messages
  2. 02Purchase, configure, and manage phone numbers
  3. 03Install plugins to extend functionality or create custom workflows

Use cases

  1. 01Test messaging and voice APIs during development
  2. 02Manage multiple Twilio account profiles
  3. 03Automate communication tasks in deployment scripts

Install

Pick your OS or package manager and run the command in a terminal.

$
npm install -g twilio-cli

Once installed, runtwilio --versionto confirm it works.

Example commands

Common commands in the order you’d use them.

01
twilio login
02
twilio api:core:messages:list
03
twilio plugins:list

Details

From the project README

A CLI for Twilio

Travis Build Status codecov Learn with TwilioQuest

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

  1. Clone this repo.
  2. From the repo directory, run: npm install
  3. Run ./bin/run from 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

Comments

Markdown supported