Enable the developer console:
Go to Settings > Game Settings and set "Enable Developer Console" to "Yes".
Press ` or ~ on your keyboard.
Enter a command and hit ENTER on your keyboard to run it!

Commands List
Command | Description | More | Syntax |
---|---|---|---|
sv_shield_explosive_damage_cap | This command sets the maximum damage that a player's shield can take from a single explosive. |
Examples, Generator & More | sv_shield_explosive_damage_cap
<Maximum Damage>
|
sv_shield_explosive_damage_crouch_bonus | Adjusts the bonus damage protection percentage shielded players receive from explosive damage when crouching. |
Examples, Generator & More | sv_shield_explosive_damage_crouch_bonus
<Damage bonus percentage>
|
sv_shield_explosive_damage_mult | This command sets the multiplier for the amount of explosive damage absorbed by shields in the game. |
Examples, Generator & More | sv_shield_explosive_damage_mult
<Multiplier>
|
sv_shield_explosive_damage_scale | This command sets the scale of explosive damage dealt to a player holding a shield. |
Examples, Generator & More | sv_shield_explosive_damage_scale
<Scale>
|
sv_shield_hitpoints | Sets the hitpoint value (health) for the player's shield in the game. |
Examples, Generator & More | sv_shield_hitpoints
<Value>
|
tv_show_allchat | This command controls whether all chat messages are shown in GOTV broadcasts, allowing viewers to see team chats as well as all chat. |
Examples, Generator & More | tv_show_allchat
<0 / 1>
|
ui_news_last_read_link | This command is used to define the default link or URL for the latest read news item within the game. |
Examples, Generator & More | ui_news_last_read_link
<URL>
|
ui_playsettings_mode_official_v20 | This command defines the default matchmaking game mode setting in the UI preferences for official Valve servers. |
Examples, Generator & More | ui_playsettings_mode_official_v20
<Game Mode>
|
viewmodel_always_on | This command forces the view model (the visual representation of the player's weapon and arms) to always be visible, even when the camera is in third-person view. This can be useful for content creators or those wanting a consistent visual reference. |
Examples, Generator & More | viewmodel_always_on
<0 / 1>
|
weapon_accuracy_reset_on_deploy | This command configures whether or not the accuracy of a weapon should be reset to zero upon deployment. |
Examples, Generator & More | weapon_accuracy_reset_on_deploy
<0 / 1>
|
bot_freeze | This cheat command prevents bots (NPC characters) from being able to move. |
Examples, Generator & More | bot_freeze
<0 / 1>
|
bot_ignore_enemies | This command, when enabled, makes bots ignore enemies. This can be useful for debugging purposes. |
Examples, Generator & More | bot_ignore_enemies
<0 / 1>
|
bot_loadout | This command sets what bots in your server will spawn with, such as particular weapon and grenade setups. |
Examples, Generator & More | bot_loadout
<Weapon Codes>
|
bot_max_vision_distance_override | This command overides the max distance value that bots are set, meaning they will or won't (depending on setting) be able to see you from much further across the map than usual. |
Examples, Generator & More | bot_max_vision_distance_override
<-1 / 1>
|
bot_mimic | This command, if enabled (set to 1), will make all bots relay your actions. If you jump, all bots will jump, if you shoot, all bots will shoot, etc. |
Examples, Generator & More | bot_mimic
<0 / 1>
|
bot_stop | This command, if set to 1, causes bots to stop what they're doing. This means they will stop moving, shooting and all other processes until you turn the command off (by setting it to 0, which is default). |
Examples, Generator & More | bot_stop
<0 / 1>
|
callvote | This command brings up the option to call a vote in game, either to kick a player or to change map. You can select which vote you're calling after entering the command, and if the vote you call then receives a large majority of player votes to one side or another that decision is forced (e.g. the player you're voting to kick would be kicked if the large majority of players voted yes). |
Examples, Generator & More | callvote
|
cc_spectator_only | This command controls whether Closed Captions are displayed only when the player is spectating. Closed Captions include various in-game sounds as text. |
Examples, Generator & More | cc_spectator_only
<0 / 1>
|
changelevel | This command is used to change the map you're playing on. |
Examples, Generator & More | changelevel
<Map Name>
|
cl_auto_cursor_scale | This command enables or disables automatic scaling of the cursor size based on the resolution. |
Examples, Generator & More | cl_auto_cursor_scale
<0 / 1>
|