CS2 Console Commands: The Best Commands

Bolmax TeamJuly 12, 202620 min read
CS2 Console Commands: The Best Commands

CS2 console codes; It can be used to track FPS and connection data, edit the radar, customize the reticle, and set up a private training server. With the right commands, you can also bind functions such as jumping, changing hands, or re-throwing the last bomb to a single button.

However, not every command from the CS:GO era works in Counter-Strike 2. With the move to Source 2, the net_graph, cl_righthand and old grenade trajectory commands have been removed or replaced. This guide focuses on current equivalents used in CS2 rather than rehashing old lists.

Most Used CS2 Console Codes

Here are the basic commands you can get started quickly:

commandWhat does it do?Where does it work?
cl_showfps 1Shows basic FPS counter on screen.All modes
fps_max 400It sets the in-game FPS upper limit to 400.All modes
cl_hud_telemetry_ping_show 2It constantly shows the ping value.All modes
sensitivity 1.5Adjusts mouse sensitivity.All modes
volume 0.5Sets the main volume to 50 percent.All modes
cl_radar_scale 0.4Shows more of the map by zooming out the radar.All modes
bind "mwheeldown" "+jump"Links jumping to the mouse wheel down direction.All modes
switchhandsSwitches the weapon between right and left hand.All modes
sv_cheats 1Unlocks protected training commands on a private server.Local/dedicated server
noclipToggles flying freely on the map on or off.sv_cheats 1 required
bot_kickRemoves bots from the server.Local/dedicated server
sv_rethrow_last_grenadeHe throws the last bomb again in the same way.sv_cheats 1 required

The example values next to the commands are not mandatory. For example, you can write your own sensitivity instead of sensitivity 1.5, and the limit appropriate to your system instead of fps_max 400.

How to Open Console in CS2?

The developer console may be off by default. To turn it on, follow these steps:

  1. Open CS2 and enter the Settings menu.
  2. Open the Game tab.
  3. Set Enable Developer Console (~) to Yes.
  4. After entering the match, press ~.
  5. Type the command and run it with the Enter key.

If the ~ key does not open the console on the Turkish keyboard layout, you can assign a different key to the On/Off Console action from the keyboard settings. Adding -console to the Steam launch options can also help show the console on game launch; But for normal use, it is enough to activate the in-game setting.

If you want to enter more than one command into the console at the same time, you can put a semicolon between them:

cl_showfps 1; cl_hud_telemetry_ping_show 2; fps_max 400

Are Console Commands Safe?

Standard commands written into the game's own developer console do not cause a VAC ban. Client settings such as radar scale, audio volume, reticle, viewmodel and keybinds can be used in competitive matches.

Commands that require sv_cheats 1, such as noclip, god, or give, cannot be enabled on Valve's official matchmaking servers. These only work on the map you created yourself or on the private server for which you have the necessary authority. Trying to bypass these restrictions with third-party software is completely different from using a console command and puts your account at risk.

If a command is not working, type help command_name in the console. You can use find kelime to find similar commands, and cvarlist to see all available commands.

help commandFunction
help fps_maxShows the command's description and current value.
find radarLists commands that contain "radar" in their name or description.
cvarlistLists console commands and variables in the current build.
differencesShows variables that differ from their default value.
clearClears old output from the console screen.

CS2 FPS, Ping and Telemetry Codes

The legacy net_graph 1 command is not available in CS2. New telemetry variables are used for FPS, ping and network issues. 0 means never show, 1 means only show when conditions are bad, and 2 means always show.

commandDescriptionsample value
cl_showfps 1Turns on the simple FPS counter.1
cl_showfps 2Shows more smoothed FPS measurement.2
fps_max 0Removes the in-game FPS limit.0
fps_max 400It keeps the FPS value at a certain upper limit.400
fps_max_ui 120Sets the FPS limit in the main menu and game interface.120
cl_hud_telemetry_frametime_show 2It constantly displays FPS and frame time information.0 / 1 / 2
cl_hud_telemetry_ping_show 2It constantly shows the ping value.0 / 1 / 2
cl_hud_telemetry_net_misdelivery_show 2Shows the missed user command and server snapshot rate.0 / 1 / 2
r_drawtracers_firstperson 0First person covers bullet marks.0 / 1

