Setting Up Adobe I/O CLI for Cloud Manager | AEM Community Blog Seeding | Community
Skip to main content
kautuk_sahni
Community Manager
Community Manager
September 22, 2020

Setting Up Adobe I/O CLI for Cloud Manager | AEM Community Blog Seeding

  • September 22, 2020
  • 2 replies
  • 27877 views

BlogImage.jpg

Setting Up Adobe I/O CLI for Cloud Manager by Adobe Tech Blog

Abstract

If you are an Adobe Managed Service (AMS) customer, this Cloud Manager plugin for Adobe I/O CLI will come in very handy to interact with the same underlying capabilities exposed through the web UI in a fully programmatic fashion. It also enables you with some additional capabilities like setting up pipeline variables, environment variables, cancel running pipelines etc. With the release of Authenticated Performance Testing support in cloud manager, setting up Adobe I/O CLI is a prerequisite in a order to use this feature.

An integration must be created in the Adobe I/O Console which has the Cloud Manager service. This is the layer which handles the authentication.
Below are the step by step instructions on setting up Adobe I/O CLI cloud manager plugin from scratch.

Setting up your workstation
* Install Node.js

Ensure Node.js is installed (Node.js 10.0+) as Adobe I/O CLI is an npm module. Below is how you can install Node.js using Homebrew:
1. Open your Terminal/Command Prompt
2. Execute the command: brew install node
3. Verify Node.js is installed, using the command: node -v
4. Verify npm is installed, using the command: npm -v

For Windows, download and install Node.js from the link directly.
* Install Adobe I/O CLI
$ npm install -g @adobe/aio-cli
$ aio (-v|--version|version)
@adobe/aio-cli/3.7.0 darwin-x64 node-v12.18.0
$ aio --help [COMMAND]
USAGE
$ aio COMMAND
...
The complete list of aio cli commands can be found here.
* Install Cloud Manager plugin for Adobe I/O
$ aio plugins:install @adobe/aio-cli-plugin-cloudmanager
$ aio plugins:update
Setup the Adobe I/O CLI authentication

In order for the Adobe I/O CLI to communicate with Cloud Manager, a Cloud Manager integration must be created in Adobe I/O Console, and credentials must be obtained to successfully authenticate.

Read Full Blog

Setting Up Adobe I/O CLI for Cloud Manager

Q&A

Please use this thread to ask the related questions.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Ankur_Khare
Community Advisor
Community Advisor
February 23, 2021

After following above steps and trying to retrieve the pipeline list using below commnad-

 

aio cloudmanager:list-pipelines

 

I am getting below error-

 

  Error: Cannot generate token because no plugin supports configuration

 

Am i missing anything here?

kautuk_sahni
Community Manager
Community Manager
February 23, 2021

@ankur_khare I have asked the author of this article to assist you.

Kautuk Sahni
Ankur_Khare
Community Advisor
Community Advisor
February 23, 2021

Thanks @kautuk_sahni 

Adobe Employee
March 26, 2021

PFB the screenshot-

 

 


Hi @ankur_khare ,
This message indicates that something is wrong with the config. The tutorial above mentioned outdated keys "jwt-auth". Try using "ims.contexts.aio-cli-plugin-cloudmanager" instead.

 

First, update aio plugins

aio plugins update


Try recreating the config.json with the next values (copy from console.adobe.io)

//config.json
{
  "client_id": "",
  "client_secret": "",
  "technical_account_id": "",
  "technical_account_email":"",
  "ims_org_id": "",
  "meta_scopes": [
    "ent_cloudmgr_sdk"
  ]
}

reinstall the config and private key:

aio config:set ims.contexts.aio-cli-plugin-cloudmanager config.json --file --json
aio config:set ims.contexts.aio-cli-plugin-cloudmanager.private_key private.key --file

Try again listing pipelines:

aio cloudmanager:list-pipelines

 

P.S. Run the command below to verify what you have configured:

aio config:list


More details on the plugin page.