Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
World desk8 min

Team Fortress 2 Console Commands Every Server Owner Should Know

Learn the TF2 console and RCON commands server owners use most: configure server.cfg, identify and ban players safely, control maps and match rules, manage bots, troubleshoot sv_cheats, and understand which commands require SourceMod.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Team Fortress 2 server administration is built around a small set of vanilla console and RCON commands. Use status to identify players, kickid and banid for moderation, mp_* and sv_* convars for rules, and exec with tf/cfg/server.cfg for repeatable settings. SourceMod adds a separate, optional permission and menu layer; commands beginning with sm_ do not exist on an unmodified server.

Know which command layer you are using

Before copying a command, identify its authority, scope and dependency. A command entered in the dedicated-server console or through authenticated RCON can change the server for everyone. A command entered in a player’s client console may affect only that player, and some commands are blocked unless cheats are enabled. SourceMod commands require the SourceMod plugin and an account with the relevant permission.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Layer Typical examples Who it affects What it requires
Vanilla server console/RCON status, kickid, changelevel, mp_timelimit Players and server state Dedicated-server console or valid RCON credentials
Persistent configuration server.cfg, exec Every server start or config load Files under tf/cfg/
Cheat-controlled practice noclip, god, mp_forcewin Usually the whole server, with player-visible effects sv_cheats 1; use on private or test servers
SourceMod sm_kick, sm_ban, sm_map Depends on the command and target SourceMod installed and permissions configured
Client scripting bind, alias, toggle Usually one player’s client Client console or config; not automatically server authority

Set up console access, RCON and server.cfg

Store persistent settings in the right file

Put settings that should survive a restart in tf/cfg/server.cfg. The exec command loads another file from that same configuration directory, so you can keep a general server file and separate files for events or practice sessions. For example, exec competitive.cfg loads tf/cfg/competitive.cfg.

A maintained configuration example dated 26/04/2026 includes these operator settings:

#1 Best Overall
Sale
TOZO A1 Wireless Earbuds Bluetooth 5.3 Light Weight in Ear Headphones | IPX5 Waterproof,2 Mics for AI Calls,Immersive Premium Sound Bass Headset with Charging Case,32 EQ via App Black
  • [Ultra-Lightweight Ear Buds Designed for Small Ears] Each earbud weighs only 3.7g and features a compact, ergonomic in-ear design made especially for small ears. Secure, low-profile, and comfortable for workouts, all-day wear or overnight sleeping.The ultra-slim profile sits flush in your ear with no hard edges poking or rubbing, so you can even sleep on your side without discomfort.
  • [Immersive Stereo Sound with TOZO OrigX Technology] TOZO OrigX tuning delivers clear vocals, balanced mids, and natural stereo sound for music, podcasts, and videos.
  • [Long Battery Life for Daily Use] Get up to 7 hours of playtime on a single charge, with up to 32 hours total using the charging case—ideal for workdays, commuting, and extended listening sessions.
  • [Bluetooth 5.3 & Stable Connection] Bluetooth 5.3 provides fast pairing, stable wireless performance, and reduced dropouts as you move around home or office.
  • [Deep Bass with Clear Vocals] High-performance drivers produce punchy bass while keeping vocals clean and detailed for everyday listening.
hostname "My TF2 Server"
rcon_password "replace-with-a-long-unique-secret"
sv_password ""
log on
sv_logbans 1
sv_logecho 1
sv_logfile 1
sv_log_onefile 0

Use a long, unique value for rcon_password; do not paste the real secret into a public guide, bug report or shared repository. sv_password is separate: an empty value permits normal public joining, while a non-empty value requires players to enter that join password.

Connect from an authenticated client

From the game client’s console, replace the address and password with your own values:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
rcon_address <server-ip>:27015
rcon_password <password>
rcon status

The default port shown here is the common example; use the port configured by your server. Once RCON is authenticated, prefix server commands with rcon. When typing directly into the dedicated-server console, omit that prefix:

status
changelevel cp_badlands

If RCON appears to do nothing, verify that the password in the running server matches the one you entered, that the address includes the correct port, and that a firewall or host control panel is not blocking the RCON connection.

Identify players before you moderate them

