@adobe/aio-cli-plugin-app 12.0.1 → 12.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
@@ -72,7 +72,7 @@ DESCRIPTION
72
72
  Create, run, test, and deploy Adobe I/O Apps
73
73
  ```
74
74
 
75
- _See code: [src/commands/app/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0.1/src/commands/app/index.js)_
75
+ _See code: [src/commands/app/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.0/src/commands/app/index.js)_
76
76
 
77
77
  ## `aio app add`
78
78
 
@@ -90,7 +90,7 @@ DESCRIPTION
90
90
  Add a new component to an existing Adobe I/O App
91
91
  ```
92
92
 
93
- _See code: [src/commands/app/add/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0.1/src/commands/app/add/index.js)_
93
+ _See code: [src/commands/app/add/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.0/src/commands/app/add/index.js)_
94
94
 
95
95
  ## `aio app add action`
96
96
 
@@ -115,7 +115,7 @@ ALIASES
115
115
  $ aio app add actions
116
116
  ```
117
117
 
118
- _See code: [src/commands/app/add/action.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0.1/src/commands/app/add/action.js)_
118
+ _See code: [src/commands/app/add/action.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.0/src/commands/app/add/action.js)_
119
119
 
120
120
  ## `aio app add ci`
121
121
 
@@ -133,7 +133,7 @@ DESCRIPTION
133
133
  Add CI files
134
134
  ```
135
135
 
136
- _See code: [src/commands/app/add/ci.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0.1/src/commands/app/add/ci.js)_
136
+ _See code: [src/commands/app/add/ci.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.0/src/commands/app/add/ci.js)_
137
137
 
138
138
  ## `aio app add event`
139
139
 
@@ -158,7 +158,7 @@ ALIASES
158
158
  $ aio app add events
159
159
  ```
160
160
 
161
- _See code: [src/commands/app/add/event.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0.1/src/commands/app/add/event.js)_
161
+ _See code: [src/commands/app/add/event.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.0/src/commands/app/add/event.js)_
162
162
 
163
163
  ## `aio app add extension`
164
164
 
@@ -184,7 +184,7 @@ ALIASES
184
184
  $ aio app add extensions
185
185
  ```
186
186
 
187
- _See code: [src/commands/app/add/extension.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0.1/src/commands/app/add/extension.js)_
187
+ _See code: [src/commands/app/add/extension.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.0/src/commands/app/add/extension.js)_
188
188
 
189
189
  ## `aio app add service`
190
190
 
@@ -208,7 +208,7 @@ ALIASES
208
208
  $ aio app add services
209
209
  ```
210
210
 
211
- _See code: [src/commands/app/add/service.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0.1/src/commands/app/add/service.js)_
211
+ _See code: [src/commands/app/add/service.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.0/src/commands/app/add/service.js)_
212
212
 
213
213
  ## `aio app add web-assets`
214
214
 
@@ -229,7 +229,7 @@ DESCRIPTION
229
229
  Add web assets support
230
230
  ```
231
231
 
232
- _See code: [src/commands/app/add/web-assets.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0.1/src/commands/app/add/web-assets.js)_
232
+ _See code: [src/commands/app/add/web-assets.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.0/src/commands/app/add/web-assets.js)_
233
233
 
234
234
  ## `aio app build`
235
235
 
@@ -258,7 +258,7 @@ DESCRIPTION
258
258
  This will always force a rebuild unless --no-force-build is set.
259
259
  ```
260
260
 
261
- _See code: [src/commands/app/build.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0.1/src/commands/app/build.js)_
261
+ _See code: [src/commands/app/build.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.0/src/commands/app/build.js)_
262
262
 
263
263
  ## `aio app create [PATH]`
264
264
 
@@ -280,7 +280,7 @@ DESCRIPTION
280
280
  Create a new Adobe I/O App with default parameters
281
281
  ```
282
282
 
283
- _See code: [src/commands/app/create.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0.1/src/commands/app/create.js)_
283
+ _See code: [src/commands/app/create.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.0/src/commands/app/create.js)_
284
284
 
285
285
  ## `aio app delete`
286
286
 
@@ -298,7 +298,7 @@ DESCRIPTION
298
298
  Delete a component from an existing Adobe I/O App
299
299
  ```
300
300
 
301
- _See code: [src/commands/app/delete/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0.1/src/commands/app/delete/index.js)_
301
+ _See code: [src/commands/app/delete/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.0/src/commands/app/delete/index.js)_
302
302
 
303
303
  ## `aio app delete action [ACTION-NAME]`
304
304
 
@@ -324,7 +324,7 @@ ALIASES
324
324
  $ aio app delete actions
325
325
  ```
