@twilio-labs/plugin-serverless
Develop and deploy Twilio Serverless Functions
Last updated a month ago by dkundel .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @twilio-labs/plugin-serverless 
SYNC missed versions from official npm registry.

@twilio-labs/plugin-serverless

Access and stream your Twilio debugger logs.

Usage

$ npm install -g twilio-cli
$ twilio plugins:install @twilio-labs/plugin-serverless
$ twilio dev
running dev command...
$ twilio --help serverless
USAGE
  $ twilio serverless
...

Commands

twilio serverless:new [FILENAME]

Creates a new Twilio Function based on an existing template

USAGE
  $ twilio serverless:new [FILENAME]

ARGUMENTS
  FILENAME  Name for the function to be created

OPTIONS
  -l, --list           List available templates. Will not create a new function
  --template=template

See code: src/commands/serverless/new.js

twilio serverless:start [DIR]

Starts local Twilio Functions development server

USAGE
  $ twilio serverless:start [DIR]

ARGUMENTS
  DIR  Root directory to serve local Functions/Assets from

OPTIONS
  -e, --env=env              Loads .env file, overrides local env variables
  -f, --load-local-env       Includes the local environment variables
  -p, --port=port            (required) [default: 3000] Override default port of 3000
  --detailed-logs            Toggles detailed request logging by showing request body and query params
  --inspect=inspect          Enables Node.js debugging protocol
  --inspect-brk=inspect-brk  Enables Node.js debugging protocol, stops executioin until debugger is attached
  --legacy-mode              Enables legacy mode, it will prefix your asset paths with /assets
  --live                     Always serve from the current functions (no caching)
  --logs                     Toggles request logging
  --ngrok=ngrok              Uses ngrok to create and outfacing url

ALIASES
  $ twilio serverless:dev
  $ twilio dev

See code: src/commands/serverless/start.js

Current Tags

  • 1.0.0-alpha.3                                ...           latest (a month ago)

3 Versions

  • 1.0.0-alpha.3                                ...           a month ago
  • 1.0.0-alpha.2                                ...           a month ago
  • 1.0.0-alpha.0                                ...           2 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 56
Dependencies (7)
Dev Dependencies (11)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |