LinuxCommandLibrary

steamcmd

TLDR

Start interactive mode

$ steamcmd
copy
Login anonymously
$ steamcmd +login anonymous
copy
Install game server
$ steamcmd +login anonymous +app_update [740] +quit
copy
Install to directory
$ steamcmd +force_install_dir [/path/to/server] +login anonymous +app_update [740] +quit
copy
Validate installation
$ steamcmd +login anonymous +app_update [740] validate +quit
copy
Login with credentials
$ steamcmd +login [username] [password]
copy

SYNOPSIS

steamcmd [+command]...

DESCRIPTION

steamcmd is Steam's command-line client. It manages dedicated game servers.
Anonymous login works for many servers. Some require Steam account ownership.
App IDs identify games and servers. Different from store IDs sometimes.
Batch mode chains commands with +. Each + starts a new command.
Validation checks file integrity. Repairs corrupted installations.

PARAMETERS

+login USER [PASS]

Login to Steam.
+app_update APPID
Install/update app.
+force_install_dir PATH
Installation directory.
+quit
Exit after commands.
+validate
Verify files.
+app_info_print APPID
Show app info.
+workshop_download_item APPID ITEMID
Download workshop item.

COMMON APP IDS

740 - Counter-Strike: Global Offensive
232250 - Team Fortress 2
258550 - Rust
376030 - ARK

CAVEATS

Some apps require game ownership. Downloads can be large. SteamGuard may require codes.

HISTORY

SteamCMD was released by Valve for headless server management. It enables automated game server deployment without the full Steam client.

SEE ALSO

steam(1), screen(1), tmux(1)

Copied to clipboard