TFS command line - which server?

I am currently working with two different TFS servers. When running tfs commands at the Visual Studio command prompt, how to determine which TFS server to work with. For example, tf status requires a TFS server parameter indicating which server should run the command. But, for example, for other commands, for example delete, how does he know which server performs the operation against?

Thanks in advance.

+5
source share
3 answers

In general, the command line tools ( tf.exe, tfpt.exe) automatically determine the server based on the workspace to which the current directory is mapped.

, - , . (, tf edit), .

:

  • Visual Studio 2008 /server:http://tfsserver:8080/
  • Visual Studio 2010 /collection:http://tfsserver:8080/tfs/Collection/

/collection witadmin.exe

+7

, TFS , . , tf delete, TFS . , , , TFS , .

+4

It works by looking at the current location and then determining if there is a workspace in this place, if used. Otherwise, you must specify this by specifying the location of the server or local source.

+1
source

All Articles