fps_max 0 does not guarantee to produce more FPS; it just removes the limit. If your system gets hot, power consumption increases, or frame times become unstable, a hard cap may feel better. Try the settings one by one instead of copying long command packages that claim to increase FPS all at once.

Radar and HUD Commands

The purpose of radar settings is to be able to read teammates and a large part of the map rather than seeing your own location. The following values ​​are the starting point; You can change it according to resolution and screen size.

commandDescriptionUsage example
cl_hud_radar_scaleAdjusts the size of the radar panel within the HUD.cl_hud_radar_scale 1.1
cl_radar_always_centeredWhen it is 0, it does not keep the player in the center all the time and uses the space more efficiently.cl_radar_always_centered 0
cl_radar_scaleAdjusts the radar's map zoom. A lower value indicates a larger area.cl_radar_scale 0.4
cl_radar_icon_scale_minDetermines the minimum size of player icons.cl_radar_icon_scale_min 0.6
cl_radar_rotateWhen 1, the radar rotates with your viewing direction.cl_radar_rotate 1
cl_radar_square_with_scoreboardSquares the radar when the scoreboard is open.cl_radar_square_with_scoreboard 1
cl_hud_colorChanges HUD color.cl_hud_color 10
cl_teamid_overhead_modeEdits the name and equipment information on teammates.cl_teamid_overhead_mode 3
cl_showloadoutShows or hides the available equipment list.cl_showloadout 1
cl_draw_only_deathnoticesIt leaves only crosshairs and kill feed for content production.cl_draw_only_deathnotices 1

toggle can be used to change the radar zoom with one button:

bind "mouse5" "toggle cl_radar_scale 0.4 0.8"

Reticle and Viewmodel Commands

Reticle commands do not automatically improve aiming ability; but it creates a consistent view that allows you to follow the target more easily.

commandDescriptionUsage example
cl_crosshairstyleDetermines the reticle style. 4 is the classic static style.cl_crosshairstyle 4
cl_crosshairsizeAdjusts the length of lines.cl_crosshairsize 2.5
cl_crosshairthicknessAdjusts the thickness of the lines.cl_crosshairthickness 0.5
cl_crosshairgapAdjusts the spacing at the center.cl_crosshairgap -2
cl_crosshairdotTurns the center point on or off.cl_crosshairdot 0
cl_crosshair_drawoutlineOpens the outline around the reticle.cl_crosshair_drawoutline 1
cl_crosshair_outlinethicknessSets the outline thickness.cl_crosshair_outlinethickness 1
cl_crosshairalphaSets the reticle opacity between 0-255.cl_crosshairalpha 255
cl_crosshaircolorReady color chooses; 5 uses custom RGB values.cl_crosshaircolor 5
cl_crosshaircolor_r/g/bSets custom red, green, and blue values.cl_crosshaircolor_g 255
cl_crosshair_recoilIt allows the sight to move with recoil.cl_crosshair_recoil 1

The viewmodel determines where the weapon appears on the screen. Values ​​written outside the allowed limits are pulled into the valid range by the game.

commandvalid rangeUsage example
viewmodel_fov54-68viewmodel_fov 68
viewmodel_offset_x-2 ile 2.5viewmodel_offset_x 2.5
viewmodel_offset_y-2 ile 2viewmodel_offset_y 0
viewmodel_offset_z-2 ile 2viewmodel_offset_z -1.5
switchhandsopen/closeswitchhands
cl_prefer_lefthanded0 / 1cl_prefer_lefthanded 1

Instead of cl_righthand 0 in CS:GO, switchhands is used for instant switching in CS2. For example, you can assign a handover function to the H key with the bind "h" "switchhands" command.

Mouse, Voice and Communication Commands

commandDescriptionUsage example
sensitivityAdjusts normal mouse sensitivity.sensitivity 1.4
zoom_sensitivity_ratioDetermines the sensitivity multiplier when the scope is on.zoom_sensitivity_ratio 1
volumeAdjusts overall game audio between 0-1.volume 0.55
snd_voipvolumeAdjusts teammates' volume from 0-2.snd_voipvolume 0.7
voice_modenableTurns voice communication on or off.voice_modenable 1
snd_mute_losefocusMutes the sound when the game is placed in the background.snd_mute_losefocus 1
cl_mute_enemy_teamIt blocks the opposing team's written and voice communication.cl_mute_enemy_team 1
cl_mute_all_but_friends_and_partyAllows only friend and party communication.cl_mute_all_but_friends_and_party 2

