@adobe/aio-cli-plugin-app 14.1.2 → 14.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -74,7 +74,7 @@ DESCRIPTION
74
74
  Create, run, test, and deploy Adobe I/O Apps
75
75
  ```
76
76
 
77
- _See code: [src/commands/app/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.2/src/commands/app/index.js)_
77
+ _See code: [src/commands/app/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.2.0/src/commands/app/index.js)_
78
78
 
79
79
  ## `aio app add`
80
80
 
@@ -92,7 +92,7 @@ DESCRIPTION
92
92
  Add a new component to an existing Adobe I/O App
93
93
  ```
94
94
 
95
- _See code: [src/commands/app/add/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.2/src/commands/app/add/index.js)_
95
+ _See code: [src/commands/app/add/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.2.0/src/commands/app/add/index.js)_
96
96
 
97
97
  ## `aio app add action`
98
98
 
@@ -117,7 +117,7 @@ ALIASES
117
117
  $ aio app add actions
118
118
  ```
119
119
 
120
- _See code: [src/commands/app/add/action.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.2/src/commands/app/add/action.js)_
120
+ _See code: [src/commands/app/add/action.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.2.0/src/commands/app/add/action.js)_
121
121
 
122
122
  ## `aio app add ci`
123
123
 
@@ -135,7 +135,7 @@ DESCRIPTION
135
135
  Add CI files
136
136
  ```
137
137
 
138
- _See code: [src/commands/app/add/ci.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.2/src/commands/app/add/ci.js)_
138
+ _See code: [src/commands/app/add/ci.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.2.0/src/commands/app/add/ci.js)_
139
139
 
140
140
  ## `aio app add event`
141
141
 
@@ -160,7 +160,7 @@ ALIASES
160
160
  $ aio app add events
161
161
  ```
162
162
 
163
- _See code: [src/commands/app/add/event.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.2/src/commands/app/add/event.js)_
163
+ _See code: [src/commands/app/add/event.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.2.0/src/commands/app/add/event.js)_
164
164
 
165
165
  ## `aio app add extension`
166
166
 
@@ -186,7 +186,7 @@ ALIASES
186
186
  $ aio app add extensions
187
187
  ```
188
188
 
189
- _See code: [src/commands/app/add/extension.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.2/src/commands/app/add/extension.js)_
189
+ _See code: [src/commands/app/add/extension.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.2.0/src/commands/app/add/extension.js)_
190
190
 
191
191
  ## `aio app add service`
192
192
 
@@ -210,7 +210,7 @@ ALIASES
210
210
  $ aio app add services
211
211
  ```
212
212
 
213
- _See code: [src/commands/app/add/service.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.2/src/commands/app/add/service.js)_
213
+ _See code: [src/commands/app/add/service.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.2.0/src/commands/app/add/service.js)_
214
214
 
215
215
  ## `aio app add web-assets`
216
216
 
@@ -231,7 +231,7 @@ DESCRIPTION
231
231
  Add web assets support
232
232
  ```
233
233
 
234
- _See code: [src/commands/app/add/web-assets.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.2/src/commands/app/add/web-assets.js)_
234
+ _See code: [src/commands/app/add/web-assets.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.2.0/src/commands/app/add/web-assets.js)_
235
235
 
236
236
  ## `aio app build`
237
237
 
@@ -261,7 +261,7 @@ DESCRIPTION
261
261
  Use the --force-build flag to force a build even if one already exists.
262
262
  ```
263
263
 
264
- _See code: [src/commands/app/build.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.2/src/commands/app/build.js)_
264
+ _See code: [src/commands/app/build.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.2.0/src/commands/app/build.js)_
265
265
 
266
266
  ## `aio app clean`
267
267
 
@@ -286,7 +286,7 @@ DESCRIPTION
286
286
  Note that this will require a full rebuild on your next build command.
287
287
  ```
288
288
 
289
- _See code: [src/commands/app/clean.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.2/src/commands/app/clean.js)_
289
+ _See code: [src/commands/app/clean.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.2.0/src/commands/app/clean.js)_
290
290
 
