Presenting the Adobe I/O Runtime Plugin

The Adobe I/O Extensible Command Line Interface (CLI), aio-cli, is an extensible cli based on Open CLI Framework (OCLIF), and we’re now announcing the Runtime plugin for aio-cli, aio-cli-plugin-runtime. This can be used to create, run, and manage Adobe Runtime serverless entities like Packages, Actions, Triggers, Rules, APIs, Activations, and Property. Each of these entities has subcommands like create , invoke etc.

The runtime plugin commands can be used with the following template:

aio runtime <command> <subcommand> <arguments> <flags>

Installation

  • Install the aio cli
npm install -g @adobe/aio-cli
  • Install the aio cli runtime plugin for aio-cli
aio plugins install @adobe/aio-cli-plugin-runtime

Usage

  • The available commands can be listed by executing the following:
aio runtime
  • Creating a runtime action:
aio runtime action create <action name> <path to js or zip file>
  • Retrieve an action:
aio runtime action get <action name>
  • Invoke an action:
aio runtime action invoke <action name> <optional parameters>

The possible arguments and flags for each command can be found out by using the --help flag.

  • Deploying a manifest file: This command deploys the contents of the manifest file to the server. If no path to manifest file is provided, the command assumes there is a manifest.yaml or manifest.yml file in the current working directory.
aio runtime deploy -m <path to manifest.yaml file>
  • Undeploy a manifest file: This command deletes the contents of the package listed in the manifest file. If no path to manifest file is provided, the command assumes there is a manifest.yaml or manifest.yml file in the current working directory.
aio runtime deploy undeploy -m <path to manifest.yaml file>

Demo

This demo video shows some examples of using the aio cli plugin runtime.

Work in progress

The aio cli plugin runtime is a new plugin and is actively being developed. We are capturing features we would like to add to the plugin, and invite you to review those on the Feature Matrix.

Contact us

Your feedback is graciously accepted and appreciated!

Please submit your pull requests and issues here.