It is more correct to use snd_voipvolume for team sound in the current CS2 build, instead of voice_scale in the old guides. The old m_rawinput 1 command on the mouse side is also not a necessary setting in CS2.

CS2 Bind Codes

bind assigns a command or action to a key. unbind is used to completely separate the key from its former function, and key_listboundkeys is used to see the current assignments.

commandFunction
bind "mwheeldown" "+jump"Mouse wheel jumps downwards.
bind "mwheelup" "+jump"Mouse wheel bounces up.
bind "v" "+voicerecord"Turns on the microphone while holding down the V key.
bind "mouse4" "player_ping"Assigns a ping function to the mouse side button.
bind "h" "switchhands"Changes weapon hand with H key.
bind "f" "+lookatweapon"Runs the weapon inspection animation with the F key.
bind "j" "sv_rethrow_last_grenade"He throws the last bomb again with the J key. It only works in training.
bind "n" "noclip"Turns flight mode on and off with the N key. It requires sv_cheats 1.
bind "f10" "exec practice"Runs the practice.cfg file with the F10 key.
unbind "h"Removes the current task on the H key.
key_listboundkeysIt lists the assigned keys on the console.
key_findbinding "+jump"Finds which keys the jump command is bound to.

Before typing a new bind on a key, check the current function of that key. In particular, E, F, G, number keys and mouse side keys may already have a used function.

cs2-console-training-commands.png

CS2 Training and Special Server Codes

These commands are used to work on the grenade lineup, spray and position on the map you have created. First start a practice map from the main menu or enter a map command such as map de_mirage into the console.

commandDescription
sv_cheats 1Enables protected training commands.
mp_limitteams 0Removes the player difference limit between teams.
mp_autoteambalance 0Turns off automatic tool balancing.
mp_maxmoney 60000Makes the maximum coin limit 60,000.
mp_startmoney 60000Makes the starting money 60,000.
mp_freezetime 0Removes the cooldown at the beginning of the round.
mp_buytime 9999It makes the purchasing time very long.
mp_buy_anywhere 1It allows shopping from anywhere on the map.
mp_roundtime_defuse 60Makes the round duration 60 minutes on bomb disposal maps.
sv_infinite_ammo 1It allows you to fire without running out of magazine and ammunition.
sv_infinite_ammo 2Makes spare ammo unlimited; It is necessary to change the magazine.
ammo_grenade_limit_total 5Increases the total number of bombs that can be carried at once.
mp_warmup_endIt ends the warm-up instantly.
mp_restartgame 1Restarts the match after one second.
noclipEnables flying and passing through walls on the map.
godTurns taking no damage on or off.

Bomb Workout Codes

CS2 has new trajectory commands for practice, replacing the old sv_grenade_trajectory 1.

commandDescription
sv_grenade_trajectory_prac_pipreview 1Shows the result of the thrown bomb in a small preview window.
sv_grenade_trajectory_prac_trailtime 8Keeps bomb trajectory visible for eight seconds.
sv_rethrow_last_grenadeHe throws the last bomb again at the same position and angle.
cl_sim_grenade_trajectory 8It plots the estimated path of the bomb in hand from the current angle in eight seconds.
sv_showimpacts 1Shows client and server bullet impact points.
sv_showimpacts 2It only shows client-side crash points.
sv_showimpacts 3It only shows server-side crash points.
sv_showimpacts_time 10Keeps multiplication marks visible for ten seconds.

The picture-in-picture preview doesn't just show where the bomb landed; It also makes it easier for you to stay in the starting position while controlling the area where the smoke opens. Binding the command to re-throw the last bomb to a button is useful for repeatedly testing different defensive positions against the same lineup.

Bot Commands

