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.
Quick answer
Enable the CS2 developer console in Settings → Game and open it with the ~ key. Practice commands such as noclip, infinite ammo and bot controls need sv_cheats 1, which only works on your own server or a local game. Server commands like map changes, warmup and kicks are run over RCON.
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_kickThese 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.