Export (0) Print
Expand All

Command-line tools for TFS

You use Visual Studio Team Foundation Server (TFS) command-line tools to perform several tasks, some of which can be done through a user interface, and others which are only accessible through the tool. These tasks include managing Team Foundation version control (TFVC) objects, work item tracking objects, objects that support Microsoft Test Manager, as well as configuring and managing TFS application-tier servers.

You may need to open an elevated Command Prompt window to run a command line tool, even if you log on with administrative credentials.

Client tools: To access client command-line tools, open a Command Prompt window where either Visual Studio or Team Explorer is installed and enter:

cd %programfiles(x86)%\Microsoft Visual Studio 12.0\Common7\IDE

On a 32-bit edition of Windows, replace %programfiles(x86)% with %programfiles%.

Server tools: To access server command-line tools, open a Command Prompt window on the application-tier server where TFS is installed and enter:

cd %programfiles%\Microsoft Team Foundation Server 12.0\Tools

For the required permissions to exercise the command options, see the associated topic.


Client tool

Server tool


Version control conceptual image

check mark

Manage TFVC:

Conceptual image for working as a team

check mark

Manage work item tracking:

  • witadmin command line tool

    Use to manage and customize objects, such as work item types, categories, process configuration, and more.

  • TFSFieldMapping command line tool

    Use to upload or download the file that maps TFS fields to Microsoft Project fields.

  • TFSAdmin ProjectServer command line tool

    Use to configure the integration of TFS and Project Server.

  • TFSDeleteProject

    Use to permanently delete a team project.

Test conceptual image

check mark

Manage Microsoft Test Management objects:

  • TCM command line tools

    Use to run tests, import automated tests, and view a list of test items.

  • tcm bugfieldmapping

    Use to import and export a mapping file to change the bug type used to automatically file bugs or customize the pick list for resolution states and failure types.

Manage and maintain your deployment

check mark

Manage TFS servers:

Configure and manage Lab Management

check mark

Manage Visual Studio Lab Management:

A: Yes. Visual Studio Team Foundation Server Power Tools provides companion tools to tf.exe that offer additional version control commands, work item tracking, and team project manipulation. Some commands invoke a graphical user interface when run. In addition, the power tools provide several user interface tools. Refer to the help content that ships with the power tools for usage.

© 2014 Microsoft