This repository was archived by the owner on Feb 3, 2022. It is now read-only.
Releases: twilio-labs/create-twilio-function
Releases · twilio-labs/create-twilio-function
Version 2.0.0
- Exports details about the cli command so that other projects can consume it
- Generates new project from the ./templates directory in this project
- Can generate projects based on a template from twilio-labs/function-templates
- Can list available templates
- Depends on twilio-run v2.0.0
Version 1.0.2
- Minor updates
- Better error messages if the cli fails to create a directory. Fixes #14
Version 1.0.1
- Minor updates
- Corrected order of arguments in generated example function. Fixes #10
Version 1.0.0
Production release.
This is a command line tool that generates a Twilio Functions project that can be run locally with twilio-run
.
There are a number of ways to use this tool. The quickest and easiest is with npm init
:
npm init twilio-function function-name
cd function-name
npm start
This will create a new directory named "function-name" and include all the files you need to write and run a Twilio Function locally. Starting the application will host the example function at localhost:3000/example.
See the README for more details