@adobe/aio-cli-plugin-app 14.1.0 → 14.1.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 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.0/src/commands/app/index.js)_
77
+ _See code: [src/commands/app/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.1/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.0/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.1.1/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.0/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.1.1/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.0/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.1.1/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.0/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.1.1/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.0/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.1.1/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.0/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.1.1/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.0/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.1.1/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.0/src/commands/app/build.js)_
264
+ _See code: [src/commands/app/build.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.1/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.0/src/commands/app/clean.js)_
289
+ _See code: [src/commands/app/clean.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.1/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.0/src/commands/app/create.js)_
311
+ _See code: [src/commands/app/create.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.1/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.0/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.1.1/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.0/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.1.1/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.0/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.1.1/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.0/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.1.1/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.0/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.1.1/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.0/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.1.1/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.0/src/commands/app/deploy.js)_
489
+ _See code: [src/commands/app/deploy.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.1/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.0/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.1.1/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.0/src/commands/app/info.js)_
533
+ _See code: [src/commands/app/info.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.1/src/commands/app/info.js)_
534
534
 
535
535
  ## `aio app init [PATH]`
536
536
 
@@ -569,7 +569,7 @@ DESCRIPTION
569
569
  Create a new Adobe I/O App
570
570
  ```
571
571
 
572
- _See code: [src/commands/app/init.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.0/src/commands/app/init.js)_
572
+ _See code: [src/commands/app/init.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.1/src/commands/app/init.js)_
573
573
 
574
574
  ## `aio app install PATH`
575
575
 
@@ -592,7 +592,7 @@ DESCRIPTION
592
592
  This command will support installing apps packaged by 'aio app pack'.
593
593
  ```
594
594
 
595
- _See code: [src/commands/app/install.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.0/src/commands/app/install.js)_
595
+ _See code: [src/commands/app/install.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.1/src/commands/app/install.js)_
596
596
 
597
597
  ## `aio app list`
598
598
 
@@ -610,7 +610,7 @@ DESCRIPTION
610
610
  List components for Adobe I/O App
611
611
  ```
612
612
 
613
- _See code: [src/commands/app/list/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.0/src/commands/app/list/index.js)_
613
+ _See code: [src/commands/app/list/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.1/src/commands/app/list/index.js)_
614
614
 
615
615
  ## `aio app list extension`
616
616
 
@@ -635,7 +635,7 @@ ALIASES
635
635
  $ aio app list extensions
636
636
  ```
637
637
 
638
- _See code: [src/commands/app/list/extension.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.0/src/commands/app/list/extension.js)_
638
+ _See code: [src/commands/app/list/extension.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.1/src/commands/app/list/extension.js)_
639
639
 
640
640
  ## `aio app logs`
641
641
 
@@ -659,7 +659,7 @@ DESCRIPTION
659
659
  Fetch logs for an Adobe I/O App
660
660
  ```
661
661
 
662
- _See code: [src/commands/app/logs.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.0/src/commands/app/logs.js)_
662
+ _See code: [src/commands/app/logs.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.1/src/commands/app/logs.js)_
663
663
 
664
664
  ## `aio app pack [PATH]`
665
665
 
@@ -681,7 +681,7 @@ DESCRIPTION
681
681
  This command will support packaging apps for redistribution.
682
682
  ```
683
683
 
684
- _See code: [src/commands/app/pack.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.0/src/commands/app/pack.js)_
684
+ _See code: [src/commands/app/pack.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.1/src/commands/app/pack.js)_
685
685
 
686
686
  ## `aio app run`
687
687
 
@@ -703,7 +703,7 @@ DESCRIPTION
703
703
  Run an Adobe I/O App
