WIN-FOR icon indicating copy to clipboard operation
WIN-FOR copied to clipboard

Is there a CLI or PowerShell version available?

Open azertyfdvqdsv opened this issue 10 months ago • 4 comments

Hi,

I was wondering if there is any command-line version available (e.g., PowerShell script, CLI tool, or silent mode)? I’d like to automate the installation process without using the GUI.

azertyfdvqdsv avatar Jun 19 '25 09:06 azertyfdvqdsv

Hi @azertyfdvqdsv , there used to be a PowerShell script, but it evolved into the GUI. I've been considering building (rather re-building) a CLI tool to do the same (in an automated fashion), but there actually might not be a need. Simply put, you only really need three things to do this in an automated method:

  1. The state files from the current release;
  2. Saltstack installed; and
  3. a state file which contains the states from the release to be executed.

Step 3 can be done by using the GUI first (only needs to be done once, unless you choose to update the tools) to generate the custom state file and save it (select your tools, then click File -> Save custom state).

Step 2 is only required once, for the initial installation.

Step 1 would be the part to automate. Fetch the states, extract in the proper location, copy in the custom state file, run the salt command.

The issue with this method is that, currently, you cannot dynamically choose the tools to install. They must be selected first, placed in a state file, (ie: the custom state mentioned earlier).

In the coming days, I'll re-introduce the PowerShell script into the repo, but it will not receive full support until it goes through a gamut of tests.

I'll keep you posted. Hope this helps!

digitalsleuth avatar Jun 20 '25 01:06 digitalsleuth

Hi, Thank you, that's what I needed!

azertyfdvqdsv avatar Jun 20 '25 08:06 azertyfdvqdsv

The PS script that's up now is NOT the one you want to use. I've put it up simply so I can start working on it through GitHub. I'll have some updates to it this afternoon and tomorrow.

digitalsleuth avatar Jun 20 '25 19:06 digitalsleuth

Hi @azertyfdvqdsv , There is now a CLI PowerShell script available in this repo that you can try out. Let me know if you encounter any issues getting it to run. Cheers!

digitalsleuth avatar Jul 27 '25 14:07 digitalsleuth