cli icon indicating copy to clipboard operation
cli copied to clipboard

Silent mode

Open lgmorand opened this issue 1 year ago • 5 comments

Is it possible to install it without any human interaction ?

At some point, it asks for confirmation but it prevent any non interactive installation. did I miss a cli parameter ?

I found "ASSUME_YES_FLAG" in the source code but found no way to set it up

lgmorand avatar Apr 01 '24 09:04 lgmorand

Hey @lgmorand, for unattended installation you might prefer to use helm or CI/CD tooling such as Flux or ArgoCD.

Check the docs for more info https://docs.groundcover.com/docs/getting-started/installation-and-updating

maximveksler avatar May 02 '24 02:05 maximveksler

Why do you want to force people to use gitops ? :) I could but it forces me to add Flux/Argo just because I need to use groundC ?

you are providing a cli tool with parameters, especially a YES_FLAG but it's not fully implemented. it you want to force it to be interactive, you should create a GUI instead. each cli in the world can be unattended but not yours. That's fine to me, but don't expect me to use it at Microsoft nor to push it to our customers if I feel, it won't match our Cx integration process (and it's sad because your tool itself is cool ;))

lgmorand avatar May 02 '24 05:05 lgmorand

Hey @lgmorand , you can run the cli tool using the --yes flag, for example: groundcover deploy --token ${token} --yes. Which will not prompt you for approvals, AKA without any human interaction. Let me know if it did the trick for you.

maxlevinps avatar May 22 '24 08:05 maxlevinps

Thanks Max. I'm running my workflow to deploy groundclover. Will come back here to confirm if now, the yes flag is taken into account.

lgmorand avatar May 22 '24 13:05 lgmorand

sh -c "$(curl -fsSL https://groundcover.com/install.sh)" 
chmod +x groundcover
groundcover deploy --yes --token XXX

for the moment, it fails with a exec permission denied. will continue to dig in

lgmorand avatar May 26 '24 09:05 lgmorand