291
291
  ## `aio app create [PATH]`
292
292
 
@@ -308,7 +308,7 @@ DESCRIPTION
308
308
  Create a new Adobe I/O App with default parameters
309
309
  ```
310
310
 
311
- _See code: [src/commands/app/create.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.2/src/commands/app/create.js)_
311
+ _See code: [src/commands/app/create.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.2.0/src/commands/app/create.js)_
312
312
 
313
313
  ## `aio app delete`
314
314
 
@@ -326,7 +326,7 @@ DESCRIPTION
326
326
  Delete a component from an existing Adobe I/O App
327
327
  ```
328
328
 
329
- _See code: [src/commands/app/delete/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.2/src/commands/app/delete/index.js)_
329
+ _See code: [src/commands/app/delete/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.2.0/src/commands/app/delete/index.js)_
330
330
 
331
331
  ## `aio app delete action [ACTION-NAME]`
332
332
 
@@ -352,7 +352,7 @@ ALIASES
352
352
  $ aio app delete actions
353
353
  ```
354
354
 
355
- _See code: [src/commands/app/delete/action.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.2/src/commands/app/delete/action.js)_
355
+ _See code: [src/commands/app/delete/action.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.2.0/src/commands/app/delete/action.js)_
356
356
 
357
357
  ## `aio app delete ci`
358
358
 
@@ -371,7 +371,7 @@ DESCRIPTION
371
371
  Delete existing CI files
372
372
  ```
373
373
 
374
- _See code: [src/commands/app/delete/ci.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.2/src/commands/app/delete/ci.js)_
374
+ _See code: [src/commands/app/delete/ci.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.2.0/src/commands/app/delete/ci.js)_
375
375
 
376
376
  ## `aio app delete extension`
377
377
 
@@ -397,7 +397,7 @@ ALIASES
397
397
  $ aio app delete extensions
398
398
  ```
399
399
 
400
- _See code: [src/commands/app/delete/extension.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.2/src/commands/app/delete/extension.js)_
400
+ _See code: [src/commands/app/delete/extension.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.2.0/src/commands/app/delete/extension.js)_
401
401
 
402
402
  ## `aio app delete service`
403
403
 
@@ -421,7 +421,7 @@ ALIASES
421
421
  $ aio app delete services
422
422
  ```
423
423
 
424
- _See code: [src/commands/app/delete/service.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.2/src/commands/app/delete/service.js)_
424
+ _See code: [src/commands/app/delete/service.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.2.0/src/commands/app/delete/service.js)_
425
425
 
426
426
  ## `aio app delete web-assets`
427
427
 
@@ -440,7 +440,7 @@ DESCRIPTION
440
440
  Delete existing web assets
441
441
  ```
442
442
 
443
- _See code: [src/commands/app/delete/web-assets.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.2/src/commands/app/delete/web-assets.js)_
443
+ _See code: [src/commands/app/delete/web-assets.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.2.0/src/commands/app/delete/web-assets.js)_
444
444
 
445
445
  ## `aio app deploy`
446
446
 
@@ -486,7 +486,7 @@ DESCRIPTION
486
486
  Use the --force-deploy flag to force deploy changes, regardless of production Workspace being published in Exchange.
487
487
  ```
488
488
 
489
- _See code: [src/commands/app/deploy.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.2/src/commands/app/deploy.js)_
489
+ _See code: [src/commands/app/deploy.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.2.0/src/commands/app/deploy.js)_
490
490
 
491
491
  ## `aio app get-url [ACTION]`
492
492
 
@@ -508,7 +508,7 @@ DESCRIPTION
508
508
  Get action URLs
509
509
  ```
510
510
 
511
- _See code: [src/commands/app/get-url.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.2/src/commands/app/get-url.js)_
511
+ _See code: [src/commands/app/get-url.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.2.0/src/commands/app/get-url.js)_
512
512
 
513
513
  ## `aio app info`
514
514
 
@@ -530,7 +530,7 @@ DESCRIPTION
530
530
  Display settings/configuration in use by an Adobe I/O App
531
531
  ```