326
326
 
327
- _See code: [src/commands/app/delete/action.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0.1/src/commands/app/delete/action.js)_
327
+ _See code: [src/commands/app/delete/action.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.0/src/commands/app/delete/action.js)_
328
328
 
329
329
  ## `aio app delete ci`
330
330
 
@@ -343,7 +343,7 @@ DESCRIPTION
343
343
  Delete existing CI files
344
344
  ```
345
345
 
346
- _See code: [src/commands/app/delete/ci.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0.1/src/commands/app/delete/ci.js)_
346
+ _See code: [src/commands/app/delete/ci.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.0/src/commands/app/delete/ci.js)_
347
347
 
348
348
  ## `aio app delete extension`
349
349
 
@@ -369,7 +369,7 @@ ALIASES
369
369
  $ aio app delete extensions
370
370
  ```
371
371
 
372
- _See code: [src/commands/app/delete/extension.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0.1/src/commands/app/delete/extension.js)_
372
+ _See code: [src/commands/app/delete/extension.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.0/src/commands/app/delete/extension.js)_
373
373
 
374
374
  ## `aio app delete service`
375
375
 
@@ -393,7 +393,7 @@ ALIASES
393
393
  $ aio app delete services
394
394
  ```
395
395
 
396
- _See code: [src/commands/app/delete/service.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0.1/src/commands/app/delete/service.js)_
396
+ _See code: [src/commands/app/delete/service.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.0/src/commands/app/delete/service.js)_
397
397
 
398
398
  ## `aio app delete web-assets`
399
399
 
@@ -412,7 +412,7 @@ DESCRIPTION
412
412
  Delete existing web assets
413
413
  ```
414
414
 
415
- _See code: [src/commands/app/delete/web-assets.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0.1/src/commands/app/delete/web-assets.js)_
415
+ _See code: [src/commands/app/delete/web-assets.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.0/src/commands/app/delete/web-assets.js)_
416
416
 
417
417
  ## `aio app deploy`
418
418
 
@@ -453,7 +453,7 @@ DESCRIPTION
453
453
  This will always force a rebuild unless --no-force-build is set.
454
454
  ```
455
455
 
456
- _See code: [src/commands/app/deploy.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0.1/src/commands/app/deploy.js)_
456
+ _See code: [src/commands/app/deploy.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.0/src/commands/app/deploy.js)_
457
457
 
458
458
  ## `aio app get-url [ACTION]`
459
459
 
@@ -476,7 +476,7 @@ DESCRIPTION
476
476
  Get action URLs
477
477
  ```
478
478
 
479
- _See code: [src/commands/app/get-url.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0.1/src/commands/app/get-url.js)_
479
+ _See code: [src/commands/app/get-url.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.0/src/commands/app/get-url.js)_
480
480
 
481
481
  ## `aio app info`
482
482
 
@@ -498,7 +498,7 @@ DESCRIPTION
498
498
  Display settings/configuration in use by an Adobe I/O App
499
499
  ```
500
500
 
501
- _See code: [src/commands/app/info.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0.1/src/commands/app/info.js)_
501
+ _See code: [src/commands/app/info.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.0/src/commands/app/info.js)_
502
502
 
503
503
  ## `aio app init [PATH]`
504
504
 
@@ -508,6 +508,7 @@ Create a new Adobe I/O App
508
508
  USAGE
509
509
  $ aio app init [PATH] [-v] [--version] [--install] [-y] [--login] [-e <value> | -t <value> | --repo <value>]
510
510
  [--standalone-app | | ] [-w <value> | -i <value>] [--confirm-new-workspace] [--use-jwt] [--github-pat <value> ]
511
+ [--linter none|basic|adobe-recommended]
511
512
 
512
513
  ARGUMENTS
513
514
  PATH [default: .] Path to the app directory
@@ -523,6 +524,8 @@ FLAGS
523
524
  --[no-]confirm-new-workspace Prompt to confirm before creating a new workspace
524
525
  --github-pat=<value> github personal access token to use for downloading private quickstart repos
525
526
  --[no-]install [default: true] Run npm installation after files are created
527
+ --linter=<option> [default: basic] Specify the linter to use for the project
528
+ <options: none|basic|adobe-recommended>
526
529
  --[no-]login Login using your Adobe ID for interacting with Adobe I/O Developer Console
527
530
  --repo=<value> Init from gh quick-start repo. Expected to be of the form <owner>/<repo>/<path>
528
531
  --standalone-app Create a stand-alone application
@@ -534,7 +537,7 @@ DESCRIPTION
534
537
  Create a new Adobe I/O App
535
538
  ```
