I used to be able to call cup all
and have my applications update. Now, it asks for yes
to ensure that I want to install the selected package. Is there a way I can have everything auto update without constantly typing yes
for every update?
As Rob points out, -y will skip the prompts for a given command.
If you'd rather not be bothered with confirmation prompts at all, you can set the option globally.
The following enables allowGlobalConfirmation, which will install or update without confirmation prompts.
choco feature enable -n=allowGlobalConfirmation
If you ever want to turn the prompts back on, run the same command with disable:
choco feature disable -n=allowGlobalConfirmation
This can be useful for unattended scripts without affecting the future state of the prompts.
NOTE: The syntax has recently changed (July 2016) and now requires an equals sign before allowGlobalConfirmation
instead of a dash. Thanks for the heads up, @dragon788.