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).
How to Use CS:GO & CS2 Commands
First, turn on the developer console. Go to Settings > Game Settings and switch "Enable Developer Console" to Yes.
Press the ` or ~ key on your keyboard to open the console.
Type in a command, or copy it from here, hit ENTER, and you’re good to go!
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.
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.