@adobe/aio-cli-plugin-app 8.6.1 → 9.1.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 +687 -256
- package/bin/openwhisk-standalone-config/get-runtimes.js +52 -0
- package/bin/openwhisk-standalone-config/runtimes.json +16 -8
- package/oclif.manifest.json +1 -1
- package/package.json +46 -47
- package/schema/config.schema.json +12 -3
- package/src/AddCommand.js +3 -3
- package/src/BaseCommand.js +5 -6
- package/src/commands/app/add/action.js +8 -8
- package/src/commands/app/add/ci.js +4 -5
- package/src/commands/app/add/event.js +7 -7
- package/src/commands/app/add/extension.js +7 -7
- package/src/commands/app/add/index.js +3 -3
- package/src/commands/app/add/service.js +3 -3
- package/src/commands/app/add/web-assets.js +8 -8
- package/src/commands/app/build.js +14 -14
- package/src/commands/app/config/get/index.js +3 -3
- package/src/commands/app/config/index.js +3 -3
- package/src/commands/app/config/set/index.js +3 -3
- package/src/commands/app/create.js +3 -3
- package/src/commands/app/delete/action.js +3 -3
- package/src/commands/app/delete/ci.js +6 -6
- package/src/commands/app/delete/event.js +3 -3
- package/src/commands/app/delete/extension.js +6 -6
- package/src/commands/app/delete/index.js +3 -3
- package/src/commands/app/delete/web-assets.js +3 -3
- package/src/commands/app/deploy.js +19 -21
- package/src/commands/app/get-url.js +8 -8
- package/src/commands/app/index.js +3 -3
- package/src/commands/app/info.js +7 -7
- package/src/commands/app/init.js +17 -16
- package/src/commands/app/list/extension-points.js +5 -5
- package/src/commands/app/list/extension.js +5 -5
- package/src/commands/app/list/index.js +3 -3
- package/src/commands/app/logs.js +9 -9
- package/src/commands/app/run.js +10 -11
- package/src/commands/app/test.js +7 -7
- package/src/commands/app/undeploy.js +10 -10
- package/src/commands/app/use.js +11 -11
- package/src/lib/app-helper.js +2 -2
- package/src/lib/build-actions.js +3 -2
- package/src/lib/import.js +3 -6
- package/src/lib/run-dev.js +4 -4
- package/src/lib/vscode.js +3 -3
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2021 Adobe. All rights reserved.
|
|
3
|
+
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
Unless required by applicable law or agreed to in writing, software distributed under
|
|
7
|
+
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
8
|
+
OF ANY KIND, either express or implied. See the License for the specific language
|
|
9
|
+
governing permissions and limitations under the License.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
const fetch = require('node-fetch')
|
|
13
|
+
|
|
14
|
+
const DOCKER_ORG = 'adobeapiplatform'
|
|
15
|
+
const DOCKER_REPOS = { // repo-name:kind
|
|
16
|
+
'adobe-action-nodejs-v10': 'nodejs:10',
|
|
17
|
+
'adobe-action-nodejs-v12': 'nodejs:12',
|
|
18
|
+
'adobe-action-nodejs-v14': 'nodejs:14',
|
|
19
|
+
'adobe-action-nodejs-v16': 'nodejs:16',
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const DEFAULT_KIND = 'nodejs:16'
|
|
23
|
+
|
|
24
|
+
async function main() {
|
|
25
|
+
const nodejs = []
|
|
26
|
+
|
|
27
|
+
for ([repoName, kind] of Object.entries(DOCKER_REPOS)) {
|
|
28
|
+
const data = await fetch(`https://registry.hub.docker.com/v2/repositories/${DOCKER_ORG}/${repoName}/tags`)
|
|
29
|
+
const json = await data.json()
|
|
30
|
+
const defaultKind = (kind === DEFAULT_KIND)? true : undefined
|
|
31
|
+
|
|
32
|
+
nodejs.push({
|
|
33
|
+
kind,
|
|
34
|
+
default: defaultKind,
|
|
35
|
+
image: {
|
|
36
|
+
prefix: DOCKER_ORG,
|
|
37
|
+
name: repoName,
|
|
38
|
+
tag: json.results[0].name
|
|
39
|
+
}
|
|
40
|
+
})
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const output = {
|
|
44
|
+
runtimes: {
|
|
45
|
+
nodejs
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
console.log(JSON.stringify(output, null, 2))
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
main()
|
|
52
|
+
|
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
"runtimes": {
|
|
3
3
|
"nodejs": [
|
|
4
4
|
{
|
|
5
|
-
"kind": "nodejs:
|
|
6
|
-
"default": true,
|
|
5
|
+
"kind": "nodejs:10",
|
|
7
6
|
"image": {
|
|
8
7
|
"prefix": "adobeapiplatform",
|
|
9
|
-
"name": "adobe-action-nodejs-
|
|
10
|
-
"tag": "3.0.
|
|
8
|
+
"name": "adobe-action-nodejs-v10",
|
|
9
|
+
"tag": "3.0.32"
|
|
11
10
|
}
|
|
12
11
|
},
|
|
13
12
|
{
|
|
@@ -15,15 +14,24 @@
|
|
|
15
14
|
"image": {
|
|
16
15
|
"prefix": "adobeapiplatform",
|
|
17
16
|
"name": "adobe-action-nodejs-v12",
|
|
18
|
-
"tag": "3.0.
|
|
17
|
+
"tag": "3.0.32"
|
|
19
18
|
}
|
|
20
19
|
},
|
|
21
20
|
{
|
|
22
|
-
"kind": "nodejs:
|
|
21
|
+
"kind": "nodejs:14",
|
|
23
22
|
"image": {
|
|
24
23
|
"prefix": "adobeapiplatform",
|
|
25
|
-
"name": "adobe-action-nodejs-
|
|
26
|
-
"tag": "3.0.
|
|
24
|
+
"name": "adobe-action-nodejs-v14",
|
|
25
|
+
"tag": "3.0.32"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"kind": "nodejs:16",
|
|
30
|
+
"default": true,
|
|
31
|
+
"image": {
|
|
32
|
+
"prefix": "adobeapiplatform",
|
|
33
|
+
"name": "adobe-action-nodejs-v16",
|
|
34
|
+
"tag": "3.0.32"
|
|
27
35
|
}
|
|
28
36
|
}
|
|
29
37
|
]
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"8.6.1","commands":{"app:build":{"id":"app:build","description":"Build an Adobe I/O App\n\nThis will always force a rebuild unless --no-force-build is set.\n","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"skip-static":{"name":"skip-static","type":"boolean","description":"[deprecated] Please use --no-web-assets","allowNo":false},"skip-web-assets":{"name":"skip-web-assets","type":"boolean","description":"[deprecated] Please use --no-web-assets","allowNo":false},"skip-actions":{"name":"skip-actions","type":"boolean","description":"[deprecated] Please use --no-actions","allowNo":false},"actions":{"name":"actions","type":"boolean","description":"[default: true] Build actions if any","allowNo":true},"action":{"name":"action","type":"option","char":"a","description":"Build only a specific action, the flags can be specified multiple times, this will set --no-publish"},"web-assets":{"name":"web-assets","type":"boolean","description":"[default: true] Build web-assets if any","allowNo":true},"force-build":{"name":"force-build","type":"boolean","description":"[default: true] Force a build even if one already exists","allowNo":true},"content-hash":{"name":"content-hash","type":"boolean","description":"[default: true] Enable content hashing in browser code","allowNo":true},"web-optimize":{"name":"web-optimize","type":"boolean","description":"[default: false] Enable optimization (minification) of js/css/html","allowNo":false},"extension":{"name":"extension","type":"option","char":"e","description":"Build only a specific extension point, the flags can be specified multiple times"}},"args":[]},"app:create":{"id":"app:create","description":"Create a new Adobe I/O App with default parameters\n","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"import":{"name":"import","type":"option","char":"i","description":"Import an Adobe I/O Developer Console configuration file"}},"args":[{"name":"path","description":"Path to the app directory","default":"."}]},"app:deploy":{"id":"app:deploy","description":"Build and deploy an Adobe I/O App\n\nThis will always force a rebuild unless --no-force-build is set.\n","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"skip-build":{"name":"skip-build","type":"boolean","description":"[deprecated] Please use --no-build","allowNo":false},"skip-deploy":{"name":"skip-deploy","type":"boolean","description":"[deprecated] Please use 'aio app build'","allowNo":false},"skip-static":{"name":"skip-static","type":"boolean","description":"[deprecated] Please use --no-web-assets","allowNo":false},"skip-web-assets":{"name":"skip-web-assets","type":"boolean","description":"[deprecated] Please use --no-web-assets","allowNo":false},"skip-actions":{"name":"skip-actions","type":"boolean","description":"[deprecated] Please use --no-actions","allowNo":false},"actions":{"name":"actions","type":"boolean","description":"[default: true] Deploy actions if any","allowNo":true},"action":{"name":"action","type":"option","char":"a","description":"Deploy only a specific action, the flags can be specified multiple times, this will set --no-publish"},"web-assets":{"name":"web-assets","type":"boolean","description":"[default: true] Deploy web-assets if any","allowNo":true},"build":{"name":"build","type":"boolean","description":"[default: true] Run the build phase before deployment","allowNo":true},"force-build":{"name":"force-build","type":"boolean","description":"[default: true] Force a build even if one already exists","allowNo":true},"content-hash":{"name":"content-hash","type":"boolean","description":"[default: true] Enable content hashing in browser code","allowNo":true},"open":{"name":"open","type":"boolean","description":"Open the default web browser after a successful deploy, only valid if your app has a front-end","allowNo":false},"extension":{"name":"extension","type":"option","char":"e","description":"Deploy only a specific extension, the flags can be specified multiple times"},"publish":{"name":"publish","type":"boolean","description":"[default: true] Publish extension(s) to Exchange","allowNo":true},"force-publish":{"name":"force-publish","type":"boolean","description":"Force publish extension(s) to Exchange, delete previously published extension points","allowNo":false},"web-optimize":{"name":"web-optimize","type":"boolean","description":"[default: false] Enable optimization (minification) of web js/css/html","allowNo":false},"log-forwarding-update":{"name":"log-forwarding-update","type":"boolean","description":"[default: true] Update log forwarding configuration on server","allowNo":true}},"args":[]},"app:get-url":{"id":"app:get-url","description":"Get action URLs","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"cdn":{"name":"cdn","type":"boolean","description":"Display CDN based action URLs","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","description":"Output json","allowNo":false},"hson":{"name":"hson","type":"boolean","char":"h","description":"Output human readable json","allowNo":false},"yml":{"name":"yml","type":"boolean","char":"y","description":"Output yml","allowNo":false},"local":{"name":"local","type":"boolean","description":"Display locally based action URLs","allowNo":false}},"args":[{"name":"action"}]},"app":{"id":"app","description":"Create, run, test, and deploy Adobe I/O Apps","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]},"app:info":{"id":"app:info","description":"Display settings/configuration in use by an Adobe I/O App\n","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","description":"Output json","allowNo":false},"hson":{"name":"hson","type":"boolean","char":"h","description":"Output human readable json","allowNo":false},"yml":{"name":"yml","type":"boolean","char":"y","description":"Output yml","allowNo":false},"mask":{"name":"mask","type":"boolean","description":"Hide known private info","allowNo":true}},"args":[]},"app:init":{"id":"app:init","description":"Create a new Adobe I/O App\n","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"skip-install":{"name":"skip-install","type":"boolean","char":"s","description":"[deprecated] Please use --no-install","allowNo":false},"install":{"name":"install","type":"boolean","description":"[default: true] Run npm installation after files are created","allowNo":true},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"yes":{"name":"yes","type":"boolean","char":"y","description":"Skip questions, and use all default values","allowNo":false},"import":{"name":"import","type":"option","char":"i","description":"Import an Adobe I/O Developer Console configuration file"},"login":{"name":"login","type":"boolean","description":"Login using your Adobe ID for interacting with Adobe I/O Developer Console","allowNo":true},"extensions":{"name":"extensions","type":"boolean","description":"Use --no-extensions to create a blank application that does not integrate with Exchange","allowNo":true},"extension":{"name":"extension","type":"option","char":"e","description":"Extension point(s) to implement"},"workspace":{"name":"workspace","type":"option","char":"w","description":"Specify the Adobe Developer Console Workspace to init from, defaults to Stage","default":"Stage"},"confirm-new-workspace":{"name":"confirm-new-workspace","type":"boolean","description":"Skip and confirm prompt for creating a new workspace","allowNo":false}},"args":[{"name":"path","description":"Path to the app directory","default":"."}]},"app:logs":{"id":"app:logs","description":"Fetch logs for an Adobe I/O App\n","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"limit":{"name":"limit","type":"option","char":"l","description":"Limit number of activations to fetch logs from ( 1-50 )","default":1},"action":{"name":"action","type":"option","char":"a","description":"Fetch logs for a specific action"},"strip":{"name":"strip","type":"boolean","char":"r","description":"strip timestamp information and output first line only","allowNo":false},"tail":{"name":"tail","type":"boolean","char":"t","description":"Fetch logs continuously","allowNo":false},"watch":{"name":"watch","type":"boolean","char":"w","description":"Fetch logs continuously","allowNo":false},"poll":{"name":"poll","type":"boolean","char":"o","description":"Fetch logs continuously","allowNo":false}},"args":[]},"app:run":{"id":"app:run","description":"Run an Adobe I/O App","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"local":{"name":"local","type":"boolean","description":"Run/debug actions locally ( requires Docker running )","allowNo":false},"serve":{"name":"serve","type":"boolean","description":"[default: true] Start frontend server (experimental)","allowNo":true},"skip-actions":{"name":"skip-actions","type":"boolean","description":"[deprecated] Please use --no-actions","allowNo":false},"actions":{"name":"actions","type":"boolean","description":"[default: true] Run actions, defaults to true, to skip actions use --no-actions","allowNo":true},"open":{"name":"open","type":"boolean","description":"Open the default web browser after a successful run, only valid if your app has a front-end","allowNo":false},"extension":{"name":"extension","type":"option","char":"e","description":"Run only a specific extension, this flag can only be specified once"}},"args":[]},"app:test":{"id":"app:test","description":"Run tests for an Adobe I/O App\nIf no flags are specified, by default only unit-tests are run.\n\nFor the --action flag, it tries a substring search on the 'package-name/action-name' pair for an action.\nFor the --extension flag, it tries a substring search on the 'extension-name' only.\nIf the extension has a hook called 'test' in its 'ext.config.yaml', the script specified will be run instead.\n\n","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"extension":{"name":"extension","type":"option","char":"e","description":"the extension(s) to test"},"action":{"name":"action","type":"option","char":"a","description":"the action(s) to test"},"all":{"name":"all","type":"boolean","description":"run both unit and e2e tests","allowNo":false},"e2e":{"name":"e2e","type":"boolean","description":"run e2e tests","allowNo":false},"unit":{"name":"unit","type":"boolean","description":"run unit tests","allowNo":false}},"args":[]},"app:undeploy":{"id":"app:undeploy","description":"Undeploys an Adobe I/O App\n","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"skip-static":{"name":"skip-static","type":"boolean","description":"[deprecated] Please use --no-web-assets","allowNo":false},"skip-web-assets":{"name":"skip-web-assets","type":"boolean","description":"[deprecated] Please use --no-web-assets","allowNo":false},"skip-actions":{"name":"skip-actions","type":"boolean","description":"[deprecated] Please use --no-actions","allowNo":false},"actions":{"name":"actions","type":"boolean","description":"[default: true] Undeploy actions if any","allowNo":true},"web-assets":{"name":"web-assets","type":"boolean","description":"[default: true] Undeploy web-assets if any","allowNo":true},"extension":{"name":"extension","type":"option","char":"e","description":"Undeploy only a specific extension, the flags can be specified multiple times"},"unpublish":{"name":"unpublish","type":"boolean","description":"[default: true] Unpublish selected extension(s) from Exchange","allowNo":true},"force-unpublish":{"name":"force-unpublish","type":"boolean","description":"Force unpublish extension(s) from Exchange, will delete all extension points","allowNo":false}},"args":[]},"app:use":{"id":"app:use","description":"Import an Adobe Developer Console configuration file.\n\nIf the optional configuration file is not set, this command will retrieve the console org, project, and workspace settings from the global config.\n\nTo set these global config values, see the help text for 'aio console --help'.\n\nTo download the configuration file for your project, select the 'Download' button in the toolbar of your project's page in https://console.adobe.io\n","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"overwrite":{"name":"overwrite","type":"boolean","description":"Overwrite any .aio and .env files during import of the Adobe Developer Console configuration file","allowNo":false},"merge":{"name":"merge","type":"boolean","description":"Merge any .aio and .env files during import of the Adobe Developer Console configuration file","allowNo":false},"global":{"name":"global","type":"boolean","char":"g","description":"Use the global Adobe Developer Console Org / Project / Workspace configuration, which can be set via `aio console` commands","allowNo":false},"workspace":{"name":"workspace","type":"option","char":"w","description":"Specify the Adobe Developer Console Workspace name or Workspace id to import the configuration from","default":""},"confirm-new-workspace":{"name":"confirm-new-workspace","type":"boolean","description":"Skip and confirm prompt for creating a new workspace","allowNo":false},"workspace-name":{"name":"workspace-name","type":"option","char":"w","description":"[DEPRECATED]: please use --workspace instead","default":""},"no-service-sync":{"name":"no-service-sync","type":"boolean","description":"Skip the Service sync prompt and do not attach current Service subscriptions to the new Workspace","allowNo":false},"confirm-service-sync":{"name":"confirm-service-sync","type":"boolean","description":"Skip the Service sync prompt and overwrite Service subscriptions in the new Workspace with current subscriptions","allowNo":false},"no-input":{"name":"no-input","type":"boolean","description":"Skip user prompts by setting --no-service-sync and --merge. Requires one of config_file_path or --global or --workspace","allowNo":false}},"args":[{"name":"config_file_path","description":"path to an Adobe I/O Developer Console configuration file","required":false}]},"app:add:action":{"id":"app:add:action","description":"Add new actions\n","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:add:actions"],"flags":{"yes":{"name":"yes","type":"boolean","char":"y","description":"Skip questions, and use all default values","allowNo":false},"extension":{"name":"extension","type":"option","char":"e","description":"Add actions to a specific extension"},"skip-install":{"name":"skip-install","type":"boolean","char":"s","description":"[deprecated] Please use --no-install","allowNo":false},"install":{"name":"install","type":"boolean","description":"[default: true] Run npm installation after files are created","allowNo":true},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]},"app:add:ci":{"id":"app:add:ci","description":"Add CI files\n","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]},"app:add:event":{"id":"app:add:event","description":"Add a new Adobe I/O Events action\n","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:add:events"],"flags":{"yes":{"name":"yes","type":"boolean","char":"y","description":"Skip questions, and use all default values","allowNo":false},"extension":{"name":"extension","type":"option","char":"e","description":"Add actions to a specific extension"},"skip-install":{"name":"skip-install","type":"boolean","char":"s","description":"[deprecated] Please use --no-install","allowNo":false},"install":{"name":"install","type":"boolean","description":"[default: true] Run npm installation after files are created","allowNo":true},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]},"app:add:extension":{"id":"app:add:extension","description":"Add new extensions or a standalone application to the project\n","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:add:ext","app:add:extensions"],"flags":{"yes":{"name":"yes","type":"boolean","char":"y","description":"Skip questions, and use all default values","allowNo":false},"extension":{"name":"extension","type":"option","char":"e","description":"Specify extensions to add, skips selection prompt"},"skip-install":{"name":"skip-install","type":"boolean","char":"s","description":"[deprecated] Please use --no-install","allowNo":false},"install":{"name":"install","type":"boolean","description":"[default: true] Run npm installation after files are created","allowNo":true},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]},"app:add":{"id":"app:add","description":"Add a new component to an existing Adobe I/O App","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]},"app:add:service":{"id":"app:add:service","description":"Subscribe to Services in the current Workspace\n","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:add:services"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]},"app:add:web-assets":{"id":"app:add:web-assets","description":"Add web assets support\n","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"yes":{"name":"yes","type":"boolean","char":"y","description":"Skip questions, and use all default values","allowNo":false},"extension":{"name":"extension","type":"option","char":"e","description":"Add web-assets to a specific extension"},"skip-install":{"name":"skip-install","type":"boolean","char":"s","description":"[deprecated] Please use --no-install","allowNo":false},"install":{"name":"install","type":"boolean","description":"[default: true] Run npm installation after files are created","allowNo":true},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]},"app:config":{"id":"app:config","description":"Manage app config","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:config","app:config"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]},"app:delete:action":{"id":"app:delete:action","description":"Delete existing actions\n","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:delete:actions"],"flags":{"yes":{"name":"yes","type":"boolean","char":"y","description":"Skip questions, and use all default values","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[{"name":"action-name","description":"Action `pkg/name` to delete, you can specify multiple actions via a comma separated list","required":false,"default":""}]},"app:delete:ci":{"id":"app:delete:ci","description":"Delete existing CI files\n","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"yes":{"name":"yes","type":"boolean","char":"y","description":"Skip questions, and use all default values","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]},"app:delete:event":{"id":"app:delete:event","description":"Delete existing Adobe I/O Events actions\n","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:delete:events"],"flags":{"yes":{"name":"yes","type":"boolean","char":"y","description":"Skip questions, and use all default values","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[{"name":"event-action-name","description":"Action `pkg/name` to delete, you can specify multiple actions via a comma separated list","required":false}]},"app:delete:extension":{"id":"app:delete:extension","description":"Add new extensions or a standalone application to the project\n","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:delete:ext","app:delete:extensions"],"flags":{"yes":{"name":"yes","type":"boolean","char":"y","description":"Skip questions, and use all default values","allowNo":false},"skip-install":{"name":"skip-install","type":"boolean","description":"Skip npm installation after files are created","allowNo":false},"extension":{"name":"extension","type":"option","char":"e","description":"Specify extensions to delete, skips selection prompt"},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]},"app:delete":{"id":"app:delete","description":"Delete a component from an existing Adobe I/O App","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]},"app:delete:service":{"id":"app:delete:service","description":"Delete Services in the current Workspace\n","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:delete:services"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]},"app:delete:web-assets":{"id":"app:delete:web-assets","description":"Delete existing web assets\n","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"yes":{"name":"yes","type":"boolean","char":"y","description":"Skip questions, and use all default values","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]},"app:list:extension-points":{"id":"app:list:extension-points","description":"List all extension points for the selected org\n","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:list:ext-points","app:list:extension-points"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","description":"Output json","allowNo":false},"yml":{"name":"yml","type":"boolean","char":"y","description":"Output yml","allowNo":false}},"args":[]},"app:list:extension":{"id":"app:list:extension","description":"List implemented extensions\n","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:list:ext","app:list:extensions"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","description":"Output json","allowNo":false},"yml":{"name":"yml","type":"boolean","char":"y","description":"Output yml","allowNo":false}},"args":[]},"app:list":{"id":"app:list","description":"List components for Adobe I/O App","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]},"app:config:get":{"id":"app:config:get","description":"Get app config","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:config:get"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]},"app:config:get:log-forwarding":{"id":"app:config:get:log-forwarding","description":"Get log forwarding destination configuration","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:config:get:log-forwarding","app:config:get:lf"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]},"app:config:set":{"id":"app:config:set","description":"Set app config","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:config:set"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]},"app:config:set:log-forwarding":{"id":"app:config:set:log-forwarding","description":"Set log forwarding destination configuration","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:config:set:log-forwarding","app:config:set:lf"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]},"app:config:get:log-forwarding:errors":{"id":"app:config:get:log-forwarding:errors","description":"Get log forwarding errors","pluginName":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:config:get:log-forwarding:errors","app:config:get:lf:errors"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]}}}
|
|
1
|
+
{"version":"9.1.0","commands":{"app:build":{"id":"app:build","description":"Build an Adobe I/O App\n\nThis will always force a rebuild unless --no-force-build is set.\n","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"skip-static":{"name":"skip-static","type":"boolean","description":"[deprecated] Please use --no-web-assets","allowNo":false},"skip-web-assets":{"name":"skip-web-assets","type":"boolean","description":"[deprecated] Please use --no-web-assets","allowNo":false},"skip-actions":{"name":"skip-actions","type":"boolean","description":"[deprecated] Please use --no-actions","allowNo":false},"actions":{"name":"actions","type":"boolean","description":"[default: true] Build actions if any","allowNo":true,"exclusive":["action"]},"action":{"name":"action","type":"option","char":"a","description":"Build only a specific action, the flags can be specified multiple times, this will set --no-publish","multiple":true,"exclusive":["extension"]},"web-assets":{"name":"web-assets","type":"boolean","description":"[default: true] Build web-assets if any","allowNo":true},"force-build":{"name":"force-build","type":"boolean","description":"[default: true] Force a build even if one already exists","allowNo":true},"content-hash":{"name":"content-hash","type":"boolean","description":"[default: true] Enable content hashing in browser code","allowNo":true},"web-optimize":{"name":"web-optimize","type":"boolean","description":"[default: false] Enable optimization (minification) of js/css/html","allowNo":false},"extension":{"name":"extension","type":"option","char":"e","description":"Build only a specific extension point, the flags can be specified multiple times","multiple":true,"exclusive":["action"]}},"args":[]},"app:create":{"id":"app:create","description":"Create a new Adobe I/O App with default parameters\n","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"import":{"name":"import","type":"option","char":"i","description":"Import an Adobe I/O Developer Console configuration file","multiple":false}},"args":[{"name":"path","description":"Path to the app directory","default":"."}]},"app:deploy":{"id":"app:deploy","description":"Build and deploy an Adobe I/O App\n\nThis will always force a rebuild unless --no-force-build is set.\n","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"skip-static":{"name":"skip-static","type":"boolean","description":"[deprecated] Please use --no-web-assets","allowNo":false},"skip-web-assets":{"name":"skip-web-assets","type":"boolean","description":"[deprecated] Please use --no-web-assets","allowNo":false},"skip-actions":{"name":"skip-actions","type":"boolean","description":"[deprecated] Please use --no-actions","allowNo":false},"actions":{"name":"actions","type":"boolean","description":"[default: true] Deploy actions if any","allowNo":true,"exclusive":["action"]},"action":{"name":"action","type":"option","char":"a","description":"Deploy only a specific action, the flags can be specified multiple times, this will set --no-publish","multiple":true,"exclusive":["extension"]},"web-assets":{"name":"web-assets","type":"boolean","description":"[default: true] Deploy web-assets if any","allowNo":true},"force-build":{"name":"force-build","type":"boolean","description":"[default: true] Force a build even if one already exists","allowNo":true,"exclusive":["no-build"]},"content-hash":{"name":"content-hash","type":"boolean","description":"[default: true] Enable content hashing in browser code","allowNo":true},"web-optimize":{"name":"web-optimize","type":"boolean","description":"[default: false] Enable optimization (minification) of web js/css/html","allowNo":false},"extension":{"name":"extension","type":"option","char":"e","description":"Deploy only a specific extension, the flags can be specified multiple times","multiple":true,"exclusive":["action"]},"skip-build":{"name":"skip-build","type":"boolean","description":"[deprecated] Please use --no-build","allowNo":false},"skip-deploy":{"name":"skip-deploy","type":"boolean","description":"[deprecated] Please use 'aio app build'","allowNo":false},"build":{"name":"build","type":"boolean","description":"[default: true] Run the build phase before deployment","allowNo":true},"open":{"name":"open","type":"boolean","description":"Open the default web browser after a successful deploy, only valid if your app has a front-end","allowNo":false},"publish":{"name":"publish","type":"boolean","description":"[default: true] Publish extension(s) to Exchange","allowNo":true,"exclusive":["action"]},"force-publish":{"name":"force-publish","type":"boolean","description":"Force publish extension(s) to Exchange, delete previously published extension points","allowNo":false,"exclusive":["action","publish"]},"log-forwarding-update":{"name":"log-forwarding-update","type":"boolean","description":"[default: true] Update log forwarding configuration on server","allowNo":true}},"args":[]},"app:get-url":{"id":"app:get-url","description":"Get action URLs","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"cdn":{"name":"cdn","type":"boolean","description":"Display CDN based action URLs","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","description":"Output json","allowNo":false},"hson":{"name":"hson","type":"boolean","char":"h","description":"Output human readable json","allowNo":false},"yml":{"name":"yml","type":"boolean","char":"y","description":"Output yml","allowNo":false},"local":{"name":"local","type":"boolean","description":"Display locally based action URLs","allowNo":false}},"args":[{"name":"action"}]},"app":{"id":"app","description":"Create, run, test, and deploy Adobe I/O Apps","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]},"app:info":{"id":"app:info","description":"Display settings/configuration in use by an Adobe I/O App\n","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","description":"Output json","allowNo":false,"exclusive":["hson","yml"]},"hson":{"name":"hson","type":"boolean","char":"h","description":"Output human readable json","allowNo":false,"exclusive":["json","yml"]},"yml":{"name":"yml","type":"boolean","char":"y","description":"Output yml","allowNo":false,"exclusive":["hson","json"]},"mask":{"name":"mask","type":"boolean","description":"Hide known private info","allowNo":true}},"args":[]},"app:init":{"id":"app:init","description":"Create a new Adobe I/O App\n","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"skip-install":{"name":"skip-install","type":"boolean","char":"s","description":"[deprecated] Please use --no-install","allowNo":false},"install":{"name":"install","type":"boolean","description":"[default: true] Run npm installation after files are created","allowNo":true},"yes":{"name":"yes","type":"boolean","char":"y","description":"Skip questions, and use all default values","allowNo":false},"import":{"name":"import","type":"option","char":"i","description":"Import an Adobe I/O Developer Console configuration file","multiple":false},"login":{"name":"login","type":"boolean","description":"Login using your Adobe ID for interacting with Adobe I/O Developer Console","allowNo":true},"extensions":{"name":"extensions","type":"boolean","description":"Use --no-extensions to create a blank application that does not integrate with Exchange","allowNo":true},"extension":{"name":"extension","type":"option","char":"e","description":"Extension point(s) to implement","multiple":true,"exclusive":["extensions"]},"workspace":{"name":"workspace","type":"option","char":"w","description":"Specify the Adobe Developer Console Workspace to init from, defaults to Stage","multiple":false,"exclusive":["import"],"default":"Stage"},"confirm-new-workspace":{"name":"confirm-new-workspace","type":"boolean","description":"Skip and confirm prompt for creating a new workspace","allowNo":false}},"args":[{"name":"path","description":"Path to the app directory","default":"."}]},"app:logs":{"id":"app:logs","description":"Fetch logs for an Adobe I/O App\n","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"limit":{"name":"limit","type":"option","char":"l","description":"Limit number of activations to fetch logs from ( 1-50 )","multiple":false,"default":1},"action":{"name":"action","type":"option","char":"a","description":"Fetch logs for a specific action","multiple":true},"strip":{"name":"strip","type":"boolean","char":"r","description":"strip timestamp information and output first line only","allowNo":false},"tail":{"name":"tail","type":"boolean","char":"t","description":"Fetch logs continuously","allowNo":false,"exclusive":["watch","poll"]},"watch":{"name":"watch","type":"boolean","char":"w","description":"Fetch logs continuously","allowNo":false,"exclusive":["tail","poll"]},"poll":{"name":"poll","type":"boolean","char":"o","description":"Fetch logs continuously","allowNo":false,"exclusive":["watch","tail"]}},"args":[]},"app:run":{"id":"app:run","description":"Run an Adobe I/O App","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"local":{"name":"local","type":"boolean","description":"Run/debug actions locally ( requires Docker running )","allowNo":false,"exclusive":["skip-actions"]},"serve":{"name":"serve","type":"boolean","description":"[default: true] Start frontend server (experimental)","allowNo":true},"skip-actions":{"name":"skip-actions","type":"boolean","description":"[deprecated] Please use --no-actions","allowNo":false,"exclusive":["local"]},"actions":{"name":"actions","type":"boolean","description":"[default: true] Run actions, defaults to true, to skip actions use --no-actions","allowNo":true,"exclusive":["local"]},"open":{"name":"open","type":"boolean","description":"Open the default web browser after a successful run, only valid if your app has a front-end","allowNo":false},"extension":{"name":"extension","type":"option","char":"e","description":"Run only a specific extension, this flag can only be specified once","multiple":false}},"args":[]},"app:test":{"id":"app:test","description":"Run tests for an Adobe I/O App\nIf no flags are specified, by default only unit-tests are run.\n\nFor the --action flag, it tries a substring search on the 'package-name/action-name' pair for an action.\nFor the --extension flag, it tries a substring search on the 'extension-name' only.\nIf the extension has a hook called 'test' in its 'ext.config.yaml', the script specified will be run instead.\n\n","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"extension":{"name":"extension","type":"option","char":"e","description":"the extension(s) to test","multiple":true,"exclusive":["action"]},"action":{"name":"action","type":"option","char":"a","description":"the action(s) to test","multiple":true,"exclusive":["extension"]},"all":{"name":"all","type":"boolean","description":"run both unit and e2e tests","allowNo":false},"e2e":{"name":"e2e","type":"boolean","description":"run e2e tests","allowNo":false},"unit":{"name":"unit","type":"boolean","description":"run unit tests","allowNo":false}},"args":[]},"app:undeploy":{"id":"app:undeploy","description":"Undeploys an Adobe I/O App\n","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"skip-static":{"name":"skip-static","type":"boolean","description":"[deprecated] Please use --no-web-assets","allowNo":false},"skip-web-assets":{"name":"skip-web-assets","type":"boolean","description":"[deprecated] Please use --no-web-assets","allowNo":false},"skip-actions":{"name":"skip-actions","type":"boolean","description":"[deprecated] Please use --no-actions","allowNo":false},"actions":{"name":"actions","type":"boolean","description":"[default: true] Undeploy actions if any","allowNo":true},"web-assets":{"name":"web-assets","type":"boolean","description":"[default: true] Undeploy web-assets if any","allowNo":true},"extension":{"name":"extension","type":"option","char":"e","description":"Undeploy only a specific extension, the flags can be specified multiple times","multiple":true},"unpublish":{"name":"unpublish","type":"boolean","description":"[default: true] Unpublish selected extension(s) from Exchange","allowNo":true},"force-unpublish":{"name":"force-unpublish","type":"boolean","description":"Force unpublish extension(s) from Exchange, will delete all extension points","allowNo":false,"exclusive":["unpublish"]}},"args":[]},"app:use":{"id":"app:use","description":"Import an Adobe Developer Console configuration file.\n\nIf the optional configuration file is not set, this command will retrieve the console org, project, and workspace settings from the global config.\n\nTo set these global config values, see the help text for 'aio console --help'.\n\nTo download the configuration file for your project, select the 'Download' button in the toolbar of your project's page in https://console.adobe.io\n","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"overwrite":{"name":"overwrite","type":"boolean","description":"Overwrite any .aio and .env files during import of the Adobe Developer Console configuration file","allowNo":false,"exclusive":["merge"]},"merge":{"name":"merge","type":"boolean","description":"Merge any .aio and .env files during import of the Adobe Developer Console configuration file","allowNo":false,"exclusive":["overwrite"]},"global":{"name":"global","type":"boolean","char":"g","description":"Use the global Adobe Developer Console Org / Project / Workspace configuration, which can be set via `aio console` commands","allowNo":false,"exclusive":["workspace"]},"workspace":{"name":"workspace","type":"option","char":"w","description":"Specify the Adobe Developer Console Workspace name or Workspace id to import the configuration from","multiple":false,"exclusive":["global","workspace-name"],"default":""},"confirm-new-workspace":{"name":"confirm-new-workspace","type":"boolean","description":"Skip and confirm prompt for creating a new workspace","allowNo":false},"workspace-name":{"name":"workspace-name","type":"option","char":"w","description":"[DEPRECATED]: please use --workspace instead","multiple":false,"exclusive":["global","workspace"],"default":""},"no-service-sync":{"name":"no-service-sync","type":"boolean","description":"Skip the Service sync prompt and do not attach current Service subscriptions to the new Workspace","allowNo":false,"exclusive":["confirm-service-sync"]},"confirm-service-sync":{"name":"confirm-service-sync","type":"boolean","description":"Skip the Service sync prompt and overwrite Service subscriptions in the new Workspace with current subscriptions","allowNo":false,"exclusive":["no-service-sync"]},"no-input":{"name":"no-input","type":"boolean","description":"Skip user prompts by setting --no-service-sync and --merge. Requires one of config_file_path or --global or --workspace","allowNo":false}},"args":[{"name":"config_file_path","description":"path to an Adobe I/O Developer Console configuration file","required":false}]},"app:add:action":{"id":"app:add:action","description":"Add new actions\n","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:add:actions"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"skip-install":{"name":"skip-install","type":"boolean","char":"s","description":"[deprecated] Please use --no-install","allowNo":false},"install":{"name":"install","type":"boolean","description":"[default: true] Run npm installation after files are created","allowNo":true},"yes":{"name":"yes","type":"boolean","char":"y","description":"Skip questions, and use all default values","allowNo":false},"extension":{"name":"extension","type":"option","char":"e","description":"Add actions to a specific extension","multiple":false}},"args":[]},"app:add:ci":{"id":"app:add:ci","description":"Add CI files\n","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]},"app:add:event":{"id":"app:add:event","description":"Add a new Adobe I/O Events action\n","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:add:events"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"skip-install":{"name":"skip-install","type":"boolean","char":"s","description":"[deprecated] Please use --no-install","allowNo":false},"install":{"name":"install","type":"boolean","description":"[default: true] Run npm installation after files are created","allowNo":true},"yes":{"name":"yes","type":"boolean","char":"y","description":"Skip questions, and use all default values","allowNo":false},"extension":{"name":"extension","type":"option","char":"e","description":"Add actions to a specific extension","multiple":false}},"args":[]},"app:add:extension":{"id":"app:add:extension","description":"Add new extensions or a standalone application to the project\n","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:add:ext","app:add:extensions"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"skip-install":{"name":"skip-install","type":"boolean","char":"s","description":"[deprecated] Please use --no-install","allowNo":false},"install":{"name":"install","type":"boolean","description":"[default: true] Run npm installation after files are created","allowNo":true},"yes":{"name":"yes","type":"boolean","char":"y","description":"Skip questions, and use all default values","allowNo":false},"extension":{"name":"extension","type":"option","char":"e","description":"Specify extensions to add, skips selection prompt","multiple":true}},"args":[]},"app:add":{"id":"app:add","description":"Add a new component to an existing Adobe I/O App","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]},"app:add:service":{"id":"app:add:service","description":"Subscribe to Services in the current Workspace\n","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:add:services"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]},"app:add:web-assets":{"id":"app:add:web-assets","description":"Add web assets support\n","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"skip-install":{"name":"skip-install","type":"boolean","char":"s","description":"[deprecated] Please use --no-install","allowNo":false},"install":{"name":"install","type":"boolean","description":"[default: true] Run npm installation after files are created","allowNo":true},"yes":{"name":"yes","type":"boolean","char":"y","description":"Skip questions, and use all default values","allowNo":false},"extension":{"name":"extension","type":"option","char":"e","description":"Add web-assets to a specific extension","multiple":false}},"args":[]},"app:config":{"id":"app:config","description":"Manage app config","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:config","app:config"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]},"app:delete:action":{"id":"app:delete:action","description":"Delete existing actions\n","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:delete:actions"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"yes":{"name":"yes","type":"boolean","char":"y","description":"Skip questions, and use all default values","allowNo":false}},"args":[{"name":"action-name","description":"Action `pkg/name` to delete, you can specify multiple actions via a comma separated list","required":false,"default":""}]},"app:delete:ci":{"id":"app:delete:ci","description":"Delete existing CI files\n","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"yes":{"name":"yes","type":"boolean","char":"y","description":"Skip questions, and use all default values","allowNo":false}},"args":[]},"app:delete:event":{"id":"app:delete:event","description":"Delete existing Adobe I/O Events actions\n","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:delete:events"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"yes":{"name":"yes","type":"boolean","char":"y","description":"Skip questions, and use all default values","allowNo":false}},"args":[{"name":"event-action-name","description":"Action `pkg/name` to delete, you can specify multiple actions via a comma separated list","required":false}]},"app:delete:extension":{"id":"app:delete:extension","description":"Delete existing extensions\n","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:delete:ext","app:delete:extensions"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"yes":{"name":"yes","type":"boolean","char":"y","description":"Skip questions, and use all default values","allowNo":false},"skip-install":{"name":"skip-install","type":"boolean","description":"Skip npm installation after files are created","allowNo":false},"extension":{"name":"extension","type":"option","char":"e","description":"Specify extensions to delete, skips selection prompt","multiple":true}},"args":[]},"app:delete":{"id":"app:delete","description":"Delete a component from an existing Adobe I/O App","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]},"app:delete:service":{"id":"app:delete:service","description":"Delete Services in the current Workspace\n","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:delete:services"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]},"app:delete:web-assets":{"id":"app:delete:web-assets","description":"Delete existing web assets\n","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"yes":{"name":"yes","type":"boolean","char":"y","description":"Skip questions, and use all default values","allowNo":false}},"args":[]},"app:list:extension-points":{"id":"app:list:extension-points","description":"List all extension points for the selected org\n","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:list:ext-points","app:list:extension-points"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","description":"Output json","allowNo":false},"yml":{"name":"yml","type":"boolean","char":"y","description":"Output yml","allowNo":false}},"args":[]},"app:list:extension":{"id":"app:list:extension","description":"List implemented extensions\n","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:list:ext","app:list:extensions"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","description":"Output json","allowNo":false},"yml":{"name":"yml","type":"boolean","char":"y","description":"Output yml","allowNo":false}},"args":[]},"app:list":{"id":"app:list","description":"List components for Adobe I/O App","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]},"app:config:get":{"id":"app:config:get","description":"Get app config","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:config:get"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]},"app:config:get:log-forwarding":{"id":"app:config:get:log-forwarding","description":"Get log forwarding destination configuration","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:config:get:log-forwarding","app:config:get:lf"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]},"app:config:set":{"id":"app:config:set","description":"Set app config","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:config:set"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]},"app:config:set:log-forwarding":{"id":"app:config:set:log-forwarding","description":"Set log forwarding destination configuration","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:config:set:log-forwarding","app:config:set:lf"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]},"app:config:get:log-forwarding:errors":{"id":"app:config:get:log-forwarding:errors","description":"Get log forwarding errors","strict":true,"pluginName":"@adobe/aio-cli-plugin-app","pluginAlias":"@adobe/aio-cli-plugin-app","pluginType":"core","aliases":["app:config:get:log-forwarding:errors","app:config:get:lf:errors"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"version":{"name":"version","type":"boolean","description":"Show version","allowNo":false}},"args":[]}}}
|
package/package.json
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/aio-cli-plugin-app",
|
|
3
3
|
"description": "Create, Build and Deploy Adobe I/O Applications",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "9.1.0",
|
|
5
5
|
"author": "Adobe Inc.",
|
|
6
6
|
"bugs": "https://github.com/adobe/aio-cli-plugin-app/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@adobe/aio-cli-lib-app-config": "^0.
|
|
9
|
-
"@adobe/aio-cli-lib-console": "^
|
|
10
|
-
"@adobe/aio-lib-core-config": "^
|
|
11
|
-
"@adobe/aio-lib-core-logging": "^
|
|
12
|
-
"@adobe/aio-lib-core-networking": "^
|
|
13
|
-
"@adobe/aio-lib-env": "^
|
|
14
|
-
"@adobe/aio-lib-ims": "^
|
|
15
|
-
"@adobe/aio-lib-runtime": "^
|
|
16
|
-
"@adobe/aio-lib-web": "^
|
|
17
|
-
"@adobe/generator-aio-app": "^
|
|
18
|
-
"@oclif/
|
|
19
|
-
"@
|
|
20
|
-
"@
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"chalk": "^4.0.0",
|
|
8
|
+
"@adobe/aio-cli-lib-app-config": "^1.0.0",
|
|
9
|
+
"@adobe/aio-cli-lib-console": "^4.0.0",
|
|
10
|
+
"@adobe/aio-lib-core-config": "^3.0.0",
|
|
11
|
+
"@adobe/aio-lib-core-logging": "^2.0.0",
|
|
12
|
+
"@adobe/aio-lib-core-networking": "^3.0.0",
|
|
13
|
+
"@adobe/aio-lib-env": "^2.0.0",
|
|
14
|
+
"@adobe/aio-lib-ims": "^6.0.0",
|
|
15
|
+
"@adobe/aio-lib-runtime": "^5.0.0",
|
|
16
|
+
"@adobe/aio-lib-web": "^6.0.1",
|
|
17
|
+
"@adobe/generator-aio-app": "^4.0.0",
|
|
18
|
+
"@oclif/core": "^1.15.0",
|
|
19
|
+
"@parcel/core": "^2.7.0",
|
|
20
|
+
"@parcel/reporter-cli": "^2.7.0",
|
|
21
|
+
"ajv": "^6",
|
|
22
|
+
"chalk": "^4",
|
|
24
23
|
"chokidar": "^3.5.2",
|
|
25
|
-
"cli-ux": "^5.4.5",
|
|
26
24
|
"debug": "^4.1.1",
|
|
27
25
|
"dedent-js": "^1.0.1",
|
|
28
|
-
"dotenv": "^
|
|
29
|
-
"execa": "^
|
|
30
|
-
"fs-extra": "^
|
|
31
|
-
"get-port": "^5
|
|
26
|
+
"dotenv": "^16",
|
|
27
|
+
"execa": "^5.0.0",
|
|
28
|
+
"fs-extra": "^10",
|
|
29
|
+
"get-port": "^5",
|
|
32
30
|
"hjson": "^3.2.1",
|
|
33
|
-
"http-terminator": "^
|
|
34
|
-
"
|
|
35
|
-
"
|
|
31
|
+
"http-terminator": "^3",
|
|
32
|
+
"hyperlinker": "^1.0.0",
|
|
33
|
+
"inquirer": "^8",
|
|
34
|
+
"js-yaml": "^4",
|
|
36
35
|
"lodash.clonedeep": "^4.5.0",
|
|
37
|
-
"node-fetch": "^2.6.
|
|
38
|
-
"ora": "^
|
|
39
|
-
"pure-http": "^
|
|
36
|
+
"node-fetch": "^2.6.7",
|
|
37
|
+
"ora": "^5",
|
|
38
|
+
"pure-http": "^3",
|
|
40
39
|
"serve-static": "^1.14.1",
|
|
41
|
-
"upath": "^
|
|
40
|
+
"upath": "^2",
|
|
42
41
|
"which": "^2.0.1",
|
|
43
42
|
"yeoman-environment": "^3.2.0"
|
|
44
43
|
},
|
|
45
44
|
"devDependencies": {
|
|
46
45
|
"@adobe/aio-lib-test-proxy": "^1.0.0",
|
|
47
|
-
"@adobe/eslint-config-aio-lib-config": "^
|
|
48
|
-
"@
|
|
49
|
-
"@types/jest": "^26.0.10",
|
|
46
|
+
"@adobe/eslint-config-aio-lib-config": "^2.0.0",
|
|
47
|
+
"@types/jest": "^28",
|
|
50
48
|
"babel-runtime": "^6.26.0",
|
|
51
49
|
"codecov": "^3.6.1",
|
|
50
|
+
"core-js": "^3",
|
|
52
51
|
"eol": "^0.9.1",
|
|
53
|
-
"eslint": "^
|
|
54
|
-
"eslint-config-standard": "^
|
|
55
|
-
"eslint-plugin-import": "^2.
|
|
56
|
-
"eslint-plugin-jest": "^23
|
|
57
|
-
"eslint-plugin-jsdoc": "^37
|
|
52
|
+
"eslint": "^8.22.0",
|
|
53
|
+
"eslint-config-standard": "^17",
|
|
54
|
+
"eslint-plugin-import": "^2.26.0",
|
|
55
|
+
"eslint-plugin-jest": "^23",
|
|
56
|
+
"eslint-plugin-jsdoc": "^37",
|
|
57
|
+
"eslint-plugin-n": "^15.2.5",
|
|
58
58
|
"eslint-plugin-node": "^11.1.0",
|
|
59
|
-
"eslint-plugin-promise": "^
|
|
60
|
-
"
|
|
61
|
-
"jest": "^26.6.3",
|
|
59
|
+
"eslint-plugin-promise": "^6.0.0",
|
|
60
|
+
"jest": "^28",
|
|
62
61
|
"jest-plugin-fs": "^2.9.0",
|
|
62
|
+
"oclif": "^3.0.1",
|
|
63
63
|
"stdout-stderr": "^0.1.9",
|
|
64
|
-
"typescript": "^4.
|
|
64
|
+
"typescript": "^4.7.4"
|
|
65
65
|
},
|
|
66
66
|
"engineStrict": true,
|
|
67
67
|
"engines": {
|
|
68
|
-
"node": "
|
|
68
|
+
"node": "^14.18 || ^16.13 || >=18"
|
|
69
69
|
},
|
|
70
70
|
"files": [
|
|
71
71
|
"bin/run",
|
|
@@ -83,19 +83,18 @@
|
|
|
83
83
|
"oclif": {
|
|
84
84
|
"commands": "./src/commands",
|
|
85
85
|
"bin": "aio",
|
|
86
|
-
"
|
|
87
|
-
"@oclif/plugin-help"
|
|
88
|
-
],
|
|
86
|
+
"topicSeparator": ":",
|
|
89
87
|
"repositoryPrefix": "<%- repo %>/blob/<%- version %>/<%- commandPath %>"
|
|
90
88
|
},
|
|
91
89
|
"repository": "adobe/aio-cli-plugin-app",
|
|
92
90
|
"scripts": {
|
|
93
91
|
"postpack": "rm -f oclif.manifest.json",
|
|
94
92
|
"lint": "eslint src test",
|
|
95
|
-
"prepack": "oclif
|
|
93
|
+
"prepack": "oclif manifest && oclif readme",
|
|
96
94
|
"test": "npm run unit-tests && npm run lint",
|
|
97
95
|
"unit-tests": "jest -c jest.config.js",
|
|
98
|
-
"version": "oclif
|
|
96
|
+
"version": "oclif readme && git add README.md",
|
|
97
|
+
"update-openwhisk-runtimes": "node bin/openwhisk-standalone-config/get-runtimes.js > bin/openwhisk-standalone-config/runtimes.json"
|
|
99
98
|
},
|
|
100
99
|
"bin": {
|
|
101
100
|
"aio-next": "./bin/run"
|
|
@@ -128,13 +128,15 @@
|
|
|
128
128
|
"oauthsinglepageapp"
|
|
129
129
|
]
|
|
130
130
|
},
|
|
131
|
-
"
|
|
132
|
-
"
|
|
131
|
+
"jwt": { "$ref": "#/definitions/jwt" },
|
|
132
|
+
"api_key": { "$ref": "#/definitions/api_key" },
|
|
133
|
+
"oauth2": { "$ref": "#/definitions/oauth2" }
|
|
133
134
|
},
|
|
134
135
|
"required": [ "id", "name" ],
|
|
135
136
|
"oneOf": [
|
|
136
137
|
{ "required": ["oauth2"] },
|
|
137
|
-
{ "required": ["jwt"] }
|
|
138
|
+
{ "required": ["jwt"] },
|
|
139
|
+
{ "required": ["api_key"] }
|
|
138
140
|
]
|
|
139
141
|
},
|
|
140
142
|
"service": {
|
|
@@ -172,6 +174,13 @@
|
|
|
172
174
|
},
|
|
173
175
|
"required": [ "client_id", "client_secret", "redirect_uri", "defaultRedirectUri" ]
|
|
174
176
|
},
|
|
177
|
+
"api_key": {
|
|
178
|
+
"type": "object",
|
|
179
|
+
"properties": {
|
|
180
|
+
"client_id": { "type": "string" }
|
|
181
|
+
},
|
|
182
|
+
"required": ["client_id"]
|
|
183
|
+
},
|
|
175
184
|
"jwt": {
|
|
176
185
|
"type": "object",
|
|
177
186
|
"properties": {
|
package/src/AddCommand.js
CHANGED
|
@@ -10,7 +10,7 @@ governing permissions and limitations under the License.
|
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
const BaseCommand = require('./BaseCommand')
|
|
13
|
-
const {
|
|
13
|
+
const { Flags } = require('@oclif/core')
|
|
14
14
|
const { installPackages } = require('./lib/app-helper')
|
|
15
15
|
|
|
16
16
|
class AddCommand extends BaseCommand {
|
|
@@ -25,12 +25,12 @@ class AddCommand extends BaseCommand {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
AddCommand.flags = {
|
|
28
|
-
'skip-install':
|
|
28
|
+
'skip-install': Flags.boolean({
|
|
29
29
|
description: '[deprecated] Please use --no-install',
|
|
30
30
|
char: 's',
|
|
31
31
|
default: false
|
|
32
32
|
}),
|
|
33
|
-
install:
|
|
33
|
+
install: Flags.boolean({
|
|
34
34
|
description: '[default: true] Run npm installation after files are created',
|
|
35
35
|
default: true,
|
|
36
36
|
allowNo: true
|
package/src/BaseCommand.js
CHANGED
|
@@ -9,7 +9,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
|
|
|
9
9
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
const { Command,
|
|
12
|
+
const { Command, Flags } = require('@oclif/core')
|
|
13
13
|
const chalk = require('chalk')
|
|
14
14
|
const coreConfig = require('@adobe/aio-lib-core-config')
|
|
15
15
|
const DEFAULT_LAUNCH_PREFIX = 'https://experience.adobe.com/?devMode=true#/custom-apps/?localDevUrl='
|
|
@@ -29,14 +29,13 @@ const {
|
|
|
29
29
|
class BaseCommand extends Command {
|
|
30
30
|
// default error handler for app commands
|
|
31
31
|
async catch (error) {
|
|
32
|
-
const { flags } = this.parse(this.prototype)
|
|
32
|
+
const { flags } = await this.parse(this.prototype)
|
|
33
33
|
aioLogger.error(error) // debug log
|
|
34
34
|
this.handleError(error, flags.verbose)
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
handleError (error, verbose) {
|
|
38
38
|
const errorMessages = ['no such file or directory', 'find configuration']
|
|
39
|
-
|
|
40
39
|
if (errorMessages.find(msg => error.message.includes(msg))) {
|
|
41
40
|
const errorList = [
|
|
42
41
|
'Not a valid application root folder.',
|
|
@@ -49,7 +48,7 @@ class BaseCommand extends Command {
|
|
|
49
48
|
}
|
|
50
49
|
|
|
51
50
|
async init () {
|
|
52
|
-
super.init()
|
|
51
|
+
await super.init()
|
|
53
52
|
// setup a prompt that outputs to stderr
|
|
54
53
|
this.prompt = inquirer.createPromptModule({ output: process.stderr })
|
|
55
54
|
}
|
|
@@ -169,8 +168,8 @@ class BaseCommand extends Command {
|
|
|
169
168
|
}
|
|
170
169
|
|
|
171
170
|
BaseCommand.flags = {
|
|
172
|
-
verbose:
|
|
173
|
-
version:
|
|
171
|
+
verbose: Flags.boolean({ char: 'v', description: 'Verbose output' }),
|
|
172
|
+
version: Flags.boolean({ description: 'Show version' })
|
|
174
173
|
}
|
|
175
174
|
|
|
176
175
|
BaseCommand.args = []
|