Skip to content

Commit 2e19bd5

Browse files
add deploy command in readme
1 parent a6432ad commit 2e19bd5

File tree

2 files changed

+56
-26
lines changed

2 files changed

+56
-26
lines changed

README.md

Lines changed: 52 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ USAGE
4646
<!-- commands -->
4747
* [`twilio autopilot:create`](#twilio-autopilotcreate)
4848
* [`twilio autopilot:delete`](#twilio-autopilotdelete)
49+
* [`twilio autopilot:deploy`](#twilio-autopilotdeploy)
4950
* [`twilio autopilot:export`](#twilio-autopilotexport)
5051
* [`twilio autopilot:fields:create`](#twilio-autopilotfieldscreate)
5152
* [`twilio autopilot:fields:delete`](#twilio-autopilotfieldsdelete)
@@ -86,7 +87,7 @@ OPTIONS
8687
-s, --schema=schema (required) [default: templates] schema path
8788
```
8889

89-
_See code: [src/commands/autopilot/create.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.10/src/commands/autopilot/create.js)_
90+
_See code: [src/commands/autopilot/create.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.12/src/commands/autopilot/create.js)_
9091

9192
## `twilio autopilot:delete`
9293

@@ -104,7 +105,33 @@ OPTIONS
104105
--uniqueName=uniqueName assistant uniqueName
105106
```
106107

107-
_See code: [src/commands/autopilot/delete.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.10/src/commands/autopilot/delete.js)_
108+
_See code: [src/commands/autopilot/delete.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.12/src/commands/autopilot/delete.js)_
109+
110+
## `twilio autopilot:deploy`
111+
112+
Deploys existing functions and assets to Twilio
113+
114+
```
115+
USAGE
116+
$ twilio autopilot:deploy
117+
118+
OPTIONS
119+
-c, --config=config [default: .twilio-functions] Location of the config file. Absolute path or relative
120+
to current working directory (cwd)
121+
122+
-l, --logLevel=logLevel [default: info] Level of logging messages.
123+
124+
-p, --profile=profile Shorthand identifier for your profile.
125+
126+
-t, --target=all|function|model [default: all] deploy function, model or all of them. Options can only be "all",
127+
"function" or "model".
128+
129+
-u, --account-sid=account-sid A specific account SID to be used for deployment. Uses fields in .env otherwise
130+
131+
--auth-token=auth-token Use a specific auth token for deployment. Uses fields from .env otherwise
132+
```
133+
134+
_See code: [src/commands/autopilot/deploy.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.12/src/commands/autopilot/deploy.js)_
108135

109136
## `twilio autopilot:export`
110137

@@ -122,7 +149,7 @@ OPTIONS
122149
--uniqueName=uniqueName assistant uniqueName
123150
```
124151

125-
_See code: [src/commands/autopilot/export.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.10/src/commands/autopilot/export.js)_
152+
_See code: [src/commands/autopilot/export.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.12/src/commands/autopilot/export.js)_
126153

127154
## `twilio autopilot:fields:create`
128155

@@ -147,7 +174,7 @@ OPTIONS
147174
--uniqueName=uniqueName (required) field unique name
148175
```
149176

150-
_See code: [src/commands/autopilot/fields/create.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.10/src/commands/autopilot/fields/create.js)_
177+
_See code: [src/commands/autopilot/fields/create.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.12/src/commands/autopilot/fields/create.js)_
151178

152179
## `twilio autopilot:fields:delete`
153180

@@ -170,7 +197,7 @@ OPTIONS
170197
--taskSid=taskSid task sid
171198
```
172199

173-
_See code: [src/commands/autopilot/fields/delete.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.10/src/commands/autopilot/fields/delete.js)_
200+
_See code: [src/commands/autopilot/fields/delete.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.12/src/commands/autopilot/fields/delete.js)_
174201

175202
## `twilio autopilot:fields:list`
176203

@@ -189,7 +216,7 @@ OPTIONS
189216
--taskSid=taskSid task sid
190217
```
191218

192-
_See code: [src/commands/autopilot/fields/list.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.10/src/commands/autopilot/fields/list.js)_
219+
_See code: [src/commands/autopilot/fields/list.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.12/src/commands/autopilot/fields/list.js)_
193220

194221
## `twilio autopilot:fieldtypes:create`
195222

@@ -208,7 +235,7 @@ OPTIONS
208235
--uniqueName=uniqueName (required) unique name for the field type
209236
```
210237

211-
_See code: [src/commands/autopilot/fieldtypes/create.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.10/src/commands/autopilot/fieldtypes/create.js)_
238+
_See code: [src/commands/autopilot/fieldtypes/create.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.12/src/commands/autopilot/fieldtypes/create.js)_
212239

213240
## `twilio autopilot:fieldtypes:list`
214241

@@ -226,7 +253,7 @@ OPTIONS
226253
--properties=properties [default: sid, uniqueName] The Autopilot Assistant FieldType List.
227254
```
228255

229-
_See code: [src/commands/autopilot/fieldtypes/list.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.10/src/commands/autopilot/fieldtypes/list.js)_
256+
_See code: [src/commands/autopilot/fieldtypes/list.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.12/src/commands/autopilot/fieldtypes/list.js)_
230257

231258
## `twilio autopilot:fieldtypes:update`
232259

@@ -246,7 +273,7 @@ OPTIONS
246273
--uniqueName=uniqueName field type unique name to update
247274
```
248275

249-
_See code: [src/commands/autopilot/fieldtypes/update.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.10/src/commands/autopilot/fieldtypes/update.js)_
276+
_See code: [src/commands/autopilot/fieldtypes/update.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.12/src/commands/autopilot/fieldtypes/update.js)_
250277

251278
## `twilio autopilot:fieldvalues:upload`
252279

@@ -265,7 +292,7 @@ OPTIONS
265292
--fileName=fileName (required) a CSV file of field values (one on each row with synonyms in columns)
266293
```
267294

268-
_See code: [src/commands/autopilot/fieldvalues/upload.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.10/src/commands/autopilot/fieldvalues/upload.js)_
295+
_See code: [src/commands/autopilot/fieldvalues/upload.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.12/src/commands/autopilot/fieldvalues/upload.js)_
269296

270297
## `twilio autopilot:import [TYPE]`
271298

@@ -294,7 +321,7 @@ DESCRIPTION
294321
-> twilio autopilot:import alexa --model <alexa-interaction-model-file> [--redirectURL <alexa-back-end-hanlder-url>]
295322
```
296323

297-
_See code: [src/commands/autopilot/import.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.10/src/commands/autopilot/import.js)_
324+
_See code: [src/commands/autopilot/import.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.12/src/commands/autopilot/import.js)_
298325

299326
## `twilio autopilot:list`
300327

@@ -311,7 +338,7 @@ OPTIONS
311338
--properties=properties [default: sid, uniqueName, friendlyName] The Autopilot Assistant List.
312339
```
313340

314-
_See code: [src/commands/autopilot/list.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.10/src/commands/autopilot/list.js)_
341+
_See code: [src/commands/autopilot/list.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.12/src/commands/autopilot/list.js)_
315342

316343
## `twilio autopilot:modelbuilds:create`
317344

@@ -329,7 +356,7 @@ OPTIONS
329356
-u, --callbackURL=callbackURL URL to get notified of model build status
330357
```
331358

332-
_See code: [src/commands/autopilot/modelbuilds/create.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.10/src/commands/autopilot/modelbuilds/create.js)_
359+
_See code: [src/commands/autopilot/modelbuilds/create.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.12/src/commands/autopilot/modelbuilds/create.js)_
333360

334361
## `twilio autopilot:queries:export`
335362

@@ -347,7 +374,7 @@ OPTIONS
347374
-s, --assistantSid=assistantSid (required) assistant that owns the task
348375
```
349376

350-
_See code: [src/commands/autopilot/queries/export.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.10/src/commands/autopilot/queries/export.js)_
377+
_See code: [src/commands/autopilot/queries/export.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.12/src/commands/autopilot/queries/export.js)_
351378

352379
## `twilio autopilot:samples:upload`
353380

@@ -366,7 +393,7 @@ OPTIONS
366393
--taskSid=taskSid task sid
367394
```
368395

369-
_See code: [src/commands/autopilot/samples/upload.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.10/src/commands/autopilot/samples/upload.js)_
396+
_See code: [src/commands/autopilot/samples/upload.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.12/src/commands/autopilot/samples/upload.js)_
370397

371398
## `twilio autopilot:simulate`
372399

@@ -384,7 +411,7 @@ OPTIONS
384411
-t, --text=text (required) User text input
385412
```
386413

387-
_See code: [src/commands/autopilot/simulate.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.10/src/commands/autopilot/simulate.js)_
414+
_See code: [src/commands/autopilot/simulate.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.12/src/commands/autopilot/simulate.js)_
388415

389416
## `twilio autopilot:tasks:create`
390417

@@ -403,7 +430,7 @@ OPTIONS
403430
--uniqueName=uniqueName (required) unique name for task
404431
```
405432

406-
_See code: [src/commands/autopilot/tasks/create.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.10/src/commands/autopilot/tasks/create.js)_
433+
_See code: [src/commands/autopilot/tasks/create.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.12/src/commands/autopilot/tasks/create.js)_
407434

408435
## `twilio autopilot:tasks:delete`
409436

@@ -421,7 +448,7 @@ OPTIONS
421448
--taskSid=taskSid task sid
422449
```
423450

424-
_See code: [src/commands/autopilot/tasks/delete.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.10/src/commands/autopilot/tasks/delete.js)_
451+
_See code: [src/commands/autopilot/tasks/delete.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.12/src/commands/autopilot/tasks/delete.js)_
425452

426453
## `twilio autopilot:tasks:list`
427454

@@ -439,7 +466,7 @@ OPTIONS
439466
--properties=properties [default: sid, uniqueName, friendlyName] The Autopilot Assistant Task List.
440467
```
441468

442-
_See code: [src/commands/autopilot/tasks/list.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.10/src/commands/autopilot/tasks/list.js)_
469+
_See code: [src/commands/autopilot/tasks/list.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.12/src/commands/autopilot/tasks/list.js)_
443470

444471
## `twilio autopilot:tasks:update`
445472

@@ -459,7 +486,7 @@ OPTIONS
459486
--uniqueName=uniqueName task unique name to update
460487
```
461488

462-
_See code: [src/commands/autopilot/tasks/update.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.10/src/commands/autopilot/tasks/update.js)_
489+
_See code: [src/commands/autopilot/tasks/update.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.12/src/commands/autopilot/tasks/update.js)_
463490

464491
## `twilio autopilot:update`
465492

@@ -477,7 +504,7 @@ OPTIONS
477504
--uniqueName=uniqueName assistant uniqueName
478505
```
479506

480-
_See code: [src/commands/autopilot/update.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.10/src/commands/autopilot/update.js)_
507+
_See code: [src/commands/autopilot/update.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.12/src/commands/autopilot/update.js)_
481508

482509
## `twilio autopilot:webhooks:create`
483510

@@ -498,7 +525,7 @@ OPTIONS
498525
-w, --webhookUniqueName=webhookUniqueName (required) unique name for webhook
499526
```
500527

501-
_See code: [src/commands/autopilot/webhooks/create.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.10/src/commands/autopilot/webhooks/create.js)_
528+
_See code: [src/commands/autopilot/webhooks/create.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.12/src/commands/autopilot/webhooks/create.js)_
502529

503530
## `twilio autopilot:webhooks:delete`
504531

@@ -516,7 +543,7 @@ OPTIONS
516543
--webhookSid=webhookSid SID of the webhook to delete
517544
```
518545

519-
_See code: [src/commands/autopilot/webhooks/delete.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.10/src/commands/autopilot/webhooks/delete.js)_
546+
_See code: [src/commands/autopilot/webhooks/delete.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.12/src/commands/autopilot/webhooks/delete.js)_
520547

521548
## `twilio autopilot:webhooks:list`
522549

@@ -536,7 +563,7 @@ OPTIONS
536563
webhookMethod] The Autopilot Assistant Webhooks List.
537564
```
538565

539-
_See code: [src/commands/autopilot/webhooks/list.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.10/src/commands/autopilot/webhooks/list.js)_
566+
_See code: [src/commands/autopilot/webhooks/list.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.12/src/commands/autopilot/webhooks/list.js)_
540567

541568
## `twilio autopilot:webhooks:update`
542569

@@ -558,7 +585,7 @@ OPTIONS
558585
--webhookSid=webhookSid SID of the webhook to update
559586
```
560587

561-
_See code: [src/commands/autopilot/webhooks/update.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.10/src/commands/autopilot/webhooks/update.js)_
588+
_See code: [src/commands/autopilot/webhooks/update.js](https://github.com/tingiris/twilio-cli-autopilot-plugin/blob/v1.0.0-beta.12/src/commands/autopilot/webhooks/update.js)_
562589

563590
## `twilio help [COMMAND]`
564591

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@dabblelab/plugin-autopilot",
33
"description": "Create, Update, Delete, List, Simulate, Import and Export Twilio Autopilot Assistant",
4-
"version": "1.0.0-beta.11",
4+
"version": "1.0.0-beta.12",
55
"author": "Steve Tingiris",
66
"bugs": "https://github.com/tingiris/twilio-cli-autopilot-plugin/issues",
77
"dependencies": {
@@ -146,6 +146,9 @@
146146
},
147147
"autopilot:modelbuilds:create": {
148148
"description": "Create Model Builds"
149+
},
150+
"autopilot:deploy": {
151+
"description": "deploy function, model or all of them. Options can only be 'all', 'function' or 'model'."
149152
}
150153
}
151154
},

0 commit comments

Comments
 (0)