CS2 Console Commands

Complete reference of 250 CS2 console commands and variables across 16 categories. Search, filter, and copy any command instantly.

Showing 250 of 250 commands

How to Open the Console

1
Open Settings

Click the gear icon in the top-left corner of the CS2 main menu.

2
Enable Console

Go to Game tab → find Enable Developer Console (~) → set to Yes.

3
Press Tilde (~)

In-game, press the ~ key (above Tab) to open the console. Type any command and press Enter.

Essential Commands

Must-know commands every CS2 player should have in their toolkit.

15
Command Description Default
quit Immediately closes CS2
disconnect Disconnects from the current server
retry Reconnects to the last server
exec Executes a config file (e.g. exec autoexec)
host_writeconfig Saves current settings to config.cfg
bind Binds a key to a command (e.g. bind "f" "+use")
unbind Removes a key binding
unbindall Removes all key bindings — use with caution
alias Creates a shortcut name for a sequence of commands
echo Prints text to the console (useful in configs for labels)
clear Clears the console output
status Shows server info, connected players, and your SteamID
ping Shows your current ping to the server
version Shows the current CS2 build version
maps Lists all available maps on the server

Crosshair

Customize every aspect of your crosshair appearance.

18
Command Description Default
cl_crosshairstyle Crosshair style (0 = default, 1 = static classic, 2 = dynamic classic, 3 = dynamic, 4 = static, 5 = legacy) 0
cl_crosshairsize Length of the crosshair lines 2.5
cl_crosshairgap Gap between crosshair lines and center (-5 to 5) 0
cl_crosshairthickness Thickness of the crosshair lines 0.5
cl_crosshaircolor Crosshair color preset (1=green, 2=yellow, 3=blue, 4=cyan, 5=custom RGB) 1
cl_crosshaircolor_r Custom crosshair red value (0-255) 50
cl_crosshaircolor_g Custom crosshair green value (0-255) 250
cl_crosshaircolor_b Custom crosshair blue value (0-255) 50
cl_crosshairalpha Crosshair opacity (0-255, 255 = fully opaque) 200
cl_crosshairdot Show center dot (0 = off, 1 = on) 0
cl_crosshair_t T-shaped crosshair — removes top line (0 = off, 1 = on) 0
cl_crosshair_drawoutline Draw outline around crosshair (0 = off, 1 = on) 0
cl_crosshair_outlinethickness Thickness of the crosshair outline 1
cl_crosshair_sniper_width Width of the sniper scope crosshair line 1
cl_crosshair_sniper_show_normal_inaccuracy Show movement inaccuracy on sniper crosshair 0
cl_crosshairgap_useweaponvalue Use weapon-specific gap values for dynamic crosshair 0
cl_crosshair_friendly_warning Crosshair warning when aiming at teammates (0=off, 1=flash, 2=icon) 1
cl_crosshair_recoil Crosshair follows recoil pattern (0=off, 1=on) 1
👁️

Viewmodel & HUD

Adjust your weapon viewmodel position and HUD display settings.

24
Command Description Default
viewmodel_fov Viewmodel field of view (54-68) 60
viewmodel_offset_x Viewmodel horizontal offset (-2.5 to 2.5) 2.5
viewmodel_offset_y Viewmodel depth offset (-2 to 2) 0
viewmodel_offset_z Viewmodel vertical offset (-2 to 2) -1.5
viewmodel_presetpos Viewmodel preset (1=desktop, 2=couch, 3=classic) 1
cl_righthand Right-hand (1) or left-hand (0) weapon model 1
cl_bobamt_lat Weapon bob amount — lateral movement 0.4
cl_bobamt_vert Weapon bob amount — vertical movement 0.25
cl_bob_lower_amt How much the viewmodel lowers when running 21
cl_bobcycle Bob cycle speed 0.98
cl_showfps Show FPS counter (0=off, 1=FPS, 2=FPS+frametime) 0
cl_showpos Show position, velocity, and angles on screen 0
cq_netgraph Show network graph with ping, loss, and tick info 0
cl_drawhud SV Toggle the entire HUD on or off 1
cl_draw_only_deathnotices SV Only show kill feed — hide rest of HUD 0
hud_scaling HUD scale size (0.5-0.95) 0.85
cl_hud_color HUD accent color (0-10: default, white, blue, purple, green, etc.) 0
cl_hud_background_alpha HUD background transparency (0.0-1.0) 0.5
cl_hud_healthammo_style Health/ammo HUD style (0=default, 1=simple) 0
cl_hud_playercount_showcount Show player count as number (1) or avatars (0) 0
cl_hud_playercount_pos Player count position (0=top, 1=bottom) 0
cl_showloadout Always show weapon loadout panel (0=auto-hide, 1=always) 1
safezonex Horizontal HUD safe zone (0.85-1.0) 1.0
safezoney Vertical HUD safe zone (0.85-1.0) 1.0
🖱️

