Skip to content

Counter-Strike 2

CS2 Console Commands

A CS2 practice setup is not one command, it is about fifteen of them in an order that matters. Getting them in the wrong order means half of them are silently refused, and missing one specific line is why practice rounds still end after two minutes on defuse maps.

Tick the parts you want below and the generator writes the config in the right order, ready to paste or save as a .cfg file.

Every command here needs sv_cheats 1, which only works on a local or private server where you are the host. Matchmaking servers block it outright, and nothing on this page is usable in a competitive match.

Practice Config Generator

Tick what you want and the config is written in the order CS2 needs it — cheats first, restart last. Copy the block, or save it as a .cfg and run it with one line.

What to include

Your config · 19 lines

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

Paste into the console, or save as practice.cfg and run it with exec practice.

Full command reference

Every command in the generator above, plus what each one actually changes. Searchable and filterable.

Showing 20 of 20

  • Enable cheats

    Unlocks every practice command. Nothing below works without it.

    Setup

    Only works on a local or private server where you are the host. Matchmaking servers block it outright.

  • Remove all bots

    Clears the server so you can practise alone.

    Setup

  • Remove team limits

    Stops the server rebalancing teams while you practise.

    Setup

  • Disable auto-balance

    Prevents being moved to the other team mid-round.

    Setup

  • Long round time

    Sets the round length in minutes so it does not end mid-practice.

    Round

  • Long defuse round time

    The same for defuse maps, which use their own value.

    Round

    Setting only mp_roundtime is why practice rounds still end after two minutes on Mirage.

  • No freeze time

    Removes the frozen period at the start of a round.

    Round

  • End warm-up

    Skips straight out of the warm-up phase.

    Round

  • Restart the round

    Applies the settings above by starting a fresh round.

    Round

    Most of these settings only take effect on the next round, so run this last.

  • Raise the money cap

    Lets you hold far more than the usual maximum.

    Economy

  • Set starting money

    How much you get at the start of each round.

    Economy

  • Unlimited buy time

    The buy menu stays open all round.

    Economy

  • Buy anywhere

    Removes the requirement to stand in a buy zone.

    Economy

  • Infinite ammo

    Never reload and never run out.

    Practice

    Set it to 2 instead for infinite reserve ammo while still having to reload.

  • More grenades

    How many of each grenade you can carry.

    Practice

  • Show grenade path

    Draws the flight path of a thrown grenade.

    Practice

  • Show bullet impacts

    Marks where every shot lands, for spray control practice.

    Practice

  • Impact marker duration

    How many seconds the impact marks stay on screen.

    Practice

  • God mode

    Take no damage while working on a lineup.

    Practice

  • No clip

    Fly through walls to check angles and lineups.

    Practice

    Bind it to a key — typing it in the console every time is the slowest part of practising.

Turning the Console On

The developer console is off by default. Switch it on in Settings, under Game, by setting Enable Developer Console to Yes. It then opens with the tilde key, which you can rebind in the keyboard settings if your layout puts that key somewhere awkward.

To practise, start a game against bots on the map you want — an offline game with bots gives you a server where you are the host, which is the condition sv_cheats requires. Then paste the config in.

Saving it as a file is worth the two minutes. Put the generated lines in a text file called practice.cfg in the game’s cfg folder, and from then on the whole setup is one line in the console: exec practice.

Why the Order Matters

sv_cheats 1 has to come first. Every other command in this list is gated behind it, and running them before it means they are refused one by one while the console scrolls past too fast to notice. That is why the generator marks that block as required and will not let you switch it off.

mp_restartgame 1 has to come last. Most round settings — round time, freeze time, starting money — only take effect at the start of the next round, so without a restart you have configured everything and changed nothing until the current round happens to end.

The line most often missing from other people’s configs is mp_roundtime_defuse. Defuse maps use their own round timer, so setting mp_roundtime alone leaves you with a two-minute round on Mirage, Inferno and every other bomb map — which is most of the ones you actually want to practise on.

bot_kick is in the first block rather than later for a practical reason: bots left on the server will walk into your smokes and shoot you while you are lining up a grenade.

Grenade and Spray Practice

sv_grenade_trajectory_prac_pipreview 1 draws the flight path of a grenade after you throw it, which is what makes lineup practice possible at all — without it you are guessing at why a smoke landed short.

sv_showimpacts 1 marks where every bullet lands, and sv_showimpacts_time controls how long the marks stay visible. Ten seconds is long enough to walk up and read a spray pattern rather than squinting at it from range.

sv_infinite_ammo 1 removes both reloading and ammunition limits. Setting it to 2 instead keeps reloading in place while making the reserve infinite, which is closer to real conditions if you are practising recoil rather than lineups.

ammo_grenade_limit_total raises how many of each grenade you can carry, so a smoke lineup session does not mean walking back to buy after every throw. Combined with mp_buy_anywhere 1 and a raised money cap, the buy loop stops interrupting practice entirely.

Frequently Asked Questions

How do I enable the console in CS2?

In Settings, under Game, set Enable Developer Console to Yes. It then opens with the tilde key, which can be rebound in the keyboard settings.

Why are my practice commands not working?

Almost always because sv_cheats 1 has not been run first, or because you are on a server where it is blocked. sv_cheats only works on a local or private server where you are the host — matchmaking servers refuse it entirely.

Why does my practice round still end after two minutes?

Because defuse maps use their own timer. Setting mp_roundtime is not enough — you also need mp_roundtime_defuse, which is the line most configs leave out.

How do I save a practice config?

Put the generated lines in a text file named practice.cfg inside the game’s cfg folder, then type exec practice in the console to load the whole setup at once.

How do I see grenade trajectories in CS2?

sv_grenade_trajectory_prac_pipreview 1 draws the flight path after a throw. It needs sv_cheats 1 first, like everything else on this page.

Can I use these commands in a competitive match?

No. sv_cheats is blocked on matchmaking servers, and every command here depends on it. These are for offline and private practice servers only.

Related Guides