-
You need to know the APP_ID, e.g. find it in the Steam store URL.
-
You need to own the game on your account.
-
This downloads Windows version of the game, which is handy to play games with no MacOS/Linux native support on source ports (e.g. vkquake, gzdoom, raze). You can change
+@sSteamCmdForcePlatformType
tolinux
ormacos
if you like -
Install steamcmd (MacOS):
brew install --cask steamcmd
-
Add this helper function to
~/.bashrc
or~/.zshrc
:export STEAM_USERNAME=my-username function steamdl() { local app_id="$1"; shift local extra_args="${@}" steamcmd +login "$STEAM_USERNAME" +@sSteamCmdForcePlatformType windows +force_install_dir "$(pwd)/${app_id}" +app_update "${app_id}" ${extra_args} +quit }
Download game with APP_ID: 2280
to current dir
steamdl 2280