Mouse & Sensitivity

Fine-tune mouse input, sensitivity, and acceleration.

7
Command Description Default
sensitivity Mouse sensitivity value (typically 0.5-4.0) 2.5
zoom_sensitivity_ratio Scoped sensitivity multiplier (relative to hip-fire) 1.0
m_rawinput Use raw mouse input, bypassing OS acceleration (0=off, 1=on) 1
m_yaw Mouse yaw (horizontal) sensitivity factor 0.022
m_pitch Mouse pitch (vertical) sensitivity factor 0.022
m_customaccel Custom mouse acceleration mode (0=off, 1=on) 0
m_customaccel_exponent Mouse acceleration exponent (if enabled) 1.05
🏃

Movement

Commands related to player movement, jumping, and crouching.

16
Command Description Default
+forward Move forward (default: W)
+back Move backward (default: S)
+moveleft Strafe left (default: A)
+moveright Strafe right (default: D)
+jump Jump (default: Space)
+duck Crouch/duck (default: Ctrl)
+sprint Walk/shift-walk for silent movement (default: Shift)
cl_forcepreload Preload all map resources at load time 0
sv_autobunnyhopping SV Auto-bunny hop when holding jump (hold space) 0
sv_enablebunnyhopping SV Remove bunny hop speed cap 0
sv_maxspeed SV Maximum player movement speed 320
sv_stamina_max SV Maximum stamina penalty (affects jump height) 80
sv_stamina_recovery_rate SV Rate at which stamina recovers 60
sv_staminajumpcost SV Stamina cost per jump 0.08
sv_wateraccelerate SV Water acceleration speed 10
cl_showpos Display position and velocity overlay (useful for movement practice) 0
📡

Radar & Minimap

Customize the radar display, zoom, rotation, and icons.

6
Command Description Default
cl_radar_scale Radar zoom level (0.25-1.0, lower = more zoomed out) 0.7
cl_radar_always_centered Keep player centered on radar (0=off gives wider view) 1
cl_radar_rotate Radar rotates with player view (0=fixed north, 1=rotate) 1
cl_radar_icon_scale_min Minimum icon size on radar 0.6
cl_hud_radar_scale Radar HUD element size 1.0
cl_radar_square_with_scoreboard Show square radar when scoreboard is open 1
🌐

Network & Connection

Optimize your network settings for lower latency and smoother gameplay.

11
Command Description Default
rate Max bytes per second from server (786432 = max for 128-tick) 786432
cl_interp_ratio Interpolation ratio (1 = LAN/good connection, 2 = default) 2
cl_interp Interpolation amount in seconds (0 = auto-calculate from ratio) 0.03125
cl_cmdrate Max command packets sent to server per second 128
cl_updaterate Max update packets received from server per second 128
mm_dedicated_search_maxping Maximum acceptable ping for matchmaking servers 150
cl_timeout Seconds before disconnecting from an unresponsive server 30
net_graph Show network statistics overlay (0=off, 1=on) 0
net_graphproportionalfont Scale net_graph text proportionally 1
cl_predict Enable client-side prediction (should always be 1) 1
cl_lagcompensation Enable lag compensation 1
🔊

Audio & Sound

Adjust volume levels, 3D audio, and audio output settings.