Use status as your source of identifiers

Run status before kicking or banning. It lists connected players, their user IDs, names, SteamIDs, ping and IP information. Names can contain spaces, unusual characters or duplicates; the numeric user ID from status is therefore safer for an immediate kick.

Rank #2
Sale
Smart Watch for Men Women Compatible with iPhone Samsung Android Phone 1.69 inch Full Touch Screen IP68 Waterproof Bluetooh Fitness Tracker Heart Rate/Sleep Monitor (Black)
  • 【IP68 Waterproof Multifunctinal Smart Watch】Torjalph fitness activity tracker smart watch is IP68 waterproof technology ,you can wear it when swimming,handwashing,it's rain-proof which means that you perform multiple exercise modes outside without worrying about sweat or rain corroding your fitness smart watch,and this watch equipped with a 230 mAh large capacity battery magnetic charging ,and this sports activity tracker watch can be used 5-7 days If fully charged.
  • 【Larger 1.83'' Full Screen Watch & Multi-dial Selection】1.83 inch full HD color touch screen smart watch for men / women provides excellent 240*284 resolution image quality ,This Bluetooth smart watch offers a better touch experience and remarkable immersion and ,more than 200 watch faces for you to choose from App"Da Fit ", you can change the dial style according to your mood to wear keeping the world on your wrist
  • 【Accurate Activity Tracker Smart Watch 】sports watch activity tracker uses sweat and dust resistant breathable silicone strap, our Fitness Tracker Smart Watch for Android iOS Phones supports 12 sports modes,walking,running,bicycle,swimming,badminton,basketball,football,rope skipping. This bluetooth calls smart watch for men women is lightweight and stylish, bringing more convenient and relaxing sports experience while also providing more protection.
  • 【Your 24 Hour Personal Daily Health Monitor】Fitness watch for women men full touch screen IP67 waterproof bluetooth smartwatch for Android iOS Phones with heart rate blood pressure monitor multifunction Andriod smart watch with steps counter sleep monitor sports fitness watch, monitoring blood oxygen saturation allows you to understand your physical condition in real time to track fitness progress ,to know your health status in time.
  • 【More Functions Bluetooth Call Smart Watch】This fitness activity smart watch full screen for iPhone and Android phones includes a bunch of new features including:The bluetooth smart watch can hang up the phone, receive and display WhatsAPP /Text /Facebook /Twitter /Messenger reminder.Support sedentary reminder, alarm clock, stopwatch, timer,weather information,music control, remote camera control compatible with Android 5.0 and above or iOS 9.0 and above smartphones.
status
kickid <userid> "Reason for removal"

kick "name" is available when you have no user ID, but name matching is more ambiguous. Quote names and reasons when they contain spaces.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Ban a SteamID or IP, then commit it

Vanilla TF2 provides both SteamID and IP-based bans:

banid <minutes> <steamid>
banip <minutes> <ip>
removeid <steamid>
removeip <ip>
listid
writeid
writeip

Use 0 for a permanent duration. A non-zero number is measured in minutes. banid and banip are initially held in memory; writeid and writeip write those lists to the server’s ban files so they survive a restart. Run the matching write command after adding bans. Use removeid or removeip to revoke a ban, then write the list again if you need the change persisted.

SteamID bans are generally the more durable identity-based choice, while IP bans can be useful for a specific network but may affect other users on shared addresses or fail when an address changes. Keep a reason in your own moderation log even though the basic vanilla ban commands do not provide a structured case-management system.

Control maps and stop or restart the server

These commands perform immediate lifecycle operations rather than setting a long-term rule:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
New Bee Guitar Cable 10ft Electric Instrument Bass AMP Cord
  • [Low Noise High Fidelity] New bee guitar cord with 22AWG oxygen-free-copper center conductors provides enhanced signal transfer, the PVC insulation material and the high-density stranded copper double shield provide noise rejection for quiet operation
  • [Ideal for Choice] New bee 1/4 straight and right angle metal connectors, ensures a secure connection in any instrument, pedal, or amp jack. L shape great fro on stage guitar stands
  • [Wide Compatible] Suitable for mixer, power amplifier, microphone, effector, decoder, equalizer, electoronic organ, electric guitar, electric bass and other electronic equipments. Widely used in the installation of smart home, karaoke speaker, professional stage audio, etc
  • [Easy Disassemble] Making incidental repairs quick and easy! Very nice, flexible cable
  • [Dont Hesite to Order] 24 hours customer services and professional technology team are standing by
