This is a boilerplate for a twilio-cli plugin (inspired by plugin-debugger)
- Make sure
twilio-cli
is installed (follow instructions here) - Clone this repository
git clone https://github.com/vernig/twilio-cli-plugin-boilerplate.git
- Link the plugin to your twilio CLI installation
twilio plugin:link <plugin-folder>
- Test it:
twilio twilio myplugin:mycommand
- If everything is set up cxorrectly you should see:
$ twilio myplugin:mycommand
Hello World!
To properly configure your plugin you need to change / customize:
- Name of the plugin in package.json
oclif.name
of the plugin (in package.json)- Name of the file(s) / folder(s) implementing the command. This will be the actual name of the command. E.g. in this repo, this file implements the command
twilio myplugin:mycommand
)
To unlink the plugin
twilio plugin:unlink <plugin-folder>