18
Command Description Default
volume Master volume (0.0-1.0) 1.0
snd_roundstart_volume Round start music volume (0.0-1.0) 0.04
snd_roundend_volume Round end music volume (0.0-1.0) 0.04
snd_deathcamera_volume Death camera music volume 0.0
snd_mvp_volume MVP anthem volume 0.03
snd_tensecondwarning_volume Ten-second bomb warning volume 0.05
snd_menumusic_volume Main menu music volume 0.03
snd_mapobjective_volume Map objective sound volume (bomb plant/defuse) 0.04
snd_headphone_pan_exponent Headphone panning curve exponent 1.0
snd_headphone_pan_radial_weight Headphone spatial weight for radial panning 1.0
snd_front_headphone_position Front speaker position for headphone virtualization 90.0
snd_rear_headphone_position Rear speaker position for headphone virtualization 90.0
snd_mute_losefocus Mute audio when CS2 is not the active window 1
voice_scale Teammate voice chat volume scale 1.0
voice_enable Enable voice communication (0=off, 1=on) 1
voice_modenable Enable open mic mode 1
cl_mute_enemy_team Mute enemy team voice and text chat 0
cl_mute_all_but_friends_and_party Only hear friends and party members 0
🖥️

Graphics & Performance

Optimize visual settings and FPS performance.

11
Command Description Default
fps_max Maximum framerate cap (0 = unlimited) 400
fps_max_ui Maximum framerate in menus/UI 120
r_dynamic Enable dynamic lighting (0=off for FPS boost) 1
r_drawtracers_firstperson Show bullet tracers in first person (0=off) 1
r_drawparticles SV Draw particle effects 1
mat_queue_mode Material threading mode (-1=auto, 0=sync, 2=multi-core) -1
cl_forcepreload Force preload all assets at map load 0
mat_disable_bloom Disable bloom/glow effects 0
engine_low_latency_sleep_after_client_tick Reduce input latency by sleeping after client tick true
cl_animate_player_models Animate player models in menus 1
r_fullscreen_gamma Fullscreen gamma value 2.2
🔫

Weapon & Shooting

Weapon behavior, buy commands, and shooting-related settings.

17
Command Description Default
cl_autowepswitch Auto-switch to picked up weapons (0=off, 1=on) 1
cl_use_opens_buy_menu Use key opens buy menu in buy zone (0=off) 1
closeonbuy Close buy menu after purchasing (0=stay open) 0
cl_autohelp Show automatic help/hint messages 1
cl_showhelp Show on-screen help tips 1
buy Buy a weapon (e.g. buy ak47, buy vesthelm)
slot1 Switch to primary weapon
slot2 Switch to secondary weapon (pistol)
slot3 Switch to knife
slot4 Switch to grenades
slot5 Switch to C4 / defuse kit
lastinv Switch to last used weapon (quick-switch)
invnext Cycle to next weapon in inventory
invprev Cycle to previous weapon in inventory
+reload Reload current weapon
drop Drop the currently held weapon
cl_crosshair_recoil Crosshair follows recoil (0=static, 1=follows spray) 1
🎯

Practice & Training

Commands for private practice servers — most require sv_cheats 1.

31
Command Description Default
sv_cheats Enable cheat-protected commands (0=off, 1=on) 0
noclip SV Toggle fly mode — pass through walls and terrain
god SV Toggle invincibility (god mode)
sv_infinite_ammo SV Infinite ammo (1=infinite reserve, 2=no reload needed) 0
sv_grenade_trajectory SV Show grenade flight path lines 0
sv_grenade_trajectory_time SV How long trajectory lines stay visible (seconds) 20
sv_grenade_trajectory_prac_pipreview SV Show grenade landing preview while holding 0
sv_grenade_trajectory_prac_trailtime SV Trail time for practice grenade trajectories 10
sv_showimpacts SV Show bullet impact points (1=both, 2=client, 3=server) 0
sv_showimpacts_time SV How long impact markers stay visible (seconds) 4
sv_showbullethits SV Show bullet hit visualization on players 0
give SV Give yourself a weapon or item (e.g. give weapon_ak47)
mp_damage_print_enable Print damage dealt and received in console 1
cl_grenadepreview SV Show grenade trajectory preview while aiming 0
sv_rethrow_last_grenade SV Re-throws the last grenade you threw
mp_buy_anywhere Allow buying weapons anywhere on the map (1=on) 0
mp_buytime Buy time in seconds after round start 20
mp_startmoney Starting money at the beginning of the match 800
mp_maxmoney Maximum money a player can hold 16000
mp_afterroundmoney Money given after every round regardless of outcome 0
mp_roundtime Round time in minutes 1.92
mp_roundtime_defuse Round time for defuse maps in minutes 1.92
mp_freezetime Freeze time at round start in seconds (0 = none) 15
mp_warmuptime Warmup duration in seconds 90
mp_warmup_end Immediately end the warmup period
mp_restartgame Restart the game after N seconds (e.g. mp_restartgame 1)
mp_respawn_on_death_ct CTs auto-respawn on death (1=on) 0
mp_respawn_on_death_t Terrorists auto-respawn on death (1=on) 0
mp_respawn_immunitytime Seconds of spawn protection 4
sv_regeneration_force_on SV Force health regeneration 0
ent_fire SV Fire an entity input (advanced map manipulation)
🤖

