CS2 Console Commands — Full List & Practice Cfg
CS2 console commands do two jobs: practising on your own server (noclip, infinite ammo, grenade previews, bots) and running one (RCON, map changes, warmup, kicks). Every command here was checked against CS2's own command list — including the practice config, because several CS:GO grenade commands that still get copied around do not exist in CS2.
Turn on the developer console in Settings → Game, then open it with ~. Cheat-style commands need sv_cheats 1, which only works on your own server or a private practice server — not on official matchmaking.
Core cheat commands (need sv_cheats 1)
| Command | What it does |
|---|---|
sv_cheats 1 | Allow cheat commands on the server. |
noclip | Toggle flying through walls; noclip 1 / noclip 0 forces it on or off. |
god | Toggle invulnerability; god 1 / god 0 forces it. |
buddha 1 | You take damage but can't die. |
give weapon_ak47 | Give yourself an item, e.g. weapon_awp or weapon_hegrenade. |
sv_rethrow_last_grenade | Throw your last grenade again, from the same spot. |
Practice & aim commands
| Command | What it does |
|---|---|
sv_infinite_ammo 1 | Your active weapon never runs out of ammo. |
ammo_grenade_limit_total 5 | Carry more grenades at once (default 3). |
sv_grenade_trajectory_prac_pipreview 1 | Picture-in-picture preview of where a grenade will land while you aim it. |
sv_grenade_trajectory_prac_trailtime 8 | Draw a trail behind thrown grenades (seconds, maximum 8). |
sv_showimpacts 1 | Show bullet impacts: 1 = client and server, 2 = client only, 3 = server only. |
mp_buy_anywhere 1 / mp_buytime 9999 | Buy anywhere on the map, at any time. |
sv_grenade_trajectory and sv_grenade_trajectory_time are CS:GO commands and are not in CS2's command list, so configs that still use them have no effect. Use the two sv_grenade_trajectory_prac_* commands above instead.
Bot commands
| Command | What it does |
|---|---|
bot_add / bot_add_t / bot_add_ct | Add a bot, optionally to a side. |
bot_kick | Remove all bots (or only those matching t, ct or a name). |
bot_quota <n> | Total number of bots the server keeps in the game. |
bot_stop 1 | Freeze bots in place (cheat). |
bot_place | Place a bot where you are aiming (cheat). |
bot_difficulty <0-3> | Skill of bots that join: 0 easy, 1 normal, 2 hard, 3 expert. |
Running your own server
| Command | What it does |
|---|---|
sv_setsteamaccount <token> | Your Game Server Login Token (GSLT), for a server that is public on the internet. |
rcon_password "<password>" | Set in server.cfg — the password external RCON tools use to send commands. |
sv_password "<password>" | Require a password to join. |
changelevel <map> | Change map, e.g. changelevel de_mirage. |
host_workshop_map <id> | Download and host a Workshop map by its ID. |
host_workshop_collection <id> | Host a Workshop collection as the map group. |
status | Print connection status and connected players. |
kickid <userid> [message] | Kick a player by user ID, with a message. |
exec <file> | Run a .cfg file. |
Vanilla CS2 has no usable ban command — banid is marked development-only in the game's command list — so community servers ban through an admin plugin. See the best CS2 server plugins and how to install CS2 plugins.
Match & warmup
| Command | What it does |
|---|---|
mp_restartgame 1 | Restart the game after 1 second. |
mp_warmup_start / mp_warmup_end | Start / end warmup immediately. |
mp_warmup_pausetimer 1 | Stay in warmup until you set it back to 0. |
mp_warmuptime <seconds> | Warmup length (minimum 5). |
mp_maxmoney 60000 ; mp_startmoney 60000 | Raise the money cap and starting money (practice). |
mp_freezetime 0 | No freeze time at round start. |
A ready practice config
Paste this into the console on your own server (or save it as a .cfg and exec it) for a solo grenade and aim practice setup:
sv_cheats 1
sv_infinite_ammo 1
ammo_grenade_limit_total 5
sv_grenade_trajectory_prac_pipreview 1
sv_grenade_trajectory_prac_trailtime 8
sv_showimpacts 1
mp_buytime 9999
mp_buy_anywhere 1
mp_maxmoney 60000
mp_startmoney 60000
mp_freezetime 0
mp_roundtime 60
mp_restartgame 1
bot_kick
These commands need sv_cheats 1, so they only work on your own server or a private practice server — never on official matchmaking, where they're disabled and using workarounds risks a ban. Keep them to practice and your own community servers.
View, HUD & demo commands
| Command | What it does |
|---|---|
cl_showfps 1 | FPS meter (2 = smoothed FPS, 3 = server ms). |
cl_draw_only_deathnotices 1 | Draw only the crosshair and kill feed — for recording. |
demoui | Show or hide the demo playback UI. |
record <name> / stop | Record a demo / finish recording. |
spec_show_xray 1 | Player outlines through walls while spectating (on by default). |
Related CS2 guides
Running your own server? See how to make a CS2 server, configure it with best CS2 server settings, add plugins via how to install CS2 plugins, and cut latency with how to reduce ping in CS2.
Counter-Strike, Steam, VAC and the Source engine are trademarks of Valve Corporation. ESAGAMES is an independent hosting provider, not affiliated with or endorsed by Valve. You must own a legitimate copy of the game.
CS2 hosting with full console access
Our CS2 hosting gives you RCON, console access and mode presets — run practice configs, plugins and your own server the easy way.
Frequently asked questions
How do I enable the console in CS2?
Turn on the developer console in Settings → Game, then open it with the ~ (tilde) key. From there you can type console commands.
Why don't my CS2 cheat commands work?
Most of them (noclip, god, infinite ammo) need sv_cheats 1, which only works on your own server or a private practice server. They're disabled on official matchmaking.
Does god mode work in CS2?
Yes — with sv_cheats 1, god toggles invulnerability, and god 1 or god 0 forces it on or off. buddha 1 is the alternative: you still take damage but can't die.
Why doesn't sv_grenade_trajectory work in CS2?
It is a CS:GO command that isn't in CS2. Use sv_grenade_trajectory_prac_pipreview 1 for a live landing preview and sv_grenade_trajectory_prac_trailtime 8 for a trail behind thrown grenades (8 seconds is the maximum), with sv_cheats 1 on your own server.
How do I set up a CS2 practice server for grenades?
On your own server run sv_cheats 1, sv_infinite_ammo 1, ammo_grenade_limit_total 5, sv_grenade_trajectory_prac_pipreview 1, sv_grenade_trajectory_prac_trailtime 8, mp_buy_anywhere 1 and mp_buytime 9999 — or paste the practice config above. sv_rethrow_last_grenade repeats your last throw.
How do I add bots to a specific team in CS2?
bot_add_t adds a bot to the T side and bot_add_ct to the CT side (bot_add picks automatically). bot_stop 1 freezes them, bot_place puts one where you aim, bot_difficulty 0-3 sets their skill and bot_kick removes them.
How do I change the map on a CS2 server?
changelevel <map> switches to a built-in map, for example changelevel de_mirage. For Workshop content, host_workshop_map <id> downloads and hosts a single map and host_workshop_collection <id> hosts a whole collection.
How do I kick or ban a player on a CS2 server?
status lists connected players and kickid <userid> [message] kicks one. CS2 has no usable vanilla ban command — banid is development-only — so community servers ban through an admin plugin on a plugin framework.
How do I make a private CS2 server for just my friends?
Set sv_password in server.cfg so only people with the password can join, and share the connect address. For a server that is public on the internet you also need a Game Server Login Token, set with sv_setsteamaccount.
Will using console commands get me banned in CS2?
On your own or a practice server, no — that's their intended use. On official matchmaking, cheat commands are disabled and trying to force them (or using external tools) risks a VAC ban.
Go deeper on this
Guides and explainers that pair with this fix — from our guides and blog.
Best CS2 Server Plugins
Metamod, CounterStrikeSharp and MatchZy — retakes, pugs and practice.
ReadDoes SourceMod Work on CS2?
The short answer is no — here is what to use instead.
ReadWhat Is Tick Rate?
What tick rate is and why it changes how a game feels.
ReadWhat Is Netcode?
Why your shots do not always register, explained.
ReadRelated articles
Garry's Mod Admin Commands — ULX Full List
Every Garry's Mod admin command via ULX — kick, ban, slay, god, noclip, bring/goto, freeze, gag, mute, jail and user groups. Full reference.
Read fix Shooters & VoiceSquad Admin & RCON Commands — Full List
Every Squad admin command that matters — kick/ban, change layer, broadcast, restart match, list players, slomo — from the in-game console or RCON. Full reference.
Read fix Shooters & VoiceCS 1.6 5v5 Mix Server — Competitive Match Setup
Run proper 5v5 mixes on CS 1.6 — knife round, team pick, ready-up and match management with a mix plugin on a low-ping server. Setup and hosting.
Read fix