TF2 console commands
All 3079 settings and 1005 commands from the game's own list, with defaults and examples to copy, marked server or client.
4084 commands
- mp_timelimit Server
Sets how many minutes a map is played before the server moves to the next map. 0 means no time limit.
Default 0
Rounds and match
- mp_maxrounds Server
Sets the maximum number of rounds played before the server changes map. 0 means no round limit.
Default 0
Rounds and match
- mp_autoteambalance Server
Controls automatic team balancing: off, force-switch players, or ask for volunteers.
Default 1 (Force switch players)
Teams and classes
-
Default 0
Bots
-
Command
Bots
-
Default 0 (Off)
Cheats and practice
- mp_tournament Server
Toggles tournament mode, where teams must ready up and the match starts on command, as used in competitive play.
Default 0 (Off)
Rounds and match
-
Default 0
Rounds and match
- viewmodel_fov Client
Sets the field of view for your weapon model, which changes how big and where your weapon appears.
Default Not listed
Viewmodel
-
Default Not listed
Crosshair and HUD
-
Default 0 (Off)
Chat and voice
- mp_restartgame Server
Restarts the game after the given number of seconds, resetting scores and the round.
Default 0
Rounds and match
- mp_bonusroundtime Server
Sets the humiliation time after a round is won, in seconds, before the next round starts.
Default 15
Rounds and match
- mp_chattime Server
Sets how many seconds players can chat on the scoreboard after the map ends before the next map loads.
Default 10
Rounds and match
-
Default 0 (Off)
Rounds and match
-
Command
Rounds and match
- mp_match_end_at_timelimit Server
Toggles whether the match ends the moment the time limit runs out instead of waiting for the current round to finish.
Default 0 (Finish the current round first)
Rounds and match
-
Default 10
Rounds and match
-
Default 0
Rounds and match
- mp_stalemate_enable Server
Toggles Sudden Death, the no-respawn round that starts when the round timer runs out without a winner.
Default 0 (Off)
Rounds and match
-
Default 0 (Off)
Rounds and match
-
Default 240
Rounds and match
- mp_tournament_readymode Server
Toggles per-player ready status in tournament mode instead of a single ready button per team.
Default 0 (Off)
Rounds and match
- mp_tournament_readymode_min Server
Sets the minimum number of players on the server before ready status can be toggled in ready mode.
Default 2
Rounds and match
- mp_tournament_restart Server
Restarts tournament mode on the current map, sending both teams back to the ready-up stage.
Command
Rounds and match
- mp_tournament_stopwatch Server
Toggles stopwatch mode in tournament play, where teams swap sides and race each other's capture times.
Default 1 (On)
Rounds and match
- mp_tournament_whitelist Server
Sets the item whitelist file that decides which weapons and cosmetics are allowed in tournament mode.
Default item_whitelist.txt
Rounds and match
- mp_waitingforplayers_time Client
Sets how many seconds the waiting for players period lasts at the start of a map.
Default 30
Rounds and match
- mp_windifference Server
Sets a score lead that ends the map early when one team gets that far ahead. 0 turns it off.
Default 0
Rounds and match
- mp_winlimit Server
Sets how many round wins a team needs before the server changes map. 0 means no win limit.
Default 0
Rounds and match
-
Default (empty)
Teams and classes
-
Command
Teams and classes
-
Default (empty)
Teams and classes
-
Default 1 (On)
Teams and classes
-
Default 0 (Off)
Teams and classes
- mp_humans_must_join_team Server
Restricts human players to a single team: any, red, blue or spectator.
Default any (Players pick any team)
Teams and classes
- mp_idledealmethod Server
Sets what happens to idle players: nothing, move to spectator then kick, or kick right away.
Default 1 (Move to spectator, then kick if still idle)
Teams and classes
-
Default 3
Teams and classes
-
Command
Teams and classes
- mp_scrambleteams_auto Server
Toggles automatic team scrambles when one team keeps winning by a wide margin.
Default 1 (On)
Teams and classes
-
Command
Teams and classes
- mp_teams_unbalance_limit Server
Sets how many more players one team can have than the other before teams count as unbalanced.
Default 1
Teams and classes
- tf_classlimit Server
Limits how many players can play each class per team on public servers. 0 means no limit.
Default 0
Teams and classes
- tf_tournament_classlimit_demoman Server
Sets the maximum number of Demomen per team in tournament mode. -1 means no limit.
Default -1
Teams and classes
- tf_tournament_classlimit_engineer Server
Sets the maximum number of Engineers per team in tournament mode. -1 means no limit.
Default -1
Teams and classes
- tf_tournament_classlimit_heavy Server
Sets the maximum number of Heavies per team in tournament mode. -1 means no limit.
Default -1
Teams and classes
- tf_tournament_classlimit_medic Server
Sets the maximum number of Medics per team in tournament mode. -1 means no limit.
Default -1
Teams and classes
- tf_tournament_classlimit_pyro Server
Sets the maximum number of Pyros per team in tournament mode. -1 means no limit.
Default -1
Teams and classes
- tf_tournament_classlimit_scout Server
Sets the maximum number of Scouts per team in tournament mode. -1 means no limit.
Default -1
Teams and classes
- tf_tournament_classlimit_sniper Server
Sets the maximum number of Snipers per team in tournament mode. -1 means no limit.
Default -1
Teams and classes
- tf_tournament_classlimit_soldier Server
Sets the maximum number of Soldiers per team in tournament mode. -1 means no limit.
Default -1
Teams and classes
- tf_tournament_classlimit_spy Server
Sets the maximum number of Spies per team in tournament mode. -1 means no limit.
Default -1
Teams and classes
- nav_generate Server
Generates a navigation mesh for the current map so bots can move around it. Requires sv_cheats 1.
Command
Bots
-
Default 1 (On)
Bots
-
Default 1 (Normal)
Bots
- tf_bot_force_class Server
Forces every TFBot to respawn as the given class. Empty means bots pick their own class.
Default (empty)
Bots
- tf_bot_join_after_player Server
Toggles whether bots wait for a human to join before entering the game.
Default 1 (On)
Bots
-
Command
Bots
-
Default 0 (Off)
Bots
-
Default normal (Quota is the bot count)
Bots
-
Command
Maps and game modes
-
Command
Maps and game modes
-
Default mapcycle.txt
Maps and game modes
-
Command
Maps and game modes
-
Default (empty)
Maps and game modes
- tf_arena_first_blood Server
Toggles the First Blood reward in Arena mode, a short crit boost for the first kill of the round.
Default 1 (On)
Maps and game modes
- tf_arena_preround_time Server
Sets the length of the Arena pre-round, when players are frozen before the fight, in seconds.
Default 10
Maps and game modes
- tf_arena_use_queue Server
Toggles the Arena spectator queue that rotates waiting players into the next round.
Default 1 (On)
Maps and game modes
-
Default 0 (Off)
Maps and game modes
-
Default 10
Maps and game modes
- tf_flag_caps_per_round Server
Sets how many flag captures win a round on Capture the Flag and PASS Time maps.
Default 3
Maps and game modes
-
Default 0 (No forced holiday)
Maps and game modes
-
Default 0 (Off)
Maps and game modes
-
Default 0 (Off)
Maps and game modes
-
Default 0 (Off)
Maps and game modes
-
Default 0 (Off)
Weapons and damage
- tf_allow_player_use Server
Toggles whether players can use the +use key to interact with map entities.
Default 0 (Off)
Weapons and damage
- tf_damage_disablespread Server
Toggles the random damage spread on all player damage. 1 removes the randomness.
Default 1 (Random damage spread off)
Weapons and damage
-
Default 1 (Normal)
Weapons and damage
- tf_use_fixed_weaponspreads Server
Toggles fixed pellet spread for shotguns and scatterguns instead of a random pattern.
Default 0 (Off)
Weapons and damage
-
Default 1 (On)
Weapons and damage
- tf_weapon_criticals_melee Server
Controls random crits for melee weapons separately from other weapons.
Default 1 (Follows tf_weapon_criticals)
Weapons and damage
-
Default 10
Movement and physics
-
Default 800
Movement and physics
-
Default 0 (No switching)
Movement and physics
- tf_avoidteammates_pushaway Server
Toggles whether teammates push each other apart when they overlap.
Default 1 (On)
Movement and physics
-
Default (empty)
Server and access
-
Command
Server and access
- mp_forcecamera Server
Restricts what dead players can spectate: everyone, only their own team, or nothing.
Default 1 (Own team only)
Server and access
-
Default (empty)
Server and access
- sv_allow_wait_command Server
Toggles whether players can use the wait command in scripts on this server.
Default 1 (On)
Server and access
- sv_allowdownload Both
Toggles whether players can download missing files such as custom maps from the server.
Default 1 (On)
Server and access
-
Default 1 (On)
Server and access
- sv_downloadurl Server
Sets a web address where players download custom maps and files, often called FastDL.
Default (empty)
Server and access
- sv_lan Both
Toggles LAN-only mode, which hides the server from the internet browser and skips Steam authentication.
Default 0 (Off)
Server and access
-
Default 1 (On)
Server and access
-
Default (empty)
Server and access
-
Default 0 (Off)
Server and access
- sv_pure Server
Sets how strictly the server checks that players' game files match, which blocks custom models and materials.
Command
Server and access
- sv_pure_kick_clients Both
Toggles kicking players whose files do not match the sv_pure rules, instead of only warning them.
Default 1 (On)
Server and access
- sv_rcon_banpenalty Both
Sets how many minutes to ban someone who fails RCON authentication too often. 0 means permanent.
Default 0
Server and access
- sv_region Both
Sets the region the server reports to the server browser so players can filter by location.
Default (empty)
Server and access
- sv_setsteamaccount Server
Logs the server in with a Game Server Login Token from Steam, giving it a persistent account.
Command
Server and access
-
Default cp
Server and access
-
Default 65
Server and access
- sv_visiblemaxplayers Both
Overrides the max player count shown to people browsing for servers. -1 shows the real slot count.
Default -1
Server and access
- tf_allow_server_hibernation Server
Toggles whether the server goes into low-CPU hibernation when nobody is connected.
Default 1 (On)
Server and access
-
Default Not listed
Network and rates
- cl_interp Client
Sets your interpolation delay in seconds, how far behind real time other players are drawn to keep movement smooth.
Default Not listed
Network and rates
- cl_interp_ratio Client
Sets interpolation as a multiple of the update interval. The delay is cl_interp_ratio divided by cl_updaterate.
Default Not listed
Network and rates
-
Default 1 (On)
Network and rates
-
Default Not listed
Network and rates
-
Default 0 (Off)
Network and rates
-
Default Not listed
Network and rates
- sv_client_min_interp_ratio Server
Sets the lowest cl_interp_ratio players may use while connected. -1 lets them use any value.
Default 1
Network and rates
-
Default 66
Network and rates
-
Default 0
Network and rates
-
Default 66
Network and rates
-
Command
SourceTV and demos
- ds_enable Client
Sets automatic demo recording: manual, competitive matches, all matches, or tournament matches.
Default Not listed
SourceTV and demos
-
Command
SourceTV and demos
-
Command
SourceTV and demos
-
Command
SourceTV and demos
-
Default 0 (Off)
SourceTV and demos
-
Default 30
SourceTV and demos
- tv_enable Server
Turns on SourceTV, the built-in spectator relay that can broadcast and record matches.
Default 0 (Off)
SourceTV and demos
-
Default 128
SourceTV and demos
- tv_name Both
Sets the name SourceTV shows on the scoreboard and in the server browser for the relay.
Default SourceTV
SourceTV and demos
-
Default (empty)
SourceTV and demos
-
Default 27020
SourceTV and demos
-
Command
SourceTV and demos
-
Default 16
SourceTV and demos
-
Command
SourceTV and demos
-
Command
SourceTV and demos
- tv_transmitall Server
Toggles sending every entity to SourceTV instead of only what the director camera sees.
Default 0 (Off)
SourceTV and demos
-
Command
Chat and voice
-
Command
Chat and voice
-
Default 1 (On)
Chat and voice
-
Default 1 (On)
Chat and voice
-
Default Not listed
Chat and voice
-
Default Not listed
Chat and voice
-
Default (empty)
Chat and voice
- callvote Server
Starts a vote on an issue, such as kicking a player, changing the map or scrambling teams.
Command
Voting
-
Default 1 (On)
Voting
- sv_vote_issue_autobalance_allowed Server
Toggles whether players can call votes to turn auto team balance on or off.
Default 0 (Off)
Voting
- sv_vote_issue_changelevel_allowed Server
Toggles whether players can call votes to change the map right away.
Default 0 (Off)
Voting
- sv_vote_issue_extendlevel_allowed Server
Toggles whether players can call votes to extend the current map.
Default 1 (On)
Voting
-
Default 0 (Off)
Voting
- sv_vote_issue_nextlevel_allowed Server
Toggles whether players can call votes to choose the next map.
Default 1 (On)
Voting
- sv_vote_issue_restart_game_allowed Server
Toggles whether players can call votes to restart the game.
Default 0 (Off)
Voting
- sv_vote_issue_scramble_teams_allowed Server
Toggles whether players can call votes to scramble the teams.
Default 1 (On)
Voting
- sv_vote_kick_ban_duration Server
Sets how many minutes a player removed by vote kick is banned from rejoining. 0 disables the ban.
Default 20
Voting
- sv_vote_quorum_ratio Server
Sets the share of eligible players who must vote yes for a vote to pass, from 0.1 to 1.
Default 0.6
Voting
-
Default 15
Voting
-
Default (empty)
Voting
-
Command
Admin and bans
-
Command
Admin and bans
-
Command
Admin and bans
-
Command
Admin and bans
-
Command
Admin and bans
-
Command
Admin and bans
-
Command
Admin and bans
-
Command
Admin and bans
- status Both
Shows the map, server info and every connected player with user ID, Steam ID, ping and IP.
Command
Admin and bans
-
Command
Admin and bans
-
Command
Admin and bans
-
Default Not listed
Crosshair and HUD
- cl_crosshair_file Client
Sets which crosshair image is used. Empty uses each weapon's default crosshair.
Default Not listed
Crosshair and HUD
-
Default Not listed
Crosshair and HUD
-
Default Not listed
Crosshair and HUD
-
Default Not listed
Crosshair and HUD
-
Default Not listed
Crosshair and HUD
-
Default 1 (On)
Crosshair and HUD
-
Default Not listed
Crosshair and HUD
-
Default 0 (Off)
Crosshair and HUD
-
Default 0 (Off)
Crosshair and HUD
-
Default Not listed
Crosshair and HUD
- hud_classautokill Client
Toggles dying automatically when you pick a new class outside the spawn room.
Default Not listed
Crosshair and HUD
-
Default Not listed
Crosshair and HUD
-
Default Not listed
Crosshair and HUD
-
Default Not listed
Crosshair and HUD
-
Default Not listed
Crosshair and HUD
- hud_fastswitch Client
Toggles fast weapon switch, so number keys switch weapons right away without a confirm click.
Default Not listed
Crosshair and HUD
- hud_medicautocallers Client
Toggles showing hurt teammates to Medics automatically, as if they called for a Medic.
Default Not listed
Crosshair and HUD
- hud_medicautocallersthreshold Client
Sets the health percentage below which teammates show up as auto callers for Medics.
Default Not listed
Crosshair and HUD
-
Default Not listed
Viewmodel
-
Default Not listed
Viewmodel
-
Default 1 (On)
Viewmodel
- tf_use_min_viewmodels Client
Toggles minimal viewmodels, which move weapons to a smaller, centered position on screen.
Default Not listed
Viewmodel
-
Command
Binds and input
-
Command
Binds and input
-
Default (empty)
Binds and input
-
Default Not listed
Binds and input
-
Default Not listed
Binds and input
-
Command
Binds and input
-
Default (empty)
Binds and input
-
Command
Binds and input
-
Command
Binds and input
-
Command
Binds and input
-
Command
Binds and input
-
Command
Binds and input
- m_rawinput Client
Toggles raw mouse input, which reads the mouse directly and ignores Windows pointer settings.
Default Not listed
Binds and input
-
Command
Binds and input
-
Default Not listed
Binds and input
-
Default (empty)
Binds and input
-
Default Not listed
Binds and input
-
Command
Binds and input
-
Command
Binds and input
- zoom_sensitivity_ratio Client
Sets a sensitivity multiplier used while zoomed in, such as with the Sniper Rifle scope.
Default Not listed
Binds and input
-
Default 15
Graphics and performance
-
Default 400
Graphics and performance
-
Default 0
Graphics and performance
- mat_picmip Both
Sets texture quality. Higher values use blurrier, smaller textures for better performance.
Default 0
Graphics and performance
- mat_queue_mode Both
Sets how the renderer uses CPU threads: default, single thread, or multithreaded.
Default -1 (Default)
Graphics and performance
- mat_vsync Both
Toggles vertical sync, which locks frame rate to your monitor refresh rate to avoid tearing.
Default 0 (Off)
Graphics and performance
-
Default 1 (On)
Graphics and performance
-
Default Not listed
Sound
-
Command
Sound
-
Default Not listed
Sound
-
Default Not listed
Sound
-
Default Not listed
Sound
-
Default Not listed
Sound
- tf_dingalingaling_lasthit Client
Toggles the kill sound that plays when one of your attacks kills an enemy.
Default Not listed
Sound
-
Default Not listed
Sound
-
Default Not listed
Sound
-
Command
Cheats and practice
-
Command
Cheats and practice
-
Command
Cheats and practice
-
Command
Cheats and practice
-
Command
Cheats and practice
- host_timescale Server
Sets game speed. 1 is normal, lower is slow motion, higher speeds the game up.
Default 1
Cheats and practice
-
Command
Cheats and practice
-
Command
Cheats and practice
-
Command
Cheats and practice
-
Default Not listed
Debug and developer
-
Command
Debug and developer
- developer Both
Sets the developer message level, which prints extra debug info to the screen and console.
Default 0
Debug and developer
-
Command
Debug and developer
-
Command
Debug and developer
-
Command
Debug and developer
Nothing matches.
Try part of the name, like freeze or money, or a word from what it does.
Questions
How do I run TF2 commands on my server?
On a SLASHPLAY server, type it in the Console tab of the server page; the reply shows right under it. A value set there lasts until the server restarts. To keep it, add the line to tf/cfg/server.cfg.
How do I use client commands in TF2?
Type it in your own game console: turn on the developer console in the game's settings, then press the key under Esc. To keep it, put the line in tf/cfg/autoexec.cfg.
How do I keep a setting after a restart?
Settings typed in the console last until the server restarts. Put them in tf/cfg/server.cfg, one per line, and they apply every time the server starts.
What is the difference between server and client commands?
Server commands change the server for everyone and are run in the server console or over RCON. Client commands change your own game, like your crosshair or viewmodel, and are typed in your game console. Entries marked both exist in both places.
Where does this list come from?
It is the game's own list: cvarlist on a SLASHPLAY TF2 server, plus the client list on the Valve Developer Community. The descriptions and examples on the written pages are by SLASHPLAY.
Try them on
your own server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.