LinuxCommandLibrary

steamcmd

Download and update dedicated game servers

TLDR

Install or update an application anonymously

$ steamcmd +login [anonymous] +app_update [appid] +quit
copy

Install or update an application using the specified credentials
$ steamcmd +login [username] +app_update [appid] +quit
copy

Install an application for a specific platform
$ steamcmd +@sSteamCmdForcePlatformType [windows] +login [anonymous] +app_update [appid] validate +quit
copy

SYNOPSIS

steamcmd [+login []] [+force_install_dir ] [+app_update validate] [+workshop_download_item ] [+runscript ]

PARAMETERS

+login []
    Logs into Steam.
If no password is provided, SteamCMD will prompt for it.
Using 'anonymous' allows access to publicly available content.

+force_install_dir
    Sets the installation directory for downloaded content.

+app_update validate
    Downloads or updates the application with the specified .
'validate' verifies the integrity of the downloaded files.

+workshop_download_item
    Downloads a specific Steam Workshop item.
Requires the AppID and Workshop ID.

+runscript
    Executes a SteamCMD script.

+quit
    Quits the SteamCMD interface.

DESCRIPTION

SteamCMD is a command-line interface designed for automated, command-line interaction with the Steam client.
It is primarily used to download and update Steam games, as well as dedicated servers, through scripts or command lines. It's particularly useful for server administrators, mod developers, and anyone needing to automate the process of obtaining and managing Steam content without a graphical user interface. SteamCMD provides a streamlined and efficient method for these tasks.
It is available for Windows, Linux and MacOS.

CAVEATS

SteamCMD requires a Steam account to download most content. Ensure you have the necessary permissions for the apps you are trying to access. Be mindful of Steam's usage policies when automating downloads to avoid potential account restrictions.

SCRIPTING

SteamCMD scripts allow you to automate sequences of commands. This is useful for tasks such as updating multiple game servers simultaneously. Scripts are simple text files containing SteamCMD commands, executed sequentially.

AUTHENTICATION

While anonymous login is possible for some public content, most operations require authentication with a valid Steam account. Ensure that you are using a secure method for storing and managing your Steam credentials when using SteamCMD in automated environments.

HISTORY

SteamCMD was developed by Valve Corporation to provide a command-line interface for managing Steam content, primarily for server administrators and developers. It became popular due to its ease of use for automating downloads and updates of Steam games and dedicated servers. It has been continuously updated to support new Steam features and improve performance.

SEE ALSO

wget(1), curl(1), rsync(1)

Copied to clipboard