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).

hostport

CS2 and CSGO

Command

hostport

<Port>

Sets the port number your server will use. Keep the default port unless you need to run multiple servers on the same IP, then choose a different unused port.

Command Details

host_readconfig_ignore_userconfig

CS2 Only

Command

host_readconfig_ignore_userconfig

<0 / 1>

Sets whether the game should ignore reading from or writing to the user config file.

Command Details

host_timescale

CS2 and CSGO

Command

host_timescale

<Multiplier>

Adjust the speed of time on the server to slow down or speed up all game actions.

Command Details

host_timescale_dec

CS2 Only

Command

host_timescale_dec

Slows down the game simulation by decreasing the time scale, making all in-game actions happen more slowly.

Command Details

host_timescale_inc

CS2 Only

Command

host_timescale_inc

Increases the game’s timescale by one step, speeding up or slowing down game pace. This is a cheat command and works only when cheats are enabled.

Command Details

host_writeconfig

CS2 and CSGO

Command

host_writeconfig

<Config File>

Save your current server settings set with host_ commands to a config file. These settings will persist after the server restarts.

Command Details

hud_fastswitch

CS2 Only

Command

hud_fastswitch

<0 / 1>

Enables faster weapon switching by allowing players to switch weapons instantly without opening the weapon selection menu.

Command Details

hud_scaling

CS2 and CSGO

Command

hud_scaling

<0.5 - 0.95>

Adjust the size of the HUD. Set a scale between 0.5 (smallest) and 0.95 (largest). Default is 0.85.

Command Details

hud_showtargetid

CS2 and CSGO

Command

hud_showtargetid

<0 / 1>

Toggle the red text showing an enemy's name when you hover over them. Enabled by default.

Command Details

hurtme

CS2 and CSGO

Command

hurtme

<Damage>

Inflict the specified amount of damage to your player (damage value equals HP lost).

Command Details