TF.exe command line utility in TFS 2010

Many things you cannot do it using team explorer, using client command tool TF.EXE that come with visual studio team explorer. below is the steps to getting started with this tool

  • Open the Visual Studio command prompt.
  • Refer to the folder where you have TFS workspace mapped to let tf.exe knows which workspace you are working on.
  • To get start using the basic operation print TF.exe /?
  • tf workspaces , Displays information about workspaces in the system and updates cached information about a user name or computer name change on the TFS
  • tf workspace , Creates, deletes, displays, or modifies properties and mappings associated with a workspace.
  • tf status , Displays information about pending changes to items in one or more workspaces.
  • tf view , Retrieves a specific version of a file to a temporary folder on your computer.
  • tf rollback , Rolls back the changes in a single or a range of changesets. (this option is not exist in team explorer)
  • tf resolve , Resolves conflicts between changed items in your workspace and the latest or destination versions of items on the server.
  • tf merge  Applies changes from one branch into another. you have baseless merge (this option is not exist in team explorer)
  • Ect…..
In most cases i use this tool to complete my basic task’s in client machine
Enjoy 🙂

2 thoughts on “TF.exe command line utility in TFS 2010

  1. Hi,
    Can we change the build quality of a build through command line.If it is possible can u give me brief idea for changing it.
    thanks

    • Hi,
      using command line you do the following
      -start
      -delete
      -destroy
      -stop
      you cannot change the quality of the build, you can use Build API to do this.

Leave a Reply

Your email address will not be published. Required fields are marked *