Beyond the base commands that are already available, the Twilio CLI's functionality can be extended through plugins. You can publish your own plugins to share with the wider Twilio community, or make them private for your own—or your clients'—business workflows.
While Twilio CLI itself is generally available, each plugin has its own individual release status. Please check a plugin's documentation to learn more about its development status.
Plugins are installed using the twilio plugins
command.
twilio plugins:install PLUGIN_PACKAGE_NAME
For example:
twilio plugins:install @twilio-labs/plugin-serverless
Once the plugin is installed, refer to the plugin's documentation to see what new commands are available.
If you're using autocomplete, you'll need to re-run twilio autocomplete
after installing a plugin. This will rebuild the CLI's cache, and enable autocompletion for commands tied to the new plugin.
Twilio Labs supports numerous plugins targeted at supporting common workflows for developers. These are just a few options:
Dev Phone — A developer tool for testing Twilio SMS and Voice applications, even if you don't have service.
twilio plugins:install @twilio-labs/plugin-dev-phone
Serverless Toolkit — Use this to streamline your development workflow with Twilio Functions & Assets.
twilio plugins:install @twilio-labs/plugin-serverless
Twilio Assets Plugin — Allows you to upload and manage static assets in a Twilio Assets service.
twilio plugins:install @twilio-labs/plugin-assets
Twilio Webhook Plugin — Allows you to emulate webhook events to validate your applications and TwiML Bins.
twilio plugins:install @twilio-labs/plugin-webhook
twilio watch — Allows you to watch debugger alerts, voice calls, and messages as they come in, in real time.
twilio plugins:install @twilio-labs/plugin-watch
twilio token — Install and use this plugin to generate a token for use in a client-side SDK, e.g., a chat application.
twilio plugins:install @twilio-labs/plugin-token
twilio flex — Allows you to create, build, and deploy Flex plugins.
twilio plugins:install @twilio-labs/plugin-flex
Want to write your own plugin? This document will show you how.