Skip to main content

Page under construction

This page is under active filling and correction
There may be errors, inaccuracies and omissions, and lack of translation
Follow the updates to receive up-to-date information

Console commands

A list of all console commands (ConCommands) — their description and usage syntax

How to read console command syntax

Before we begin, let's understand how to read the syntax used in this documentation

Argument Notation

Command arguments (the parameters you pass) are denoted by special brackets:

SyntaxMeaningExample
<argument>A required argument — you must replace it with your own valuekick <name>
[argument]An optional argument — it can be omittedkick <name> [reason]
<on|off>A choice between the suggested options, separated by |log <on|off>

Using Quotation Marks ("")

If an argument contains spaces or you want to combine multiple commands into a single line, it must be enclosed in double quotes (")
Without them, the console will treat each word as a separate command or argument

  • Incorrect: say Hello world (only "Hello" will be sent to the chat)
  • Correct: say "Hello world" (the entire phrase will be sent)

This is especially important when creating binds with multi-commands: bind F1 "buy ak47; buy vesthelm"

Important
The brackets <>, [], and the | symbol should not be typed into the console
They only describe the command's structure

Settings & Configuration

CommandDescription
bind <key> <command>Binds a command to a key

For example:
bind q "lastinv"
unbind <key>Unbinds a command from a key
unbindallUnbinds all commands from all keys
bindlist [template]
Displays a list of all current key bindings
sbindlist
Displays a list of 'shadow' key bindings set by the server
multvar <cvar> <minvalue> <maxvalue> <factor>
Multiplies a cvar's value by a factor if it is within the specified range

For example:
bind uparrow "multvar voice_scale 0.01 1 2"
bind downarrow "multvar voice_scale 0.01 1 0.5"
incrementvar <cvar> <minvalue> <maxvalue> <delta>
Changes a cvar's value within a specified range

For example:
bind uparrow "incrementvar viewmodel_fov 60 179 1"
bind downarrow "incrementvar viewmodel_fov 60 179 -1"
BindToggle <key> <cvar>
A simplified version of incrementvar for quickly toggling a cvar between 0 and 1

For example:
BindToggle F4 voice_enable
alias <name> <command>Creates an alias for a single command or a group of commands

For example:
alias buy_grens "hegren;sgren;flash;"
wait [frames]

A special modifier command that pauses the execution of a command sequence for a specified number of frames

Unlike the old behavior, where you had to write wait; wait; wait;, you can now specify the number of frames
wait — pauses for 1 frame
wait 10 — pauses for 10 frames

Ideal for creating complex scripts
For example:
alias fastbuy "buy; wait 30; slot4; wait 30; slot2"

info

wait is not a standard command
It is processed directly by the command buffer and will not appear in console autocomplete

exec <filename.cfg>Executes commands from the specified configuration file
writecfg <filename.cfg>Saves the current settings (cvars) to the specified file
setinfo <key> <value>Sets or changes a value in your userinfo string

For example:
setinfo "_vgui_menus" "0"

Player & Gameplay

CommandDescription
buyOpens the weapon/equipment purchase menu
autobuyAutomatically buys equipment according to the autobuy.txt config
rebuyBuys the same equipment you had in the previous round
say <message>Sends a message to global chat
say_team <message>Sends a message to team chat
tell <player_name> <message>Sends a private message to a player (if allowed by the server)
slot1 - slot10Selects the corresponding weapon slot
invnextSelects the next weapon in the inventory
invprevSelects the previous weapon in the inventory
lookatweapon
Plays the inspect animation for the held weapon
trackplayer
Starts tracking the player you are aiming at
Tracked players are highlighted on the radar and their name is displayed above their head (if hud_headname is enabled and you are on the same team)
clearplayersResets the list of tracked players, removing all highlights
adjust_crosshair [0-9]

Cycles through crosshair colors or sets a specific mode

Without an argument:
Cycles through 5 standard opaque colors

With an argument [0-9]:
Allows directly setting one of 10 modes, useful for scripting and aliases
0-4: Sets one of the 5 standard colors in opaque mode
5-9: Sets the same 5 colors but in semi-transparent mode (enables cl_crosshairusealpha 1)

drawradar
hideradar
Shows / hides the HUD radar
cancelselectCancels a menu selection (e.g., the team selection menu)
messagemode <type>Opens the input field for a global chat message
messagemode2 <type>Opens the input field for a team chat message
force_centerviewInstantly centers the player's view (looking straight ahead)
togglescoresToggles the scoreboard display (show/hide)
voicerecord_toggle <on/off>Toggles microphone recording state (starts/stops)
Useful for creating a 'toggled' voice chat instead of 'hold-to-talk'
voice_showbannedShows a list of players you have muted
snaptoToggles the cam_snapto cvar for the third-person camera
killKills your character (suicide)
godToggles god mode (invincibility)
Requires sv_cheats 1
noclipToggles noclip mode (fly through walls)
Requires sv_cheats 1
flyToggles fly mode
Unlike noclip, the player remains 'solid' and can collide with objects
Requires sv_cheats 1
notargetMakes the player invisible to NPCs
Requires sv_cheats 1
impulse <number>Executes a game action by its numerical code

For example:
impulse 101: Gives 16000 money (requires sv_cheats 1)
impulse 201: Sprays your logo
dropclientDisconnects you from the game server

Network & Connection

CommandDescription
connect <ip:port>Connects to the specified game server

For example:
connect 123.45.67.89:27015
reconnectRefreshes the connection to the current server without a full disconnect
Takes effect during a map change; manual execution will cause a full reconnection
retryAttempts to reconnect to the last server
disconnectDisconnects from the current server
pingShows the current ping to the server in the console
pingserversSends ping requests to cached local servers to update their information
listDisplays a list of cached local servers in the console
Use slist to refresh the list
slistSearches for and displays servers on the local network (LAN) in the console
upload <!MD5...>Uploads your custom spray to the server to be displayed to other players
fullupdateRequests a full (non-delta) state update of all entities from the server, typically at the start of a demo recording
This ensures the demo has complete information about all entity states in its initial frame

Demos & Video

CommandDescription
record <filename>Starts recording a demo file (.dem)
appenddemo <filename>Appends recording to an existing demo file
stopStops demo recording
viewdemo <filename>Plays a demo file with an advanced interface (pause, rewind, etc.)
playdemo <filename>Plays a demo file (legacy method)
listdemo <filename>Displays information about the contents of a demo file
startmovie <filename> <fps>Starts recording a sequence of TGA frames for video creation
endmovieStops frame recording
startdemos <demo1> <demo2> ...Starts playback of a sequence of demo files
demosReplays the sequence of demo files from startdemos
stopdemoStops demo playback
removedemo <demoname> <segment to remove>Removes a segment from a demo file
Used during demo editing
dem_startRewinds to the beginning during demo playback via viewdemo
dem_pause <0|1>Pauses or resumes demo playback
dem_jump <time>Jumps to a specific tick in the demo
dem_forcehltv <0|1>Forces the engine to treat a demo as an HLTV recording, even if it's a POV demo
This must be executed before loading the POV demo
dem_speed <speed>Sets the playback speed of the demo
dem_save <filename>Saves a segment of the demo to a new file

Server & Administration

CommandDescription
map <mapname>Starts a local server on the specified map

For example:
map de_dust2
changelevel <mapname>Changes the server's map, moving all players
changelevel2 <mapname>Transitions to the specified map in single-player, preserving the local player's state
career <mapname>Starts a map in 'Career' mode (used in CS: Condition Zero)
restartRestarts the current map from the beginning
kick <name/#userid> [reason]Kicks a player from the server
banid <time> <steamid|#userid> [kick]Bans a player by SteamID
Time 0 is permanent
addip <time> <ip>Bans an IP address
Time 0 is permanent
removeid <steamid>Removes a ban from a SteamID
removeip <ip>Removes a ban from an IP address
listidDisplays the list of banned SteamIDs
listipDisplays the list of banned IP addresses
writeidSaves the SteamID ban list to banned.cfg
writeipSaves the IP ban list to listip.cfg
maxplayers <number>Sets the maximum number of player slots
statA formatted version of the status command
statusDisplays server information in the console — map, player list, their SteamIDs, ping, etc
statsDisplays server performance statistics (CPU, FPS, Uptime, etc.)
user <name|#userid>Shows the userinfo for a specific player
usersShows a list of players on the server
rcon <command>Sends a command to a remote server via RCON
Requires rcon_password to be set beforehand
log <on|off>Enables or disables server logging
shutdownserverShuts down the client and any local server it is running
listen <ip>Enables/disables a listen server on the specified IP
logaddress <ip:port>Sets a single remote address for sending server logs
logaddress_add <ip:port>Adds a remote address for sending server logs
logaddress_del <ip:port>Removes an address from the log recipients list
maps [filter]Displays a list of available maps

For example:
maps de_*
motdDisplays the contents of motd.txt in the console
motd_write <content>Writes the specified text to motd.txt
resetrconResets failed RCON attempt counters
hpkextract <name> [all | single index]Extracts content from a custom.hpk file, which stores player sprays
hpklist <name>Lists the files inside a custom.hpk file
hpkremove <name> [index]Removes a file from a custom.hpk file
hpkval <name>Validates the integrity of a custom.hpk file
pausePauses or unpauses the game on the server
Players can also use this command if pausable is set to 1
setpausePauses the game on the server
unpauseUnpauses the game on the server
setpos <x> <y> [z] [yaw pitch roll]
Instantly moves the player to the specified coordinates
Requires sv_cheats 1
heartbeat
Sends a 'heartbeat' signal to Steam master servers
setmaster <enable/disable>
A deprecated command for managing master servers

Spectating & Media

CommandDescription
play <path/to/file.wav>Plays the specified sound file
playvol <path> <volume>Plays a sound at the specified volume (from 0.0 to 1.0)
stopsoundImmediately stops all sounds playing in the game
soundfade <volume> <fadetime>Smoothly fades the overall volume to a target value over a specified time in seconds
speak <sentence>
spk <sentence>
Plays a constructed sentence from multiple sound files
cdControls the CD/MP3 player

mp3track <track_id> — play an MP3 track
play <track_id> — play a track from a CD
playfile <file_name> — play an MP3 file
loop <track_id> — loop a CD track
loopfile <file_name> — loop an MP3 file
stop — stop playback
fadeout — fade out the current track; fade time is determined by the MP3FadeTime cvar
pause — pause playback
resume — resume playback
on — enable audio
off — disable audio
reset — reset track positions
remap <track_id1> <track_id2> ... — set the order of CD tracks
close — close the CD drive
mp3info — show additional info about the current MP3 track
eject — eject the CD drive
info — show additional info
mp3Controls the MP3 player

play <track_id> — play a CD track
playfile <file_name> — play an MP3 file
loop <track_id> — loop a CD track
loopfile <file_name> — loop an MP3 file
stop — stop playback
screenshotTakes a screenshot in TGA format
snapshotTakes a screenshot in BMP format
thirdpersonEnables third-person view
Requires sv_cheats 1
firstpersonReturns to first-person view
commentator <0|1>Enables (1) or disables (0) commentator mode when spectating via HLTV
spec_helpShows help for spectator commands
spec_menu <0|1>Opens the spectator mode settings menu
spec_mode <mode> [pip_mode]Changes the spectator camera mode (first-person, third-person, free-roam)
spec_toggleinsetToggles picture-in-picture (PIP) mode for spectators
spec_decal
Applies a spray logo in spectator mode

Action Commands (for Binds)

info

Commands in this table have two forms, distinguished by a prefix:
+ — the action starts (key is held)
- — the action ends (key is released)
They are designed to be bound to keys using the bind command

For example:
bind mouse1 +attack

ActionDescription
attackPrimary weapon attack
attack2Alternate weapon attack
forwardMove forward
backMove backward
moveleftStrafe left
moverightStrafe right
moveupMove up (ladders, swimming)
movedownMove down (ladders, swimming)
leftTurn left (keyboard)
lookupLook up (keyboard)
lookdownLook down (keyboard)
jumpJump
duckCrouch
reloadReload weapon
useUse object (buttons, doors)
speedWalk slowly
strafeEnables strafe mode, where mouse movement left/right causes side-stepping
mlookEnables vertical view control with the mouse
klookEnables view control with the keyboard
jlookEnables view control with a joystick
voicerecordActivates the microphone for voice chat
showscores
score
Shows the scoreboard
commandmenuShows the command menu (radio commands, etc.)
camdistance
camin
camout
camyawleft
camyawright
campitchup
campitchdown
cammousemove
Commands for controlling the camera in third-person view
alt1An alternative action, typically used for special abilities in mods
graphShows the performance graph (net_graph)
break
Obsolete command
Does nothing
nvgadjust

Adjusts the brightness (alpha) of the night vision effect when active
+nvgadjust increases brightness
-nvgadjust decreases it
This command is a legacy from the era of CRT monitors
At that time, brightness and contrast varied greatly between models, and the default value could be too dark
The command allowed players to calibrate the NVG brightness for their specific monitor
It is no longer used and is considered obsolete in modern systems

Console

CommandDescription
clearClears all text from the console
toggleconsoleOpens or closes the console
hideconsoleHides the console
echo <text>Prints the specified text to the console
cvarlist [template]Lists all console variables (cvars)
A template can be used for searching
cmdlist [template]Lists all console commands
find <string>
Finds commands and variables containing the specified text in their name or description
condumpWrites the entire console text to the condump.txt file

System

CommandDescription
quit
exit
Exits the game
versionDisplays engine and build version information in the console
gamedir <gamedir>Shows or changes the current game directory (mod)
save <filename>Saves the current game (for single-player)
load <filename>Loads a saved game
autosavePerforms an autosave (for single-player)
reloadReloads the most recent save game
escape
Simulates an Escape key press, typically used to close menus

Debugging & Development

CommandDescription
cl_messages
Displays statistics on received network messages, including a detailed breakdown of svc_temp_entity and UserMessage
entities
Lists all entities on the server
condebugEnables logging of all console output to qconsole.log
contimesDisplays an overlay with console command execution times
decallist
Lists active decals on the map
delta_clearResets delta compression statistics
delta_statsShows statistics on network delta compression
dev_overview_takeshot
Takes a top-down screenshot of the map for the overview and creates a .txt file with coordinates
envmapGenerates 6 screenshots of the current scene to create environment maps (cubemaps)
fullserverinfo <complete info string>Displays the server's userinfo string in the console
http_tracking
Debug information from the internal ISteamHTTP implementation
httpstopResets the FastDL cache, forcing the client to re-attempt downloading necessary files from the fast download server
rescount
Shows the number of precached resources on the server
reslist <sound | model | decal | generic | event>
Lists all precached resources (sounds, models, etc.)
localinfo <key> <value>Displays debug information about the local client in the console
serverinfo <key> <value>Shows/sets the server's userinfo string
showinfoShows the server's userinfo
soundinfoShows information about the current sound device and its state
waveplaylen <path/to/file.wav>Shows the duration of the specified .wav file
gg <filename>Runs the built-in benchmark (Game Gauge) by playing a demo and measuring performance
timedemo <filename>Plays a demo file at maximum speed and reports the average FPS to the console
timerefreshRotates the camera 360 degrees while measuring and reporting the average FPS
pointfileLoads a {map}.pts file generated by the map compiler to show geometry 'leaks'
getpos

Displays the player's current coordinates and view angles in the console

Shows the server-side position received from the last server update
This data may differ slightly from what you see on screen due to interpolation

Output is presented in a human-readable origin and angles format

spec_pos

Displays the current coordinates and view angles in spectator mode

By default:
Shows the client-side (visual) camera position

With argument 2:
spec_pos 2 shows the server-side position

cacheflush
Clears the resource cache; all sounds, models, and sprites will be reloaded the next time they appear on the map
Requires sv_cheats 1
Старое название flush
cachelist
Writes a list of cached resources to the mem.txt file
cachemodels
Writes a list of currently cached models to the mem.txt file
cachesounds
Writes a list of currently cached sounds to the mem.txt file
spritelist [all]
Lists all loaded sprites
soundlistLists all loaded sounds
hunklist
Writes information about 'hunk' memory allocation to the mem.txt file
mcache
Shows a list of all precached models on the server
r_clearbeams
Removes all active 'beams' from the map
r_cleardecals [permanent]
Clears all temporary decals (bullet holes, blood) from the map
With the permanent argument, also removes permanent decals
@get_userinfo <#userid|@index|name|all>
Displays the full userinfo string for the specified players on the server
@depot_dump
Displays a list of all available tags (versions) in the update repository
@depot_info
Displays information about the current update repository
hud_radar_mapshot [zoom] [zmin] [zmax] [quality]
Recreates a top-down screenshot of the map and a .txt coordinate file for the advanced HUD radar
fullinfo <string>Sends a complete userinfo string to the server
gl_dump
Displays detailed debug information about the OpenGL renderer (version, vendor, extensions)
gl_texels
Shows the number of texels currently in use
gl_textures
Lists all textures currently loaded into video memory
interp
A debug command for displaying client-side interpolation status
mem_statsDisplays detailed statistics on engine memory usage

Service Commands

info

These commands are intended for internal use by the engine and Game UI
They may require a game restart or cause unexpected behavior if invoked manually

CommandDescription
_restartRestarts the game engine completely
Used to apply settings that require a restart
_setvideomode <w> <h> [video_mode]
Sets the screen resolution and display mode, then requires a restart via _restart
Called from the video settings menu
_sethdmodels <0|1>Enables or disables HD models and restarts the game to apply the change
_setaddons_folder <0|1>Enables or disables the use of the _addons folder and restarts the game
_set_vid_level <0|1>Sets the video detail level (Low/High) and restarts the game
_careeraudioInternal command for managing audio in CS:Condition-Zero's 'Career' mode
_setgamedir <gamedir>Internal command for changing the game directory
stuffcmds

A service command that executes at the final stage of loading user configs

Its main purpose is to apply parameters, cvars, and commands specified in the command line on game launch
This ensures that command-line parameters always have the highest priority, overriding any values from config.cfg or userconfig.cfg

Invoking this command manually from the console is useless