536
539
 
537
- _See code: [src/commands/app/init.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0.1/src/commands/app/init.js)_
540
+ _See code: [src/commands/app/init.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.0/src/commands/app/init.js)_
538
541
 
539
542
  ## `aio app install PATH`
540
543
 
@@ -557,7 +560,7 @@ DESCRIPTION
557
560
  This command will support installing apps packaged by 'aio app pack'.
558
561
  ```
559
562
 
560
- _See code: [src/commands/app/install.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0.1/src/commands/app/install.js)_
563
+ _See code: [src/commands/app/install.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.0/src/commands/app/install.js)_
561
564
 
562
565
  ## `aio app list`
563
566
 
@@ -575,7 +578,7 @@ DESCRIPTION
575
578
  List components for Adobe I/O App
576
579
  ```
577
580
 
578
- _See code: [src/commands/app/list/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0.1/src/commands/app/list/index.js)_
581
+ _See code: [src/commands/app/list/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.0/src/commands/app/list/index.js)_
579
582
 
580
583
  ## `aio app list extension`
581
584
 
@@ -600,7 +603,7 @@ ALIASES
600
603
  $ aio app list extensions
601
604
  ```
602
605
 
603
- _See code: [src/commands/app/list/extension.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0.1/src/commands/app/list/extension.js)_
606
+ _See code: [src/commands/app/list/extension.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.0/src/commands/app/list/extension.js)_
604
607
 
605
608
  ## `aio app logs`
606
609
 
@@ -624,7 +627,7 @@ DESCRIPTION
624
627
  Fetch logs for an Adobe I/O App
625
628
  ```
626
629
 
627
- _See code: [src/commands/app/logs.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0.1/src/commands/app/logs.js)_
630
+ _See code: [src/commands/app/logs.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.0/src/commands/app/logs.js)_
628
631
 
629
632
  ## `aio app pack [PATH]`
630
633
 
@@ -646,7 +649,7 @@ DESCRIPTION
646
649
  This command will support packaging apps for redistribution.
647
650
  ```
648
651
 
649
- _See code: [src/commands/app/pack.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0.1/src/commands/app/pack.js)_
652
+ _See code: [src/commands/app/pack.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.0/src/commands/app/pack.js)_
650
653
 
651
654
  ## `aio app run`
652
655
 
@@ -660,7 +663,8 @@ FLAGS
660
663
  -e, --extension=<value> Run only a specific extension, this flag can only be specified once
661
664
  -v, --verbose Verbose output
662
665
  --[no-]actions [default: true] Run actions, defaults to true, to skip actions use --no-actions
663
- --local Run/debug actions locally (requires Docker running)
666
+ --local [deprecated] Run/debug actions locally (requires Docker running, not available on Apple
667
+ Silicon Macs)
664
668
  --open Open the default web browser after a successful run, only valid if your app has a front-end
665
669
  --[no-]serve [default: true] Start frontend server (experimental)
666
670
  --version Show version
@@ -669,7 +673,7 @@ DESCRIPTION
669
673
  Run an Adobe I/O App
670
674
  ```
671
675
 
672
- _See code: [src/commands/app/run.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0.1/src/commands/app/run.js)_
676
+ _See code: [src/commands/app/run.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.0/src/commands/app/run.js)_
673
677
 
674
678
  ## `aio app test`
675
679
 
@@ -697,7 +701,7 @@ DESCRIPTION
697
701
  If the extension has a hook called 'test' in its 'ext.config.yaml', the script specified will be run instead.
698
702
  ```
699
703
 
700
- _See code: [src/commands/app/test.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0.1/src/commands/app/test.js)_
704
+ _See code: [src/commands/app/test.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.0/src/commands/app/test.js)_
701
705
 
702
706
  ## `aio app undeploy`
703
707
 
@@ -722,7 +726,7 @@ DESCRIPTION
722
726
  Undeploys an Adobe I/O App
723
727
  ```
724
728
 
725
- _See code: [src/commands/app/undeploy.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0.1/src/commands/app/undeploy.js)_
729
+ _See code: [src/commands/app/undeploy.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.0/src/commands/app/undeploy.js)_
726
730
 
727
731
  ## `aio app use [CONFIG_FILE_PATH]`
728
732
 
@@ -730,7 +734,7 @@ Import an Adobe Developer Console configuration file.
730
734
 
