
Team Fortress 2 offers a variety of console commands that allow players to customize their gameplay experience, optimize performance, and experiment with different settings.
The in-game developer console provides access to these commands, enabling advanced users to tweak various aspects of the game.
Enabling the Console

Before using console commands in Team Fortress 2, you need to enable the developer console:
- Open TF2 and go to Options.
- Navigate to the Keyboard tab and click on Advanced.
- Check Enable developer console (~) and click OK.
- Press the ~ (tilde) key to open the console.
Essential Console Commands

These are the most important TF2 commands to know:
Performance and FPS Optimization
- cl_showfps 1 – Displays FPS (Frames Per Second) in the top-right corner.
- net_graph 1 – Shows a detailed performance graph, including FPS, ping, and server tick rate.
- mat_queue_mode 2 – Enables multi-threaded rendering for better performance.
- r_lod 0 – Forces highest model detail level.
- fps_max 0 – Removes FPS cap for maximum performance.
Network and Ping Optimization
- rate 786432 – Adjusts the maximum data rate for optimal performance.
- cl_interp 0.0152 – Adjusts interpolation delay to reduce lag.
- cl_updaterate 66 – Sets the update rate to 66 packets per second (matches server tick rate).
- cl_cmdrate 66 – Synchronizes command rate with the server for smooth gameplay.
Viewmodel and Crosshair Tweaks
- viewmodel_fov 90 – Adjusts weapon field of view (FOV) to maximize screen space.
- cl_crosshairscale 500 – Changes crosshair size (lower values make it larger).
- cl_crosshaircolor 5 – Customizes crosshair color.
Customizing HUD
- hud_fastswitch 1 – Enables quick weapon switching without menu delays.
- cl_hud_minmode 1 – Simplifies HUD elements for a cleaner interface.
- cl_autoreload 1 – Enables automatic reloading after firing.
Bots and AI Control
- bot_add – Adds a bot to the game.
- bot_kick all – Removes all bots from the match.
- bot_zombie 1 – Makes bots passive and non-aggressive.
Gravity and Physics
- sv_gravity 200 – Lowers gravity for moon-like jumps.
- sv_gravity 800 – Restores default gravity.
Advanced Server and Debugging Commands
- sv_cheats 1 – Enables cheat commands (only works in private servers).
- noclip – Allows free movement through walls (requires sv_cheats 1).
- god – Activates invincibility mode (requires sv_cheats 1).
- status – Displays player information and server details.
- record [filename] – Starts recording a demo for later playback.
- stop – Stops recording the demo.
Summary
TF2 console commands provide a powerful way to enhance gameplay, improve performance, and customize the game to fit your playstyle. Whether you’re optimizing FPS, tweaking your HUD, or experimenting with cheats in a private match, mastering these commands can elevate your TF2 experience.
Frequently Asked Questions
Just enable the Developer Console from the Options menu. You will find it in the Keyboard tab, in Advanced.
The commands are say (for public chat), say_team (for team chat), and say_party (for party chat).