Team Foundation Version Control Command-Line Reference
Visual Studio 2010
Topics in this section describe how you can use the Team Foundation command-line tool, tf to perform version control operations from a command prompt or within a script.