CS2 practice config: one practice.cfg and three binds

Our console commands page lists the practice-server commands one by one. This page turns them into a single file, so a practice session starts with one line in the console instead of fifteen. Every command in the file below is taken from that list and is present in the current CS2 build's command list (convars and commands, dumped from the game files, checked 2026-11-02).

What a cfg file is

A cfg is a plain text file of console commands, one per line. Running it does exactly what typing each line into the console would do, in order. Anything after // on a line is a comment and the game ignores it. Valve's own description is on the Valve Developer Community CFG page (archived copy, checked 2026-11-02).

That is the whole format. There is no header, no special encoding and no syntax beyond what the console already accepts.

Where CS2 reads cfg files from

CS2 looks for cfg files in game\csgo\cfg inside its install folder. That is where the game keeps its own configs: gamemode_competitive.cfg, gamemode_competitive2v2.cfg (Wingman) and server.cfg all ship there (CS2 game files, cfg folder, checked 2026-11-02).

To get there:

  1. Find the CS2 install folder. Steam keeps installed games under steamapps\common in your Steam library folder (Steam Support shows the same layout for SteamVR). In your Library, right-click Counter-Strike 2 and choose Properties…, then Installed Files: that is the tab Steam's support article uses for the game's files (both checked 2026-11-02).
  2. From the install folder, open game, then csgo, then cfg.
  3. Check you are in the right place: the folder already contains gamemode_competitive.cfg.

The practice.cfg

Create a new text file in that cfg folder, name it practice.cfg, and paste this in:

// practice.cfg for CS2. Run it with: exec practice
// Commands from globalcsgo.com/console-commands/, checked 2026-11-02

sv_cheats 1                               // must come first, the cheat commands below depend on it

// stop the game moving you between teams
mp_limitteams 0
mp_autoteambalance 0

// long rounds, no freeze time
mp_roundtime 60
mp_roundtime_defuse 60
mp_freezetime 0

// money and buying
mp_maxmoney 60000
mp_startmoney 60000
mp_buytime 9999
mp_buy_anywhere 1

// ammo and grenades
sv_infinite_ammo 1                        // your active weapon never runs out
ammo_grenade_limit_total 5                // carry one of every grenade

// lineup and spray practice
sv_grenade_trajectory_prac_pipreview 1    // picture-in-picture preview of where a grenade lands
sv_showimpacts 1                          // draws where each bullet hit

// empty server
bot_kick

// practice binds
bind "p" "noclip"
bind "o" "sv_rethrow_last_grenade"

mp_restartgame 1                          // restart so the money and round settings apply

A few notes on what is in there and what is not:

  • sv_cheats 1 is first because sv_infinite_ammo, noclip and sv_rethrow_last_grenade are all flagged as cheat commands in the game's command list. Without it they are rejected.
  • mp_restartgame 1 is last. The game's own description is "game will restart in the specified number of seconds", and the money and round settings take hold on that restart.
  • sv_showimpacts 1 shows both sides of each hit. The game's help text says client impacts are drawn in red and server impacts in blue; 2 shows only client and 3 only server.
  • god and bot_stop are left out. Whether you want to be invulnerable, or want the bots frozen in place, changes from drill to drill. Type god 1 or bot_stop 1 when you need them. Typed on its own, god is a toggle: the game's help text says "Toggle by default, or 0 to disable and 1 to enable", so a bare god typed twice switches it off again.
  • sv_grenade_trajectory_time is left out. Many command lists show it, ours included, but we could not find it in the current build's command list. The closest match there is sv_grenade_trajectory_prac_trailtime, which takes a value from 0 to 8 seconds. Until we have checked it in game and added it to the main list, it stays out of the file.

How to run it

  1. In the Play menu, switch to Practice (offline with bots) and start a game on the map you want to practise.

  2. Once you are in the map, open the console and type:

    exec practice

  3. The round restarts a second later with everything applied.

