CS:GO Server command line options

First were going to establish the base for each OS.
Windows:
srcds.exe -game csgo

Linux:
srcds -game csgo
./srcds_run -game csgo
./srcds_linux -game csgo

Those are what you start the server with. However you do need additional items or switches as they are called to configure how the server starts, what runs, what game mode, what settings, and more.

-autoupdate
The server is searching for updates on startup.

-console
Srcds will run with a console window.

-usercon
This enables RCON.

+ip 
Specifies the address to use for the bind(2) syscall, which controls      on which IP addresses the program is reachable on. It must either be a local address (an addresses of the host it runs on) or 0.0.0.0 (the wildcard). This has nothing to do with externally-visible addresses in NAT setups.

-port
Sets the port for the server. Default is 27015

-tickrate
Specifies Server-Tickrate.

-maxplayers
Specifies how many player slots the server can contain.

+game_type
Specifies the game type. 0 is Classic type. 1 is Gungame type.

+game_mode
Specifies the game mode. If game_type is 0 then mode 0 is Classic Casual and 1 is Classic Competitive. If game_type is 1 then mode 0 is Arms Race and 1 is Demolition.

+mapgroup
This specifies which map list in the gamemodes.txt the server will use. The options are: mg_allclassic, mg_hostage, mg_bomb, mg_armsrace, mg_demolition. If you want to lock the server to 1 map just add mg_ in front of the map name. Example: mg_de_dust2

+map
This tells the server what map to start the server on.

+exec server.cfg
Executes the server.cfg file.

So an example Windows command line would be like this:
srcds.exe -game csgo -tickrate 200 -console +ip 96.28.169.13 -port 27016 -usercon +game_type 1 +game_mode 0 -maxplayers 24 +mapgroup mg_armsrace +map ar_baggage

For linux
srcds_run or srcds_linux -game csgo -tickrate 200 -console +ip 96.28.169.13 -port 27016 -usercon +game_type 1 +game_mode 0 -maxplayers 24 +mapgroup mg_armsrace +map ar_baggage  

This entry was posted in Dedicated Server FAQ. Bookmark the permalink.

Leave a Reply