ESC
Try Your Luck
Claim Bonus →

CS2 Console Commands: How to Enable & Use

Master the developer console for practice, performance tuning, and customization

CS2 console commands give you direct control over your game settings, practice environment, and performance diagnostics. The developer console is one of the most powerful tools in Counter-Strike 2, letting you fine-tune everything from server settings to visual preferences. This guide covers how to enable the console and the most useful commands for every situation.

How to Enable the Console

The developer console is disabled by default in CS2. You need to enable it through the game settings before you can use any console commands. Here is how to turn it on.

  • Step 1: Open CS2 and go to the Settings menu (gear icon)
  • Step 2: Navigate to the "Game" tab
  • Step 3: Find "Enable Developer Console (~)" and set it to "Yes"
  • Step 4: Click "Apply" or close the settings menu to save

You can also enable the console through launch options by adding -console to your CS2 launch parameters in Steam. This opens the console automatically when the game starts, which is useful for quickly entering commands before joining a server.

Once enabled, the console is available in every game mode and menu screen. The console persists your command history, so you can use the up and down arrow keys to cycle through previously entered commands.

Opening the Console In-Game

After enabling the developer console, press the tilde key (~) on your keyboard to open it. This key is located directly below the Escape key on most keyboard layouts. The console appears as a text overlay at the top of your screen where you can type commands.

If the tilde key does not work for your keyboard layout (common with non-US keyboard layouts), you can rebind the console key. Go to Settings, then Keyboard/Mouse, and look for the "Toggle Console" binding. Assign it to any key that is convenient for your layout.

The console supports auto-completion. Start typing a command name and press Tab to see suggestions. This is helpful when you cannot remember the exact name of a command -- type the first few letters and the console will show all matching options. For a comprehensive list of all available commands, check our CS2 commands database.

Essential Practice Commands

Practice commands are the backbone of any serious CS2 training routine. These commands require sv_cheats 1 to be enabled on your private server and will not work in official matchmaking. For a complete practice server setup, see our practice config guide.

Server Setup

  • sv_cheats 1: Enables cheat-protected commands (required for most practice commands)
  • mp_warmup_end: Immediately ends the warmup period
  • mp_restartgame 1: Restarts the current game after 1 second
  • mp_roundtime_defuse 60: Sets round time to 60 minutes for extended practice
  • mp_buy_anywhere 1: Allows buying weapons anywhere on the map
  • mp_buytime 9999: Extends buy time so you can purchase equipment at any point

Movement and Utility

  • noclip: Toggles flying mode -- fly through walls and terrain freely
  • god: Toggles invincibility (god mode)
  • give weapon_[name]: Gives yourself a specific weapon (e.g., give weapon_ak47)
  • sv_infinite_ammo 1: Unlimited ammunition for all weapons
  • sv_grenade_trajectory_prac_pipreview 1: Shows grenade trajectory preview before throwing
  • sv_grenade_trajectory_prac_trailtime 10: Shows grenade path trail for 10 seconds after throwing

Bot Management

  • bot_add_t / bot_add_ct: Adds a bot to the specified team
  • bot_kick: Removes all bots from the server
  • bot_stop 1: Freezes all bots in place (useful for target practice)
  • bot_place: Places a bot at your crosshair position

For detailed bot management including removing specific bots, see our guide on how to remove bots in CS2.

Performance and Network Commands

Performance commands help you monitor and optimize your CS2 experience. These commands are especially useful for diagnosing frame rate issues, network problems, and ensuring your game is running smoothly. Most of these work without sv_cheats enabled. For more on technical settings, consult the Valve Developer Wiki.

Frame Rate and Performance

  • cl_showfps 1: Displays your current frames per second in the corner of the screen
  • fps_max [value]: Caps your frame rate at the specified value (0 for uncapped)
  • r_drawtracers_firstperson 0: Disables first-person weapon tracers for a cleaner visual

Network Diagnostics

  • net_graph 1: Displays detailed network statistics including ping, packet loss, and tickrate
  • cl_updaterate [value]: Sets the rate at which your client receives updates from the server
  • rate [value]: Sets the maximum data rate for your connection (default is usually sufficient)

Monitoring your net_graph during games helps identify whether performance issues are caused by your hardware (low FPS), your network (high ping or packet loss), or the server itself. If you notice consistent packet loss, the issue is likely with your internet connection rather than the game.

Fun and Utility Commands

Beyond practice and performance, the console offers commands for customization and entertainment on private servers. These commands add variety to custom games with friends or let you experiment with the game engine.

Visual and Audio

  • cl_crosshairsize [value]: Adjusts crosshair size (part of the extensive crosshair customization suite)
  • cl_crosshaircolor [0-5]: Changes crosshair color preset
  • voice_scale [0-1]: Adjusts the volume of voice chat relative to other game sounds
  • snd_headphone_pan_exponent [value]: Adjusts how sounds are panned for headphones

Server and Game Settings

  • changelevel [map_name]: Changes the current map on your private server
  • sv_password [password]: Sets a password for your private server
  • host_timescale [value]: Changes game speed (requires sv_cheats 1). Values below 1 slow the game down, above 1 speed it up
  • thirdperson / firstperson: Toggles between third-person and first-person camera (requires sv_cheats 1)

These commands only affect private servers and practice sessions. They cannot be used to gain any advantage in official matchmaking. Experiment freely -- you cannot break anything on your own server.

Frequently Asked Questions

How do I open the console in CS2?

First enable the developer console in Settings > Game > Enable Developer Console. Then press the tilde key (~) during gameplay to open the console. You can rebind this key in your keyboard settings if needed.

Do console commands work in matchmaking?

Most console commands are restricted in official matchmaking servers. Commands like sv_cheats, noclip, and god mode only work on private servers where you have admin access. Some client-side commands like crosshair settings work everywhere.

What is sv_cheats and how do I enable it?

sv_cheats is a server-side command that unlocks cheat-protected commands for practice and testing. Type "sv_cheats 1" in the console on a private server. It cannot be enabled on official Valve servers.

Can console commands get me banned?

Using console commands on private servers or in practice mode will not get you banned. These commands are built into the game for legitimate use. Third-party cheating software is what triggers VAC bans, not console commands.

JL

Director at CSGOLuck. CS player since 2013 with experience in skin trading, marketplace analysis, and competitive play.