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!
Sets the horizontal position of your view model (your hand and weapon) on the screen in first-person view. Values range from -2.5 (near center) to 2.5 (near screen edge).
Adjust the vertical position of your viewmodel (your hand and weapon) on the screen in first-person view. Use values between -2 and 2 to move it closer or farther from your character.
Adjusts the vertical (Z-axis) position of your view model—the hand and gun displayed in first-person view. Values range from -2 (lower on screen) to 2 (higher on screen).