532
532
 
533
- _See code: [src/commands/app/info.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.2/src/commands/app/info.js)_
533
+ _See code: [src/commands/app/info.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.2.0/src/commands/app/info.js)_
534
534
 
535
535
  ## `aio app init [PATH]`
536
536
 
@@ -539,8 +539,8 @@ Create a new Adobe I/O App
539
539
  ```
540
540
  USAGE
541
541
  $ aio app init [PATH] [-v] [--version] [--install] [-y] [--login] [-e <value>... | -t <value>... | --repo
542
- <value>] [--standalone-app | | ] [-w <value> | -i <value>] [--confirm-new-workspace] [--use-jwt] [--github-pat
543
- <value> ] [--linter none|basic|adobe-recommended]
542
+ <value>] [--standalone-app | | ] [--template-options <value>] [-o <value> | -i <value> | ] [-p <value> | | ] [-w
543
+ <value> | | ] [--confirm-new-workspace] [--use-jwt] [--github-pat <value> ] [--linter none|basic|adobe-recommended]
544
544
 
545
545
  ARGUMENTS
546
546
  PATH [default: .] Path to the app directory
@@ -548,6 +548,8 @@ ARGUMENTS
548
548
  FLAGS
549
549
  -e, --extension=<value>... Extension point(s) to implement
550
550
  -i, --import=<value> Import an Adobe I/O Developer Console configuration file
551
+ -o, --org=<value> Specify the Adobe Developer Console Org to init from (orgId, or orgCode)
552
+ -p, --project=<value> Specify the Adobe Developer Console Project to init from (projectId, or projectName)
551
553
  -t, --template=<value>... Specify a link to a template that will be installed
552
554
  -v, --verbose Verbose output
553
555
  -w, --workspace=<value> [default: Stage] Specify the Adobe Developer Console Workspace to init from,
@@ -561,6 +563,7 @@ FLAGS
561
563
  --[no-]login Login using your Adobe ID for interacting with Adobe I/O Developer Console
562
564
  --repo=<value> Init from gh quick-start repo. Expected to be of the form <owner>/<repo>/<path>
563
565
  --standalone-app Create a stand-alone application
566
+ --template-options=<value> Optional template options, as a base64-encoded json string
564
567
  --use-jwt if the config has both jwt and OAuth Server to Server Credentials (while migrating),
565
568
  prefer the JWT credentials
566
569
  --version Show version
@@ -569,7 +572,7 @@ DESCRIPTION
569
572
  Create a new Adobe I/O App
570
573
  ```
571
574
 
572
- _See code: [src/commands/app/init.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.2/src/commands/app/init.js)_
575
+ _See code: [src/commands/app/init.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.2.0/src/commands/app/init.js)_
573
576
 
574
577
  ## `aio app install PATH`
575
578
 
@@ -592,7 +595,7 @@ DESCRIPTION
592
595
  This command will support installing apps packaged by 'aio app pack'.
593
596
  ```
594
597
 
595
- _See code: [src/commands/app/install.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.2/src/commands/app/install.js)_
598
+ _See code: [src/commands/app/install.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.2.0/src/commands/app/install.js)_
596
599
 
597
600
  ## `aio app list`
598
601
 
@@ -610,7 +613,7 @@ DESCRIPTION
610
613
  List components for Adobe I/O App
611
614
  ```
612
615
 
613
- _See code: [src/commands/app/list/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.2/src/commands/app/list/index.js)_
616
+ _See code: [src/commands/app/list/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.2.0/src/commands/app/list/index.js)_
614
617
 
615
618
  ## `aio app list extension`
616
619
 
@@ -635,7 +638,7 @@ ALIASES
635
638
  $ aio app list extensions
636
639
  ```
637
640
 
638
- _See code: [src/commands/app/list/extension.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.2/src/commands/app/list/extension.js)_
641
+ _See code: [src/commands/app/list/extension.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.2.0/src/commands/app/list/extension.js)_
639
642
 
640
643
  ## `aio app logs`
641
644
 
@@ -659,7 +662,7 @@ DESCRIPTION
659
662
  Fetch logs for an Adobe I/O App
660
663
  ```
