CS2 Console Commands

159 useful CS2 console commands explained in plain English: what each one does, its values, its default and ready-to-copy examples. Commands from CS:GO that no longer work are marked Removed in CS2. Updated 19/10/2026.

Crosshair commands

crosshair

Shows or hides your crosshair. Default: 1

crosshair 0

cl_crosshair_gap

Space between the center and the crosshair lines, in pixels.

cl_crosshair_gap 1

cl_crosshairstyle

Chooses a static or dynamic crosshair. Default: 2

cl_crosshairstyle 4

cl_crosshaircolor_r

Red part of a custom crosshair color (0-255).

cl_crosshaircolor_r 0; cl_crosshaircolor_g 255; cl_crosshaircolor_b 255

cl_crosshaircolor_g

Green part of a custom crosshair color (0-255).

cl_crosshaircolor_g 255

cl_crosshaircolor_b

Blue part of a custom crosshair color (0-255).

cl_crosshaircolor_b 255

cl_crosshairoutline_r

Red part of the outline color (0-255).

cl_crosshairoutline_r 0; cl_crosshairoutline_g 0; cl_crosshairoutline_b 0; cl_crosshairoutline_a 255

cl_crosshairoutline_a

Opacity of the crosshair outline (0-255).

cl_crosshairoutline_a 255

cl_crosshairdot

Adds a dot in the center of the crosshair.

cl_crosshairdot 0

cl_crosshair_t

T-style crosshair (removes the top line).

cl_crosshair_t 1

cl_crosshair_dynamic_splitdist

Split distance of the dynamic crosshair (style 2).

cl_crosshair_dynamic_splitdist 7

cl_crosshair_dynamic_splitalpha_innermod

Opacity of the inner part of the dynamic crosshair.

cl_crosshair_dynamic_splitalpha_innermod 1

cl_crosshair_dynamic_splitalpha_outermod

Opacity of the outer part of the dynamic crosshair.

cl_crosshair_dynamic_splitalpha_outermod 0.5

cl_crosshair_dynamic_maxdist_splitratio

Size ratio between the inner and outer dynamic parts.

cl_crosshair_dynamic_maxdist_splitratio 0.35

cl_ironsight_dot_scale

Size of the scope dot on the AUG and SG 553.

cl_ironsight_dot_scale 1

cl_ironsight_usecrosshaircolor

Uses your crosshair color for the AUG / SG 553 scope dot.

cl_ironsight_usecrosshaircolor 1

cl_crosshair_friendly_warning

Warning icon when you aim at a teammate. Default: 1

cl_crosshair_friendly_warning 0

cl_crosshairsize

Old crosshair length setting, still in the console.

cl_crosshair_length 2

cl_crosshairthickness

Old crosshair thickness setting, still in the console.

cl_crosshair_thickness 2

cl_crosshairgapRemoved in CS2

Removed in CS2: replaced by cl_crosshair_gap.

cl_crosshair_gap 1

cl_crosshaircolorRemoved in CS2

Removed in CS2: the preset colors are gone.

cl_crosshaircolor_r 0; cl_crosshaircolor_g 255; cl_crosshaircolor_b 255

cl_crosshairalpha

Old crosshair opacity setting, still in the console.

cl_crosshaircolor_a 255

HUD & radar commands

cl_hud_color

Color of the HUD (health, ammo, money...).

cl_hud_color 1

cl_radar_scale

Zoom level of the radar. Default: 0.7

cl_radar_scale 0.35

cl_radar_rotate

Rotates the radar with your view. Default: 1

cl_radar_rotate 0

cl_radar_icon_scale_min

Minimum size of icons on the radar. Default: 0.6

cl_radar_icon_scale_min 0.8

cl_radar_square_with_scoreboard

Square radar when the scoreboard is open. Default: 1

cl_radar_square_with_scoreboard 1

cl_showfps

Shows your FPS on screen. Default: 0

cl_showfps 1

cl_showposNeeds sv_cheats

Shows your position and view angles (cheat). Default: 0

sv_cheats 1; cl_showpos 1

cq_netgraph

Shows network command queue statistics. Default: 0

cq_netgraph 1

cl_showloadout

Always shows your weapons on the right of the screen.

cl_showloadout 1

cl_drawhudNeeds sv_cheats

Hides the whole HUD (cheat). Default: 1

sv_cheats 1; cl_drawhud 0

safezonex

Moves the HUD inward horizontally.

safezonex 0.9

safezoney

Moves the HUD inward vertically.

safezoney 0.9

cl_teamid_overhead_mode

What you see above your teammates' heads. Default: 2

cl_teamid_overhead_mode 1

cl_teammate_colors_show

Teammate colors in competitive. Default: 1

cl_teammate_colors_show 2

Viewmodel commands

viewmodel_fov

How far your weapon model is from the camera. Default: 60

viewmodel_fov 68

viewmodel_offset_x

Moves the weapon left or right. Default: 1

viewmodel_offset_x 2.5

viewmodel_offset_y

Moves the weapon forward or back. Default: 1

