CLI Plugins
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.
Info
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 thetwilio plugins
command.
twilioplugins:install PLUGIN_PACKAGE_NAME
For example:
twilioplugins:install @twilio-labs/plugin-serverless
Once the plugin is installed, refer to the plugin's documentation to see what new commands are available.
Warning
If you're usingautocomplete, you'll need to re-runtwilio 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.
twilioplugins:install @twilio-labs/plugin-dev-phoneServerless Toolkit — Use this to streamline your development workflow withTwilio Functions & Assets.
twilioplugins:install @twilio-labs/plugin-serverlessTwilio Assets Plugin — Allows you to upload and manage static assets in aTwilio Assets service.
twilioplugins:install @twilio-labs/plugin-assetsTwilio Webhook Plugin — Allows you to emulatewebhook events to validate your applications andTwiML Bins.
twilioplugins:install @twilio-labs/plugin-webhooktwilio watch — Allows you to watch debugger alerts, voice calls, and messages as they come in, in real time.
twilioplugins:install @twilio-labs/plugin-watchtwilio token — Install and use this plugin to generate a token for use in a client-side SDK, e.g., a chat application.
twilioplugins:install @twilio-labs/plugin-tokentwilio flex — Allows you to create, build, and deployFlex plugins.
twilioplugins:install @twilio-labs/plugin-flex
Want to write your own plugin?This document will show you how.