704
704
  ```
705
705
 
706
- _See code: [src/commands/app/run.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.0/src/commands/app/run.js)_
706
+ _See code: [src/commands/app/run.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.1/src/commands/app/run.js)_
707
707
 
708
708
  ## `aio app test`
709
709
 
@@ -731,7 +731,7 @@ DESCRIPTION
731
731
  If the extension has a hook called 'test' in its 'ext.config.yaml', the script specified will be run instead.
732
732
  ```
733
733
 
734
- _See code: [src/commands/app/test.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.0/src/commands/app/test.js)_
734
+ _See code: [src/commands/app/test.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.1/src/commands/app/test.js)_
735
735
 
736
736
  ## `aio app undeploy`
737
737
 
@@ -756,7 +756,7 @@ DESCRIPTION
756
756
  Undeploys an Adobe I/O App
757
757
  ```
758
758
 
759
- _See code: [src/commands/app/undeploy.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.0/src/commands/app/undeploy.js)_
759
+ _See code: [src/commands/app/undeploy.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.1/src/commands/app/undeploy.js)_
760
760
 
761
761
  ## `aio app use [CONFIG_FILE_PATH]`
762
762
 
@@ -803,5 +803,5 @@ DESCRIPTION
803
803
  page in https://developer.adobe.com/console/
804
804
  ```
805
805
 
806
- _See code: [src/commands/app/use.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.0/src/commands/app/use.js)_
806
+ _See code: [src/commands/app/use.js](https://github.com/adobe/aio-cli-plugin-app/blob/14.1.1/src/commands/app/use.js)_
807
807
  <!-- commandsstop -->
@@ -1546,6 +1546,44 @@
1546
1546
  "web-assets.js"
1547
1547
  ]
1548
1548
  },
1549
+ "app:config": {
1550
+ "aliases": [
1551
+ "app:config",
1552
+ "app:config"
1553
+ ],
1554
+ "args": {},
1555
+ "description": "Manage app config",
1556
+ "flags": {
1557
+ "verbose": {
1558
+ "char": "v",
1559
+ "description": "Verbose output",
1560
+ "name": "verbose",
1561
+ "allowNo": false,
1562
+ "type": "boolean"
1563
+ },
1564
+ "version": {
1565
+ "description": "Show version",
1566
+ "name": "version",
1567
+ "allowNo": false,
1568
+ "type": "boolean"
1569
+ }
1570
+ },
1571
+ "hasDynamicHelp": false,
1572
+ "hiddenAliases": [],
1573
+ "id": "app:config",
1574
+ "pluginAlias": "@adobe/aio-cli-plugin-app",
1575
+ "pluginName": "@adobe/aio-cli-plugin-app",
1576
+ "pluginType": "core",
1577
+ "strict": true,
1578
+ "isESM": false,
1579
+ "relativePath": [
1580
+ "src",
1581
+ "commands",
1582
+ "app",
1583
+ "config",
1584
+ "index.js"
1585
+ ]
1586
+ },
1549
1587
  "app:delete:action": {
1550
1588
  "aliases": [
1551
1589
  "app:delete:actions"
@@ -1818,44 +1856,6 @@
1818
1856
  "web-assets.js"
1819
1857
  ]
1820
1858
  },
1821
- "app:config": {
1822
- "aliases": [
1823
- "app:config",
1824
- "app:config"
1825
- ],
1826
- "args": {},
1827
- "description": "Manage app config",
1828
- "flags": {
1829
- "verbose": {
1830
- "char": "v",
1831
- "description": "Verbose output",
1832
- "name": "verbose",
1833
- "allowNo": false,
1834
- "type": "boolean"
1835
- },
1836
- "version": {
1837
- "description": "Show version",
1838
- "name": "version",
1839
- "allowNo": false,
1840
- "type": "boolean"
1841
- }
1842
- },
1843
- "hasDynamicHelp": false,
1844
- "hiddenAliases": [],
1845
- "id": "app:config",
1846
- "pluginAlias": "@adobe/aio-cli-plugin-app",
1847
- "pluginName": "@adobe/aio-cli-plugin-app",
1848
- "pluginType": "core",
1849
- "strict": true,
1850
- "isESM": false,
1851
- "relativePath": [
1852
- "src",
1853
- "commands",
1854
- "app",
1855
- "config",
1856
- "index.js"
1857
- ]
1858
- },
1859
1859
  "app:list:extension-points": {
1860
1860
  "aliases": [
1861
1861
  "app:list:ext-points",
@@ -2190,5 +2190,5 @@
2190
2190
  ]
2191
2191
  }
