Counter-Strike 2 console commands
Console commands
Where to run Counter-Strike 2 commands
Commands run in two places: the in-game developer console in Counter-Strike 2 and the RCON console in your server control panel. The in-game console is useful for local settings and player-side commands; RCON is for managing a server without joining the game.
Before using commands in game, enable the developer console in the Counter-Strike 2 settings and open it with the ~ key. In the control panel, make sure you are sending the command to the server console, not to chat or a launch field.
Most server commands apply immediately. For permanent settings, put commands in server.cfg or another executable config and apply it with exec.
| Command | Description |
|---|---|
Shows current map, players, user IDs, Steam IDs, latency, and connection details. | |
Changes the server name displayed in the browser. | |
Sets or clears the server password. | |
Sends a server chat message to players. | |
Runs a server config file from the cfg directory. | |
Sets the password for remote administration through RCON. | |
Enables or disables server logging. | |
Controls whether the server works as a LAN server. | |
Sets tags for server display and search. | |
Allows or blocks player votes on the server. | |
Controls server hibernation when no players are online. | |
Controls client file checks against server rules. | |
Enables or disables voice chat on the server. | |
Enables or disables the spectator TV server. | |
Sets the spectator TV server name. | |
Sets or clears the spectator TV server password. | |
Sets the delay for spectator TV. | |
Enables or disables automatic demo recording through spectator TV. | |
Adds a remote receiver for server logs. | |
Removes a remote receiver for server logs. | |
Removes all remote receivers for server logs. | |
Shows configured remote receivers for server logs. | |
Controls whether server logs are written to files. | |
Controls log output in the server console. | |
Controls whether ban actions are written to server logs. | |
Sets contact information for the server. | |
Associates the server with a Steam group. | |
Controls whether only linked Steam group members can join. | |
Sets the spectator limit for the TV server. | |
Controls how much game data is sent to TV spectators. | |
Shows connected users and their IDs on the server. | |
Shows server performance and network statistics. | |
Shows how long the server has been running since startup. | |
Shows server version and build information. | |
Sends a manual heartbeat signal to the master servers. | |
Sets the region used to classify the server in the server browser. | |
Overrides the visible maximum player count in the server browser. | |
Sets the Steam login token for the dedicated server. | |
Limits server query requests per second. | |
Limits all server query requests together. |