Run it after the map loads, not from the main menu. Most of the file changes server settings, and in the main menu there is no server for them to change.

Practice binds

The two binds in the file cover what you will press most. Clearing smokes is the third one worth having, and you can add it as an extra line at the bottom of practice.cfg:

BindWhat it does
bind "p" "noclip"Fly through walls to get back to a throwing spot or check where a grenade landed. Press again to walk normally.
bind "o" "sv_rethrow_last_grenade"Throws your last grenade again from the exact spot you threw it. One key per attempt instead of a walk back across the map.
bind "F8" "ent_fire smokegrenade_projectile kill"Removes every smoke grenade on the map, so the next attempt is not hidden inside the last one.

The clear-smoke bind sends the Kill input to every entity of the class smokegrenade_projectile. Both the class and the input are in the game's entity list, and ent_fire is a cheat command, so it also needs sv_cheats 1 (checked 2026-11-02). It is not on our main command list, which is why it sits here and not in the file above.

P, O and F8 have no action in CS2's default key layout (checked 2026-11-02), so these binds do not overwrite anything the game set up for you. If you have bound those keys yourself, pick others. More practice binds, and the rules for key names, are on our binds page.

When it does not work

"sv_cheats" or a cheat command is rejected

sv_cheats is a server setting. You can only change it on a server you control: an offline practice game, or a private server you host. Official matchmaking servers will not accept it, and every cheat-flagged command in the file (sv_infinite_ammo, noclip, sv_rethrow_last_grenade, ent_fire) does nothing without it. Valve's CFG page puts it plainly: cheat commands need sv_cheats 1, otherwise they have no effect.

If you are in your own game and they are still rejected, check that sv_cheats 1 is the first command line of the file, and that you ran the file after the map loaded.

The file does not run at all

  • Wrong folder. It must sit in game\csgo\cfg, next to gamemode_competitive.cfg. If you cannot see that file, you are in the wrong place.
  • Hidden extension. Windows hides known file extensions by default, so a file you named practice.cfg in Notepad can really be practice.cfg.txt. Turn on file name extensions in File Explorer and check.
  • Typo in the exec line. The name after exec has to match the file name. exec practice runs practice.cfg.

Money or round time did not change

Those settings apply on a restart. The file ends with mp_restartgame 1 for that reason. If you removed it, or edited a value and ran only that one line, type mp_restartgame 1 yourself.

The bots came back

bot_kick removes the bots that are there when it runs. If the game adds bots again later, run bot_kick once more, or put it on a key with bind. The console commands page covers bot_add_t and bot_add_ct for when you want a single bot back as a target.

The full command list

This page is only the practice setup. Crosshair, viewmodel, radar, HUD and sound commands, plus the CS:GO commands that no longer do anything, are on the CS2 console commands page. For the viewmodel commands with their exact ranges, see our viewmodel guide.

Frequently asked questions

Where do I put practice.cfg in CS2?

In the cfg folder inside the CS2 install: game\csgo\cfg. It is the same folder that holds the game's own gamemode_competitive.cfg and server.cfg. To find the install, right-click Counter-Strike 2 in your Steam Library and open Properties, then Installed Files.

How do I run a cfg file in CS2?

Open the console and type exec followed by the file name, for example exec practice. Do it after the map has loaded, not from the main menu, because the server commands in the file need a server to apply to.

Why does noclip not work in CS2?

noclip is a cheat-protected command, so it only works after sv_cheats 1, and sv_cheats only works on a server you control, such as an offline practice game. On official matchmaking servers it does nothing.

How do I bind noclip in CS2?

Type bind "p" "noclip" in the console, or put that line in your practice.cfg. P has no default action in CS2, so you are not overwriting anything.

How do I clear smokes on a CS2 practice server?

With sv_cheats 1 on, ent_fire smokegrenade_projectile kill removes every smoke grenade entity on the map. Bind it to a key, for example bind "F8" "ent_fire smokegrenade_projectile kill".

CS2 tools

CS2 guides