viewmodel_offset_y 0

viewmodel_offset_z

Moves the weapon up or down. Default: -1

viewmodel_offset_z -1.5

viewmodel_presetpos

Preset weapon positions. Default: 1

viewmodel_presetpos 3

r_drawviewmodelNeeds sv_cheats

Hides your weapon model (cheat). Default: 1

sv_cheats 1; r_drawviewmodel 0

Graphics & FPS commands

fps_max

Caps your frame rate. Default: 400

fps_max 0

fps_max_ui

Caps your frame rate in menus. Default: 120

fps_max_ui 60

r_fullscreen_gamma

Screen brightness in fullscreen. Default: 2.2

r_fullscreen_gamma 2

engine_low_latency_sleep_after_client_tick

Low latency tweak used with NVIDIA Reflex. Default: 0

engine_low_latency_sleep_after_client_tick 1

r_show_build_info

Shows the game version text in the corner. Default: 1

r_show_build_info 0

mat_monitorgammaRemoved in CS2

Removed in CS2: replaced by r_fullscreen_gamma.

r_fullscreen_gamma 2

Network commands

rate

Maximum data your connection can receive. Default: 786432

rate 786432

net_client_steamdatagram_enable_override

Uses or avoids Valve's relay network. Default: 0

net_client_steamdatagram_enable_override 1

status

Prints server and player information.

status

cl_lagcompensation

Server-side lag compensation. Default: 1

cl_lagcompensation 1

net_graphRemoved in CS2

Removed in CS2: the old CS:GO network graph.

cl_hud_telemetry_frametime_show 2

cl_interp

Shows the interpolation used by the game.

cl_interp

cl_interp_ratio

Interpolation ratio, managed by CS2. Default: 0

cl_interp_ratio 0

cl_updaterateRemoved in CS2

Removed in CS2: the update rate is fixed by the server.

cl_cmdrateRemoved in CS2

Removed in CS2: the command rate is fixed.

Mouse commands

sensitivity

Your mouse sensitivity. Default: 2.5

sensitivity 1.2

m_yaw

Horizontal mouse speed factor. Default: 0.022

m_yaw 0.022

m_pitch

Vertical mouse speed factor. Default: 0.022

m_pitch 0.022

m_rawinputRemoved in CS2

Removed in CS2: raw mouse input is always on.

sensitivity 1.2

m_customaccelRemoved in CS2

Removed in CS2: no mouse acceleration setting.

Audio commands

volume

Main game volume.

volume 0.5

snd_voipvolume

Volume of your teammates' voices. Default: 1

snd_voipvolume 0.6

snd_menumusic_volume

Volume of the menu music.

snd_menumusic_volume 0

snd_roundstart_volume

Volume of the round start music.

snd_roundstart_volume 0

snd_mvp_volume

Volume of the MVP music.

snd_mvp_volume 0.1

snd_tensecondwarning_volume

Volume of the 10-second bomb warning.

snd_tensecondwarning_volume 0.2

snd_mapobjective_volume

Volume of the bomb and hostage music.

snd_mapobjective_volume 0.1

snd_deathcamera_volume

Volume of the death camera sound.

snd_deathcamera_volume 0

snd_mute_losefocus

Mutes the game when you alt-tab.

snd_mute_losefocus 0

snd_headphone_eq

Headphone equalizer preset. Default: 0

snd_headphone_eq 1

voice_scaleRemoved in CS2

Removed in CS2: replaced by snd_voipvolume.

snd_voipvolume 0.6

Practice & server commands

sv_cheats

Enables cheat commands on your server. Default: 0

sv_cheats 1

sv_infinite_ammoNeeds sv_cheats

Infinite ammo and grenades. Default: 0

sv_cheats 1; sv_infinite_ammo 1

sv_showimpacts

Shows where your bullets hit. Default: 0

sv_showimpacts 1

sv_showimpacts_time

How long bullet impacts stay visible. Default: 4

sv_showimpacts_time 10

mp_roundtime_defuse

Length of a round on bomb maps, in minutes. Default: 2.25

mp_roundtime_defuse 60

mp_freezetime

Freeze time at the start of a round, in seconds. Default: 5

mp_freezetime 0

mp_warmup_end

Ends the warmup immediately.

mp_warmup_end

mp_warmup_pausetimer

Stays in warmup forever. Default: 0

mp_warmup_pausetimer 1

mp_restartgame

Restarts the match.

mp_restartgame 1

mp_buy_anywhere

Lets you buy anywhere on the map. Default: 0

mp_buy_anywhere 1

mp_buytime

How long you can buy after the round starts. Default: 45

mp_buytime 9999

mp_maxmoney

Maximum money a player can have. Default: 10000

mp_maxmoney 60000

mp_startmoney

Money each player starts with. Default: 1000

mp_startmoney 60000

mp_respawn_on_death_t

Terrorists respawn after dying. Default: 0

mp_respawn_on_death_t 1

mp_respawn_on_death_ct

Counter-Terrorists respawn after dying. Default: 0

