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

Avatar

Avatar

kautuk_sahni

Community Manager

Total Posts

5.8K

Likes

1.0K

Correct Reply

1.1K

Avatar

kautuk_sahni

Community Manager

Total Posts

5.8K

Likes

1.0K

Correct Reply

1.1K
kautuk_sahni
Community Manager

21-09-2020

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.

AEM AEMEBlogSeeding Experience Manager

Replies

Avatar

Avatar

Ankur_Khare

MVP

Avatar

Ankur_Khare

MVP

Ankur_Khare
MVP

23-02-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?

Avatar

Avatar

kautuk_sahni

Community Manager

Total Posts

5.8K

Likes

1.0K

Correct Reply

1.1K

Avatar

kautuk_sahni

Community Manager

Total Posts

5.8K

Likes

1.0K

Correct Reply

1.1K
kautuk_sahni
Community Manager

23-02-2021

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

Avatar

Avatar

Ankur_Khare

MVP

Avatar

Ankur_Khare

MVP

Ankur_Khare
MVP

23-02-2021

Thanks @kautuk_sahni 

Avatar

Avatar

varunnohria

Avatar

varunnohria

varunnohria

23-02-2021

Hi Ankur,

 

Please check in admin console if your API credentials technical account email id has the right product profiles assigned. Also try adding a -p parameter in the command.

 

aio cloudmanager:list-pipelines -p <program id>

Avatar

Avatar

Ankur_Khare

MVP

Avatar

Ankur_Khare

MVP

Ankur_Khare
MVP

23-02-2021

Hi Varun,

 

Yes i have the product profiles assigned and i tried adding the param as well still same error.

Avatar

Avatar

varunnohria

Avatar

varunnohria

varunnohria

23-02-2021

What profiles are assigned to the API account? Is it possible for you to share a screenshot?

Avatar

Avatar

Ankur_Khare

MVP

Avatar

Ankur_Khare

MVP

Ankur_Khare
MVP

23-02-2021

PFB the screenshot-

 

Ankur_Khare_0-1614081788947.png