Create, Build and Deploy Adobe I/O Applications
npm install @adobe/aio-cli-plugin-appCreate, Build and Deploy Adobe I/O Apps



!Node.js CI


* aio-cli-plugin-app
* Usage
* Commands
``sh-session`
$ aio plugins:install -g @adobe/aio-cli-plugin-app
$ # OR
$ aio discover -i
$ aio app --help
* aio app
* aio app add
* aio app add action
* aio app add ci
* aio app add event
* aio app add extension
* aio app add service
* aio app add web-assets
* aio app build
* aio app clean
* [aio app create [PATH]](#aio-app-create-path)aio app delete
* aio app delete action [ACTION-NAME]
* [](#aio-app-delete-action-action-name)aio app delete ci
* aio app delete extension
* aio app delete service
* aio app delete web-assets
* aio app deploy
* aio app get-url [ACTION]
* [](#aio-app-get-url-action)aio app info
* aio app init [PATH]
* [](#aio-app-init-path)aio app install PATH
* aio app list
* aio app list extension
* aio app logs
* aio app pack [PATH]
* [](#aio-app-pack-path)aio app run
* aio app test
* aio app undeploy
* aio app use [CONFIG_FILE_PATH]
* [](#aio-app-use-config_file_path)
Create, run, test, and deploy Adobe I/O Apps
`
USAGE
$ aio app [-v] [--version] [--config-validation]
FLAGS
-v, --verbose Verbose output
--[no-]config-validation [default: true] Validate the app configuration file(s) before continuing.
--version Show version
DESCRIPTION
Create, run, test, and deploy Adobe I/O Apps
`
_See code: src/commands/app/index.js_
Add a new component to an existing Adobe I/O App
`
USAGE
$ aio app add [-v] [--version] [--config-validation]
FLAGS
-v, --verbose Verbose output
--[no-]config-validation [default: true] Validate the app configuration file(s) before continuing.
--version Show version
DESCRIPTION
Add a new component to an existing Adobe I/O App
`
_See code: src/commands/app/add/index.js_
Add new actions
`
USAGE
$ aio app add action [-v] [--version] [--config-validation] [--install] [-y] [-e
FLAGS
-e, --extension=
-v, --verbose Verbose output
-y, --yes Skip questions, and use all default values
--[no-]config-validation [default: true] Validate the app configuration file(s) before continuing.
--[no-]install [default: true] Run npm installation after files are created
--version Show version
DESCRIPTION
Add new actions
ALIASES
$ aio app add actions
`
_See code: src/commands/app/add/action.js_
Add CI files
`
USAGE
$ aio app add ci [-v] [--version] [--config-validation]
FLAGS
-v, --verbose Verbose output
--[no-]config-validation [default: true] Validate the app configuration file(s) before continuing.
--version Show version
DESCRIPTION
Add CI files
`
_See code: src/commands/app/add/ci.js_
Add a new Adobe I/O Events action
`
USAGE
$ aio app add event [-v] [--version] [--config-validation] [--install] [-y] [-e
FLAGS
-e, --extension=
-v, --verbose Verbose output
-y, --yes Skip questions, and use all default values
--[no-]config-validation [default: true] Validate the app configuration file(s) before continuing.
--[no-]install [default: true] Run npm installation after files are created
--version Show version
DESCRIPTION
Add a new Adobe I/O Events action
ALIASES
$ aio app add events
`
_See code: src/commands/app/add/event.js_
Add new extensions to the project
`
USAGE
$ aio app add extension [-v] [--version] [--config-validation] [--install] [-y] [-e
FLAGS
-e, --extension=
-v, --verbose Verbose output
-y, --yes Skip questions, and use all default values
--[no-]config-validation [default: true] Validate the app configuration file(s) before continuing.
--[no-]install [default: true] Run npm installation after files are created
--version Show version
DESCRIPTION
Add new extensions to the project
ALIASES
$ aio app add ext
$ aio app add extensions
`
_See code: src/commands/app/add/extension.js_
Subscribe to Services in the current Workspace
`
USAGE
$ aio app add service [-v] [--version] [--config-validation] [--use-jwt]
FLAGS
-v, --verbose Verbose output
--[no-]config-validation [default: true] Validate the app configuration file(s) before continuing.
--use-jwt if the config has both jwt and OAuth Server to Server Credentials (while migrating),
prefer the JWT credentials
--version Show version
DESCRIPTION
Subscribe to Services in the current Workspace
ALIASES
$ aio app add services
`
_See code: src/commands/app/add/service.js_
Add web assets support
`
USAGE
$ aio app add web-assets [-v] [--version] [--config-validation] [--install] [-y] [-e
FLAGS
-e, --extension=
-v, --verbose Verbose output
-y, --yes Skip questions, and use all default values
--[no-]config-validation [default: true] Validate the app configuration file(s) before continuing.
--[no-]install [default: true] Run npm installation after files are created
--version Show version
DESCRIPTION
Add web assets support
`
_See code: src/commands/app/add/web-assets.js_
Build an Adobe I/O App
`
USAGE
$ aio app build [-v] [--version] [--config-validation] [--actions | -a
[--force-build] [--content-hash] [--web-optimize] [-e
FLAGS
-a, --action=
--no-publish
-e, --extension=
-v, --verbose Verbose output
--[no-]actions [default: true] Build actions if any
--[no-]config-validation [default: true] Validate the app configuration file(s) before continuing.
--[no-]content-hash [default: true] Enable content hashing in browser code
--[no-]force-build [default: true] Force a build even if one already exists
--version Show version
--[no-]web-assets [default: true] Build web-assets if any
--web-optimize [default: false] Enable optimization (minification) of js/css/html
DESCRIPTION
Build an Adobe I/O App
Build the actions and web assets for an Adobe I/O App. Build is optimized to only build what is necessary.
Use the --force-build flag to force a build even if one already exists.
`
_See code: src/commands/app/build.js_
Remove all build artifacts from the local machine
`
USAGE
$ aio app clean [-v] [--version] [--config-validation]
FLAGS
-v, --verbose Verbose output
--[no-]config-validation [default: true] Validate the app configuration file(s) before continuing.
--version Show version
DESCRIPTION
Remove all build artifacts from the local machine
This command completely cleans all build artifacts from the dist directory including:
- Action build files
- Web assets (both production and development)
- Build tracking files
- Deployment tracking files
Note that this will require a full rebuild on your next build command.
`
_See code: src/commands/app/clean.js_
Create a new Adobe I/O App with default parameters
`
USAGE
$ aio app create [PATH] [-v] [--version] [--config-validation] [-i
ARGUMENTS
[PATH] [default: .] Path to the app directory
FLAGS
-i, --import=
-v, --verbose Verbose output
--[no-]config-validation [default: true] Validate the app configuration file(s) before continuing.
--version Show version
DESCRIPTION
Create a new Adobe I/O App with default parameters
`
_See code: src/commands/app/create.js_
Delete a component from an existing Adobe I/O App
`
USAGE
$ aio app delete [-v] [--version] [--config-validation]
FLAGS
-v, --verbose Verbose output
--[no-]config-validation [default: true] Validate the app configuration file(s) before continuing.
--version Show version
DESCRIPTION
Delete a component from an existing Adobe I/O App
`
_See code: src/commands/app/delete/index.js_
Delete existing actions
`
USAGE
$ aio app delete action [ACTION-NAME] [-v] [--version] [--config-validation] [-y]
ARGUMENTS
[ACTION-NAME] Action pkg/name to delete, you can specify multiple actions via a comma separated list
FLAGS
-v, --verbose Verbose output
-y, --yes Skip questions, and use all default values
--[no-]config-validation [default: true] Validate the app configuration file(s) before continuing.
--version Show version
DESCRIPTION
Delete existing actions
ALIASES
$ aio app delete actions
`
_See code: src/commands/app/delete/action.js_
Delete existing CI files
`
USAGE
$ aio app delete ci [-v] [--version] [--config-validation] [-y]
FLAGS
-v, --verbose Verbose output
-y, --yes Skip questions, and use all default values
--[no-]config-validation [default: true] Validate the app configuration file(s) before continuing.
--version Show version
DESCRIPTION
Delete existing CI files
`
_See code: src/commands/app/delete/ci.js_
Delete existing extensions
`
USAGE
$ aio app delete extension [-v] [--version] [--config-validation] [-y] [--install] [-e
FLAGS
-e, --extension=
-v, --verbose Verbose output
-y, --yes Skip questions, and use all default values
--[no-]config-validation [default: true] Validate the app configuration file(s) before continuing.
--[no-]install [default: true] Run npm installation after files are created
--version Show version
DESCRIPTION
Delete existing extensions
ALIASES
$ aio app delete ext
$ aio app delete extensions
`
_See code: src/commands/app/delete/extension.js_
Delete Services in the current Workspace
`
USAGE
$ aio app delete service [-v] [--version] [--config-validation] [--use-jwt]
FLAGS
-v, --verbose Verbose output
--[no-]config-validation [default: true] Validate the app configuration file(s) before continuing.
--use-jwt if the config has both jwt and OAuth Server to Server Credentials (while migrating),
prefer the JWT credentials
--version Show version
DESCRIPTION
Delete Services in the current Workspace
ALIASES
$ aio app delete services
`
_See code: src/commands/app/delete/service.js_
Delete existing web assets
`
USAGE
$ aio app delete web-assets [-v] [--version] [--config-validation] [-y]
FLAGS
-v, --verbose Verbose output
-y, --yes Skip questions, and use all default values
--[no-]config-validation [default: true] Validate the app configuration file(s) before continuing.
--version Show version
DESCRIPTION
Delete existing web assets
`
_See code: src/commands/app/delete/web-assets.js_
Deploy an Adobe I/O App
`
USAGE
$ aio app deploy [-v] [--version] [--config-validation] [--actions | -a
[--force-build | ] [--content-hash] [--web-optimize] [-e
--publish | --force-publish] [--force-events | | ] [--log-forwarding-update]
FLAGS
-a, --action=
set --no-publish
-e, --extension=
-v, --verbose Verbose output
--[no-]actions [default: true] Deploy actions if any
--[no-]build [default: true] Run the build phase before deployment
--[no-]config-validation [default: true] Validate the app configuration file(s) before continuing.
--[no-]content-hash [default: true] Enable content hashing in browser code
--[no-]force-build [default: true] Force a build even if one already exists
--force-deploy [default: false] Force deploy changes, regardless of production Workspace being
published in Exchange.
--[no-]force-events [default: false] Force event registrations and delete any registrations not part of
the config file
--force-publish [default: false] Force publish extension(s) to Exchange, delete previously published
extension points
--[no-]log-forwarding-update [default: true] Update log forwarding configuration on server
--open Open the default web browser after a successful deploy, only valid if your app has a
front-end
--[no-]publish [default: true] Publish extension(s) to Exchange
--version Show version
--[no-]web-assets [default: true] Deploy web-assets if any
--web-optimize [default: false] Enable optimization (minification) of web js/css/html
DESCRIPTION
Deploy an Adobe I/O App
Deploys the actions and web assets for an Adobe I/O App.
This will also build any changed actions or web assets before deploying.
Use the --force-build flag to force a build even if one already exists.
Deploy is optimized to only deploy what is necessary. Be aware that deploying actions will overwrite any previous
deployments.
Use the --force-deploy flag to force deploy changes, regardless of production Workspace being published in Exchange.
`
_See code: src/commands/app/deploy.js_
Get action URLs
`
USAGE
$ aio app get-url [ACTION] [-v] [--version] [--config-validation] [--cdn] [-j] [-h] [-y]
FLAGS
-h, --hson Output human readable json
-j, --json Output json
-v, --verbose Verbose output
-y, --yml Output yml
--cdn Display CDN based action URLs
--[no-]config-validation [default: true] Validate the app configuration file(s) before continuing.
--version Show version
DESCRIPTION
Get action URLs
`
_See code: src/commands/app/get-url.js_
Display settings/configuration in use by an Adobe I/O App
`
USAGE
$ aio app info [-v] [--version] [--config-validation] [-j | -h | -y] [--mask]
FLAGS
-h, --hson Output human readable json
-j, --json Output json
-v, --verbose Verbose output
-y, --yml Output yml
--[no-]config-validation [default: true] Validate the app configuration file(s) before continuing.
--[no-]mask Hide known private info
--version Show version
DESCRIPTION
Display settings/configuration in use by an Adobe I/O App
`
_See code: src/commands/app/info.js_
Create a new Adobe I/O App
`
USAGE
$ aio app init [PATH] [-v] [--version] [--config-validation] [--install] [-y] [--login] [-e
none|basic|adobe-recommended]
ARGUMENTS
[PATH] [default: .] Path to the app directory
FLAGS
-e, --extension=
-i, --import=
-o, --org=
-p, --project=
-t, --template=
-v, --verbose Verbose output
-w, --workspace=
defaults to Stage
-y, --yes Skip questions, and use all default values
--[no-]config-validation [default: true] Validate the app configuration file(s) before continuing.
--[no-]confirm-new-workspace Prompt to confirm before creating a new workspace
--github-pat=
--[no-]install [default: true] Run npm installation after files are created
--linter=
DESCRIPTION
Create a new Adobe I/O App
`
_See code: src/commands/app/init.js_
This command will support installing apps packaged by 'aio app pack'.
`
USAGE
$ aio app install PATH [-v] [--version] [--config-validation] [--allow-scripts] [-o
ARGUMENTS
PATH Path to the app package to install
FLAGS
-o, --output=
-v, --verbose Verbose output
--[no-]allow-scripts Allow post and preinstall scripts during npm install/npm ci
--[no-]config-validation [default: true] Validate the app configuration file(s) before continuing.
--[no-]tests Run packaged app unit tests (e.g. aio app:test)
--version Show version
DESCRIPTION
This command will support installing apps packaged by 'aio app pack'.
`
_See code: src/commands/app/install.js_
List components for Adobe I/O App
`
USAGE
$ aio app list [-v] [--version] [--config-validation]
FLAGS
-v, --verbose Verbose output
--[no-]config-validation [default: true] Validate the app configuration file(s) before continuing.
--version Show version
DESCRIPTION
List components for Adobe I/O App
`
_See code: src/commands/app/list/index.js_
List implemented extensions
`
USAGE
$ aio app list extension [-v] [--version] [--config-validation] [-j] [-y]
FLAGS
-j, --json Output json
-v, --verbose Verbose output
-y, --yml Output yml
--[no-]config-validation [default: true] Validate the app configuration file(s) before continuing.
--version Show version
DESCRIPTION
List implemented extensions
ALIASES
$ aio app list ext
$ aio app list extensions
`
_See code: src/commands/app/list/extension.js_
Fetch logs for an Adobe I/O App
`
USAGE
$ aio app logs [-v] [--version] [--config-validation] [-l
FLAGS
-a, --action=
-l, --limit=
-o, --poll Fetch logs continuously
-r, --strip strip timestamp information and output first line only
-t, --tail Fetch logs continuously
-v, --verbose Verbose output
-w, --watch Fetch logs continuously
--[no-]config-validation [default: true] Validate the app configuration file(s) before continuing.
--version Show version
DESCRIPTION
Fetch logs for an Adobe I/O App
`
_See code: src/commands/app/logs.js_
This command will support packaging apps for redistribution.
`
USAGE
$ aio app pack [PATH] [-v] [--version] [--config-validation] [--lock-file] [-o
ARGUMENTS
[PATH] [default: .] Path to the app directory to package
FLAGS
-o, --output=
-v, --verbose Verbose output
--[no-]config-validation [default: true] Validate the app configuration file(s) before continuing.
--[no-]lock-file Include the package-lock.json file in the packaged app. When disabled, compatibility
validation is skipped since the provisioner will use npm install instead of npm ci.
--version Show version
DESCRIPTION
This command will support packaging apps for redistribution.
`
_See code: src/commands/app/pack.js_
Run an Adobe I/O App
`
USAGE
$ aio app run [-v] [--version] [--config-validation] [--serve] [--actions] [--open] [-e
FLAGS
-e, --extension=
-v, --verbose Verbose output
--[no-]actions [default: true] Run actions, defaults to true, to skip actions use --no-actions
--[no-]config-validation [default: true] Validate the app configuration file(s) before continuing.
--open Open the default web browser after a successful run, only valid if your app has a
front-end
--[no-]serve [default: true] Start frontend server (experimental)
--version Show version
DESCRIPTION
Run an Adobe I/O App
`
_See code: src/commands/app/run.js_
Run tests for an Adobe I/O App
`
USAGE
$ aio app test [-v] [--version] [--config-validation] [-e
[--unit]
FLAGS
-a, --action=
-e, --extension=
-v, --verbose Verbose output
--all run both unit and e2e tests
--[no-]config-validation [default: true] Validate the app configuration file(s) before continuing.
--e2e run e2e tests
--unit run unit tests
--version Show version
DESCRIPTION
Run tests for an Adobe I/O App
If no flags are specified, by default only unit-tests are run.
For the --action flag, it tries a substring search on the 'package-name/action-name' pair for an action.
For the --extension flag, it tries a substring search on the 'extension-name' only.
If the extension has a hook called 'test' in its 'ext.config.yaml', the script specified will be run instead.
`
_See code: src/commands/app/test.js_
Undeploys an Adobe I/O App
`
USAGE
$ aio app undeploy [-v] [--version] [--config-validation] [--actions] [--events] [--web-assets] [-e
[--force-unpublish | --unpublish]
FLAGS
-e, --extension=
-v, --verbose Verbose output
--[no-]actions [default: true] Undeploy actions if any
--[no-]config-validation [default: true] Validate the app configuration file(s) before continuing.
--[no-]events [default: true] Undeploy (unregister) events if any
--force-unpublish Force unpublish extension(s) from Exchange, will delete all extension points
--[no-]unpublish [default: true] Unpublish selected extension(s) from Exchange
--version Show version
--[no-]web-assets [default: true] Undeploy web-assets if any
DESCRIPTION
Undeploys an Adobe I/O App
`
_See code: src/commands/app/undeploy.js_
Import an Adobe Developer Console configuration file.
`
USAGE
$ aio app use [CONFIG_FILE_PATH] [-v] [--version] [--config-validation] [--overwrite | -m] [-g | -w
ARGUMENTS
[CONFIG_FILE_PATH] path to an Adobe I/O Developer Console configuration file
FLAGS
-g, --global Use the global Adobe Developer Console Org / Project / Workspace configuration,
which can be set via aio console commands
-m, --merge Merge any .aio and .env files during import of the Adobe Developer Console
configuration file
-v, --verbose Verbose output
-w, --workspace=
configuration from
--[no-]config-validation [default: true] Validate the app configuration file(s) before continuing.
--[no-]confirm-new-workspace Prompt to confirm before creating a new workspace
--confirm-service-sync Skip the Service sync prompt and overwrite Service subscriptions in the new
Workspace with current subscriptions
--no-input Skip user prompts by setting --no-service-sync and --merge. Requires one of
config_file_path or --global or --workspace
--no-service-sync Skip the Service sync prompt and do not attach current Service subscriptions to the
new Workspace
--overwrite Overwrite any .aio and .env files during import of the Adobe Developer Console
configuration file
--use-jwt if the config has both jwt and OAuth Server to Server Credentials (while migrating),
prefer the JWT credentials
--version Show version
DESCRIPTION
Import an Adobe Developer Console configuration file.
If the optional configuration file is not set, this command will retrieve the console org, project, and workspace
settings from the global config.
To set these global config values, see the help text for 'aio console --help'.
To download the configuration file for your project, select the 'Download' button in the toolbar of your project's
page in https://developer.adobe.com/console/
``
_See code: src/commands/app/use.js_