Steam – Installing Origin and/or Steam games automatically in an unattended manner

originsteam

Does anyone know of a way of installing Steam and/or Origin games automatically, without user intervention?

I have a very unusual set up where I use an AWS instance for gaming. At the moment I have all the games installed manually but the problem is that I need to keep a relatively large storage volume around and that alone costs about half of what I'd pay for the actual computing power (snapshots don't solve this problem because the IO performance on a freshly restored one is disastrous).

The idea would be to only keep a very small volume with the OS, Origin, Steam and a bunch of utilities, and download the games automatically at boot onto an ephemeral volume which gets destroyed when the instance is shut down. The bandwidth is high enough that it doesn't take more than 10 minutes to download the few games I care about, so that delay would be more than acceptable.

Does anyone have any ideas where to start?

Best Answer

Steam

Valve provides CLI : https://developer.valvesoftware.com/wiki/SteamCMD

So it's possible to install games like this:

steamcmd +login anonymous +force_install_dir ../csgo_ds +app_update 740 +quit

Which logins to steam, creates custom folder and then installs CS:GO there.

This tool supports both Linux/MacOS and Windows, so you should be good automating your setup with it.

One limitation though, looks like it doesn't work for all the Steam games:

It works with games that use the SteamPipe content system.

Origin

I cannot find anything working right now, but in this answer author invested some time into Origin API.