Twilio CLI Plugins
The Twilio CLI can be extended via plugins. You can publish your own for the community or make them private for your own (or your clients') business workflows.
Install a plugin
Plugins for the CLI can be installed using the twilio plugins
command.
-
Install the plugin by it's package name:
twilio plugins:install <plugin-package-name>
-
Now, you can run your plugin commands from the CLI.
Refer to the plugin's documentation to see what new commands are available.
-
If you're using autocomplete, you'll need to run
twilio autocomplete
after installing a plugin and open a new terminal window. The CLI needs to re-build it's cache.
Available plugins
-
twilio serverless plugin: To streamline your Twilio Functions development workflow, Twilio Labs created the Serverless Toolkit.
twilio plugins:install @twilio-labs/plugin-serverless
-
twilio watch plugin: Allows you to watch your live debugger alerts, voice calls, and messages as they come in, in real-time.
twilio plugins:install @twilio-labs/plugin-watch
-
twilio token plugin: 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 plugin: Allows you to create, build and deploy Flex plugins
twilio plugins:install @twilio-labs/plugin-flex@beta
Create a plugin
Want to write your own plugin? See this document.
Need some help?
We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.