Bot Commands

Add, remove, and control bots in private/practice matches.

14
Command Description Default
bot_add Add a bot to the game (auto team balance)
bot_add_t Add a bot to the Terrorist team
bot_add_ct Add a bot to the Counter-Terrorist team
bot_kick Kick all bots from the server
bot_stop SV Freeze all bots in place (1=frozen, 0=normal) 0
bot_mimic SV Bots mimic player movements (1=on) 0
bot_crouch SV Force bots to crouch (1=on) 0
bot_place SV Place a bot at your crosshair position
bot_difficulty Bot difficulty level (0=easy, 1=normal, 2=hard, 3=expert) 1
bot_dont_shoot SV Prevent bots from shooting (1=no shooting) 0
bot_knives_only SV Bots use only knives (1=on) 0
bot_zombie SV Bots stand still and don't react (1=on) 0
bot_quota Maximum number of bots allowed 10
bot_quota_mode Bot fill mode (normal, fill, match) normal
🖧

Server & Match

Server administration and match settings for private servers.

20
Command Description Default
changelevel Change to a different map (e.g. changelevel de_mirage)
map Load a map and restart the server (e.g. map de_dust2)
game_mode Set game mode (0=casual, 1=competitive, 2=wingman) 0
game_type Set game type (0=classic, 1=arms race, etc.) 0
mp_autoteambalance Auto-balance teams (0=off, 1=on) 1
mp_limitteams Max player imbalance between teams (0=no limit) 2
mp_timelimit Time limit per map in minutes (0=none) 0
mp_maxrounds Max rounds per half 30
mp_overtime_enable Enable overtime in competitive (1=on) 0
mp_overtime_maxrounds Max rounds in overtime 6
mp_halftime Enable halftime (1=on) 1
mp_friendlyfire Enable friendly fire (0=off, 1=on) 1
mp_solid_teammates Teammates block each other (0=pass through, 1=solid) 1
mp_autokick Auto-kick idle players and team killers 1
sv_password Server password (empty = public)
sv_lan Run server in LAN mode only (1=LAN) 0
hostname Set the server name displayed in browser
rcon_password Remote console password for server administration
rcon Execute a remote console command (e.g. rcon sv_cheats 1)
kick Kick a player by name or userid
🎬

Demo & Recording

Record and playback demos for review or content creation.

15
Command Description Default
record Start recording a demo (e.g. record mydemo)
stop Stop recording the current demo
playdemo Play back a recorded demo file
demoui Open the demo playback control UI
demo_pause Pause demo playback
demo_resume Resume demo playback
demo_timescale Demo playback speed multiplier (0.25=quarter, 2=double) 1
demo_goto Skip to a specific tick number in the demo
spec_show_xray Toggle X-ray outline view in spectate/demo 0
cl_draw_only_deathnotices SV Only show kill feed — hide HUD (for movie making) 0
cl_drawhud SV Hide entire HUD for clean screenshots/recordings 1
sv_skyname SV Change the skybox texture (for cinematic shots)
fog_override SV Override fog settings (1=enable custom fog) 0
fog_enable SV Enable or disable fog (0=off, 1=on) 1
screenshot Take a screenshot and save to screenshots folder
💬

Communication

Voice chat, text chat, and team communication commands.

11
Command Description Default
+voicerecord Push-to-talk voice chat (bind to a key)
say Send a message to all players
say_team Send a message to your team only
cl_mute_enemy_team Mute all enemy voice and text chat 0
cl_mute_all_but_friends_and_party Only hear friends and party members 0
voice_enable Enable or disable voice chat entirely 1
voice_scale Volume of other players' voice chat (0.0-1.0) 1.0
ignoremsg Cycle chat filter (all → team only → none → all)
player_ping Ping a location for teammates (default: mouse wheel click)
cl_show_clan_in_death_notice Show clan tags in the kill feed 1
cl_clanid Set your clan tag ID
🔧

Utility & Misc

Miscellaneous commands for screenshots, workshop, and other features.

