@adobe/aio-cli-plugin-app 12.1.0 → 12.2.1
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 +34 -33
- package/oclif.manifest.json +39 -2
- package/package.json +1 -1
- package/src/BaseCommand.js +1 -1
- package/src/commands/app/init.js +1 -1
- package/src/commands/app/run.js +12 -1
- package/src/commands/app/use.js +1 -0
- package/src/lib/app-helper.js +7 -5
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.1
|
|
75
|
+
_See code: [src/commands/app/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.1/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.1
|
|
93
|
+
_See code: [src/commands/app/add/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.1/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.1
|
|
118
|
+
_See code: [src/commands/app/add/action.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.1/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.1
|
|
136
|
+
_See code: [src/commands/app/add/ci.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.1/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.1
|
|
161
|
+
_See code: [src/commands/app/add/event.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.1/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.1
|
|
187
|
+
_See code: [src/commands/app/add/extension.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.1/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.1
|
|
211
|
+
_See code: [src/commands/app/add/service.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.1/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.1
|
|
232
|
+
_See code: [src/commands/app/add/web-assets.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.1/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.1
|
|
261
|
+
_See code: [src/commands/app/build.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.1/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.1
|
|
283
|
+
_See code: [src/commands/app/create.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.1/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.1
|
|
301
|
+
_See code: [src/commands/app/delete/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.1/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.1
|
|
327
|
+
_See code: [src/commands/app/delete/action.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.1/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.1
|
|
346
|
+
_See code: [src/commands/app/delete/ci.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.1/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.1
|
|
372
|
+
_See code: [src/commands/app/delete/extension.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.1/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.1
|
|
396
|
+
_See code: [src/commands/app/delete/service.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.1/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.1
|
|
415
|
+
_See code: [src/commands/app/delete/web-assets.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.1/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.1
|
|
456
|
+
_See code: [src/commands/app/deploy.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.1/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.1
|
|
479
|
+
_See code: [src/commands/app/get-url.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.1/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.1
|
|
501
|
+
_See code: [src/commands/app/info.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.1/src/commands/app/info.js)_
|
|
502
502
|
|
|
503
503
|
## `aio app init [PATH]`
|
|
504
504
|
|
|
@@ -537,7 +537,7 @@ DESCRIPTION
|
|
|
537
537
|
Create a new Adobe I/O App
|
|
538
538
|
```
|
|
539
539
|
|
|
540
|
-
_See code: [src/commands/app/init.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1
|
|
540
|
+
_See code: [src/commands/app/init.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.1/src/commands/app/init.js)_
|
|
541
541
|
|
|
542
542
|
## `aio app install PATH`
|
|
543
543
|
|
|
@@ -560,7 +560,7 @@ DESCRIPTION
|
|
|
560
560
|
This command will support installing apps packaged by 'aio app pack'.
|
|
561
561
|
```
|
|
562
562
|
|
|
563
|
-
_See code: [src/commands/app/install.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1
|
|
563
|
+
_See code: [src/commands/app/install.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.1/src/commands/app/install.js)_
|
|
564
564
|
|
|
565
565
|
## `aio app list`
|
|
566
566
|
|
|
@@ -578,7 +578,7 @@ DESCRIPTION
|
|
|
578
578
|
List components for Adobe I/O App
|
|
579
579
|
```
|
|
580
580
|
|
|
581
|
-
_See code: [src/commands/app/list/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1
|
|
581
|
+
_See code: [src/commands/app/list/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.1/src/commands/app/list/index.js)_
|
|
582
582
|
|
|
583
583
|
## `aio app list extension`
|
|
584
584
|
|
|
@@ -603,7 +603,7 @@ ALIASES
|
|
|
603
603
|
$ aio app list extensions
|
|
604
604
|
```
|
|
605
605
|
|
|
606
|
-
_See code: [src/commands/app/list/extension.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1
|
|
606
|
+
_See code: [src/commands/app/list/extension.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.1/src/commands/app/list/extension.js)_
|
|
607
607
|
|
|
608
608
|
## `aio app logs`
|
|
609
609
|
|
|
@@ -627,7 +627,7 @@ DESCRIPTION
|
|
|
627
627
|
Fetch logs for an Adobe I/O App
|
|
628
628
|
```
|
|
629
629
|
|
|
630
|
-
_See code: [src/commands/app/logs.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1
|
|
630
|
+
_See code: [src/commands/app/logs.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.1/src/commands/app/logs.js)_
|
|
631
631
|
|
|
632
632
|
## `aio app pack [PATH]`
|
|
633
633
|
|
|
@@ -649,7 +649,7 @@ DESCRIPTION
|
|
|
649
649
|
This command will support packaging apps for redistribution.
|
|
650
650
|
```
|
|
651
651
|
|
|
652
|
-
_See code: [src/commands/app/pack.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1
|
|
652
|
+
_See code: [src/commands/app/pack.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.1/src/commands/app/pack.js)_
|
|
653
653
|
|
|
654
654
|
## `aio app run`
|
|
655
655
|
|
|
@@ -663,7 +663,8 @@ FLAGS
|
|
|
663
663
|
-e, --extension=<value> Run only a specific extension, this flag can only be specified once
|
|
664
664
|
-v, --verbose Verbose output
|
|
665
665
|
--[no-]actions [default: true] Run actions, defaults to true, to skip actions use --no-actions
|
|
666
|
-
--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)
|
|
667
668
|
--open Open the default web browser after a successful run, only valid if your app has a front-end
|
|
668
669
|
--[no-]serve [default: true] Start frontend server (experimental)
|
|
669
670
|
--version Show version
|
|
@@ -672,7 +673,7 @@ DESCRIPTION
|
|
|
672
673
|
Run an Adobe I/O App
|
|
673
674
|
```
|
|
674
675
|
|
|
675
|
-
_See code: [src/commands/app/run.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1
|
|
676
|
+
_See code: [src/commands/app/run.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.1/src/commands/app/run.js)_
|
|
676
677
|
|
|
677
678
|
## `aio app test`
|
|
678
679
|
|
|
@@ -700,7 +701,7 @@ DESCRIPTION
|
|
|
700
701
|
If the extension has a hook called 'test' in its 'ext.config.yaml', the script specified will be run instead.
|
|
701
702
|
```
|
|
702
703
|
|
|
703
|
-
_See code: [src/commands/app/test.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1
|
|
704
|
+
_See code: [src/commands/app/test.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.1/src/commands/app/test.js)_
|
|
704
705
|
|
|
705
706
|
## `aio app undeploy`
|
|
706
707
|
|
|
@@ -725,7 +726,7 @@ DESCRIPTION
|
|
|
725
726
|
Undeploys an Adobe I/O App
|
|
726
727
|
```
|
|
727
728
|
|
|
728
|
-
_See code: [src/commands/app/undeploy.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1
|
|
729
|
+
_See code: [src/commands/app/undeploy.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.1/src/commands/app/undeploy.js)_
|
|
729
730
|
|
|
730
731
|
## `aio app use [CONFIG_FILE_PATH]`
|
|
731
732
|
|
|
@@ -733,7 +734,7 @@ Import an Adobe Developer Console configuration file.
|
|
|
733
734
|
|
|
734
735
|
```
|
|
735
736
|
USAGE
|
|
736
|
-
$ aio app use [CONFIG_FILE_PATH] [-v] [--version] [--overwrite |
|
|
737
|
+
$ aio app use [CONFIG_FILE_PATH] [-v] [--version] [--overwrite | -m] [-g | -w <value>]
|
|
737
738
|
[--confirm-new-workspace] [--no-service-sync | --confirm-service-sync] [--no-input] [--use-jwt]
|
|
738
739
|
|
|
739
740
|
ARGUMENTS
|
|
@@ -742,14 +743,14 @@ ARGUMENTS
|
|
|
742
743
|
FLAGS
|
|
743
744
|
-g, --global Use the global Adobe Developer Console Org / Project / Workspace configuration, which
|
|
744
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
|
|
745
748
|
-v, --verbose Verbose output
|
|
746
749
|
-w, --workspace=<value> Specify the Adobe Developer Console Workspace name or Workspace id to import the
|
|
747
750
|
configuration from
|
|
748
751
|
--[no-]confirm-new-workspace Prompt to confirm before creating a new workspace
|
|
749
752
|
--confirm-service-sync Skip the Service sync prompt and overwrite Service subscriptions in the new Workspace
|
|
750
753
|
with current subscriptions
|
|
751
|
-
--merge Merge any .aio and .env files during import of the Adobe Developer Console configuration
|
|
752
|
-
file
|
|
753
754
|
--no-input Skip user prompts by setting --no-service-sync and --merge. Requires one of
|
|
754
755
|
config_file_path or --global or --workspace
|
|
755
756
|
--no-service-sync Skip the Service sync prompt and do not attach current Service subscriptions to the new
|
|
@@ -772,5 +773,5 @@ DESCRIPTION
|
|
|
772
773
|
page in https://developer.adobe.com/console/
|
|
773
774
|
```
|
|
774
775
|
|
|
775
|
-
_See code: [src/commands/app/use.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.1
|
|
776
|
+
_See code: [src/commands/app/use.js](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.1/src/commands/app/use.js)_
|
|
776
777
|
<!-- commandsstop -->
|
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "12.1
|
|
2
|
+
"version": "12.2.1",
|
|
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",
|
|
@@ -574,6 +581,7 @@
|
|
|
574
581
|
"pluginAlias": "@adobe/aio-cli-plugin-app",
|
|
575
582
|
"pluginType": "core",
|
|
576
583
|
"aliases": [],
|
|
584
|
+
"hiddenAliases": [],
|
|
577
585
|
"flags": {
|
|
578
586
|
"verbose": {
|
|
579
587
|
"name": "verbose",
|
|
@@ -619,6 +627,7 @@
|
|
|
619
627
|
"pluginAlias": "@adobe/aio-cli-plugin-app",
|
|
620
628
|
"pluginType": "core",
|
|
621
629
|
"aliases": [],
|
|
630
|
+
"hiddenAliases": [],
|
|
622
631
|
"flags": {
|
|
623
632
|
"verbose": {
|
|
624
633
|
"name": "verbose",
|
|
@@ -699,6 +708,7 @@
|
|
|
699
708
|
"pluginAlias": "@adobe/aio-cli-plugin-app",
|
|
700
709
|
"pluginType": "core",
|
|
701
710
|
"aliases": [],
|
|
711
|
+
"hiddenAliases": [],
|
|
702
712
|
"flags": {
|
|
703
713
|
"verbose": {
|
|
704
714
|
"name": "verbose",
|
|
@@ -738,6 +748,7 @@
|
|
|
738
748
|
"pluginAlias": "@adobe/aio-cli-plugin-app",
|
|
739
749
|
"pluginType": "core",
|
|
740
750
|
"aliases": [],
|
|
751
|
+
"hiddenAliases": [],
|
|
741
752
|
"flags": {
|
|
742
753
|
"verbose": {
|
|
743
754
|
"name": "verbose",
|
|
@@ -755,7 +766,7 @@
|
|
|
755
766
|
"local": {
|
|
756
767
|
"name": "local",
|
|
757
768
|
"type": "boolean",
|
|
758
|
-
"description": "Run/debug actions locally (requires Docker running)",
|
|
769
|
+
"description": "[deprecated] Run/debug actions locally (requires Docker running, not available on Apple Silicon Macs)",
|
|
759
770
|
"allowNo": false,
|
|
760
771
|
"exclusive": [
|
|
761
772
|
"no-actions"
|
|
@@ -797,6 +808,7 @@
|
|
|
797
808
|
"pluginAlias": "@adobe/aio-cli-plugin-app",
|
|
798
809
|
"pluginType": "core",
|
|
799
810
|
"aliases": [],
|
|
811
|
+
"hiddenAliases": [],
|
|
800
812
|
"flags": {
|
|
801
813
|
"verbose": {
|
|
802
814
|
"name": "verbose",
|
|
@@ -860,6 +872,7 @@
|
|
|
860
872
|
"pluginAlias": "@adobe/aio-cli-plugin-app",
|
|
861
873
|
"pluginType": "core",
|
|
862
874
|
"aliases": [],
|
|
875
|
+
"hiddenAliases": [],
|
|
863
876
|
"flags": {
|
|
864
877
|
"verbose": {
|
|
865
878
|
"name": "verbose",
|
|
@@ -925,6 +938,7 @@
|
|
|
925
938
|
"pluginAlias": "@adobe/aio-cli-plugin-app",
|
|
926
939
|
"pluginType": "core",
|
|
927
940
|
"aliases": [],
|
|
941
|
+
"hiddenAliases": [],
|
|
928
942
|
"flags": {
|
|
929
943
|
"verbose": {
|
|
930
944
|
"name": "verbose",
|
|
@@ -951,6 +965,7 @@
|
|
|
951
965
|
"merge": {
|
|
952
966
|
"name": "merge",
|
|
953
967
|
"type": "boolean",
|
|
968
|
+
"char": "m",
|
|
954
969
|
"description": "Merge any .aio and .env files during import of the Adobe Developer Console configuration file",
|
|
955
970
|
"allowNo": false,
|
|
956
971
|
"exclusive": [
|
|
@@ -1044,6 +1059,7 @@
|
|
|
1044
1059
|
"aliases": [
|
|
1045
1060
|
"app:add:actions"
|
|
1046
1061
|
],
|
|
1062
|
+
"hiddenAliases": [],
|
|
1047
1063
|
"flags": {
|
|
1048
1064
|
"verbose": {
|
|
1049
1065
|
"name": "verbose",
|
|
@@ -1089,6 +1105,7 @@
|
|
|
1089
1105
|
"pluginAlias": "@adobe/aio-cli-plugin-app",
|
|
1090
1106
|
"pluginType": "core",
|
|
1091
1107
|
"aliases": [],
|
|
1108
|
+
"hiddenAliases": [],
|
|
1092
1109
|
"flags": {
|
|
1093
1110
|
"verbose": {
|
|
1094
1111
|
"name": "verbose",
|
|
@@ -1116,6 +1133,7 @@
|
|
|
1116
1133
|
"aliases": [
|
|
1117
1134
|
"app:add:events"
|
|
1118
1135
|
],
|
|
1136
|
+
"hiddenAliases": [],
|
|
1119
1137
|
"flags": {
|
|
1120
1138
|
"verbose": {
|
|
1121
1139
|
"name": "verbose",
|
|
@@ -1164,6 +1182,7 @@
|
|
|
1164
1182
|
"app:add:ext",
|
|
1165
1183
|
"app:add:extensions"
|
|
1166
1184
|
],
|
|
1185
|
+
"hiddenAliases": [],
|
|
1167
1186
|
"flags": {
|
|
1168
1187
|
"verbose": {
|
|
1169
1188
|
"name": "verbose",
|
|
@@ -1209,6 +1228,7 @@
|
|
|
1209
1228
|
"pluginAlias": "@adobe/aio-cli-plugin-app",
|
|
1210
1229
|
"pluginType": "core",
|
|
1211
1230
|
"aliases": [],
|
|
1231
|
+
"hiddenAliases": [],
|
|
1212
1232
|
"flags": {
|
|
1213
1233
|
"verbose": {
|
|
1214
1234
|
"name": "verbose",
|
|
@@ -1236,6 +1256,7 @@
|
|
|
1236
1256
|
"aliases": [
|
|
1237
1257
|
"app:add:services"
|
|
1238
1258
|
],
|
|
1259
|
+
"hiddenAliases": [],
|
|
1239
1260
|
"flags": {
|
|
1240
1261
|
"verbose": {
|
|
1241
1262
|
"name": "verbose",
|
|
@@ -1267,6 +1288,7 @@
|
|
|
1267
1288
|
"pluginAlias": "@adobe/aio-cli-plugin-app",
|
|
1268
1289
|
"pluginType": "core",
|
|
1269
1290
|
"aliases": [],
|
|
1291
|
+
"hiddenAliases": [],
|
|
1270
1292
|
"flags": {
|
|
1271
1293
|
"verbose": {
|
|
1272
1294
|
"name": "verbose",
|
|
@@ -1315,6 +1337,7 @@
|
|
|
1315
1337
|
"app:config",
|
|
1316
1338
|
"app:config"
|
|
1317
1339
|
],
|
|
1340
|
+
"hiddenAliases": [],
|
|
1318
1341
|
"flags": {
|
|
1319
1342
|
"verbose": {
|
|
1320
1343
|
"name": "verbose",
|
|
@@ -1342,6 +1365,7 @@
|
|
|
1342
1365
|
"aliases": [
|
|
1343
1366
|
"app:delete:actions"
|
|
1344
1367
|
],
|
|
1368
|
+
"hiddenAliases": [],
|
|
1345
1369
|
"flags": {
|
|
1346
1370
|
"verbose": {
|
|
1347
1371
|
"name": "verbose",
|
|
@@ -1381,6 +1405,7 @@
|
|
|
1381
1405
|
"pluginAlias": "@adobe/aio-cli-plugin-app",
|
|
1382
1406
|
"pluginType": "core",
|
|
1383
1407
|
"aliases": [],
|
|
1408
|
+
"hiddenAliases": [],
|
|
1384
1409
|
"flags": {
|
|
1385
1410
|
"verbose": {
|
|
1386
1411
|
"name": "verbose",
|
|
@@ -1416,6 +1441,7 @@
|
|
|
1416
1441
|
"app:delete:ext",
|
|
1417
1442
|
"app:delete:extensions"
|
|
1418
1443
|
],
|
|
1444
|
+
"hiddenAliases": [],
|
|
1419
1445
|
"flags": {
|
|
1420
1446
|
"verbose": {
|
|
1421
1447
|
"name": "verbose",
|
|
@@ -1461,6 +1487,7 @@
|
|
|
1461
1487
|
"pluginAlias": "@adobe/aio-cli-plugin-app",
|
|
1462
1488
|
"pluginType": "core",
|
|
1463
1489
|
"aliases": [],
|
|
1490
|
+
"hiddenAliases": [],
|
|
1464
1491
|
"flags": {
|
|
1465
1492
|
"verbose": {
|
|
1466
1493
|
"name": "verbose",
|
|
@@ -1488,6 +1515,7 @@
|
|
|
1488
1515
|
"aliases": [
|
|
1489
1516
|
"app:delete:services"
|
|
1490
1517
|
],
|
|
1518
|
+
"hiddenAliases": [],
|
|
1491
1519
|
"flags": {
|
|
1492
1520
|
"verbose": {
|
|
1493
1521
|
"name": "verbose",
|
|
@@ -1519,6 +1547,7 @@
|
|
|
1519
1547
|
"pluginAlias": "@adobe/aio-cli-plugin-app",
|
|
1520
1548
|
"pluginType": "core",
|
|
1521
1549
|
"aliases": [],
|
|
1550
|
+
"hiddenAliases": [],
|
|
1522
1551
|
"flags": {
|
|
1523
1552
|
"verbose": {
|
|
1524
1553
|
"name": "verbose",
|
|
@@ -1554,6 +1583,7 @@
|
|
|
1554
1583
|
"app:list:ext-points",
|
|
1555
1584
|
"app:list:extension-points"
|
|
1556
1585
|
],
|
|
1586
|
+
"hiddenAliases": [],
|
|
1557
1587
|
"flags": {
|
|
1558
1588
|
"verbose": {
|
|
1559
1589
|
"name": "verbose",
|
|
@@ -1596,6 +1626,7 @@
|
|
|
1596
1626
|
"app:list:ext",
|
|
1597
1627
|
"app:list:extensions"
|
|
1598
1628
|
],
|
|
1629
|
+
"hiddenAliases": [],
|
|
1599
1630
|
"flags": {
|
|
1600
1631
|
"verbose": {
|
|
1601
1632
|
"name": "verbose",
|
|
@@ -1635,6 +1666,7 @@
|
|
|
1635
1666
|
"pluginAlias": "@adobe/aio-cli-plugin-app",
|
|
1636
1667
|
"pluginType": "core",
|
|
1637
1668
|
"aliases": [],
|
|
1669
|
+
"hiddenAliases": [],
|
|
1638
1670
|
"flags": {
|
|
1639
1671
|
"verbose": {
|
|
1640
1672
|
"name": "verbose",
|
|
@@ -1662,6 +1694,7 @@
|
|
|
1662
1694
|
"aliases": [
|
|
1663
1695
|
"app:config:get"
|
|
1664
1696
|
],
|
|
1697
|
+
"hiddenAliases": [],
|
|
1665
1698
|
"flags": {
|
|
1666
1699
|
"verbose": {
|
|
1667
1700
|
"name": "verbose",
|
|
@@ -1690,6 +1723,7 @@
|
|
|
1690
1723
|
"app:config:get:log-forwarding",
|
|
1691
1724
|
"app:config:get:lf"
|
|
1692
1725
|
],
|
|
1726
|
+
"hiddenAliases": [],
|
|
1693
1727
|
"flags": {
|
|
1694
1728
|
"verbose": {
|
|
1695
1729
|
"name": "verbose",
|
|
@@ -1717,6 +1751,7 @@
|
|
|
1717
1751
|
"aliases": [
|
|
1718
1752
|
"app:config:set"
|
|
1719
1753
|
],
|
|
1754
|
+
"hiddenAliases": [],
|
|
1720
1755
|
"flags": {
|
|
1721
1756
|
"verbose": {
|
|
1722
1757
|
"name": "verbose",
|
|
@@ -1745,6 +1780,7 @@
|
|
|
1745
1780
|
"app:config:set:log-forwarding",
|
|
1746
1781
|
"app:config:set:lf"
|
|
1747
1782
|
],
|
|
1783
|
+
"hiddenAliases": [],
|
|
1748
1784
|
"flags": {
|
|
1749
1785
|
"verbose": {
|
|
1750
1786
|
"name": "verbose",
|
|
@@ -1773,6 +1809,7 @@
|
|
|
1773
1809
|
"app:config:get:log-forwarding:errors",
|
|
1774
1810
|
"app:config:get:lf:errors"
|
|
1775
1811
|
],
|
|
1812
|
+
"hiddenAliases": [],
|
|
1776
1813
|
"flags": {
|
|
1777
1814
|
"verbose": {
|
|
1778
1815
|
"name": "verbose",
|
package/package.json
CHANGED
package/src/BaseCommand.js
CHANGED
|
@@ -35,7 +35,7 @@ class BaseCommand extends Command {
|
|
|
35
35
|
async catch (error) {
|
|
36
36
|
const { flags } = await this.parse(this.prototype)
|
|
37
37
|
aioLogger.error(error) // debug log
|
|
38
|
-
this.error(flags.verbose ? error.stack : error.message)
|
|
38
|
+
this.error(flags.verbose && error.stack ? error.stack : error.message)
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
async init () {
|
package/src/commands/app/init.js
CHANGED
|
@@ -322,7 +322,7 @@ class InitCommand extends TemplatesCommand {
|
|
|
322
322
|
const workspaces = await consoleCLI.getWorkspaces(org.id, project.id)
|
|
323
323
|
let workspace = workspaces.find(w => w.name.toLowerCase() === workspaceName.toLowerCase())
|
|
324
324
|
if (!workspace) {
|
|
325
|
-
if (
|
|
325
|
+
if (flags['confirm-new-workspace']) {
|
|
326
326
|
const shouldNewWorkspace = await consoleCLI.prompt.promptConfirm(`Workspace '${workspaceName}' does not exist \n > Do you wish to create a new workspace?`)
|
|
327
327
|
if (!shouldNewWorkspace) {
|
|
328
328
|
this.error(`Workspace '${workspaceName}' does not exist and creation aborted`)
|
package/src/commands/app/run.js
CHANGED
|
@@ -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({
|
package/src/commands/app/use.js
CHANGED
|
@@ -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({
|
package/src/lib/app-helper.js
CHANGED
|
@@ -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
|
|
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 }
|