mp_respawn_on_death_ct 1

mp_ignore_round_win_conditions

Rounds never end. Default: 0

mp_ignore_round_win_conditions 1

mp_limitteams

Maximum player difference between teams. Default: 2

mp_limitteams 0

mp_autoteambalance

Automatic team balance. Default: 1

mp_autoteambalance 0

mp_drop_knife_enable

Allows dropping knives. Default: 0

mp_drop_knife_enable 1

ammo_grenade_limit_total

Maximum grenades a player can carry. Default: 4

ammo_grenade_limit_total 5

noclipNeeds sv_cheats

Fly through walls (cheat).

sv_cheats 1; noclip

godNeeds sv_cheats

Makes you invulnerable (cheat).

sv_cheats 1; god

give

Gives you a weapon or item.

give weapon_ak47

host_timescaleNeeds sv_cheats

Speeds up or slows down the game (cheat). Default: 1

host_timescale 0.5

getposNeeds sv_cheats

Prints your exact position (cheat).

getpos

setposNeeds sv_cheats

Teleports you to a position (cheat).

setpos 0 0 0

Bots commands

bot_kick

Removes bots from the server.

bot_kick

bot_add_t

Adds a Terrorist bot.

bot_add_t

bot_add_ct

Adds a Counter-Terrorist bot.

bot_add_ct

bot_quota

Total number of bots on the server. Default: 1

bot_quota 0

bot_difficulty

Skill level of new bots. Default: 2

bot_difficulty 3

bot_stopNeeds sv_cheats

Freezes the bots' brains (cheat). Default: 0

bot_stop 1

bot_freezeNeeds sv_cheats

Bots cannot move (cheat). Default: 0

bot_freeze 1

bot_dont_shootNeeds sv_cheats

Bots never shoot (cheat). Default: 0

bot_dont_shoot 1

bot_placeNeeds sv_cheats

Places a bot where you aim (cheat).

bot_place

bot_mimicNeeds sv_cheats

Bots copy your movements (cheat). Default: 0

bot_mimic 1

bot_crouchNeeds sv_cheats

Bots crouch (cheat). Default: 0

bot_crouch 1

General commands

bind

Assigns a command to a key.

bind f "+lookatweapon"

unbind

Removes a key binding.

unbind kp_end

unbindall

Removes every key binding.

unbindall

alias

Creates a custom command.

alias prac "sv_cheats 1; sv_infinite_ammo 1; mp_buy_anywhere 1"

exec

Runs a config file.

exec autoexec

host_writeconfig

Saves your current settings.

host_writeconfig

toggleconsole

Opens or closes the console.

bind f10 toggleconsole

clear

Clears the console.

clear

echo

Writes text in the console.

echo Practice config loaded

find

Searches commands by name or description.

find crosshair

help

Explains a command.

help fps_max

connect

Joins a server by IP address.

connect 127.0.0.1:27015

disconnect

Leaves the current server.

disconnect

quit

Closes CS2.

quit

map

Loads a map on your own server.

map de_mirage

changelevel

Changes the map on your server.

changelevel de_inferno

killNeeds sv_cheats

Kills your player (cheat).

kill

explodeNeeds sv_cheats

Kills your player with an explosion (cheat).

explode

record

Records a demo of your game.

record mymatch

stop

Stops recording a demo.

stop

playdemo

Plays a demo file.

playdemo mymatch

demoui

Opens the demo player controls.

demoui

demo_gototick

Jumps to a moment in a demo.

demo_gototick 64000

gameinstructor_enable

In-game tips for new players. Default: 0

gameinstructor_enable 0

cl_autohelp

Automatic help hints.

cl_autohelp 0

cl_use_opens_buy_menu

Use key opens the buy menu. Default: 1

cl_use_opens_buy_menu 0

cl_join_advertise

Lets friends join your games. Default: 1

cl_join_advertise 2

cl_dm_buyrandomweapons

Random weapons in deathmatch. Default: 1

cl_dm_buyrandomweapons 0

cl_sniper_delay_unscope

Delays unscoping after an AWP shot. Default: 0

cl_sniper_delay_unscope 1

+lookatweapon

Inspects your weapon.

bind f +lookatweapon

CS2 console FAQ

How do I open the console in CS2?

Go to Settings › Game and set Enable Developer Console to Yes. Then press the ~ key (under Escape) in game to open it. If your keyboard has no ~ key, bind toggleconsole to another key.

Do console commands work in competitive matchmaking?

Most commands that change your own settings (crosshair, HUD, radar, mouse, audio) work everywhere. Commands marked Needs sv_cheats, and server commands starting with mp_ or bot_, only work on a server you host, for example a private match with bots.

How do I save my console commands?

Put them in a file named autoexec.cfg in the game's cfg folder (game/csgo/cfg) and add +exec autoexec to your launch options, or type exec autoexec in the console.

Why does a CS:GO command not work in CS2?

Many CS:GO commands were removed or renamed in CS2, such as net_graph. Commands marked Removed in CS2 on this page tell you what to use instead.