commandDescription
bot_addAdds a bot to the server.
bot_add_ctAdds bots to CT team.
bot_add_tAdds boots to the T team.
bot_kickRemoves all bots from the server.
bot_killKills all bots for the current round.
bot_stop 1Stops the movement of bots.
bot_stop 0Allows bots to move again.
bot_placePositions a boat where the reticle is pointing.
bot_crouch 1Allows bots to crouch.
bot_dont_shoot 1Prevents bots from shooting.
bot_mimic 1It allows the bot to imitate the player's movement commands.
bot_mimic_yaw_offset 0Adjusts the difference in direction the bot faces when imitating.

Behavior commands such as bot_place, bot_stop, bot_crouch and bot_mimic may require sv_cheats 1 in the specific practice environment. To put the boat at a certain angle and peek, you can first use bot_stop 1 and then use bot_place at the point you are looking at.

Gun, Pistol and Bomb Giving Codes

give commands run on the dedicated server where sv_cheats 1 is turned on. If the weapon falls to the ground, you can drop your current equipment and try again.

Rifle and Heavy Weapons Codes

commandGiven weapon
give weapon_ak47AK-47
give weapon_m4a1M4A4
give weapon_m4a1_silencerM4A1-S
give weapon_awpAWP
give weapon_ssg08SSG 08
give weapon_augAUG
give weapon_sg556SG 553
give weapon_famasFAMAS
give weapon_galilarGalil A.R.
give weapon_negevNegev
give weapon_xm1014XM1014

Pistol Codes

commandSupplied pistol
give weapon_deagledesert eagle
give weapon_glockGlock-18
give weapon_usp_silencerUSP-S
give weapon_hkp2000P2000
give weapon_p250P250
give weapon_fivesevenFive-SevenN
give weapon_tec9Tec-9
give weapon_cz75aCZ75-Auto
give weapon_eliteDual Berettas
give weapon_revolverR8 Revolver

Bomb and Equipment Codes

commandEquipment supplied
give weapon_smokegrenadesmoke grenade
give weapon_flashbangflashbang
give weapon_hegrenadeHE grenade
give weapon_molotovMolotov
give weapon_incgrenadeIncendiary grenade
give weapon_decoyDecoy grenade
give weapon_c4C4
give item_assaultsuitkevlar and helmet
give item_kevlarKevlar
give item_defuserdefuse kit

A significant portion of the knife commands in old CS:GO lists, such as give weapon_knife_karambit, do not work directly the same in CS2. Since knife tests depend on the current item definition and subclass_change structure, they may vary depending on the game update.

Map, Server and Match Commands

commandDescriptionexample
mapLoads the specified map on the local server.map de_dust2
changelevelChanges the map on the open server.changelevel de_mirage
disconnectLeaves the current server.disconnect
statusPrints server, connection and player information to the console.status
mp_maxroundsDetermines the maximum number of rounds in the match.mp_maxrounds 24
mp_halftimeTurns the circuit on or off.mp_halftime 1
mp_friendlyfireEnables or disables team damage.mp_friendlyfire 1
mp_teammates_are_enemiesHe establishes the FFA order by considering his teammates as enemies.mp_teammates_are_enemies 1
mp_respawn_on_death_ctAllows CT players to respawn upon death.mp_respawn_on_death_ct 1
mp_respawn_on_death_tAllows T players to respawn upon death.mp_respawn_on_death_t 1

Use the file code when writing the map name. For example, de_dust2 is written for Dust II, de_mirage for Mirage, de_inferno for Inferno, de_nuke for Nuke, de_ancient for Ancient and de_anubis for Anubis.

Demo and Audience Commands

commandDescription
playdemo dosya_adiPlays the specified .dem recording.
demouiOpens or closes the demo control panel.
demo_pausePauses demo playback.
demo_resumeResumes the paused demo.
demo_togglepauseSwitches between pause and resume with a single command.
demo_timescale 0.5Plays the demo at half speed.
demo_timescale 2Plays the demo at double speed.
spec_show_xray 1Shows player outlines allowed in spectator mode.
cl_draw_only_deathnotices 1Hides most of the interface when recording video.

spec_show_xray visibility is limited by the team and game mode you follow. This command does not allow you to see opponents behind the wall in live competitive matches.

cs2-keybind-autoexec-komutlari.png

How to Create CS2 Autoexec and Practice CFG?

You can add the commands you use regularly to the autoexec.cfg file instead of retyping them at every startup. The common folder path in Windows is:

