The Twilio CLI can be extended through plugins. You can publish your own plugins for the community or make them private for your own — or your clients’ — business workflows.
Plugins for the CLI are installed using the
twilio plugins command.
Install a plugin by its package name:
twilio plugins:install <plugin-package-name>
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 autocompleteafter installing a plugin and then open a new terminal window. The CLI needs to re-build its cache.
twilio plugins:install @twilio-labs/plugin-serverless
twilio watch — 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 — 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
twilio assets — Allows you to upload and manage static assets in a Twilio Assets service.
twilio plugins:install @twilio-labs/plugin-assets
Want to write your own plugin? This document will show you how.