It should be noted that enabling the developer console, by selecting it in the advanced menu of the options tab, will allow you to input these commands. The sheer list of Team Fortress 2 console commands is staggering – like the variety of server-side administrative options – and this article looks into providing a list of the most useful console commands for the game. It holds an array of console inputs that can alter things like shader detail, refresh rates, in-game player names, left/right model orientation and environment clipping.
The developer console is an invaluable tool within source engine produced games. The Best Team Fortress 2 Console Commands