Using Alire in a non-interactive manner?

Hi;

I’d like to try using Alire in a non-interactive manner.

Is there a way to skip all (or most) of the prompts and/or specify them via alire command line arguments to the init sub-program?

Thanks,
Retired Build Engineer

Yep! You can use -n or --non-interactive to have it automatically accept the defaults. I use alr -n update && alr -n build --release in my scripts a lot.

To install the default toolchain I think you can just do alr -n toolchain --select (but I haven’t tested this). You may have to combine it with --disable-assistant (@mosteo ?)

1 Like

Well, well, well. Not often that I miss something so obvious as the --non-interactive option for Alire as shown via “alr --no-color help | less”.

Another face-palm.

RBE