C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\game\csgo\cfg

Create a plain text file named autoexec.cfg in this folder. Note that the file is not autoexec.cfg.txt by mistake. You can write your personal settings in it, one command per line:

fps_max 400
fps_max_ui 120
cl_radar_always_centered 0
cl_radar_scale 0.4
cl_radar_icon_scale_min 0.6
bind "mwheeldown" "+jump"
bind "h" "switchhands"
host_writeconfig

It's more organized to keep only the settings to be used in the workout in a separate file called practice.cfg:

sv_cheats 1
mp_limitteams 0
mp_autoteambalance 0
mp_maxmoney 60000
mp_startmoney 60000
mp_freezetime 0
mp_buytime 9999
mp_buy_anywhere 1
mp_roundtime_defuse 60
sv_infinite_ammo 1
ammo_grenade_limit_total 5
sv_grenade_trajectory_prac_pipreview 1
sv_grenade_trajectory_prac_trailtime 8
sv_showimpacts 1
sv_showimpacts_time 10
bot_kick
mp_warmup_end
mp_restartgame 1

After opening the map, you can run all lines at once by typing exec practice in the console. You can also assign the same action to the F10 key with the bind "f10" "exec practice" command.

Commands Remaining from CS:GO and Changed in CS2

Some commands seen in old guides no longer work. This is often the reason why you get the Unknown command warning on the console.

Old CS:GO commandsituation in CS2Current approach
net_graph 1Removed.cl_hud_telemetry_frametime_show 2, cl_hud_telemetry_ping_show 2 and network telemetry are used.
sv_grenade_trajectory 1Old command.sv_grenade_trajectory_prac_pipreview 1 and sv_grenade_trajectory_prac_trailtime 8 are used.
cl_righthand 0It is not used in the same way in CS2.switchhands is used for instant change.
voice_scaleIt is not a current sound variable.snd_voipvolume is used for tool sound.
m_rawinput 1It is the old CS:GO setting.Use CS2's mouse input; Do not add this command to autoexec.
cl_forcepreload 1Not valid in CS2.Don't force asset loading behavior with the old command.
fps_max_menuOld naming.fps_max_ui is used for the menu border.
tickrate 128 and -tickrate 128It does not change the subtick structure of the official CS2 matchmaking.Do not try to manipulate the server setting to a competitive advantage by command.

CS2 updates may change the default values, permissions, or names of commands. When in doubt, outputting help, find, and cvarlist is more reliable for the current build you're playing than older lists on the internet.

Frequently Asked Questions

What is the code to show FPS in CS2?

cl_showfps 1 is used for simple FPS counter. You can type cl_hud_telemetry_frametime_show 2 to constantly see FPS and frame time in the telemetry field.

What is CS2 net graph code?

The old net_graph 1 is not available in CS2. Instead, cl_hud_telemetry_ping_show 2 is used for ping, cl_hud_telemetry_frametime_show 2 for FPS and frametime, and cl_hud_telemetry_net_misdelivery_show 2 for the missed data rate on the network.

What is CS2 unlimited bullet code?

On the private server, type sv_cheats 1, then sv_infinite_ammo 1. If you want to practice changing magazines, use the sv_infinite_ammo 2.

What is the CS2 flight code?

On your own server, type sv_cheats 1 and then use the noclip command. Entering the same command again turns off flight mode.

What is the CS2 left hand code?

switchhands is used to switch the weapon between right and left hand during gameplay. The bind "h" "switchhands" command binds this function to the H key.

Do console codes work in every match?

Client commands such as reticle, radar, audio, FPS limit and bind can work in online matches. sv_cheats 1, noclip, god, give and bot behavior commands can only be used on private or local servers for which you have authorization.

Conclusion

CS2 console codes don't just consist of entertainment commands. With telemetry, you can monitor FPS and connection issues, expand the radar, edit the reticle and viewmodel, create useful binds, and set up a comprehensive grenade or aim training server.

Be careful when copying commands from old CS:GO lists. Replace commands such as net_graph, sv_grenade_trajectory, cl_righthand, voice_scale and cl_forcepreload with their current equivalents from CS2. The most reliable way to check is to examine the list of the version you are playing with the help and find commands on the console.