4 min readUpdated Aug 15, 2026

TF2 Console Commands List

Team Fortress 2 exposes over two thousand console variables. The tf_ family covers everything specific to TF2, from random crits to bot behaviour, while mp_ and sv_ handle the round rules and server settings shared with other Source games.

Search the full list below, then add what you need to your Team Fortress 2 server. Each entry shows the default value, what it does and whether it runs on the server or the client.

Category

2,027 commands in total

CommandDefaultDescription
Erases current game stats and writes out a blank stats fileCommandServer
Shutdown and restart the engine.CommandServer
Default: 0Turn on achievement debug msgs.ServerCheatReplicated
Add an IP address to the ban list.CommandServer
Default: 1No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0Debug the NPC dynamic interaction system.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0Show random expression decisions for NPCs.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0NPC Line-Of-Sight debug mode. If 1, solid entities that block NPC LOC will be highlighted with white bounding boxes. If 2, it'll show non-solid entities that would do it if they were solid.ServerCheat
Default: 0No description is published for this one.Server
Debug the attempted connection between two nodesCommandServer
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.ServerCheatReplicated
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.ServerCheat
Drop an ai_hint at the player's current eye position.CommandServer
No description is published for this one.CommandServer
Default: 0No description is published for this one.Server
Default: 1No description is published for this one.Server
Default: 0Maximum frametime to still play background expressions.Server
Default: 0Disable npc background expressions when you can't see them.Server
Default: 720No description is published for this one.Server
Default: 1No description is published for this one.Server
Default: 1No description is published for this one.Server
Default: 1No description is published for this one.Server
Default: 1No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 50frametime limit for min efficiency AIE_NORMAL (in sec's).Server
Default: 0No description is published for this one.ServerCheat
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.ServerReplicated
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 8No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 1No description is published for this one.Server
Default: 1No description is published for this one.Server
Default: 1No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 1No description is published for this one.Server
Default: 0No description is published for this one.ServerArchived
Default: 0No description is published for this one.Server
Set how high AI bumps up ground walkers when checking stepsCommandServer
Default: 0Shows that bones that are setup every thinkServer
Default: 1No description is published for this one.Server
Default: 1No description is published for this one.ServerReplicated
Default: -1No description is published for this one.ServerReplicated
Default: 0No description is published for this one.Server
Default: 1000No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 3No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.Server
Default: 0No description is published for this one.ServerArchived
Default: 1No description is published for this one.Server
Default: 1No description is published for this one.Server
Default: 1No description is published for this one.Server
Default: 1No description is published for this one.Server
Default: 1No description is published for this one.Server
Default: 1No description is published for this one.ServerCheat
Changes the density of air for drag computations.CommandServer
Alias a command.CommandServer
Default: 5000No description is published for this one.ServerReplicated
Default: 1Toggle the 3-way animation blending code.ServerReplicated
Default: 1Allow AsyncBegin/EndRead()Server
Default: 0Set the async filesystem mode (0 = async, 1 = synchronous)Server
No description is published for this one.CommandServer
Default: 0Force async reads to serialize for profilingServer
Default: 0Simulate a delay of up to a set msec per file operationServer
No description is published for this one.CommandServer
Default: 0No description is published for this one.Server
Default: 2160No description is published for this one.Server
Add a user ID to the ban list.CommandServer
Add an IP address to the ban list.CommandServer
Ends gathering of info.CommandServer
Starts gathering of info. Arguments: filename to write results intoCommandServer
Bind a key.CommandServer
Bind this key but only on Mac, not win32CommandServer
Performs a bind <key> 'increment var <cvar> 0 1 1'CommandServer
bloodCommandServer
Add a bot.CommandServer
Forces the specified bot to change class (e.g. bot_changeclass bot01 soldier).CommandServer
Make all bots change teamsCommandServer
Default: 80Distance to a target that a melee bot wants to be within to attack.ServerCheat
Default: 2000Distance within which bots looking for any enemies will find them.ServerCheat
Default: 400Distance to a target that a ranged bot wants to be within to attack.ServerCheat
<bot id> <command string...>. Sends specified command on behalf of specified botCommandServer
Default: 0Force all bots to crouch.ServerCheat
Default: 0For internal testing purposes.ServerCheat
Default: 0No description is published for this one.ServerCheat
Force the specified bot to drop his active weapon. Usage: bot_drop <bot name>CommandServer
Default: 0When on, all bots fire their guns.Server
Default: 1When firing, don't tap fire, hold it down.Server
Default: 0When firing, use attack2.Server
Default: 0Force bots with the specified weapon to fire.Server
Hurt a bot by team, or all bots ('all').CommandServer
Default: 0Force all bots to repeatedly jump.ServerCheat
bot_kick <all> <t|ct> <type> <difficulty> <name> - Kicks a specific bot, or all bots, matching the given criteria.CommandServer
bot_kill <all> <t|ct> <type> <difficulty> <name> - Kills a specific bot, or all bots, matching the given criteria.CommandServer
Default: 0Bot uses usercmd of player by index.Server
Default: 0Bot uses usercmd of player by index.Server
Default: 180Offsets the bot yaw.Server
Forces the specified bot to be the same class, and use the same items, as you.CommandServer
Force the specified bot to move to the point under your crosshair. Usage: bot_moveto <bot name>CommandServer
Default: 20Distance into an area that waypoints should be generated when pathfinding through portals.ServerCheat
Default: 0Delay before bots recompute their path to targets that have moved when moving to them.ServerCheat
Default: 1If set, bots will skip waypoints if they already see the waypoint post.ServerCheat
Default: 5Rate at which bots turn to face their targets.ServerCheat
Default: 1If set, bots will extend feelers to their sides to find & avoid upcoming collisions.ServerCheat
Default: 1If set, bots will generate waypoints on both sides of portals between waypoints when building paths.ServerCheat
Default: 128Distance to a waypoint to which a bot starts to decelerate to reach it.ServerCheat
Default: 16Distance to a waypoint within which a bot considers as having reached it.ServerCheat
Default: 0No description is published for this one.ServerCheat
Refill all bot ammo countsCommandServer
Default: 0No description is published for this one.ServerCheat
Default: -1set to weapon slot that bot should switch to.ServerCheat
Teleport the specified bot to the specified position & angles. Format: bot_teleport <bot name> <X> <Y> <Z> <Pitch> <Yaw>...CommandServer
Deliver lethal damage from player to specified bot. Usage: bot_whack <bot name>CommandServer
Default: 0No description is published for this one.Server
Default: 1No description is published for this one.Server
Toggle. Player takes damage but won't die. (Shows red cross when health is zero)CommandServer

Or search above to jump straight to the one you need.

Values marked Server belong in your tf/cfg/server.cfg. Values marked Clientare typed into each player’s own console.

How to Use TF2 Server Commands

TF2 reads tf/cfg/server.cfg when the server starts and again on every map change.

  1. 1
    Log in to Bropanel and select your TF2 server.
  2. 2
    In the sidebar, open Files.
  3. 3
    Open tf/cfg/server.cfg.
  4. 4
    Add one command per line, such as mp_timelimit 30.
  5. 5
    Save the file and restart your server.

Some maps also load their own config from tf/cfg/, named after the map prefix such as ctf.cfg or pl.cfg. Those run after server.cfg, so a value set there wins. The config files guide breaks down each file.

Most Used TF2 Server Commands

CommandDefaultWhat it does
hostnameemptySets the server name shown in the browser.
sv_passwordemptyLocks the server behind a password.
rcon_passwordemptySets the admin password for rcon.
sv_downloadurlemptyPoints clients at your FastDL host.
mp_timelimit0Minutes of game time per map.
mp_maxrounds0Rounds before the server changes map.
mp_winlimit0Score one team can reach before the map changes.
mp_friendlyfire0Set to 1 to let teammates damage each other.
mp_autoteambalance10 off, 1 forced switch, 2 ask for volunteers.
mp_teams_unbalance_limit1Player difference that counts as unbalanced. 0 disables.
mp_respawnwavetime10Seconds between respawn waves.
mp_disable_respawn_times0Set to 1 for instant respawn.
mp_stalemate_enable0Set to 1 to allow sudden death.
mp_forcecamera1Restricts what dead players can spectate.
mp_tournament0Set to 1 for tournament mode.
mp_scrambleteamscommandScrambles the teams and restarts the game.
sv_alltalk0Set to 1 so both teams hear each other.
sv_cheats0Set to 1 to unlock cheat commands.
sv_gravity800World gravity.

TF2 Gameplay and Bot Commands

These are the settings that change how TF2 itself feels.

CommandDefaultWhat it does
tf_weapon_criticals1Set to 0 to turn off random crits.
tf_weapon_criticals_melee1Controls melee crits separately. 0 off, 1 normal, 2 always.
tf_damage_disablespread1Removes random damage spread. Set to 0 to bring it back.
tf_use_fixed_weaponspreads0Set to 1 for fixed shotgun and pistol patterns.
tf_bot_quota0How many TF bots the server keeps in the game.
tf_bot_difficulty1Bot skill. 0 easy, 1 normal, 2 hard, 3 expert.
tf_bot_quota_modenormalWhether the quota counts bots only, fills seats, or matches humans.
tf_forced_holiday0Forces an event. 1 birthday, 2 Halloween.
tf_allow_taunt_switch0Controls weapon switching during a taunt.
tf_spawn_glows_duration10Seconds teammates glow after a respawn.

Competitive servers usually run tf_weapon_criticals 0 and tf_use_fixed_weaponspreads 1, and leave tf_damage_disablespread at its default of 1. Together those remove most of the randomness from a match.

How to Open the Console in TF2

  1. 1
    Open Team Fortress 2 and go to Options.
  2. 2
    Select the Keyboard tab and click Advanced.
  3. 3
    Tick Enable developer console (~).
  4. 4
    Click OK, then press the ~ key in game.

FAQ