CSGOLuckGuides

CS2 console commands

Every CS2 console command worth knowing, 191 in all, matched against the game's own command list. Defaults, ranges and the sv_cheats flag are read from the game, not copied from old CS:GO lists.

Verified for current CS2 versionGame dump 28 October 202621 need sv_cheats7 removed since CS:GOUpdated

This guide in other languages: Русский · Português · Español · Polski · Türkçe · Français · 简体中文

Browse by category

All commands

CommandWhat it doesDefaultCategoryNotes
sv_cheatsTurns cheat-protected commands on or off for the server. Only the server's host can set it, so it works offline and on your own server, never in matchmaking.0 (false)Cheat commands
sv_infinite_ammoInfinite ammo. 1 also gives infinite grenades, so you can keep throwing the same one. 2 keeps your reserve ammo full but you still reload.0Practicesv_cheats
mp_roundtime_defuseRound length in minutes on bomb defusal maps. Set it high for practice so the round never ends.0Practice
mp_roundtimeRound length in minutes for modes other than bomb defusal.5Server
mp_freezetimeSeconds of freeze time at the start of each round. 0 removes it.6Practice
mp_buytimeSeconds after the round starts that you can still buy.90Practice
mp_buy_anywhereLets players buy outside the buy zone.0Practice
mp_maxmoneyThe most money a player can hold.16000Practice
mp_startmoneyMoney each player starts a half with.800Practice
mp_warmup_endEnds warmup straight away and starts the match.Practice
mp_restartgameRestarts the match after the given number of seconds. Use it after changing round or money settings so they take effect.0Practice
mp_respawn_on_death_tTerrorists respawn after dying.0 (false)Practice
mp_respawn_on_death_ctCounter-Terrorists respawn after dying.0 (false)Practice
mp_ignore_round_win_conditionsStops rounds from ending when a team is eliminated or the bomb goes off.0 (false)Practice
mp_limitteamsThe largest player-count difference allowed between teams. 0 removes the limit, so you can play alone on one side.2Server
mp_autoteambalanceMoves players between teams to keep the sides even. Turn it off for practice.1 (true)Server
mp_c4timerSeconds from plant until the bomb explodes.40Server
mp_friendlyfireLets players damage teammates.0 (false)Server
mp_free_armorGives every player armour at round start.0Server
mp_solid_teammatesWhether teammates block each other.1Server
mp_give_player_c4Whether a Terrorist is given the bomb at round start.1 (true)Server
mp_defuser_allocationGives Counter-Terrorists defuse kits at round start.0Server
sv_showimpactsDraws a box where each bullet hits: red for where your client thinks it hit, blue for where the server registered it.0Practice
sv_showimpacts_timeHow many seconds the impact boxes from sv_showimpacts stay on screen.4Practice
sv_airaccelerateHow much you can steer while airborne. Higher values make air strafing and surf easier.12Server
sv_gravityWorld gravity. Lower values make jumps float.800Server
host_timescaleSpeeds up or slows down the whole game. 1 is normal speed. Cheat-protected.1Cheat commandssv_cheats
noclipFly through walls and floors. Run it again to land. Cheat-protected, so sv_cheats 1 first.Cheat commandssv_cheats
godYou take no damage. Run it again to turn it off. Cheat-protected.Cheat commandssv_cheats
giveGives you an item by its entity name, for example weapon_ak47 or weapon_smokegrenade. It works on a server you control, such as an offline practice game.Cheat commands
weapon_accuracy_nospreadRemoves weapon spread, so every bullet goes where you aim. Useful for testing spots on a server you run.0 (false)Cheat commands
cl_showposShows your map position, view angle and speed in the corner of the screen. Cheat-protected in CS2.0Cheat commandssv_cheats
buddhaYou take damage but never die. Cheat-protected.0 (false)Cheat commandssv_cheats
sv_noclipspeedHow fast you fly in noclip. Lower it for fine positioning.1200Cheat commands
impulseRuns a numbered engine action. In CS:GO, impulse 101 gave full money; CS2 still has the impulse command, but check its effect on your build before relying on it.Cheat commands
setposMoves you to an exact map position. Use it with setang to stand on a saved lineup spot.Cheat commandssv_cheats
getposPrints your position and view angle as a setpos/setang line you can paste back later. Cheat-protected.Practicesv_cheats
killKills your own player. Cheat-protected in CS2.Practicesv_cheats
explodeKills your own player with an explosion. Cheat-protected.Practicesv_cheats
bot_mimicBots copy the inputs of the player with that index; 1 is usually you in an offline game. 0 turns it off. Cheat-protected.0Botssv_cheats
switchhandsSwaps the hand your weapon is held in. Bind it to a key to switch on the fly.Viewmodel
cl_crosshairsizeA crosshair size setting carried over from CS:GO. It is still in the game's list, but the CS2 menu uses cl_crosshair_length.3.9Crosshair
cl_crosshairthicknessA crosshair thickness setting carried over from CS:GO. It is still in the game's list, but the CS2 menu uses cl_crosshair_thickness.0.6Crosshair
cl_crosshairalphaA crosshair opacity setting carried over from CS:GO. It is still in the game's list; the CS2 menu uses cl_crosshaircolor_a.200Crosshair
+spray_menuOpens the graffiti wheel while held.Console and binds
+radialradioOpens the radio command wheel while held.Console and binds
sv_grenade_trajectory_prac_pipreviewWhile you hold a grenade, shows its predicted path and a small picture-in-picture view of where it will land. Set it on a server you control, usually with sv_cheats 1 for the rest of a practice config.0 (false)Grenades
sv_grenade_trajectory_prac_trailtimeHow many seconds the path of a thrown grenade stays drawn.0Grenades
sv_rethrow_last_grenadeThrows your last grenade again from the same spot and angle, so you can watch it land without walking back. Cheat-protected.Grenadessv_cheats
ammo_grenade_limit_totalThe most grenades one player can carry.3Grenades
cl_grenadecrosshair_keepusercrosshairKeeps your own crosshair while you hold a grenade, instead of the game's grenade crosshair.1 (true)Grenades
bot_kickRemoves bots from the server. With no argument it kicks all of them.Bots
bot_addAdds a bot. Give t or ct to pick the side.Bots
bot_add_tAdds a Terrorist bot.Bots
bot_add_ctAdds a Counter-Terrorist bot.Bots
bot_stopBots stop thinking: they stand still and do not react.0Botssv_cheats
bot_freezeBots cannot move but can still aim and shoot.0 (false)Botssv_cheats
bot_crouchBots crouch.0 (false)Botssv_cheats
bot_placePuts a bot where you are aiming. Handy for practising prefires and angles. Cheat-protected.Botssv_cheats
bot_dont_shootBots aim but do not fire.0 (false)Botssv_cheats
bot_knives_onlyBots only buy and use knives.Bots
bot_pistols_onlyBots only buy and use pistols.Bots
bot_zombieBots stand still and ignore you, like bot_stop but they keep their spot.0 (false)Botssv_cheats
bot_difficultyDifficulty for bots added from now on.1Bots
bot_quotaHow many bots the server keeps filled. 0 means no bots.10Bots
fps_maxCaps your frame rate in game. 0 removes the cap. A cap a little above your monitor's refresh rate can make frame times steadier.120FPS
fps_max_uiCaps the frame rate in the menus, which saves power and heat while you queue.0FPS
cl_showfpsShows a frame-rate counter at the top of the screen.0FPS
cl_hud_telemetry_frametime_showWhen to show frame time (FPS) on the telemetry HUD. The same option is under Settings, Game, Telemetry.1FPS
net_graphThe CS:GO performance graph. It is not in CS2's command list.FPSNot in CS2
cq_netgraphAn early CS2 beta replacement for net_graph. It has since been removed.FPSNot in CS2
r_fullscreen_gammaBrightness (gamma) in fullscreen mode. Higher is darker; lower is brighter.2.2FPS
cl_crosshairstyleCrosshair style, 0 to 9. 4 is the static cross most players use.7Crosshair
cl_crosshair_lengthLength of each crosshair line (called Length in the settings menu, cl_crosshairsize in CS:GO).8Crosshair
cl_crosshair_gapGap between the centre and the lines. Negative values pull the lines in.4Crosshair
cl_crosshair_thicknessThickness of the crosshair lines.2Crosshair
cl_crosshairdotAdds a dot in the centre.0 (false)Crosshair
cl_crosshair_tT-style crosshair: removes the top line.0 (false)Crosshair
cl_crosshair_drawoutlineDraws a black outline round the crosshair so it shows up on bright walls.1Crosshair
cl_crosshaircolor_rRed part of the crosshair colour, 0 to 255.0Crosshair
cl_crosshaircolor_gGreen part of the crosshair colour, 0 to 255.255Crosshair
cl_crosshaircolor_bBlue part of the crosshair colour, 0 to 255.0Crosshair
cl_crosshaircolor_aCrosshair opacity, 0 (invisible) to 255 (solid).255Crosshair
cl_crosshair_recoilMakes the crosshair move with your recoil, so it shows where the next bullet goes.1 (true)Crosshair
cl_crosshair_sniper_widthWidth of the black lines inside a sniper scope.1Crosshair
cl_crosshair_friendly_warningChanges your crosshair when a teammate is in front of you.1Crosshair
cl_show_observer_crosshairWhich crosshair you see while spectating: yours or the player's.2Crosshair
cl_radar_scaleZoom inside the radar. Lower values show more of the map. Many players use 0.3 to 0.4.0.7Radar
cl_hud_radar_scaleSize of the radar on screen.1Radar
cl_radar_always_centeredKeeps you in the middle of the radar. Set 0 so the radar shows more of the map ahead of you near the edges.1 (true)Radar
cl_radar_rotateRotates the radar with your view. 0 keeps north at the top.1 (true)Radar
cl_radar_icon_scale_minSmallest size of player icons on the radar.0.6Radar
cl_radar_square_with_scoreboardShows a larger square radar while the scoreboard is open.1 (true)Radar
cl_hud_radar_background_alphaOpacity of the radar's background.0.627Radar
toggleradarscaleSwitches the radar between its normal zoom and a zoomed-out view. Usually bound to a key.Radar
viewmodel_fovField of view of your weapon. Higher moves the gun further away and shows more of the screen.60Viewmodel
viewmodel_offset_xMoves the gun left (negative) or right (positive).1Viewmodel
viewmodel_offset_yMoves the gun towards you (negative) or away (positive).1Viewmodel
viewmodel_offset_zMoves the gun down (negative) or up (positive).-1Viewmodel
viewmodel_presetposApplies one of the built-in viewmodel presets.1Viewmodel
cl_prefer_lefthandedHolds weapons in your left hand.0 (false)Viewmodel
cl_righthandThe CS:GO command for switching hands.ViewmodelNot in CS2
cl_bob_lower_amtThe CS:GO setting for how far the gun drops while you run.ViewmodelNot in CS2
fov_desiredSets the base field of view, in the game's own words. It does not change the player view in competitive play.75Viewmodel
volumeMaster volume, from 0 to 1.1Audio
snd_voipvolumeVolume of other players' voice chat.1Audio
snd_headphone_eqHeadphone equaliser preset. Matches the EQ Profile option in the audio settings.0Audio
snd_mute_losefocusMutes the game when you alt-tab out.1 (true)Audio
snd_menumusic_volumeVolume of the main menu music.0.04Audio
snd_roundstart_volumeVolume of the round start music.0Audio
snd_roundend_volumeVolume of the round end music.0.16Audio
snd_mvp_volumeVolume of MVP music.0.16Audio
snd_tensecondwarning_volumeVolume of the ten-second bomb warning music. Many players keep it on as a timer cue.0.04Audio
snd_deathcamera_volumeVolume of the death camera sound.0.16Audio
snd_mapobjective_volumeVolume of the bomb and hostage objective music.0.04Audio
voice_loopbackPlays your own microphone back to you, to test it.0 (false)Audio
voice_modenableTurns voice chat on or off.1 (true)Audio
voice_enableThe CS:GO command to turn voice chat off.AudioNot in CS2
cl_mute_enemy_teamMutes voice and text from the other team.0 (false)Audio
cl_mute_all_but_friends_and_partyMutes everyone who is not a Steam friend or in your party.0Audio
cl_hud_colorHUD colour. 0 uses your team colour; other numbers pick a fixed colour.0HUD
hud_scalingSize of the HUD.1HUD
cl_drawhudHides or shows the whole HUD. Cheat-protected, used for screenshots and clips.1 (true)HUDsv_cheats
cl_draw_only_deathnoticesHides everything except the crosshair and kill feed. Used for recording.0 (false)HUD
r_drawtracers_firstpersonShows or hides your own bullet tracers.1 (true)HUD
cl_teamid_overhead_modeWhat shows above teammates' heads.3HUD
cl_teammate_colors_showShows teammates' colours on the radar and scoreboard.1HUD
cl_showloadoutKeeps your weapon loadout visible on screen.1 (true)HUD
gameinstructor_enableTurns the in-game helper hints on or off.0 (false)HUD
cl_autohelpShows help hints automatically.1 (true)HUD
cl_disable_round_end_reportHides the report that appears at the end of each round.0 (false)HUD
cl_deathnotices_show_numbersShows numbers on kill feed entries.0HUD
hud_showtargetidShows the name of the player you aim at.1 (true)HUD
rateThe most data per second the server may send you. The game sets a sensible value from your connection speed setting.80000Network
cl_interp_ratioInterpolation ratio. CS2 sets it from cl_net_buffer_ticks, and the game's own description says not to change it directly.2Network
cl_net_buffer_ticksTicks of delay the game adds to server snapshots and your commands, to smooth over packet loss. It also sets cl_interp_ratio.0Network
mm_dedicated_search_maxpingThe highest ping matchmaking will accept when it picks a server.150Network
net_statusPrints your current network status in the console.Network
cl_hud_telemetry_ping_showWhen to show your ping on the telemetry HUD (Settings, Game, Telemetry).1Network
cl_hud_telemetry_net_quality_graph_showWhen to show the network quality graph on the telemetry HUD.0Network
cl_interpIn CS2 this prints the interpolation time the game is using, in seconds. It reads the value and no longer sets it, as it did in CS:GO. To change interpolation, use cl_net_buffer_ticks.Network
cl_updaterateThe CS:GO update rate command.NetworkNot in CS2
cl_cmdrateThe CS:GO command rate setting.NetworkNot in CS2
mapLoads a map. Offline, this starts a local game you control.Server
changelevelChanges the map on a server you are already running.Server
mapsLists the maps the game can load.Server
connectConnects to a server by address.Server
disconnectLeaves the current game.Server
statusPrints the server, map and players, with each player's ping and Steam ID.Server
quitCloses CS2.Server
kickKicks a player from a server you run.Server
kickidKicks a player by their user ID from status.Server
callvoteStarts a vote, such as a kick or a timeout.Server
mp_pause_matchPauses the match at the next freeze time.Server
mp_unpause_matchEnds a pause.Server
mp_warmup_pausetimerFreezes the warmup timer so warmup never ends.0Server
mp_round_restart_delaySeconds between the end of one round and the start of the next.7Server
mp_teamname_1Name shown for the first team.(empty)Server
mp_teamname_2Name shown for the second team.(empty)Server
recordStarts recording a demo of the game you are in.Serversv_cheats
stopStops recording a demo.Server
playdemoPlays a demo file.Server
demouiOpens the demo playback controls.Server
sensitivityYour in-game mouse sensitivity. Multiply it by your mouse DPI for eDPI.1.25Mouse and sensitivity
zoom_sensitivity_ratioSensitivity while scoped, as a multiple of your normal sensitivity. 1 keeps it the same.1Mouse and sensitivity
m_yawHow far one mouse count turns you left or right, in degrees. Leave it at the default unless you know you need it.0.022Mouse and sensitivity
m_pitchHow far one mouse count turns you up or down. Changing it changes your vertical sensitivity only.0.022Mouse and sensitivity
sensitivity_y_scaleScales vertical sensitivity against horizontal.1Mouse and sensitivity
mouse_invertyInverts vertical mouse movement.0 (false)Mouse and sensitivity
bindBinds a key or mouse button to a command.Console and binds
unbindRemoves the binding from one key.Console and binds
unbindallRemoves every binding, including movement. Follow it with binddefaults or your own config.Console and binds
binddefaultsResets every key to the game's default binding.Console and binds
aliasMakes a short name that runs a list of commands.Console and binds
toggleFlips a setting between values each time it runs.Console and binds
execRuns a .cfg file from the game/csgo/cfg folder. Leave off the .cfg.Console and binds
host_writeconfigSaves your current settings to your config file.Console and binds
findSearches every command and setting for a word.Console and binds
differencesLists every setting you have changed from its default.Console and binds
key_listboundkeysLists every key you have bound.Console and binds
key_findbindingShows which key runs a command.Console and binds
echoPrints text in the console. Put it at the end of a config to confirm it ran.Console and binds
toggleconsoleOpens or closes the console.Console and binds
con_enableAllows the console to open. Same as Enable Developer Console in the game settings.0 (false)Console and binds
cl_allow_multi_input_bindsLets one bind press more than one movement or action input at once, such as the old jumpthrow bind. Cheat-protected, so offline only.0 (false)Console and bindssv_cheats
buyBuys an item by its name while you can buy. Chain several with semicolons.Console and binds
useSwitches to a weapon or grenade you are carrying.Console and binds
dropDrops the weapon in your hands. With the bomb selected it drops the bomb.Console and binds
lastinvSwitches to the weapon you held before. Bound to Q by default.Console and binds
+lookatweaponInspects the weapon in your hands. Bound to F by default.Console and binds
player_pingPings the spot you are looking at for your team.Console and binds

