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?
there is a commandline app called
This won't let you install a new application that you haven't already downloaded though.
Until recently, the answer was no but there are open source efforts to replicate the Mac App Store in a command-line based tool:
Once it's in, you could update all the apps that are available with:
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
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
You can use this command
So just type
These are some wonderful steps to make you shell powerful: