Skip to content
Shooters & Voice

CS2 Console Commands — Full List & Practice Cfg

9 min read Updated 12 September 2026 ESAGAMES Team

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.

Enable the console & cheats

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)

CommandWhat it does
sv_cheats 1Allow cheat commands on the server.
noclipToggle flying through walls; noclip 1 / noclip 0 forces it on or off.
godToggle invulnerability; god 1 / god 0 forces it.
buddha 1You take damage but can't die.
give weapon_ak47Give yourself an item, e.g. weapon_awp or weapon_hegrenade.
sv_rethrow_last_grenadeThrow your last grenade again, from the same spot.

Practice & aim commands

CommandWhat it does
sv_infinite_ammo 1Your active weapon never runs out of ammo.
ammo_grenade_limit_total 5Carry more grenades at once (default 3).
sv_grenade_trajectory_prac_pipreview 1Picture-in-picture preview of where a grenade will land while you aim it.
sv_grenade_trajectory_prac_trailtime 8Draw a trail behind thrown grenades (seconds, maximum 8).
sv_showimpacts 1Show bullet impacts: 1 = client and server, 2 = client only, 3 = server only.
mp_buy_anywhere 1 / mp_buytime 9999Buy anywhere on the map, at any time.
CS:GO grenade commands are gone

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

CommandWhat it does
bot_add / bot_add_t / bot_add_ctAdd a bot, optionally to a side.
bot_kickRemove 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 1Freeze bots in place (cheat).
bot_placePlace 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

CommandWhat 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.
statusPrint 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

CommandWhat it does
mp_restartgame 1Restart the game after 1 second.
mp_warmup_start / mp_warmup_endStart / end warmup immediately.
mp_warmup_pausetimer 1Stay in warmup until you set it back to 0.
mp_warmuptime <seconds>Warmup length (minimum 5).
mp_maxmoney 60000 ; mp_startmoney 60000Raise the money cap and starting money (practice).
mp_freezetime 0No 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
Practice servers only

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

CommandWhat it does
cl_showfps 1FPS meter (2 = smoothed FPS, 3 = server ms).
cl_draw_only_deathnotices 1Draw only the crosshair and kill feed — for recording.
demouiShow or hide the demo playback UI.
record <name> / stopRecord a demo / finish recording.
spec_show_xray 1Player 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.

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.

CS2 hosting
FAQ

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.

Further reading

Go deeper on this

Guides and explainers that pair with this fix — from our guides and blog.

Knowledge base

Related articles

Skip the troubleshooting

Managed, protected hosting in Frankfurt — we handle the Linux, the network and the DDoS so you don't have to.