Command Effect Operational note
changelevel <map> Changes to the named map immediately Players are moved as the new map loads
nextlevel <map> Sets the map for the next transition Does not change the current map immediately
mp_restartgame <seconds> Restarts the current match after the specified delay Warn players before using it on a live match
quit Stops the server process Use only when you intend to shut the instance down

For a planned map change, set nextlevel and let the current round finish. Use changelevel when an immediate move is required, such as recovering from a broken map or beginning an event.

Set match rules with mp_* and sv_* convars

mp_* convars govern match rules; sv_* convars govern server-wide behavior. The following defaults are recorded in the referenced TF2 command guide, but they are version-sensitive. Check the live value on your server with the convar name by itself before relying on a default.

Convar Purpose Recorded default
mp_timelimit <minutes> Maximum map time 30
mp_winlimit <round-wins> Ends the match after a team reaches the win limit 0
mp_maxrounds <rounds> Caps the number of rounds 0
mp_friendlyfire 0|1 Controls friendly fire 0
mp_autoteambalance 0|1 Automatically balances teams 1
mp_teams_unbalance_limit <players> Maximum permitted team-size difference 1
mp_forcecamera 0|1 Restricts spectator camera choices 0
mp_disable_respawn_times 0|1 Removes normal respawn waits 0
sv_alltalk 0|1 Allows voice communication across teams 0
sv_pure 0|1|2 Controls file-integrity enforcement 1
sv_gravity <value> Sets world gravity 800

Examples of one-shot changes are:

mp_friendlyfire 1
mp_autoteambalance 0
sv_alltalk 1
sv_gravity 400
mp_restartgame 10

Place a rule you want on every startup in server.cfg; use a console command for a temporary event setting. Keep disruptive changes such as disabling team balance or changing gravity away from a public match unless players have been told in advance.

Manage bots

TF2’s bot commands are useful for filling a test server, checking a map or practicing without human players:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
tf_bot_add <count> [team] [difficulty]
tf_bot_kick <name|all>
tf_bot_quota <number>
tf_bot_difficulty <0-3>
bot_kill <name|all>

The optional team and difficulty arguments let you control how bots are added. Set a quota when you want the server to maintain a target number rather than adding a fixed group once. Use tf_bot_kick all to clear the current bot population before changing the setup.

Rank #4
BSIMB 15.6" Digital Family Calendar & Chore Chart, No Subscription Fees
  • Digital Family Calendar: BSIMB digital calendar wall touch screen puts an end to your chaotic life. Designed for busy families, the digital calendar keeps you organised and in step with your family. Assign different colours and tasks to each family member to make family scheduling easier and more intuitive.
  • Easy Setup and Auto-Sync: Plug in, connect to WLAN and auto-syn your electric calendar in minutes. Digital wall calendar compatible with Google calendar, iCloud calendar, Outlook calendar, Cozi calendar and Yahoo calendar. Add events directly on the device or through the ecalendar app. Electronic calendar stays current whether you're at work or traveling—no manual updates needed.
  • All-In-One Home Assistant: Smart calendar builds habits and encourage independence with personalised chores. Display daily meal plan to reduce the daily ‘What's for dinner?’ stress. To-do lists keep track of everything you want. Turning chores into valuable achievements with stars and rewards, making life easier and more enjoyable.
  • Manage Anytime Anywhere: BSIMB electronic calendar for family stay connected with the powerful ecalendar app. Access and manage your digital wall calendar anytime, anywhere with free features like stars & rewards, photo screensaver, chore charts, meals plans, to-do lists etc. Electronic planner paid features like Magic Import tailor advanced tools for users with special needs.
  • Stay in Touch with Loved Ones: Share photos or videos from your phone to electronic wall calendar with app, instantly update your life moment, and keep in touch with your family, especially those who are far away; you can also surprise your smart calendar digital wall by sending him a wish card; it's also great for keeping tech-illiterate elders in touch with the youngsters.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Cheat-gated commands belong on private or test servers

