How to store multiple Org IDs, Environment IDs, Program IDs locally for AIO Plugin Deployment? | Community
Skip to main content
NageshRaja
Level 5
November 4, 2024
Solved

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

  • November 4, 2024
  • 1 reply
  • 923 views

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

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

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

1 reply

Shashi_Mulugu
Community Advisor
Community Advisor
November 5, 2024

@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-environments

 

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

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

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

NageshRaja
Level 5
November 5, 2024

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!

Rohan_Garg
Community Advisor
Rohan_GargCommunity AdvisorAccepted solution
Community Advisor
November 6, 2024

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