@@ -8,11 +8,7 @@ This plugin adds functionality to the [Twilio CLI](https://github.com/twilio/twi
8
8
debug and deploy to Twilio Serverless. It's a part of the [ Serverless Toolkit] ( https://github.com/twilio-labs/serverless-toolkit ) and wraps [ twilio-run] ( https://github.com/twilio-labs/twilio-run ) and [ create-twilio-function] ( https://github.com/philnash/create-twilio-function ) .
9
9
10
10
<!-- toc -->
11
- * [ Requirements] ( #requirements )
12
- * [ Usage] ( #usage )
13
- * [ Commands] ( #commands )
14
- * [ Contributing] ( #contributing )
15
- * [ License] ( #license )
11
+
16
12
<!-- tocstop -->
17
13
18
14
## Requirements
@@ -65,7 +61,7 @@ export TWILIO_SERVERLESS_API_RETRY_LIMIT=0
65
61
* [ ` twilio serverless:promote ` ] ( #twilio-serverlesspromote )
66
62
* [ ` twilio serverless:start [DIR] ` ] ( #twilio-serverlessstart-dir )
67
63
68
- ### ` twilio serverless:deploy `
64
+ ## ` twilio serverless:deploy `
69
65
70
66
Deploys existing functions and assets to Twilio
71
67
@@ -106,16 +102,19 @@ OPTIONS
106
102
107
103
--functions-folder=functions-folder Specific folder name to be used for static functions
108
104
105
+ --load-system-env Uses system environment variables as fallback for variables specified in your
106
+ .env file. Needs to be used with --env explicitly specified.
107
+
109
108
--override-existing-project Deploys Serverless project to existing service if a naming conflict has been
110
109
found.
111
110
112
111
--production Please prefer the "activate" command! Deploys to the production environment (no
113
112
domain suffix). Overrides the value passed via the environment flag.
114
113
```
115
114
116
- _ See code: [ src/commands/serverless/deploy.js] ( https://github.com/twilio-labs/plugin-serverless/blob/v1.7.1 /src/commands/serverless/deploy.js ) _
115
+ _ See code: [ src/commands/serverless/deploy.js] ( https://github.com/twilio-labs/plugin-serverless/blob/v1.8.0 /src/commands/serverless/deploy.js ) _
117
116
118
- ### ` twilio serverless:init NAME `
117
+ ## ` twilio serverless:init NAME `
119
118
120
119
Creates a new Twilio Function project
121
120
@@ -143,9 +142,9 @@ OPTIONS
143
142
--typescript Initialize your Serverless project with TypeScript
144
143
```
145
144
146
- _ See code: [ src/commands/serverless/init.js] ( https://github.com/twilio-labs/plugin-serverless/blob/v1.7.1 /src/commands/serverless/init.js ) _
145
+ _ See code: [ src/commands/serverless/init.js] ( https://github.com/twilio-labs/plugin-serverless/blob/v1.8.0 /src/commands/serverless/init.js ) _
147
146
148
- ### ` twilio serverless:list [TYPES] `
147
+ ## ` twilio serverless:list [TYPES] `
149
148
150
149
List existing services, environments, variables, deployments for your Twilio Serverless Account
151
150
@@ -177,12 +176,15 @@ OPTIONS
177
176
178
177
--extended-output Show an extended set of properties on the output
179
178
179
+ --load-system-env Uses system environment variables as fallback for variables specified in your .env
180
+ file. Needs to be used with --env explicitly specified.
181
+
180
182
--service-sid=service-sid Specific Serverless Service SID to run list for
181
183
```
182
184
183
- _ See code: [ src/commands/serverless/list.js] ( https://github.com/twilio-labs/plugin-serverless/blob/v1.7.1 /src/commands/serverless/list.js ) _
185
+ _ See code: [ src/commands/serverless/list.js] ( https://github.com/twilio-labs/plugin-serverless/blob/v1.8.0 /src/commands/serverless/list.js ) _
184
186
185
- ### ` twilio serverless:list-templates `
187
+ ## ` twilio serverless:list-templates `
186
188
187
189
Lists the available Twilio Function templates
188
190
@@ -194,9 +196,9 @@ OPTIONS
194
196
-l, --logLevel=logLevel [default: info] Level of logging messages.
195
197
```
196
198
197
- _ See code: [ src/commands/serverless/list-templates.js] ( https://github.com/twilio-labs/plugin-serverless/blob/v1.7.1 /src/commands/serverless/list-templates.js ) _
199
+ _ See code: [ src/commands/serverless/list-templates.js] ( https://github.com/twilio-labs/plugin-serverless/blob/v1.8.0 /src/commands/serverless/list-templates.js ) _
198
200
199
- ### ` twilio serverless:logs `
201
+ ## ` twilio serverless:logs `
200
202
201
203
Print logs from your Twilio Serverless project
202
204
@@ -227,14 +229,17 @@ OPTIONS
227
229
228
230
--function-sid=function-sid Specific Function SID to retrieve logs for
229
231
232
+ --load-system-env Uses system environment variables as fallback for variables specified in your .env
233
+ file. Needs to be used with --env explicitly specified.
234
+
230
235
--service-sid=service-sid Specific Serverless Service SID to retrieve logs for
231
236
232
237
--tail Continuously stream the logs
233
238
```
234
239
235
- _ See code: [ src/commands/serverless/logs.js] ( https://github.com/twilio-labs/plugin-serverless/blob/v1.7.1 /src/commands/serverless/logs.js ) _
240
+ _ See code: [ src/commands/serverless/logs.js] ( https://github.com/twilio-labs/plugin-serverless/blob/v1.8.0 /src/commands/serverless/logs.js ) _
236
241
237
- ### ` twilio serverless:new [NAMESPACE] `
242
+ ## ` twilio serverless:new [NAMESPACE] `
238
243
239
244
Creates a new Twilio Function based on an existing template
240
245
@@ -250,9 +255,9 @@ OPTIONS
250
255
--template=template
251
256
```
252
257
253
- _ See code: [ src/commands/serverless/new.js] ( https://github.com/twilio-labs/plugin-serverless/blob/v1.7.1 /src/commands/serverless/new.js ) _
258
+ _ See code: [ src/commands/serverless/new.js] ( https://github.com/twilio-labs/plugin-serverless/blob/v1.8.0 /src/commands/serverless/new.js ) _
254
259
255
- ### ` twilio serverless:promote `
260
+ ## ` twilio serverless:promote `
256
261
257
262
Promotes an existing deployment to a new environment
258
263
@@ -288,6 +293,9 @@ OPTIONS
288
293
289
294
--force Will run deployment in force mode. Can be dangerous.
290
295
296
+ --load-system-env Uses system environment variables as fallback for variables specified in
297
+ your .env file. Needs to be used with --env explicitly specified.
298
+
291
299
--production Promote build to the production environment (no domain suffix). Overrides
292
300
environment flag
293
301
@@ -297,9 +305,9 @@ ALIASES
297
305
$ twilio serverless:activate
298
306
```
299
307
300
- _ See code: [ src/commands/serverless/promote.js] ( https://github.com/twilio-labs/plugin-serverless/blob/v1.7.1 /src/commands/serverless/promote.js ) _
308
+ _ See code: [ src/commands/serverless/promote.js] ( https://github.com/twilio-labs/plugin-serverless/blob/v1.8.0 /src/commands/serverless/promote.js ) _
301
309
302
- ### ` twilio serverless:start [DIR] `
310
+ ## ` twilio serverless:start [DIR] `
303
311
304
312
Starts local Twilio Functions development server
305
313
@@ -329,6 +337,8 @@ OPTIONS
329
337
330
338
--detailed-logs Toggles detailed request logging by showing request body and query params
331
339
340
+ --experimental-fork-process Enable forking function processes to emulate production environment
341
+
332
342
--functions-folder=functions-folder Specific folder name to be used for static functions
333
343
334
344
--inspect=inspect Enables Node.js debugging protocol
@@ -348,7 +358,7 @@ ALIASES
348
358
$ twilio serverless:run
349
359
```
350
360
351
- _ See code: [ src/commands/serverless/start.js] ( https://github.com/twilio-labs/plugin-serverless/blob/v1.7.1 /src/commands/serverless/start.js ) _
361
+ _ See code: [ src/commands/serverless/start.js] ( https://github.com/twilio-labs/plugin-serverless/blob/v1.8.0 /src/commands/serverless/start.js ) _
352
362
<!-- commandsstop -->
353
363
354
364
## Contributing
0 commit comments