661
664
 
662
- _See code: [src/commands/app/logs.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.2/src/commands/app/logs.js)_
665
+ _See code: [src/commands/app/logs.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.2.0/src/commands/app/logs.js)_
663
666
 
664
667
  ## `aio app pack [PATH]`
665
668
 
@@ -681,7 +684,7 @@ DESCRIPTION
681
684
  This command will support packaging apps for redistribution.
682
685
  ```
683
686
 
684
- _See code: [src/commands/app/pack.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.2/src/commands/app/pack.js)_
687
+ _See code: [src/commands/app/pack.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.2.0/src/commands/app/pack.js)_
685
688
 
686
689
  ## `aio app run`
687
690
 
@@ -703,7 +706,7 @@ DESCRIPTION
703
706
  Run an Adobe I/O App
704
707
  ```
705
708
 
706
- _See code: [src/commands/app/run.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.2/src/commands/app/run.js)_
709
+ _See code: [src/commands/app/run.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.2.0/src/commands/app/run.js)_
707
710
 
708
711
  ## `aio app test`
709
712
 
@@ -731,7 +734,7 @@ DESCRIPTION
731
734
  If the extension has a hook called 'test' in its 'ext.config.yaml', the script specified will be run instead.
732
735
  ```
733
736
 
734
- _See code: [src/commands/app/test.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.2/src/commands/app/test.js)_
737
+ _See code: [src/commands/app/test.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.2.0/src/commands/app/test.js)_
735
738
 
736
739
  ## `aio app undeploy`
737
740
 
@@ -756,7 +759,7 @@ DESCRIPTION
756
759
  Undeploys an Adobe I/O App
757
760
  ```
758
761
 
759
- _See code: [src/commands/app/undeploy.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.2/src/commands/app/undeploy.js)_
762
+ _See code: [src/commands/app/undeploy.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.2.0/src/commands/app/undeploy.js)_
760
763
 
761
764
  ## `aio app use [CONFIG_FILE_PATH]`
762
765
 
@@ -803,5 +806,5 @@ DESCRIPTION
803
806
  page in https://developer.adobe.com/console/
