How do I update all Chocolatey applications without confirmation?

Josue Espinosa picture Josue Espinosa · Apr 26, 2015 · Viewed 32.7k times · Source

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?

Answer

Jon Crowell picture Jon Crowell · May 24, 2015

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.