-
mkdir SteamCMD
-
cd SteamCMD
-
export stUsername=<yourUsername>
-
export stPW=<YourPassword>
-
export stPL=windows
-
export stID=<gameID>
-
Create script file
cat <<EOF > script.txt @ShutdownOnFailedCommand 1 @NoPromptForPassword 1 @sSteamCmdForcePlatformType $stPL force_install_dir /steamDL login $stUsername app_update $stID validate quit EOF
-
Install docker cross-platform emulator
docker pull tonistiigi/binfmt
docker run --privileged --rm tonistiigi/binfmt --install all
-
docker run --platform linux/amd64 -it --rm -v "steamLogin:/root/.steam:z" -v "$PWD/dl:/steamDL" steamcmd/steamcmd:latest +login $stUsername $stPw
- Insert Steam Guard code when prompted
- Wait for OK
- Write
quit
when you seeSteam>
-
Initial setup is done
When you have finished above you can now just edit the script.txt file with your new game ID and start the download process for any game/server:
docker run --platform linux/amd64 -it --rm -v "steamLogin:/root/.steam:z" -v "$PWD/dl:/steamDL" -v "$PWD:/cosi" steamcmd/steamcmd:latest +runscript /cosi/script.txt
what is a gameID