731
735
  ```
732
736
  USAGE
733
- $ aio app use [CONFIG_FILE_PATH] [-v] [--version] [--overwrite | --merge] [-g | -w <value>]
737
+ $ aio app use [CONFIG_FILE_PATH] [-v] [--version] [--overwrite | -m] [-g | -w <value>]
734
738
  [--confirm-new-workspace] [--no-service-sync | --confirm-service-sync] [--no-input] [--use-jwt]
735
739
 
736
740
  ARGUMENTS
@@ -739,14 +743,14 @@ ARGUMENTS
739
743
  FLAGS
740
744
  -g, --global Use the global Adobe Developer Console Org / Project / Workspace configuration, which
741
745
  can be set via `aio console` commands
746
+ -m, --merge Merge any .aio and .env files during import of the Adobe Developer Console configuration
747
+ file
742
748
  -v, --verbose Verbose output
743
749
  -w, --workspace=<value> Specify the Adobe Developer Console Workspace name or Workspace id to import the
744
750
  configuration from
745
751
  --[no-]confirm-new-workspace Prompt to confirm before creating a new workspace
746
752
  --confirm-service-sync Skip the Service sync prompt and overwrite Service subscriptions in the new Workspace
747
753
  with current subscriptions
748
- --merge Merge any .aio and .env files during import of the Adobe Developer Console configuration
749
- file
750
754
  --no-input Skip user prompts by setting --no-service-sync and --merge. Requires one of
751
755
  config_file_path or --global or --workspace
752
756
  --no-service-sync Skip the Service sync prompt and do not attach current Service subscriptions to the new
@@ -769,5 +773,5 @@ DESCRIPTION
769
773
  page in https://developer.adobe.com/console/
770
774
  ```
771
775
 
