Linux command
steamcmd 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start interactive mode
steamcmd
Login anonymously
steamcmd +login anonymous
Install game server
steamcmd +login anonymous +app_update [740] +quit
Install to directory
steamcmd +force_install_dir [/path/to/server] +login anonymous +app_update [740] +quit
Validate installation
steamcmd +login anonymous +app_update [740] validate +quit
Login with credentials
steamcmd +login [username] [password]
说明
steamcmd is Valve's command-line Steam client designed for automated management of dedicated game servers. It supports downloading, installing, updating, and validating game server files without requiring the full Steam graphical client. Commands are prefixed with + and can be chained for batch operation. Anonymous login is sufficient for most dedicated server downloads, while some content requires authentication with a Steam account that owns the game. The +app_update command handles both initial installation and subsequent updates, with validate verifying file integrity and repairing corrupted installations.
参数
- +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.
FAQ
What is the steamcmd command used for?
steamcmd is Valve's command-line Steam client designed for automated management of dedicated game servers. It supports downloading, installing, updating, and validating game server files without requiring the full Steam graphical client. Commands are prefixed with + and can be chained for batch operation. Anonymous login is sufficient for most dedicated server downloads, while some content requires authentication with a Steam account that owns the game. The +app_update command handles both initial installation and subsequent updates, with validate verifying file integrity and repairing corrupted installations.
How do I run a basic steamcmd example?
Run `steamcmd` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does +login _USER_ _PASS_ do in steamcmd?
Login to Steam.