804
807
  ```
805
808
 
806
- _See code: [src/commands/app/use.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.2/src/commands/app/use.js)_
809
+ _See code: [src/commands/app/use.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.2.0/src/commands/app/use.js)_
807
810
  <!-- commandsstop -->
@@ -573,23 +573,32 @@
573
573
  "multiple": true,
574
574
  "type": "option"
575
575
  },
576
+ "template-options": {
577
+ "description": "Optional template options, as a base64-encoded json string",
578
+ "name": "template-options",
579
+ "hasDynamicHelp": false,
580
+ "multiple": false,
581
+ "type": "option"
582
+ },
576
583
  "org": {
577
- "description": "Specify the Adobe Developer Console Org to init from",
584
+ "char": "o",
585
+ "description": "Specify the Adobe Developer Console Org to init from (orgId, or orgCode)",
578
586
  "exclusive": [
579
- "import"
587
+ "import",
588
+ "no-login"
580
589
  ],
581
- "hidden": true,
582
590
  "name": "org",
583
591
  "hasDynamicHelp": false,
584
592
  "multiple": false,
585
593
  "type": "option"
586
594
  },
587
595
  "project": {
588
- "description": "Specify the Adobe Developer Console Project to init from",
596
+ "char": "p",
597
+ "description": "Specify the Adobe Developer Console Project to init from (projectId, or projectName)",
589
598
  "exclusive": [
590
- "import"
599
+ "import",
600
+ "no-login"
591
601
  ],
592
- "hidden": true,
593
602
  "name": "project",
594
603
  "hasDynamicHelp": false,
595
604
  "multiple": false,
@@ -599,7 +608,8 @@
599
608
  "char": "w",
600
609
  "description": "Specify the Adobe Developer Console Workspace to init from, defaults to Stage",
601
610
  "exclusive": [
602
- "import"
611
+ "import",
612
+ "no-login"
603
613
  ],
604
614
  "name": "workspace",
605
615
  "default": "Stage",
@@ -2190,5 +2200,5 @@
2190
2200
  ]
2191
2201
  }
2192
2202
  },
2193
- "version": "14.1.2"
2203
+ "version": "14.2.0"
2194
2204
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adobe/aio-cli-plugin-app",
3
3
  "description": "Create, Build and Deploy Adobe I/O Applications",
4
- "version": "14.1.2",
4
+ "version": "14.2.0",
5
5
  "author": "Adobe Inc.",
6
6
  "bugs": "https://github.com/adobe/aio-cli-plugin-app/issues",
7
7
  "dependencies": {
@@ -12,9 +12,9 @@
12
12
  "@adobe/aio-lib-core-networking": "^5",
13
13
  "@adobe/aio-lib-env": "^3",
14
14
  "@adobe/aio-lib-ims": "^7",
15
- "@adobe/aio-lib-runtime": "^7.1.2",
15
+ "@adobe/aio-lib-runtime": "^7.1.3",
16
16
  "@adobe/aio-lib-templates": "^3",
17
- "@adobe/aio-lib-web": "^7",
17
+ "@adobe/aio-lib-web": "^7.0.6",
18
18
  "@adobe/generator-aio-app": "^9",
19
19
  "@adobe/generator-app-common-lib": "^3",
20
20
  "@adobe/inquirer-table-checkbox": "^2",
@@ -122,6 +122,7 @@ class InitCommand extends TemplatesCommand {
122
122
  useDefaultValues: flags.yes,
123
123
  installNpm: flags.install,
124
124
  installConfig: flags.login,
125
+ templateOptions: flags['template-options'],
125
126
  templates
126
127
  })
127
128
  }
@@ -174,6 +175,7 @@ class InitCommand extends TemplatesCommand {
174
175
  await this.installTemplates({
175
176
  useDefaultValues: flags.yes,
176
177
  installNpm: flags.install,
178
+ templateOptions: flags['template-options'],
177
179
  templates
178
180
  })
179
181
  }
@@ -456,21 +458,33 @@ InitCommand.flags = {
456
458
  char: 't',
457
459
  multiple: true
458
460
  }),
461
+ 'template-options': Flags.string({
462
+ description: 'Optional template options, as a base64-encoded json string',
463
+ parse: input => {
464
+ try {
465
+ const decoded = Buffer.from(input, 'base64').toString('utf8')
466
+ aioLogger.debug(`--template-options: ${input} decoded as ${decoded}`)
467
+ return JSON.parse(decoded)
468
+ } catch (e) {
469
+ throw new Error(`--template-options: ${input} is not a base64 encoded JSON object.`)
470
+ }
471
+ }
472
+ }),
459
473
  org: Flags.string({
460
- description: 'Specify the Adobe Developer Console Org to init from',
461
- hidden: true,
462
- exclusive: ['import'] // also no-login
474
+ description: 'Specify the Adobe Developer Console Org to init from (orgId, or orgCode)',
475
+ char: 'o',
476
+ exclusive: ['import', 'no-login']
463
477
  }),
464
478
  project: Flags.string({
465
- description: 'Specify the Adobe Developer Console Project to init from',
466
- hidden: true,
467
- exclusive: ['import'] // also no-login
479
+ description: 'Specify the Adobe Developer Console Project to init from (projectId, or projectName)',
480
+ char: 'p',
481
+ exclusive: ['import', 'no-login']
468
482
  }),
469
483
  workspace: Flags.string({
470
484
  description: 'Specify the Adobe Developer Console Workspace to init from, defaults to Stage',
471
485
  default: DEFAULT_WORKSPACE,
472
486
  char: 'w',
473
- exclusive: ['import'] // also no-login
487
+ exclusive: ['import', 'no-login']
474
488
  }),
475
489
  'confirm-new-workspace': Flags.boolean({
476
490
  description: 'Prompt to confirm before creating a new workspace',