I'm administering several computer labs using software from the Mac App Store. Is there any way to apply software updates from the command line (via Remote Desktop), instead of having to go around to each workstation and launch
There doesn't appear to be a command line helper or any scriptable cocoa classes you can latch on to for automation. Unlike the overall software update, you can only script the process of clicking buttons with a mouse.
If someone is logged into the mac (windowmanager is running), you can use Automator and the "watch me do" function to automate updates and storing your store password in the script fairly insecurely.
Here are two tutorials to get you started if this meets your needs.
Once you have a working script, you can use the command line open command to kick it off.
If the App Store app ever exposes that function to scripting you will have more options from the command line. It would be easy to use sdef, sdp and gen_bridge_metadata to dump the entire scriptable dictionary and script things using ruby from the command line, but at present, this is a non-starter.
To list available updates:
To update all software:
To update only NAME: