Skip to main content

Anyone know how to get the Mac App Store to check and install updates via the CLI ?

Want to schedule checks for an Autopkg server rather than have to manually check and install updates

Using softwareupdate --list you can list all available updates. Add --install and --all to install all updates available, e.g softwareupdate --install --all


That just does the SUS updates, not the App Store updates ???


MAS updates from the command line? I'm fair certain it can't be done.

Maybe leave automatic App Store updates turned on and see if that is 'good enough' for your needs! : )

Darren


Thanks Darren,

Thats what I have got but it takes 2-5 days after the app update before the apps get updated.

I was wondering if there is a process I can kick to force the MAS update


If there was a user logged in you could possible force the app store to open in the background? Either with a login item or by calling it with osascript call within a script.
You might be able to get it to open hidden as well.
Not ideal as it could interfere with the user but it might work.