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.
This guide in other languages: Русский · Português · Español · Polski · Türkçe · Français · 简体中文
Browse by category
All commands
| Command | What it does | Default | Category | Notes |
|---|---|---|---|---|
| sv_cheats | Turns 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_ammo | Infinite ammo. 1 also gives infinite grenades, so you can keep throwing the same one. 2 keeps your reserve ammo full but you still reload. | 0 | Practice | sv_cheats |
| mp_roundtime_defuse | Round length in minutes on bomb defusal maps. Set it high for practice so the round never ends. | 0 | Practice | |
| mp_roundtime | Round length in minutes for modes other than bomb defusal. | 5 | Server | |
| mp_freezetime | Seconds of freeze time at the start of each round. 0 removes it. | 6 | Practice | |
| mp_buytime | Seconds after the round starts that you can still buy. | 90 | Practice | |
| mp_buy_anywhere | Lets players buy outside the buy zone. | 0 | Practice | |
| mp_maxmoney | The most money a player can hold. | 16000 | Practice | |
| mp_startmoney | Money each player starts a half with. | 800 | Practice | |
| mp_warmup_end | Ends warmup straight away and starts the match. | Practice | ||
| mp_restartgame | Restarts the match after the given number of seconds. Use it after changing round or money settings so they take effect. | 0 | Practice | |
| mp_respawn_on_death_t | Terrorists respawn after dying. | 0 (false) | Practice | |
| mp_respawn_on_death_ct | Counter-Terrorists respawn after dying. | 0 (false) | Practice | |
| mp_ignore_round_win_conditions | Stops rounds from ending when a team is eliminated or the bomb goes off. | 0 (false) | Practice | |
| mp_limitteams | The largest player-count difference allowed between teams. 0 removes the limit, so you can play alone on one side. | 2 | Server | |
| mp_autoteambalance | Moves players between teams to keep the sides even. Turn it off for practice. | 1 (true) | Server | |
| mp_c4timer | Seconds from plant until the bomb explodes. | 40 | Server | |
| mp_friendlyfire | Lets players damage teammates. | 0 (false) | Server | |
| mp_free_armor | Gives every player armour at round start. | 0 | Server | |
| mp_solid_teammates | Whether teammates block each other. | 1 | Server | |
| mp_give_player_c4 | Whether a Terrorist is given the bomb at round start. | 1 (true) | Server | |
| mp_defuser_allocation | Gives Counter-Terrorists defuse kits at round start. | 0 | Server | |
| sv_showimpacts | Draws a box where each bullet hits: red for where your client thinks it hit, blue for where the server registered it. | 0 | Practice | |
| sv_showimpacts_time | How many seconds the impact boxes from sv_showimpacts stay on screen. | 4 | Practice | |
| sv_airaccelerate | How much you can steer while airborne. Higher values make air strafing and surf easier. | 12 | Server | |
| sv_gravity | World gravity. Lower values make jumps float. | 800 | Server | |
| host_timescale | Speeds up or slows down the whole game. 1 is normal speed. Cheat-protected. | 1 | Cheat commands | sv_cheats |
| noclip | Fly through walls and floors. Run it again to land. Cheat-protected, so sv_cheats 1 first. | Cheat commands | sv_cheats | |
| god | You take no damage. Run it again to turn it off. Cheat-protected. | Cheat commands | sv_cheats | |
| give | Gives 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_nospread | Removes weapon spread, so every bullet goes where you aim. Useful for testing spots on a server you run. | 0 (false) | Cheat commands | |
| cl_showpos | Shows your map position, view angle and speed in the corner of the screen. Cheat-protected in CS2. | 0 | Cheat commands | sv_cheats |
| buddha | You take damage but never die. Cheat-protected. | 0 (false) | Cheat commands | sv_cheats |
| sv_noclipspeed | How fast you fly in noclip. Lower it for fine positioning. | 1200 | Cheat commands | |
| impulse | Runs 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 | ||
| setpos | Moves you to an exact map position. Use it with setang to stand on a saved lineup spot. | Cheat commands | sv_cheats | |
| getpos | Prints your position and view angle as a setpos/setang line you can paste back later. Cheat-protected. | Practice | sv_cheats | |
| kill | Kills your own player. Cheat-protected in CS2. | Practice | sv_cheats | |
| explode | Kills your own player with an explosion. Cheat-protected. | Practice | sv_cheats | |
| bot_mimic | Bots copy the inputs of the player with that index; 1 is usually you in an offline game. 0 turns it off. Cheat-protected. | 0 | Bots | sv_cheats |
| switchhands | Swaps the hand your weapon is held in. Bind it to a key to switch on the fly. | Viewmodel | ||
| cl_crosshairsize | A 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.9 | Crosshair | |
| cl_crosshairthickness | A 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.6 | Crosshair | |
| cl_crosshairalpha | A crosshair opacity setting carried over from CS:GO. It is still in the game's list; the CS2 menu uses cl_crosshaircolor_a. | 200 | Crosshair | |
| +spray_menu | Opens the graffiti wheel while held. | Console and binds | ||
| +radialradio | Opens the radio command wheel while held. | Console and binds | ||
| sv_grenade_trajectory_prac_pipreview | While 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_trailtime | How many seconds the path of a thrown grenade stays drawn. | 0 | Grenades | |
| sv_rethrow_last_grenade | Throws your last grenade again from the same spot and angle, so you can watch it land without walking back. Cheat-protected. | Grenades | sv_cheats | |
| ammo_grenade_limit_total | The most grenades one player can carry. | 3 | Grenades | |
| cl_grenadecrosshair_keepusercrosshair | Keeps your own crosshair while you hold a grenade, instead of the game's grenade crosshair. | 1 (true) | Grenades | |
| bot_kick | Removes bots from the server. With no argument it kicks all of them. | Bots | ||
| bot_add | Adds a bot. Give t or ct to pick the side. | Bots | ||
| bot_add_t | Adds a Terrorist bot. | Bots | ||
| bot_add_ct | Adds a Counter-Terrorist bot. | Bots | ||
| bot_stop | Bots stop thinking: they stand still and do not react. | 0 | Bots | sv_cheats |
| bot_freeze | Bots cannot move but can still aim and shoot. | 0 (false) | Bots | sv_cheats |
| bot_crouch | Bots crouch. | 0 (false) | Bots | sv_cheats |
| bot_place | Puts a bot where you are aiming. Handy for practising prefires and angles. Cheat-protected. | Bots | sv_cheats | |
| bot_dont_shoot | Bots aim but do not fire. | 0 (false) | Bots | sv_cheats |
| bot_knives_only | Bots only buy and use knives. | Bots | ||
| bot_pistols_only | Bots only buy and use pistols. | Bots | ||
| bot_zombie | Bots stand still and ignore you, like bot_stop but they keep their spot. | 0 (false) | Bots | sv_cheats |
| bot_difficulty | Difficulty for bots added from now on. | 1 | Bots | |
| bot_quota | How many bots the server keeps filled. 0 means no bots. | 10 | Bots | |
| fps_max | Caps your frame rate in game. 0 removes the cap. A cap a little above your monitor's refresh rate can make frame times steadier. | 120 | FPS | |
| fps_max_ui | Caps the frame rate in the menus, which saves power and heat while you queue. | 0 | FPS | |
| cl_showfps | Shows a frame-rate counter at the top of the screen. | 0 | FPS | |
| cl_hud_telemetry_frametime_show | When to show frame time (FPS) on the telemetry HUD. The same option is under Settings, Game, Telemetry. | 1 | FPS | |
| net_graph | The CS:GO performance graph. It is not in CS2's command list. | FPS | Not in CS2 | |
| cq_netgraph | An early CS2 beta replacement for net_graph. It has since been removed. | FPS | Not in CS2 | |
| r_fullscreen_gamma | Brightness (gamma) in fullscreen mode. Higher is darker; lower is brighter. | 2.2 | FPS | |
| cl_crosshairstyle | Crosshair style, 0 to 9. 4 is the static cross most players use. | 7 | Crosshair | |
| cl_crosshair_length | Length of each crosshair line (called Length in the settings menu, cl_crosshairsize in CS:GO). | 8 | Crosshair | |
| cl_crosshair_gap | Gap between the centre and the lines. Negative values pull the lines in. | 4 | Crosshair | |
| cl_crosshair_thickness | Thickness of the crosshair lines. | 2 | Crosshair | |
| cl_crosshairdot | Adds a dot in the centre. | 0 (false) | Crosshair | |
| cl_crosshair_t | T-style crosshair: removes the top line. | 0 (false) | Crosshair | |
| cl_crosshair_drawoutline | Draws a black outline round the crosshair so it shows up on bright walls. | 1 | Crosshair | |
| cl_crosshaircolor_r | Red part of the crosshair colour, 0 to 255. | 0 | Crosshair | |
| cl_crosshaircolor_g | Green part of the crosshair colour, 0 to 255. | 255 | Crosshair | |
| cl_crosshaircolor_b | Blue part of the crosshair colour, 0 to 255. | 0 | Crosshair | |
| cl_crosshaircolor_a | Crosshair opacity, 0 (invisible) to 255 (solid). | 255 | Crosshair | |
| cl_crosshair_recoil | Makes the crosshair move with your recoil, so it shows where the next bullet goes. | 1 (true) | Crosshair | |
| cl_crosshair_sniper_width | Width of the black lines inside a sniper scope. | 1 | Crosshair | |
| cl_crosshair_friendly_warning | Changes your crosshair when a teammate is in front of you. | 1 | Crosshair | |
| cl_show_observer_crosshair | Which crosshair you see while spectating: yours or the player's. | 2 | Crosshair | |
| cl_radar_scale | Zoom inside the radar. Lower values show more of the map. Many players use 0.3 to 0.4. | 0.7 | Radar | |
| cl_hud_radar_scale | Size of the radar on screen. | 1 | Radar | |
| cl_radar_always_centered | Keeps 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_rotate | Rotates the radar with your view. 0 keeps north at the top. | 1 (true) | Radar | |
| cl_radar_icon_scale_min | Smallest size of player icons on the radar. | 0.6 | Radar | |
| cl_radar_square_with_scoreboard | Shows a larger square radar while the scoreboard is open. | 1 (true) | Radar | |
| cl_hud_radar_background_alpha | Opacity of the radar's background. | 0.627 | Radar | |
| toggleradarscale | Switches the radar between its normal zoom and a zoomed-out view. Usually bound to a key. | Radar | ||
| viewmodel_fov | Field of view of your weapon. Higher moves the gun further away and shows more of the screen. | 60 | Viewmodel | |
| viewmodel_offset_x | Moves the gun left (negative) or right (positive). | 1 | Viewmodel | |
| viewmodel_offset_y | Moves the gun towards you (negative) or away (positive). | 1 | Viewmodel | |
| viewmodel_offset_z | Moves the gun down (negative) or up (positive). | -1 | Viewmodel | |
| viewmodel_presetpos | Applies one of the built-in viewmodel presets. | 1 | Viewmodel | |
| cl_prefer_lefthanded | Holds weapons in your left hand. | 0 (false) | Viewmodel | |
| cl_righthand | The CS:GO command for switching hands. | Viewmodel | Not in CS2 | |
| cl_bob_lower_amt | The CS:GO setting for how far the gun drops while you run. | Viewmodel | Not in CS2 | |
| fov_desired | Sets the base field of view, in the game's own words. It does not change the player view in competitive play. | 75 | Viewmodel | |
| volume | Master volume, from 0 to 1. | 1 | Audio | |
| snd_voipvolume | Volume of other players' voice chat. | 1 | Audio | |
| snd_headphone_eq | Headphone equaliser preset. Matches the EQ Profile option in the audio settings. | 0 | Audio | |
| snd_mute_losefocus | Mutes the game when you alt-tab out. | 1 (true) | Audio | |
| snd_menumusic_volume | Volume of the main menu music. | 0.04 | Audio | |
| snd_roundstart_volume | Volume of the round start music. | 0 | Audio | |
| snd_roundend_volume | Volume of the round end music. | 0.16 | Audio | |
| snd_mvp_volume | Volume of MVP music. | 0.16 | Audio | |
| snd_tensecondwarning_volume | Volume of the ten-second bomb warning music. Many players keep it on as a timer cue. | 0.04 | Audio | |
| snd_deathcamera_volume | Volume of the death camera sound. | 0.16 | Audio | |
| snd_mapobjective_volume | Volume of the bomb and hostage objective music. | 0.04 | Audio | |
| voice_loopback | Plays your own microphone back to you, to test it. | 0 (false) | Audio | |
| voice_modenable | Turns voice chat on or off. | 1 (true) | Audio | |
| voice_enable | The CS:GO command to turn voice chat off. | Audio | Not in CS2 | |
| cl_mute_enemy_team | Mutes voice and text from the other team. | 0 (false) | Audio | |
| cl_mute_all_but_friends_and_party | Mutes everyone who is not a Steam friend or in your party. | 0 | Audio | |
| cl_hud_color | HUD colour. 0 uses your team colour; other numbers pick a fixed colour. | 0 | HUD | |
| hud_scaling | Size of the HUD. | 1 | HUD | |
| cl_drawhud | Hides or shows the whole HUD. Cheat-protected, used for screenshots and clips. | 1 (true) | HUD | sv_cheats |
| cl_draw_only_deathnotices | Hides everything except the crosshair and kill feed. Used for recording. | 0 (false) | HUD | |
| r_drawtracers_firstperson | Shows or hides your own bullet tracers. | 1 (true) | HUD | |
| cl_teamid_overhead_mode | What shows above teammates' heads. | 3 | HUD | |
| cl_teammate_colors_show | Shows teammates' colours on the radar and scoreboard. | 1 | HUD | |
| cl_showloadout | Keeps your weapon loadout visible on screen. | 1 (true) | HUD | |
| gameinstructor_enable | Turns the in-game helper hints on or off. | 0 (false) | HUD | |
| cl_autohelp | Shows help hints automatically. | 1 (true) | HUD | |
| cl_disable_round_end_report | Hides the report that appears at the end of each round. | 0 (false) | HUD | |
| cl_deathnotices_show_numbers | Shows numbers on kill feed entries. | 0 | HUD | |
| hud_showtargetid | Shows the name of the player you aim at. | 1 (true) | HUD | |
| rate | The most data per second the server may send you. The game sets a sensible value from your connection speed setting. | 80000 | Network | |
| cl_interp_ratio | Interpolation ratio. CS2 sets it from cl_net_buffer_ticks, and the game's own description says not to change it directly. | 2 | Network | |
| cl_net_buffer_ticks | Ticks of delay the game adds to server snapshots and your commands, to smooth over packet loss. It also sets cl_interp_ratio. | 0 | Network | |
| mm_dedicated_search_maxping | The highest ping matchmaking will accept when it picks a server. | 150 | Network | |
| net_status | Prints your current network status in the console. | Network | ||
| cl_hud_telemetry_ping_show | When to show your ping on the telemetry HUD (Settings, Game, Telemetry). | 1 | Network | |
| cl_hud_telemetry_net_quality_graph_show | When to show the network quality graph on the telemetry HUD. | 0 | Network | |
| cl_interp | In 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_updaterate | The CS:GO update rate command. | Network | Not in CS2 | |
| cl_cmdrate | The CS:GO command rate setting. | Network | Not in CS2 | |
| map | Loads a map. Offline, this starts a local game you control. | Server | ||
| changelevel | Changes the map on a server you are already running. | Server | ||
| maps | Lists the maps the game can load. | Server | ||
| connect | Connects to a server by address. | Server | ||
| disconnect | Leaves the current game. | Server | ||
| status | Prints the server, map and players, with each player's ping and Steam ID. | Server | ||
| quit | Closes CS2. | Server | ||
| kick | Kicks a player from a server you run. | Server | ||
| kickid | Kicks a player by their user ID from status. | Server | ||
| callvote | Starts a vote, such as a kick or a timeout. | Server | ||
| mp_pause_match | Pauses the match at the next freeze time. | Server | ||
| mp_unpause_match | Ends a pause. | Server | ||
| mp_warmup_pausetimer | Freezes the warmup timer so warmup never ends. | 0 | Server | |
| mp_round_restart_delay | Seconds between the end of one round and the start of the next. | 7 | Server | |
| mp_teamname_1 | Name shown for the first team. | (empty) | Server | |
| mp_teamname_2 | Name shown for the second team. | (empty) | Server | |
| record | Starts recording a demo of the game you are in. | Server | sv_cheats | |
| stop | Stops recording a demo. | Server | ||
| playdemo | Plays a demo file. | Server | ||
| demoui | Opens the demo playback controls. | Server | ||
| sensitivity | Your in-game mouse sensitivity. Multiply it by your mouse DPI for eDPI. | 1.25 | Mouse and sensitivity | |
| zoom_sensitivity_ratio | Sensitivity while scoped, as a multiple of your normal sensitivity. 1 keeps it the same. | 1 | Mouse and sensitivity | |
| m_yaw | How far one mouse count turns you left or right, in degrees. Leave it at the default unless you know you need it. | 0.022 | Mouse and sensitivity | |
| m_pitch | How far one mouse count turns you up or down. Changing it changes your vertical sensitivity only. | 0.022 | Mouse and sensitivity | |
| sensitivity_y_scale | Scales vertical sensitivity against horizontal. | 1 | Mouse and sensitivity | |
| mouse_inverty | Inverts vertical mouse movement. | 0 (false) | Mouse and sensitivity | |
| bind | Binds a key or mouse button to a command. | Console and binds | ||
| unbind | Removes the binding from one key. | Console and binds | ||
| unbindall | Removes every binding, including movement. Follow it with binddefaults or your own config. | Console and binds | ||
| binddefaults | Resets every key to the game's default binding. | Console and binds | ||
| alias | Makes a short name that runs a list of commands. | Console and binds | ||
| toggle | Flips a setting between values each time it runs. | Console and binds | ||
| exec | Runs a .cfg file from the game/csgo/cfg folder. Leave off the .cfg. | Console and binds | ||
| host_writeconfig | Saves your current settings to your config file. | Console and binds | ||
| find | Searches every command and setting for a word. | Console and binds | ||
| differences | Lists every setting you have changed from its default. | Console and binds | ||
| key_listboundkeys | Lists every key you have bound. | Console and binds | ||
| key_findbinding | Shows which key runs a command. | Console and binds | ||
| echo | Prints text in the console. Put it at the end of a config to confirm it ran. | Console and binds | ||
| toggleconsole | Opens or closes the console. | Console and binds | ||
| con_enable | Allows the console to open. Same as Enable Developer Console in the game settings. | 0 (false) | Console and binds | |
| cl_allow_multi_input_binds | Lets 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 binds | sv_cheats |
| buy | Buys an item by its name while you can buy. Chain several with semicolons. | Console and binds | ||
| use | Switches to a weapon or grenade you are carrying. | Console and binds | ||
| drop | Drops the weapon in your hands. With the bomb selected it drops the bomb. | Console and binds | ||
| lastinv | Switches to the weapon you held before. Bound to Q by default. | Console and binds | ||
| +lookatweapon | Inspects the weapon in your hands. Bound to F by default. | Console and binds | ||
| player_ping | Pings the spot you are looking at for your team. | Console and binds |
How to use console commands in CS2
- Open Settings, then Game, and set Enable Developer Console to Yes.
- Press the key under Esc (` on most keyboards) to open the console.
- Type a command and press Enter. For a variable, type its name alone to see its current value.
- 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
- First published. Every command checked against CS2's own cvar and command list (SteamDatabase dump b73cfdeb35, 28 Oct 2026).
- First published. Every command checked against CS2's own cvar and command list (SteamDatabase dump b73cfdeb35, 28 Oct 2026).
Related guides
Source: SteamDatabase GameTracking-CS2 dump of the game's cvar and command tables, commit b73cfdeb35.