How to use console commands in CS2

  1. Open Settings, then Game, and set Enable Developer Console to Yes.
  2. Press the key under Esc (` on most keyboards) to open the console.
  3. Type a command and press Enter. For a variable, type its name alone to see its current value.
  4. To keep settings, put the lines in an autoexec.cfg in your game/csgo/cfg folder.

Commands marked sv_cheats only work on a server you control, after this line:

sv_cheats 1

Looking for a full practice setup? The practice commands page has one config to paste. For keys, see CS2 binds.

CS:GO commands that are gone

These still get searched, but they are not in CS2's command list. Each page says what replaced it.

Tools for this

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 Esc, the ` or ~ key on most keyboards.

Why does a command say it is cheat protected?

Some commands, such as noclip and sv_rethrow_last_grenade, only run when sv_cheats is 1. You can only set that on a server you control, such as an offline game with bots, so they never work in matchmaking.

Where do I put commands so they load every time?

Save them in a file called autoexec.cfg in Steam/steamapps/common/Counter-Strike Global Offensive/game/csgo/cfg. Add +exec autoexec to your launch options if it does not load on its own.

Does net_graph work in CS2?

No. net_graph is not in CS2's command list. Use cl_showfps 1 for a frame counter, or turn on the telemetry readouts under Settings, Game, Telemetry.

Revision history

Related guides

Source: SteamDatabase GameTracking-CS2 dump of the game's cvar and command tables, commit b73cfdeb35.