All CS2/CSGO Commands List

Below is CSDB's searchable list of all CS2 console commands. Each command in our database has in-depth insights on each command, with help and argument details (simply hover over a command to view).
sv_shutdown
If you want your server to shut down quickly, you can use this command.
Examples, Generator & More
server_game_time
<Seconds>
This command specifies your server's game time in seconds.
Name:
Seconds
Description:
The amount of time which is in seconds that you want to set your server seconds play time.
Examples, Generator & More
maxplayers
<Amount>
It allows you to set the maximum number of players that can connect to your server.
Name:
Amount
Description:
The number of players you wish that can be on your server at the same time.
Examples, Generator & More
heartbeat
This command will send your server's ping, player count, and other details to the Steam main server. Normally there is no need to use this command. Because it works automatically every 30 minutes.
Examples, Generator & More
changelevel
<Map Codes>
It closes the map you are currently playing and opens the map you have selected instead.
Name:
Map Codes
Description:
The name of the map you want to change to, can be done by using Map Codes.
Examples, Generator & More
Kickid_hltv
<User ID> <Reason>
It is a command that allows you to kick a player with ID or unique ID. If you want, you can add a message by specifying reason at the end of the command.
Name:
User ID
Description:
Input the users ID
Name:
Reason
Description:
You can specify the reason for the ban.
Examples, Generator & More
writeip
Saves the IP addresses of banned players in "banned_ip.cfg".
Examples, Generator & More
writeid
This command saves the IDs of all players you have banned in the game in "banned_user.cfg". In this way, even if you turn off and on the server, bans will continue to be applied indefinitely.
Examples, Generator & More
listip
You will see a list of players you have banned via IP.
Examples, Generator & More
listid
It lists the IDs of the players you have banned from your server so far.
Examples, Generator & More
removeip
<Ip Address>
You unban a player you banned via IP address.
Name:
Ip Address
Description:
The Ip Adresss you want to unban.
Examples, Generator & More
banip
It allows you to ban any user based on their IP. If you set the minute to "0" again, the ban will become permanent.
Examples, Generator & More
banid
<Minutes> <User ID>
You ban a player playing on your server based on their Steam ID or player ID. If you set the minute to 0, that player will be banned indefinitely
Name:
Minutes
Description:
The number of minutes you wish to ban the user from your server.
Name:
User ID
Description:
The specific User ID of the user you wish to ban. You can find the ID of the user by inputting 'status' into the console. The id is the players number before the username in the list of all players.
Examples, Generator & More
sv_banid_enabled
<0 / 1>
With this command, you can set whether the "banid" command will be used to ban players in (CS2 only)
Name:
0 / 1
Description:
Enables or disables the banid feature
Examples, Generator & More
retry
It is a command you can use to reconnect to the last server you entered.
Examples, Generator & More
disconnect
If you want to log out of the server you are actively playing on, you can use this command.
Examples, Generator & More
connect
<IP address>
It allows you to connect to any CS2 server whose IP address you know.
Name:
IP address
Description:
Input the IP address of the server you wish to connect.
Examples, Generator & More
cl_upspeed
<Upspeed>
Allows players to adjust the speed of up speed in a game. The default value is set as 320.
Name:
Upspeed
Description:
The value you want to set. The default is 320.
Examples, Generator & More
cl_timeout
<Seconds>
Determines the time you wait before disconnecting your server.
Name:
Seconds
Description:
You can choose a number between 4 and seconds.
Examples, Generator & More
cl_hideserverip
<0 / 1>
If you are streaming on Twitch or Kick, you can hide your server's IP address in the console with this command. In particular, this command protects you from DDOS attacks.
Name:
0 / 1
Description:
1 to enable, 0 to disable.
Examples, Generator & More
cvarlist
<Command>
With this command, you will see a list of all console commands.
Name:
Command
Description:
If you want, you can make a list by specifying the parameter of any command.
Examples, Generator & More
sv_skyname
<Skybox Code>
This command allows you to change your client's skybox. Specify the desired skybox's code to apply that skybox. Let's take a look at exactly how to put it into practice.
Name:
Skybox Code
Description:
Skybox Names Codes:

cs_baggage_skybox_
cs_tibet
embassy
italy
jungle
office
sky_cs15_daylight01_hdr
sky_cs15_daylight02_hdr
sky_cs15_daylight03_hdr
sky_cs15_daylight04_hdr
sky_day02_05
nukeblank
sky_venice
sky_csgo_cloudy01
sky_csgo_night02
sky_csgo_night02b
vertigo
vertigoblue_hdr
sky_dust
vietnam
Examples, Generator & More
timeleft
Shows the remaining time of the map being played.
Examples, Generator & More
mp_forcechasecam
<1 / 2>
Players can only watch their teammates after death.
Name:
1 / 2
Description:
If you set the command to 2, you will remain fixed in the place where you died after you die.
Examples, Generator & More
Show entries:
14567818

Above is CSDB’s searchable list of all CS2 console commands. Each command in our database has in-depth insights on each command, with help and argument details (simply hover over a command to view).

You can type in the name of a specific command to filter that command.

We also have a Command category making it easier for those looking for CSGO commands in a certain category.