Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

Is there an official way provided by Apple or a workaround so that I can install or update Mac App Store apps through Terminal?

share|improve this question

marked as duplicate by bmike Feb 27 at 19:31

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Any chance one of the answers is selectable as "solving" your question? – bmike Feb 17 at 0:21
up vote 11 down vote accepted

there is a commandline app called softwareupdate that you have to run as root.

sudo softwareupdate --list for example will give you the list of apps that are set to update. You can then run sudo softwareupdate --install {app-name}

This won't let you install a new application that you haven't already downloaded though.

share|improve this answer
The software update tool does not update Mac App Store apps on any OS from 10.7 through 10.9.2 - only system software updates are available from the command line. The author is correct that you can't instal new updates and incorrect that other third party app updates will be included to update. – bmike Nov 28 '12 at 17:42

Until recently, the answer was no but there are open source efforts to replicate the Mac App Store in a command-line based tool:

To install:

brew install argon/mas/mas 

Once it's in, you could update all the apps that are available with:

mas upgrade

If you don't like this tool, you could also use MDM tools to package an already downloaded application and distribute it internally. Examples are Casper Suite, sftp, rsync, etc... and side load these apps. You do need to use the GUI or the mas tool to get the first copy of the application, however. So, if you already have the app, you can file share it over, but you can't get the App updated or installed solely from the terminal.

In a nutshell - you would set up an MDM server (there are now open source options) like:

Then you would make your own App Store app that's amenable to command line updates. For that munki is a nice open-source choice:

From there you could package the app updates and server them side loaded or use the InstallApplication MDM command to trigger an app install or update. Do note, that if you are pulling the app or the update from Apple's servers - you still need the user to enter their Apple ID and password in the prompt that OS X provides for the update. This does bypass opening the App Store app so it's a partial win, I suppose.

At present, the command line can only list software updates that come through the App Store the same as the previous Software Update server was used to download system updates and updates to apps that came on physical media. Terminal is not able to update apps that were bought electronically through the Mac App Store. Only some Apple apps are included in the updates using the softwareupdate command.

share|improve this answer

You can use this command softwareupdate with -a and -i as root.

So just type sudo softwareupdate -i -a in terminal.

These are some wonderful steps to make you shell powerful:

  1. Use echo "alias update='sudo softwareupdate -i -a" >> .aliases to register an alias to update quickly.

  2. Use exec $SHELL -l to reload your shell.

  3. Use update and type your password of root to update Mac App Store apps.

share|improve this answer
This does not update a single Mac App Store app. (Which is kind of the point of the question). – bmike Feb 17 at 0:17

Not the answer you're looking for? Browse other questions tagged or ask your own question.