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 |
---|---|---|---|
plant_bomb | Forces the player to plant a bomb at the location they are currently looking at, regardless of whether they are in a bomb site. This command is useful for testing purposes. | Examples, Generator & More | plant_bomb |
r_csgo_effects_bloom_when_smoked | Controls the bloom effects when a smoke grenade is deployed in the game. | Examples, Generator & More | r_csgo_effects_bloom_when_smoked <0 / 1> |
r_drawcsplayers | This command is used to toggle the rendering of Counter-Strike players on or off. It requires 'cheat' flag to be enabled to work. | Examples, Generator & More | r_drawcsplayers <0 / 1> |
snd_headphone_eq | This command selects a preset for the headphone equalizer settings. | Examples, Generator & More | snd_headphone_eq <0 / 1> |
snd_mvp_volume | This useful console command sets how long the MVP music is when a player with a MVP kit wins MVP award that round. | Examples, Generator & More | snd_mvp_volume <Volume> |
snd_voipvolume | This command sets the volume of voice communication (VOIP) in the game. | Examples, Generator & More | snd_voipvolume <Volume> |
spec_xray_dropped_defusekits | This command configures whether dropped defuse kits are highlighted with an X-ray effect for spectators. | Examples, Generator & More | spec_xray_dropped_defusekits <0 / 1> |
spec_xray_dropped_unoccluded | Controls whether dropped C4 explosives and defuse kits are always shown with the X-ray effect in spectator mode, making them easier to spot. | Examples, Generator & More | spec_xray_dropped_unoccluded <0 / 1> |
sv_autobunnyhopping | This command, if set to 1, will make you automatically bunny hop by holding down the space bar. Default is disabled (1). | Examples, Generator & More | sv_autobunnyhopping <0 / 1> |
sv_disable_teamselect_menu | This command is used to disable the team selection menu on client interfaces. When enabled (set to 1), players will not be able to access the team selection menu in-game. | Examples, Generator & More | sv_disable_teamselect_menu <0 / 1> |
sv_human_autojoin_team | This command controls whether human players are automatically placed onto a team upon joining a game. When disabled, players can choose their team. | Examples, Generator & More | sv_human_autojoin_team <0 / 1> |
sv_invites_only_mainmenu | This command, when enabled, will make the game ignore any game invites received while the user is playing a match, only allowing invites to be acknowledged when in the main menu. | Examples, Generator & More | sv_invites_only_mainmenu <0 / 1> |
sv_log_roundstats | This command enables or disables the logging of round statistics in server logs. | Examples, Generator & More | sv_log_roundstats <0 / 1> |
sv_prime_accounts_only | This command, if set to 1, makes it so that only prime accounts can connect to the server. Default on most servers is 0 (meaning non-prime players can connect). | Examples, Generator & More | sv_prime_accounts_only <0 / 1> |
sv_showhitregistration | This command controls the visualization of lag_compensated hitboxes, allowing to see where shots are hitting on players, which can be helpful for debugging issues with lag. The visualization can be set for server, client, or both. | Examples, Generator & More | sv_showhitregistration <0 / 1> |
trusted_launch | This command controls the trusted launch feature in CS2, which enhances the game's security measures. | Examples, Generator & More | trusted_launch <0 / 1> |
ui_playsettings_directchallengekey | Sets or displays the current direct challenge key value, used for initiating or participating in direct challenges within the game. | Examples, Generator & More | ui_playsettings_directchallengekey <Challenge Key> |
ui_playsettings_flags_listen_casual | This command is used to configure settings related to casual matches in a listen server environment. It likely adjusts parameters that affect the casual game mode when playing in a non-dedicated server setup. | Examples, Generator & More | ui_playsettings_flags_listen_casual <0 / 1> |
ui_playsettings_flags_listen_competitive | This command is likely used to configure user interface elements related to competitive settings in a listen server environment. The default value '16' might correspond to specific UI flags. | Examples, Generator & More | ui_playsettings_flags_listen_competitive <Flags Value> |
ui_playsettings_flags_listen_deathmatch | This command controls specific settings for a listen server in deathmatch mode. The default value is 32, which relates to certain predefined settings in deathmatch. | Examples, Generator & More | ui_playsettings_flags_listen_deathmatch <Value> |