CS2 Console Commands

From Counter-Strike 2 Wiki

CS2 Console Commands are text-based instructions entered through the developer console that allow players to customize their game experience, adjust settings, and execute actions not available through the standard menu system.

Enabling the Console

  1. Open SettingsGame
  2. Set Enable Developer Console to Yes
  3. Press the tilde key (`) to open the console in-game

Essential Commands

Practice and Server Commands

Command Description
sv_cheats 1 Enables cheat commands (required for many practice commands)
bot_kick Removes all bots from the server
bot_add_t / bot_add_ct Adds a bot to the specified team
mp_warmup_end Ends warmup immediately
mp_restartgame 1 Restarts the current game after 1 second
mp_roundtime_defuse 60 Sets round time to 60 minutes
mp_buy_anywhere 1 Allows buying anywhere on the map
mp_buytime 9999 Extends buy time indefinitely
mp_freezetime 0 Removes freeze time at round start
mp_maxmoney 65535 Sets maximum money limit
mp_startmoney 65535 Sets starting money
mp_free_armor 2 Gives free armor and helmet each round
sv_infinite_ammo 1 Infinite ammo (1 = no reload needed, 2 = infinite reserve)
sv_grenade_trajectory_prac_pipreview 1 Shows grenade trajectory preview before throwing

Grenade Practice Commands

Command Description
sv_grenade_trajectory_prac_pipreview 1 Shows landing preview for grenades
sv_rethrow_last_grenade Rethrows the last grenade thrown
give weapon_smokegrenade Gives a smoke grenade
give weapon_flashbang Gives a flashbang
give weapon_hegrenade Gives an HE grenade
give weapon_molotov Gives a Molotov cocktail
give weapon_incgrenade Gives an incendiary grenade
give weapon_decoy Gives a decoy grenade

Movement and Position

Command Description
noclip Toggle flying through walls (sv_cheats required)
god Toggle invincibility (sv_cheats required)
cl_showpos 1 Shows position and velocity on screen
getpos Prints current position to console
setpos x y z Teleports to coordinates

Visual and HUD

Command Description
cl_draw_only_deathnotices 1 Hides HUD except kill feed (useful for recording)
cl_hud_color 0-10 Changes HUD color
r_drawtracers_firstperson 0 Hides first-person bullet tracers
cl_showfps 1 Displays FPS counter
net_graph 1 Shows network stats overlay

Crosshair Commands

See Crosshair Settings for a comprehensive crosshair customization guide.

Command Description
cl_crosshairsize 2 Sets crosshair arm length
cl_crosshairthickness 0.5 Sets crosshair line thickness
cl_crosshairgap -2 Sets gap between crosshair lines
cl_crosshaircolor 1 Sets crosshair color preset (1=green, 2=yellow, 3=blue, 4=cyan, 5=custom)
cl_crosshairdot 0 Toggles center dot
cl_crosshairstyle 4 Sets crosshair style (4 = static)

Network and Performance

Command Description
rate 786432 Sets maximum network bandwidth
cl_interp_ratio 1 Sets interpolation ratio
fps_max 0 Uncaps framerate (0 = unlimited)
cl_forcepreload 1 Preloads map assets to reduce stuttering

Practice Mode Config

Copy and paste this block into the console for a complete Practice Mode setup:

sv_cheats 1; mp_warmup_end; bot_kick; mp_freezetime 0;
mp_roundtime_defuse 60; mp_buy_anywhere 1; mp_buytime 9999;
mp_maxmoney 65535; mp_startmoney 65535; mp_free_armor 2;
sv_infinite_ammo 1; sv_grenade_trajectory_prac_pipreview 1;
mp_restartgame 1

Autoexec

To have commands run automatically at game start, create a file called autoexec.cfg in your CS2 config directory:

...SteamsteamappscommonCounter-Strike Global Offensivegamecsgocfgautoexec.cfg

Add any commands you want to execute on startup, one per line.

See Also