Expand my Community achievements bar.

Join us in celebrating the outstanding achievement of our AEM Community Member of the Year!
SOLVED

How to store multiple Org IDs, Environment IDs, Program IDs locally for AIO Plugin Deployment?

Avatar

Level 4

Hi Guys,

 

I have 2 cloud environment which require deployments. Trouble is I am not able to toggle the configuration for the 2 Org IDs, 2 Program IDs, 2 Environment IDs.

 

I tried - aio logout but that just logs me out of the user ID.

How can I support multiple configurations for 2 distinct orgs and program IDs?

 

thanks,

CL

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

You can use the aio config module to clear up the configurations - 

aio config clear -f

aio config delete -f

This should get rid of any configurations that are already stored

Source - https://github.com/adobe/aio-cli-plugin-configBe sure to use the local flag as suggested by @Shashi_Mulugu for setting up config restricted to a particular directory.

Hope this helps!

Rohan Garg

View solution in original post

3 Replies

Avatar

Community Advisor

@NageshRaja use -l of --local flag while setting orgids, program id's and environment IDs so that that config gets stored locally to that folder..

 

So you can have two different folders for 2 different cloud envs and use local flag

https://github.com/adobe/aio-cli-plugin-aem-rde?tab=readme-ov-file#configuration-to-be-used-in-build...

 

 $ aio config:set -l cloudmanager_orgid <org-id>

 $ aio config:set -l cloudmanager_programid <program-id>

 $ aio config:set -l cloudmanager_environmentid <env-id>

Avatar

Level 4

thanks @Shashi_Mulugu  and how do I clear the already persisted value?

I tried https://github.com/adobe/aio-cli-plugin-config listed aio config clear -g but that didn't work!

 

Currently my terminal auto picks a particular orgid, programid and environmentid without scope of pointing to another one!

Avatar

Correct answer by
Community Advisor

You can use the aio config module to clear up the configurations - 

aio config clear -f

aio config delete -f

This should get rid of any configurations that are already stored

Source - https://github.com/adobe/aio-cli-plugin-configBe sure to use the local flag as suggested by @Shashi_Mulugu for setting up config restricted to a particular directory.

Hope this helps!

Rohan Garg