sv_cheats 1 enables cheat-protected commands server-wide and makes that state visible to connected players. Reserve it for a password-protected development, training or event server; do not enable it casually on a public match.

sv_cheats 1
noclip
god
buddha
impulse 101
hurtme <amount>
kill
explode
mp_forcewin <team>

noclip allows free movement, god prevents damage, and buddha prevents death while still allowing health to be reduced. hurtme, kill and explode are useful for testing damage and respawn behavior. mp_forcewin ends the match for the selected team and is especially disruptive on a live server. Return the server to normal with sv_cheats 0 and, if necessary, restart the match.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If noclip reports “unknown command,” first check that you are typing in the correct console and that the server has sv_cheats 1. A client cannot make a cheat-gated server command available merely by entering it locally. On a server that does not permit cheats, the command will remain unavailable or ineffective by design.

Understand the SourceMod boundary

SourceMod is optional; vanilla TF2 does not provide the sm_ command family. SourceMod adds per-admin permissions and an in-game administration menu, which is useful when several moderators need controlled access without sharing the RCON password.

After SourceMod is installed and permissions are configured, common examples include:

sm_admin
sm_kick <player> [reason]
sm_ban <player> <minutes> [reason]
sm_map <map>
sm_cvar <convar> [value]
sm_gag <player>
sm_mute <player>
sm_vote <question> [options]

In chat, prefix a SourceMod command with ! to show its output publicly, or with / to run it silently. In the server console, use the full sm_ name. If the server answers “unknown command,” verify that SourceMod is loaded and that the executing account has permission; installing the game alone does not create these commands.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use aliases and binds for repeatable operator routines

Several console constructs are scripting tools rather than server-administration systems. They can automate commands, but they do not grant authority that the account does not already have:

bind "e" "voicemenu 0 0"
toggle sv_cheats 0 1
bindtoggle o "sv_cheats 0 1"
incrementvar fov_desired 75 90 1
alias mysetup "mp_friendlyfire 0; mp_autoteambalance 1"
  • bind assigns an action to a key.
  • toggle switches a convar between listed values.
  • bindtoggle creates a key-bound two-state switch.
  • incrementvar changes a numeric value within a minimum and maximum.
  • alias gives a command sequence a reusable name; semicolons separate commands.

An alias executed on a client remains a client-side convenience unless the command inside it is sent to the server through an authorized path. Keep potentially destructive aliases out of shared configs and label any key that can enable cheats or alter match rules.

Troubleshoot the failures operators see most often

“Unknown command”

  • For sm_ commands, SourceMod is missing, stopped or not granting permission.
  • For noclip, god or similar commands, confirm that sv_cheats 1 is active on the server.
  • For any command, check whether you entered it in the client console when it requires server authority.

A ban disappears after restart

Run writeid after banid, or writeip after banip. The add command alone keeps the entry in memory only.

The wrong player was kicked

Run status again and use kickid with the current numeric user ID. User IDs can change when players disconnect and reconnect, so do not reuse an old value.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A setting resets on restart

Put it in tf/cfg/server.cfg, or in another file that is loaded with exec filename. Confirm that the file is in the server’s tf/cfg/ directory and that another startup configuration is not overwriting the value later.

RCON authentication fails

Check the exact rcon_password, the address and port supplied to rcon_address, and network firewall rules. Do not expose the password while troubleshooting; rotate it if it has been shared.

A safe operating checklist

  • Use RCON for routine administration, but keep the password unique and private.
  • Run status before targeting a player, then prefer kickid over name matching.
  • Commit SteamID and IP bans with the corresponding writeid or writeip.
  • Store stable convars in server.cfg; reserve one-shot commands for temporary changes.
  • Announce map changes, restarts and disruptive rule changes to players.
  • Keep sv_cheats 0 on public servers and use a separate private instance for testing.
  • Install SourceMod only when you need delegated permissions or its moderation features; do not expect sm_ commands from vanilla TF2.
  • Check live convar values instead of assuming defaults, because values can vary by game update or existing configuration.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.