772
- _See code: [src/commands/app/use.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.0.1/src/commands/app/use.js)_
776
+ _See code: [src/commands/app/use.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.0/src/commands/app/use.js)_
773
777
  <!-- commandsstop -->
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "12.0.1",
2
+ "version": "12.2.0",
3
3
  "commands": {
4
4
  "app:build": {
5
5
  "id": "app:build",
@@ -9,6 +9,7 @@
9
9
  "pluginAlias": "@adobe/aio-cli-plugin-app",
10
10
  "pluginType": "core",
11
11
  "aliases": [],
12
+ "hiddenAliases": [],
12
13
  "flags": {
13
14
  "verbose": {
14
15
  "name": "verbose",
@@ -87,6 +88,7 @@
87
88
  "pluginAlias": "@adobe/aio-cli-plugin-app",
88
89
  "pluginType": "core",
89
90
  "aliases": [],
91
+ "hiddenAliases": [],
90
92
  "flags": {
91
93
  "verbose": {
92
94
  "name": "verbose",
@@ -125,6 +127,7 @@
125
127
  "pluginAlias": "@adobe/aio-cli-plugin-app",
126
128
  "pluginType": "core",
127
129
  "aliases": [],
130
+ "hiddenAliases": [],
128
131
  "flags": {
129
132
  "verbose": {
130
133
  "name": "verbose",
@@ -263,6 +266,7 @@
263
266
  "pluginAlias": "@adobe/aio-cli-plugin-app",
264
267
  "pluginType": "core",
265
268
  "aliases": [],
269
+ "hiddenAliases": [],
266
270
  "flags": {
267
271
  "verbose": {
268
272
  "name": "verbose",
@@ -325,6 +329,7 @@
325
329
  "pluginAlias": "@adobe/aio-cli-plugin-app",
326
330
  "pluginType": "core",
327
331
  "aliases": [],
332
+ "hiddenAliases": [],
328
333
  "flags": {
329
334
  "verbose": {
330
335
  "name": "verbose",
@@ -350,6 +355,7 @@
350
355
  "pluginAlias": "@adobe/aio-cli-plugin-app",
351
356
  "pluginType": "core",
352
357
  "aliases": [],
358
+ "hiddenAliases": [],
353
359
  "flags": {
354
360
  "verbose": {
355
361
  "name": "verbose",
@@ -414,6 +420,7 @@
414
420
  "pluginAlias": "@adobe/aio-cli-plugin-app",
415
421
  "pluginType": "core",
416
422
  "aliases": [],
423
+ "hiddenAliases": [],
417
424
  "flags": {
418
425
  "verbose": {
419
426
  "name": "verbose",
@@ -544,6 +551,18 @@
544
551
  "dependsOn": [
545
552
  "repo"
546
553
  ]
554
+ },
555
+ "linter": {
556
+ "name": "linter",
557
+ "type": "option",
558
+ "description": "Specify the linter to use for the project",
559
+ "multiple": false,
560
+ "options": [
561
+ "none",
562
+ "basic",
563
+ "adobe-recommended"
564
+ ],
565
+ "default": "basic"
547
566
  }
548
567
  },
549
568
  "args": {
@@ -562,6 +581,7 @@
562
581
  "pluginAlias": "@adobe/aio-cli-plugin-app",
563
582
  "pluginType": "core",
564
583
  "aliases": [],
584
+ "hiddenAliases": [],
565
585
  "flags": {
566
586
  "verbose": {
567
587
  "name": "verbose",
@@ -607,6 +627,7 @@
607
627
  "pluginAlias": "@adobe/aio-cli-plugin-app",
608
628
  "pluginType": "core",
609
629
  "aliases": [],
630
+ "hiddenAliases": [],
610
631
  "flags": {
611
632
  "verbose": {
612
633
  "name": "verbose",
@@ -687,6 +708,7 @@
687
708
  "pluginAlias": "@adobe/aio-cli-plugin-app",
688
709
  "pluginType": "core",
689
710
  "aliases": [],
711
+ "hiddenAliases": [],
690
712
  "flags": {
691
713
  "verbose": {
692
714
  "name": "verbose",
@@ -726,6 +748,7 @@
726
748
  "pluginAlias": "@adobe/aio-cli-plugin-app",
727
749
  "pluginType": "core",
728
750
  "aliases": [],
751
+ "hiddenAliases": [],
729
752
  "flags": {
730
753
  "verbose": {
731
754
  "name": "verbose",
@@ -743,7 +766,7 @@
743
766
  "local": {
744
767
  "name": "local",
745
768
  "type": "boolean",
746
- "description": "Run/debug actions locally (requires Docker running)",
769
+ "description": "[deprecated] Run/debug actions locally (requires Docker running, not available on Apple Silicon Macs)",
747
770
  "allowNo": false,
748
771
  "exclusive": [
749
772
  "no-actions"
@@ -785,6 +808,7 @@
785
808
  "pluginAlias": "@adobe/aio-cli-plugin-app",
786
809
  "pluginType": "core",
787
810
  "aliases": [],
811
+ "hiddenAliases": [],
788
812
  "flags": {
789
813
  "verbose": {
790
814
  "name": "verbose",
@@ -848,6 +872,7 @@
848
872
  "pluginAlias": "@adobe/aio-cli-plugin-app",
849
873
  "pluginType": "core",
850
874
  "aliases": [],
875
+ "hiddenAliases": [],
851
876
  "flags": {
852
877
  "verbose": {
853
878
  "name": "verbose",
@@ -913,6 +938,7 @@
913
938
  "pluginAlias": "@adobe/aio-cli-plugin-app",
914
939
  "pluginType": "core",
915
940
  "aliases": [],
941
+ "hiddenAliases": [],
916
942
  "flags": {
917
943
  "verbose": {
918
944
  "name": "verbose",
@@ -939,6 +965,7 @@
939
965
  "merge": {
940
966
  "name": "merge",
941
967
  "type": "boolean",
968
+ "char": "m",
942
969
  "description": "Merge any .aio and .env files during import of the Adobe Developer Console configuration file",
943
970
  "allowNo": false,
944
971
  "exclusive": [
@@ -1032,6 +1059,7 @@
1032
1059
  "aliases": [
1033
1060
  "app:add:actions"
1034
1061
  ],
1062
+ "hiddenAliases": [],
1035
1063
  "flags": {
1036
1064
  "verbose": {
1037
1065
  "name": "verbose",
@@ -1077,6 +1105,7 @@
1077
1105
  "pluginAlias": "@adobe/aio-cli-plugin-app",
1078
1106
  "pluginType": "core",
1079
1107
  "aliases": [],
1108
+ "hiddenAliases": [],
1080
1109
  "flags": {
1081
1110
  "verbose": {
1082
1111
  "name": "verbose",
@@ -1104,6 +1133,7 @@
1104
1133
  "aliases": [
1105
1134
  "app:add:events"
1106
1135
  ],
1136
+ "hiddenAliases": [],
1107
1137
  "flags": {
1108
1138
  "verbose": {
1109
1139
  "name": "verbose",
@@ -1152,6 +1182,7 @@
1152
1182
  "app:add:ext",
1153
1183
  "app:add:extensions"
1154
1184
  ],
1185
+ "hiddenAliases": [],
1155
1186
  "flags": {
1156
1187
  "verbose": {
1157
1188
  "name": "verbose",
@@ -1197,6 +1228,7 @@
1197
1228
  "pluginAlias": "@adobe/aio-cli-plugin-app",
1198
1229
  "pluginType": "core",
1199
1230
  "aliases": [],
1231
+ "hiddenAliases": [],
1200
1232
  "flags": {
1201
1233
  "verbose": {
1202
1234
  "name": "verbose",
@@ -1224,6 +1256,7 @@
1224
1256
  "aliases": [
1225
1257
  "app:add:services"
1226
1258
  ],
1259
+ "hiddenAliases": [],
1227
1260
  "flags": {
1228
1261
  "verbose": {
1229
1262
  "name": "verbose",
@@ -1255,6 +1288,7 @@
1255
1288
  "pluginAlias": "@adobe/aio-cli-plugin-app",
1256
1289
  "pluginType": "core",
1257
1290
  "aliases": [],
1291
+ "hiddenAliases": [],
1258
1292
  "flags": {
1259
1293
  "verbose": {
1260
1294
  "name": "verbose",
@@ -1303,6 +1337,7 @@
1303
1337
  "app:config",
1304
1338
  "app:config"
1305
1339
  ],
1340
+ "hiddenAliases": [],
1306
1341
  "flags": {
1307
1342
  "verbose": {
1308
1343
  "name": "verbose",
@@ -1330,6 +1365,7 @@
1330
1365
  "aliases": [
1331
1366
  "app:delete:actions"
1332
1367
  ],
1368
+ "hiddenAliases": [],
1333
1369
  "flags": {
1334
1370
  "verbose": {
1335
1371
  "name": "verbose",
@@ -1369,6 +1405,7 @@
1369
1405
  "pluginAlias": "@adobe/aio-cli-plugin-app",
1370
1406
  "pluginType": "core",
1371
1407
  "aliases": [],
1408
+ "hiddenAliases": [],
1372
1409
  "flags": {
1373
1410
  "verbose": {
1374
1411
  "name": "verbose",
@@ -1404,6 +1441,7 @@
1404
1441
  "app:delete:ext",
1405
1442
  "app:delete:extensions"
1406
1443
  ],
1444
+ "hiddenAliases": [],
1407
1445
  "flags": {
1408
1446
  "verbose": {
1409
1447
  "name": "verbose",
@@ -1449,6 +1487,7 @@
1449
1487
  "pluginAlias": "@adobe/aio-cli-plugin-app",
1450
1488
  "pluginType": "core",
1451
1489
  "aliases": [],
1490
+ "hiddenAliases": [],
1452
1491
  "flags": {
1453
1492
  "verbose": {
1454
1493
  "name": "verbose",
@@ -1476,6 +1515,7 @@
1476
1515
  "aliases": [
1477
1516
  "app:delete:services"
1478
1517
  ],
1518
+ "hiddenAliases": [],
1479
1519
  "flags": {
1480
1520
  "verbose": {
1481
1521
  "name": "verbose",
@@ -1507,6 +1547,7 @@
1507
1547
  "pluginAlias": "@adobe/aio-cli-plugin-app",
1508
1548
  "pluginType": "core",
1509
1549
  "aliases": [],
1550
+ "hiddenAliases": [],
1510
1551
  "flags": {
1511
1552
  "verbose": {
1512
1553
  "name": "verbose",
@@ -1542,6 +1583,7 @@
1542
1583
  "app:list:ext-points",
1543
1584
  "app:list:extension-points"
1544
1585
  ],
1586
+ "hiddenAliases": [],
1545
1587
  "flags": {
1546
1588
  "verbose": {
1547
1589
  "name": "verbose",
@@ -1584,6 +1626,7 @@
1584
1626
  "app:list:ext",
1585
1627
  "app:list:extensions"
1586
1628
  ],
1629
+ "hiddenAliases": [],
1587
1630
  "flags": {
1588
1631
  "verbose": {
1589
1632
  "name": "verbose",
@@ -1623,6 +1666,7 @@
1623
1666
  "pluginAlias": "@adobe/aio-cli-plugin-app",
1624
1667
  "pluginType": "core",
1625
1668
  "aliases": [],
1669
+ "hiddenAliases": [],
1626
1670
  "flags": {
1627
1671
  "verbose": {
1628
1672
  "name": "verbose",
@@ -1650,6 +1694,7 @@
1650
1694
  "aliases": [
1651
1695
  "app:config:get"
1652
1696
  ],
1697
+ "hiddenAliases": [],
1653
1698
  "flags": {
1654
1699
  "verbose": {
1655
1700
  "name": "verbose",
@@ -1678,6 +1723,7 @@
1678
1723
  "app:config:get:log-forwarding",
1679
1724
  "app:config:get:lf"
1680
1725
  ],
1726
+ "hiddenAliases": [],
1681
1727
  "flags": {
1682
1728
  "verbose": {
1683
1729
  "name": "verbose",
@@ -1705,6 +1751,7 @@
1705
1751
  "aliases": [
1706
1752
  "app:config:set"
1707
1753
  ],
1754
+ "hiddenAliases": [],
1708
1755
  "flags": {
1709
1756
  "verbose": {
1710
1757
  "name": "verbose",
@@ -1733,6 +1780,7 @@
1733
1780
  "app:config:set:log-forwarding",
1734
1781
  "app:config:set:lf"
1735
1782
  ],
1783
+ "hiddenAliases": [],
1736
1784
  "flags": {
1737
1785
  "verbose": {
1738
1786
  "name": "verbose",
@@ -1761,6 +1809,7 @@
1761
1809
  "app:config:get:log-forwarding:errors",
1762
1810
  "app:config:get:lf:errors"
1763
1811
  ],
1812
+ "hiddenAliases": [],
1764
1813
  "flags": {
1765
1814
  "verbose": {
1766
1815
  "name": "verbose",
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": "12.0.1",
4
+ "version": "12.2.0",
5
5
  "author": "Adobe Inc.",
6
6
  "bugs": "https://github.com/adobe/aio-cli-plugin-app/issues",
7
7
  "dependencies": {
@@ -115,7 +115,7 @@ class InitCommand extends TemplatesCommand {
115
115
 
116
116
  // 3. run base code generators
117
117
  const projectName = (consoleConfig && consoleConfig.project.name) || path.basename(process.cwd())
118
- await this.runCodeGenerators(this.getInitialGenerators(flags), flags.yes, projectName)
118
+ await this.runCodeGenerators(this.getInitialGenerators(flags), flags.yes, projectName, flags.linter)
119
119
 
120
120
  // 4. install templates
121
121
  await this.installTemplates({
@@ -163,7 +163,7 @@ class InitCommand extends TemplatesCommand {
163
163
 
164
164
  // 7. run base code generators
165
165
  if (!flags.repo) {
166
- await this.runCodeGenerators(this.getInitialGenerators(flags), flags.yes, consoleConfig.project.name)
166
+ await this.runCodeGenerators(this.getInitialGenerators(flags), flags.yes, consoleConfig.project.name, flags.linter)
167
167
  }
168
168
 
169
169
  // 8. import config
@@ -337,7 +337,7 @@ class InitCommand extends TemplatesCommand {
337
337
  return workspace
338
338
  }
339
339
 
340
- async runCodeGenerators (generatorNames, skipPrompt, projectName) {
340
+ async runCodeGenerators (generatorNames, skipPrompt, projectName, linter) {
341
341
  const env = yeoman.createEnv()
342
342
  env.options = { skipInstall: true }
343
343
 
@@ -347,7 +347,8 @@ class InitCommand extends TemplatesCommand {
347
347
  options: {
348
348
  'skip-prompt': skipPrompt,
349
349
  'project-name': projectName,
350
- force: true
350
+ force: true,
351
+ linter
351
352
  }
352
353
  })
353
354
  await env.runGenerator(appGen)
@@ -484,6 +485,11 @@ InitCommand.flags = {
484
485
  'github-pat': Flags.string({
485
486
  description: 'github personal access token to use for downloading private quickstart repos',
486
487
  dependsOn: ['repo']
488
+ }),
489
+ linter: Flags.string({
490
+ description: 'Specify the linter to use for the project',
491
+ options: ['none', 'basic', 'adobe-recommended'],
492
+ default: 'basic'
487
493
  })
488
494
  }
489
495
 
@@ -166,15 +166,18 @@ class Pack extends BaseCommand {
166
166
  if (command) {
167
167
  try {
168
168
  this.spinner.start('Getting api-mesh config...')
169
- const { stdout } = await execa('aio', ['api-mesh', 'get'], { cwd: process.cwd() })
170
- // until we get the --json flag, we parse the output
171
- const idx = stdout.indexOf('{')
172
- meshConfig = JSON.parse(stdout.substring(idx)).meshConfig
169
+ const { stdout, stderr } = await execa('aio', ['api-mesh', 'get', '--json'], { cwd: process.cwd() })
170
+
171
+ if (stderr) {
172
+ throw new Error(stderr)
173
+ }
174
+
175
+ meshConfig = JSON.parse(stdout).meshConfig
173
176
  aioLogger.debug(`api-mesh:get - ${JSON.stringify(meshConfig, null, 2)}`)
174
177
  this.spinner.succeed('Got api-mesh config')
175
178
  } catch (err) {
176
179
  // Ignore error if no mesh found, otherwise throw
177
- if (err?.stderr.includes('Error: Unable to get mesh config. No mesh found for Org')) {
180
+ if (err?.message.includes('Error: Unable to get mesh config. No mesh found for Org')) {
178
181
  aioLogger.debug('No api-mesh config found')
179
182
  } else {
180
183
  console.error(err)
@@ -16,6 +16,7 @@ const fs = require('fs-extra')
16
16
  const https = require('https')
17
17
  const getPort = require('get-port')
18
18
  const open = require('open')
19
+ const os = require('node:os')
19
20
 
20
21
  const { Flags, ux } = require('@oclif/core')
21
22
  const coreConfig = require('@adobe/aio-lib-core-config')
@@ -35,6 +36,16 @@ class Run extends BaseCommand {
35
36
  // cli input
36
37
  const { flags } = await this.parse(Run)
37
38
 
39
+ if (flags.local) {
40
+ const [firstCpu] = os.cpus()
41
+ // note: the earliest versions of M1 macs return 'Apple processor' under model.
42
+ if (firstCpu?.model?.startsWith('Apple')) {
43
+ this.error('The --local flag is not supported on Apple Silicon Macs.')
44
+ } else {
45
+ this.warn('The --local flag is deprecated and will be removed in the next major release.')
46
+ }
47
+ }
48
+
38
49
  const spinner = ora()
39
50
 
40
51
  const runConfigs = await this.getAppExtConfigs(flags)
@@ -204,7 +215,7 @@ Run.args = {}
204
215
  Run.flags = {
205
216
  ...BaseCommand.flags,
206
217
  local: Flags.boolean({
207
- description: 'Run/debug actions locally (requires Docker running)',
218
+ description: '[deprecated] Run/debug actions locally (requires Docker running, not available on Apple Silicon Macs)',
208
219
  exclusive: ['no-actions']
209
220
  }),
210
221
  serve: Flags.boolean({
@@ -360,6 +360,7 @@ Use.flags = {
360
360
  merge: Flags.boolean({
361
361
  description: 'Merge any .aio and .env files during import of the Adobe Developer Console configuration file',
362
362
  default: false,
363
+ char: 'm',
363
364
  exclusive: ['overwrite']
364
365
  }),
365
366
  global: Flags.boolean({
@@ -314,24 +314,26 @@ async function downloadOWJar (url, outFile) {
314
314
  }
315
315
 
316
316
  /** @private */
317
- async function waitForOpenWhiskReadiness (host, endTime, period, timeout, waitFunc) {
317
+ async function waitForOpenWhiskReadiness (host, endTime, period, timeout, lastStatus, waitFunc) {
318
318
  if (Date.now() > endTime) {
319
- throw new Error(`local openwhisk stack startup timed out: ${timeout}ms`)
319
+ throw new Error(`local openwhisk stack startup timed out after ${timeout}ms due to ${lastStatus}`)
320
320
  }
321
321
 
322
- let ok
322
+ let ok, status
323
323
 
324
324
  try {
325
325
  const fetch = createFetch()
326
326
  const response = await fetch(host + '/api/v1')
327
327
  ok = response.ok
328
+ status = response.statusText
328
329
  } catch (e) {
329
330
  ok = false
331
+ status = e.toString()
330
332
  }
331
333
 
332
334
  if (!ok) {
333
335
  await waitFunc(period)
334
- return waitForOpenWhiskReadiness(host, endTime, period, timeout, waitFunc)
336
+ return waitForOpenWhiskReadiness(host, endTime, period, timeout, status, waitFunc)
335
337
  }
336
338
  }
337
339
 
@@ -349,7 +351,7 @@ async function runOpenWhiskJar (jarFile, runtimeConfigFile, apihost, waitInitTim
349
351
 
350
352
  const endTime = Date.now() + timeout
351
353
  await waitFor(waitInitTime)
352
- await waitForOpenWhiskReadiness(apihost, endTime, waitPeriodTime, timeout, waitFor)
354
+ await waitForOpenWhiskReadiness(apihost, endTime, waitPeriodTime, timeout, null, waitFor)
353
355
 
354
356
  // must wrap in an object as execa return value is awaitable
355
357
  return { proc }