Question: how to use tf bot?
Answer: Launch Team Fortress 2.
Create a Server.
The number of bots you can spawn, depends on the maximum number of players allowed on the server. Change it via "Max. ... 
When in-game, bring up the developer console and enter "tf_bot_quota #".