rockcarver / frodo-cli

A CLI to manage ForgeRock platform deployments supporting Identity Cloud tenants, ForgeOps deployments, and classic deployments.
MIT License
17 stars 16 forks source link

Listing saved connections does not work #165

Closed atomicsamurai closed 1 year ago

atomicsamurai commented 1 year ago

When trying to list existing connections, it does not show the list, but instead prints the following message:

$ frodo conn list
Any unique substring of a saved host can be used as the value for host parameter in all commands

Frodo CLI version

You seem to be running the NPM package
Installed versions:
cli: v0.19.1
lib: v0.17.1
node: v18.7.0

Edit: The command also seems to have deleted all my saved connections.

vscheuber commented 1 year ago

hm... weird! I can't dupe:

% frodo conn list
https://*****.forgeops.com/am
https://forgerock.*****-*****-res.cloudns.ph:8443/openam
https://*****-*****.frdpcloud.com/am
https://*****.frdpcloud.com/am
https://idp37.mytestrun.com/openam
https://*****.iam.forgeops.com/am
https://*****-*****.catalyst.forgerock.org/am
https://*****-onprem.mytestrun.com/am
https://*****-*****.encore-test.forgerock.com/am
https://*****-demo.catalyst.forgerock.org/am
https://nightly.eng.forgeops.com/am
https://openam-acme-demo.forgeblocks.com/am
https://openam-admin-fed.forgeblocks.com/am
https://openam-*****-poc.forgeblocks.com/am
https://openam-*****-*****.forgeblocks.com/am
https://openam-*****-perf.forgeblocks.com/am
https://openam-*****-poc.forgeblocks.com/am
https://openam-*****-poc.forgeblocks.com/am
https://openam-*****-demo.forgeblocks.com/am
https://openam-*****-poc.forgeblocks.com/am
https://openam-*****-*****.forgeblocks.com/am
https://openam-*****-base.forgeblocks.com/am
https://openam-*****-usw2-dev.id.forgerock.io/am
https://openam-*****-usw2-staging.id.forgerock.io/am
https://openam-*****-dev.forgeblocks.com/am
https://openam-forgerock-*****.forgeblocks.com/am
https://openam-fr-*****.forgeblocks.com/am
https://openam-frodo-dev.forgeblocks.com/am
https://openam-*****-poc.forgeblocks.com/am
https://openam-*****-demo.forgeblocks.com/am
https://openam-*****-demo.forgeblocks.com/am
https://openam-*****-*****.forgeblocks.com/am
https://openam-*****.forgeblocks.com/am
https://openam-*****-poc.forgeblocks.com/am
https://openam-*****-dev.forgeblocks.com/am
https://openam-*****-fidc.forgeblocks.com/am
https://openam-*****-demo.forgeblocks.com/am
https://openam-*****-*****.forgeblocks.com/am
https://openam-passthrough-*****.forgeblocks.com/am
https://openam-*****.forgeblocks.com/am
https://openam-se-dash-demo.forgeblocks.com/am
https://openam-*****-*****.forgeblocks.com/am
https://openam-*****-final.forgeblocks.com/am
https://openam-*****-sandboxnane1.forgeblocks.com/am
https://openam-volker-dev.forgeblocks.com/am
https://openam-*****-auth.forgeblocks.com/am
https://*****.cuzican.io:8443/openam
https://platform.example.com:9443/am
https://*****-hc.*****.*****-forgerock.com/am
Any unique substring of a saved host can be used as the value for host parameter in all commands
% frodo -v                                                                                             
You seem to be running the NPM package
Installed versions:
cli: v0.19.1
lib: v0.17.2-0
node: v18.7.0
% 
atomicsamurai commented 1 year ago

I am not sure what happened, but I think frodo conn list wiped out my Connections.json. But its working fine now. Now I am not sure if it was that command or something else!

vscheuber commented 1 year ago

@atomicsamurai this is fixed in v0.18.1-0, right?