CS2 Console Commands List

  • Page 116

Below is Total CS' searchable list of all CS2 console commands. Each command in our database has detailed documentation, with help and argument explanation (hover over a command to view). Click on a command's name to visit its individual page, on which you can find more information including working examples and its default setting or value.

Type the name of a command into the search box to instantly filter our entire database of commands. Toggle between different views by pressing the "Card View" and "Table View" buttons.

If you are looking for a more specific selection of commands, you may prefer to sort by category.

Updated for CS2: We've updated our list to include over 1,000 console commands that were added in CS2.

We're the only website that has a complete list of all Counter-Strike 2 commands with complete documentation and examples. CS:GO Commands are hidden from this list by default. If you're playing on CS:GO, check the "Show CS:GO Commands" box to show commands that exist in Counter-Strike: Global Offensive.

How to Use CS:GO & CS2 Commands
  1. Enable the developer console:

    Go to Settings > Game Settings and set "Enable Developer Console" to "Yes".

  2. Press ` or ~ on your keyboard.

  3. Enter a command and hit ENTER on your keyboard to run it!

Are you still stuck? More Help
IPS

Commands List

Command Description More
sv_lagcompensationforcerestore
sv_lagcompensationforcerestore
sv_lan

This command sets whether or not the server is a LAN server. If a server is a LAN server there is no heartbeat, no Steam authentication, and no non-class C addresses. By default this is disabled (0).

Examples, Generator & More
sv_lan <0 / 1>
sv_lightquery_debug

This command, when enabled, is used to debug lighting queries in the game environment. It's intended for developers or to troubleshoot lighting issues.

Examples, Generator & More
sv_lightquery_debug <0 / 1>
sv_load_forced_client_names_file
sv_load_forced_client_names_file
sv_load_random_client_names_file

This command loads the specified file that contains random words.

Examples, Generator & More
sv_load_random_client_names_file <File Name>
sv_logbans

This command, if enabled (1), will make server bans be logged in the server log. Default is 0 (does not log bans).

Examples, Generator & More
sv_logbans <0 / 1>
sv_logblocks

This command, if enabled (1), will log when server queries are blocked. Default is 0 (does not log bans). Note that if you enable this, log files can become very large.

Examples, Generator & More
sv_logblocks <0 / 1>
sv_logecho

This command sets whether or not all of text that is saved to the log file is also written in the console. Default is 1 (enabled).

Examples, Generator & More
sv_logecho <0 / 1>
sv_logfile

This command sets whether or not server information should be logged in the log file. Default is 1 (enabled). Setting this to 0 will disable server information being logged.

Examples, Generator & More
sv_logfile <0 / 1>
sv_logflush

This command sets whether or not the log file should be flushed/saved to the disk whenever something is logged. By default this is disabled, meaning the log file is flushed/saved at intervals, as opposed to whenever a new line is added. If you enable this setting, it may cause lag.

Examples, Generator & More
sv_logflush <0 / 1>
sv_log_onefile

This command, if enabled, logs all server information to one file, instead of individual (categorised) log files. Default is 0 (disabled).

Examples, Generator & More
sv_log_onefile <0 / 1>
sv_logsdir

This command sets the directory to which log files are saved. Default is "logs".

Examples, Generator & More
sv_logsdir <Directory Name>
sv_matchend_drops_enabled

This command sets whether or not drops at the end of the match are enabled. Rewards gameplay time is accumulated regardless.

Examples, Generator & More
sv_matchend_drops_enabled <0 / 1>
sv_matchpause_auto_5v5

This command, if enabled, will automatically pause the match at the end of a round if the are less than 5 players on each team. Default is 0 (disabled).

Examples, Generator & More
sv_matchpause_auto_5v5 <0 / 1>
sv_max_allowed_net_graph

This command sets the maximum value players can set their net_graph to on the server. Default is 1. Higher values show more information.

Examples, Generator & More
sv_max_allowed_net_graph <Value>
sv_max_queries_sec

This command sets the maximum amount of queries per second that will be responded to from the same IP address.

Examples, Generator & More
sv_max_queries_sec
sv_max_queries_sec_global

This command sets the maximum amount of queries per second that the server will responsd to.

Examples, Generator & More
sv_max_queries_sec_global
sv_max_queries_window

The time window, in seconds, that average queries per second should be calculated over.

Examples, Generator & More
sv_max_queries_window <Seconds>
sv_maxrate

This command sets the maximum bandwidth rate allowed (both incoming/outcoming) per second (in bytes) for each connection to the server.

Examples, Generator & More
sv_maxrate <Bytes/s>
sv_maxspeed

This command sets the maximum speed for each player on the server. A higher value will allow players to reach faster speeds. A lower value will make players be able to reach lower speeds.

Examples, Generator & More
sv_maxspeed <Speed>