2192
2192
  },
2193
- "version": "14.1.0"
2193
+ "version": "14.1.1"
2194
2194
  }
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.0",
4
+ "version": "14.1.1",
5
5
  "author": "Adobe Inc.",
6
6
  "bugs": "https://github.com/adobe/aio-cli-plugin-app/issues",
7
7
  "dependencies": {
@@ -177,7 +177,7 @@ class Pack extends BaseCommand {
177
177
  this.spinner.succeed('Got api-mesh config')
178
178
  } catch (err) {
179
179
  // Ignore error if no mesh found, otherwise throw
180
- if (err?.message.includes('Error: Unable to get mesh config. No mesh found for Org')) {
180
+ if (err?.message.includes('Error: Unable to get mesh config.')) {
181
181
  aioLogger.debug('No api-mesh config found')
182
182
  } else {
183
183
  console.error(err)
@@ -12,9 +12,13 @@ governing permissions and limitations under the License.
12
12
  const { getToken, context } = require('@adobe/aio-lib-ims')
13
13
  const { CLI } = require('@adobe/aio-lib-ims/src/context')
14
14
  const { getCliEnv } = require('@adobe/aio-lib-env')
15
- const defaultDeployServiceUrl = 'https://deploy-service.app-builder.adp.adobe.io'
16
15
  const aioLogger = require('@adobe/aio-lib-core-logging')('@adobe/aio-cli-plugin-app:auth-helper', { provider: 'debug' })
17
16
 
17
+ const DEPLOY_SERVICE_ENDPOINTS = {
18
+ stage: 'https://deploy-service.stg.app-builder.corp.adp.adobe.io',
19
+ prod: 'https://deploy-service.app-builder.adp.adobe.io'
20
+ }
21
+
18
22
  /**
19
23
  * Retrieves an access token for Adobe I/O CLI authentication.
20
24
  * This function handles both CLI and custom contexts, setting up the appropriate
@@ -65,17 +69,21 @@ const bearerAuthHandler = {
65
69
  }
66
70
 
67
71
  const setRuntimeApiHostAndAuthHandler = (_config) => {
72
+ const env = getCliEnv()
73
+ let apiEndpoint = DEPLOY_SERVICE_ENDPOINTS[env] ?? DEPLOY_SERVICE_ENDPOINTS.prod
74
+ if (process.env.AIO_DEPLOY_SERVICE_URL) {
75
+ apiEndpoint = process.env.AIO_DEPLOY_SERVICE_URL
76
+ }
77
+
68
78
  const config = structuredClone(_config)
69
79
  const aioConfig = (config && 'runtime' in config) ? config : null
70
80
  if (aioConfig) {
71
- const apiEndpoint = process.env.AIO_DEPLOY_SERVICE_URL ?? defaultDeployServiceUrl
72
81
  aioConfig.runtime.apihost = `${apiEndpoint}/runtime`
73
82
  aioConfig.runtime.auth_handler = bearerAuthHandler
74
83
  return aioConfig
75
84
  }
76
85
  const owConfig = (config && 'ow' in config) ? config : null
77
86
  if (owConfig) {
78
- const apiEndpoint = process.env.AIO_DEPLOY_SERVICE_URL ?? defaultDeployServiceUrl
79
87
  owConfig.ow.apihost = `${apiEndpoint}/runtime`
80
88
  owConfig.ow.auth_handler = bearerAuthHandler
81
89
  return owConfig