CS2 Console Commands

Below is CSDB's searchable list of all CS2 console commands. Each command in our database has in-depth insights on each command, with help and argument details (simply hover over a command to view).

game_mode

CS2 and CSGO

Command

game_mode

<Game Mode>

Use this command with the game_type command to set the game mode (e.g., casual, deathmatch). See option details for matching game mode numbers.

Command Details

game_type

CS2 and CSGO

Command

game_type

<Game Type>

Use this command with game_mode to select the game variant you want to play (e.g., competitive, arms race). Refer to the option values for valid combinations.

Command Details

gameui_hide

CS2 and CSGO

Command

gameui_hide

Closes the game UI (pause menu) if it is currently open.

Command Details

getpos

CS2 and CSGO

Command

getpos

Displays your current position and camera angle as setpos and setang commands in the console. You can use these commands to return exactly to this location.

Command Details

getpos_exact

CS2 and CSGO

Command

getpos_exact

Prints your player position and camera angle to the console.

Command Details

give

CS2 and CSGO

Command

give

<Weapon Code>

Use this command to spawn the specified weapon or grenade in the game. Find item codes in our [give command list](/give-codes).

Command Details

givecurrentammo

CS2 and CSGO

Command

givecurrentammo

Refills your current weapons' ammo to their maximum capacity.

Command Details

give_oriented

CS2 Only

Command

give_oriented

<Item Name>

Gives the specified item to the player, placed according to the player's current view angles.

Command Details

gl_clear_gray

CS2 Only

Command

gl_clear_gray

<0 / 1>

Clears the back buffer to gray each frame when enabled. This helps identify visual issues by painting the screen gray during gameplay or testing.

Command Details

gl_clear_randomcolor

CS2 and CSGO

Command

gl_clear_randomcolor

Clears the back buffer with random colors each frame to help identify gaps in geometry during debugging.

Command Details