MAS updates from the command line

Lotusshaney
Contributor II

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

5 REPLIES 5

lbmoll
New Contributor II

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

Lotusshaney
Contributor II

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

daz_wallace
Contributor III

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

Lotusshaney
Contributor II

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

Look
Valued Contributor III

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.