16
Command Description Default
cl_downloadfilter Download filter for community servers (all, nosounds, none) all
cl_disablehtmlmotd Disable HTML message of the day on community servers 0
cl_join_advertise Let friends join your game (0=off, 1=friends, 2=friends+lobby) 1
gameinstructor_enable Enable in-game tips and tutorials (0=off) 1
r_cleardecals Remove all bullet holes and blood decals from surfaces
cl_color Preferred team color (0=yellow, 1=purple, 2=green, 3=blue, 4=orange) 0
cl_teammate_colors_show Show unique teammate colors (0=off, 1=on, 2=letters) 1
con_filter_enable Enable console output filtering (1=highlight, 2=show only matches) 0
con_filter_text Console filter text — only show lines containing this string
developer Enable developer messages in console (0=off, 1=on, 2=verbose) 0
map_workshop Load a workshop map by its ID
workshop_subscribe Subscribe to a workshop item by ID
toggle Toggle a cvar between values (e.g. toggle cl_showfps 0 1)
incrementvar Increment a cvar (e.g. incrementvar volume 0 1 0.1)
cl_allowdownload Allow downloading resources from servers 1
cl_allowupload Allow uploading your spray/resources to servers 1

Quick Copy Configs

Common command combinations ready to paste into your console or autoexec.cfg.

Practice Server Setup

sv_cheats 1
sv_infinite_ammo 1
sv_grenade_trajectory 1
sv_grenade_trajectory_time 10
sv_showimpacts 1
mp_warmup_end
mp_freezetime 0
mp_roundtime_defuse 60
mp_buy_anywhere 1
mp_buytime 9999
mp_maxmoney 65535
mp_startmoney 65535
mp_respawn_on_death_ct 1
mp_respawn_on_death_t 1
bot_kick

FPS Optimization

fps_max 0
fps_max_ui 120
r_drawtracers_firstperson 0
cl_forcepreload 1
cl_animate_player_models 0
engine_low_latency_sleep_after_client_tick true
gameinstructor_enable 0
cl_autohelp 0
cl_showhelp 0

Competitive Network

rate 786432
cl_interp_ratio 1
cl_interp 0
cl_cmdrate 128
cl_updaterate 128
mm_dedicated_search_maxping 80

Clean HUD for Content

cl_drawhud 0
cl_draw_only_deathnotices 1
sv_skyname vertigoblue_hdr
fog_override 1
fog_enable 0
r_drawparticles 0

Pro Radar Settings

cl_radar_scale 0.35
cl_radar_always_centered 0
cl_radar_rotate 1
cl_radar_icon_scale_min 0.5
cl_hud_radar_scale 1.15
cl_radar_square_with_scoreboard 1

Audio Optimization

volume 0.4
snd_roundstart_volume 0
snd_roundend_volume 0
snd_deathcamera_volume 0
snd_mvp_volume 0
snd_menumusic_volume 0
snd_tensecondwarning_volume 0.1
snd_mute_losefocus 1
voice_scale 0.7

Frequently Asked Questions

How do I open the console in CS2?
Open Settings → Game → Enable Developer Console (~) → set to "Yes". Then press the tilde key (~) during a game to open the console. You can type any command directly into the console.
What is the difference between a command and a cvar?
Commands execute an action immediately (like "quit" or "noclip"). Cvars (console variables) store a value that changes a setting (like "sensitivity 2.5" or "cl_showfps 1"). Cvars persist between sessions if saved with host_writeconfig.
Do console commands work in competitive matchmaking?
Most client-side commands (cl_, hud_, crosshair) work everywhere. Server-side commands (sv_, mp_) only work on servers where you have admin access or in offline/private matches. Commands requiring sv_cheats 1 are blocked in competitive.
How do I save my console settings permanently?
Create an autoexec.cfg file in your CS2 cfg folder (Steam/steamapps/common/Counter-Strike Global Offensive/game/csgo/cfg/) and add your commands there. End the file with host_writeconfig. These commands run automatically every time CS2 launches.
What does sv_cheats 1 do?
sv_cheats 1 enables cheat-protected commands on the server. This is required for practice commands like noclip, god mode, and grenade trajectory. It only works in private/offline matches and disables achievements while active.
Can I get banned for using console commands?
No. Console commands are a built-in feature of CS2. You cannot get VAC banned for using any console command. Cheat-protected commands simply won't execute on official servers.