Questions tagged [tf-cli]

tf.exe is the command-line client for Team Foundation Server

The default command-line client for Team Foundation Server Source control. You can use version control commands to do nearly all tasks you can do in Visual Studio, and also several tasks that can’t be done in Visual Studio. You can use the tf.exe tool to run version control commands from a command prompt or within a script.

See:

Other useful commandline tools for TFS include (from the Team Foundation Server Power Tools), tfsbuild and and .

118 questions
104
votes
10 answers

How to get tf.exe (TFS command line client)?

What's the minimum amount of software I need to install to get the 'tf.exe' program?
213897
  • 1,561
  • 4
  • 15
  • 16
52
votes
11 answers

How to update TFS workspace after computer name changes?

I renamed my computer name, and now my TFS workspace is broken in Visual Studio 2012. When I type: tf workspaces /computer:ABOTONJIC-PC /owner:* /format:detailed Workspace : ABOTONJIC-PC Owner : wrongowner@test.com Computer :…
Jalle
  • 1,566
  • 5
  • 22
  • 42
25
votes
8 answers

TFS 2012 : The working folder is already in use after Hard Disk Format

I have referred to a lot of forums and also this so question but my problem is that I have formatted my machine. So I'm not able to overcome this issue. I have tried deleting workspaces from visual studio command prompt and also clearing cache, but…
Pavitar
  • 4,282
  • 10
  • 50
  • 82
19
votes
5 answers

Find all locked files in TFS

I would like to see all files that are locked. so far, I've only found to use tf.exe status and look for anything with '!' because they are not reported as "lock, edit" as they are in the UI. Any ideas? thanks.
TheSean
  • 4,516
  • 7
  • 40
  • 50
13
votes
4 answers

TF.exe equivalent to TFPT.exe scorch

I have been looking for the TF.exe command line equivalent to git reset. I found TFPT scorch, however this is for use on a build server (jenkins), and I cannot seem to get the power tools installed (in a standard manner) or working (non standard,…
major-mann
  • 2,602
  • 22
  • 37
9
votes
2 answers

Explaining tf diff

Using Visual Studio 2008 tools, I am trying to get an ASCII diff of change sets 14318 and 14317. I can do so using GUI: tf changeset 14318 and then select a file and right-click and select compare with previous version. However, this is a bit…
Hamish Grubijan
  • 10,562
  • 23
  • 99
  • 147
9
votes
1 answer

How to get a complete list of workspaces in the server hosting TFS 2012

I am working on a server of which TFS 2012 was installed. Other than TFS 2012, there is also Visual studio 2010 and Visual Studio 2012 in the server. I would like to know if there is any way I can get a list of the work space in the local directory…
user2786451
  • 91
  • 1
  • 1
  • 3
8
votes
3 answers

Powershell and TFS: tf.exe versus Power tools TFS cmdlets?

I'm in the middle of creating a script to do large amount of moves in my TFS instance. I have the tfs cmdlets available with the 2010 TFS Power Tools, but the get-help documentation for them is very sparse. Specifically, Add-TfsPendingChange doesn't…
bwerks
  • 8,651
  • 14
  • 68
  • 100
7
votes
3 answers

When did I last 'Get Latest' from TFS?

I have some version of code on my machine. I want to set up a second machine with the same version of code so I can pull down a shelveset based off this version. However, I didn't write down the day/time I last did get latest on my machine. To get…
TheSean
  • 4,516
  • 7
  • 40
  • 50
7
votes
6 answers

Using TFS TF History to determine the latest changeset

I'm writing a script that will run a build only if there is a change in source code. I need to know whether there is a change since the build last ran. This used to work because the folder would not be deleted, so it was easy to determine whether…
Joan Arc
  • 71
  • 1
  • 1
  • 2
6
votes
1 answer

Setting up a workspace using Team Explorer Everywhere on Linux

Im having trouble creating a workspace and downloading the files from a Team Foundation Server using the Team Explorer Everywhere command line client (TEE-CLC-10.0.0). I've gotten as far as creating workspace: $ ../tfs/TEE-CLC-10.0.0/tf…
Björn Lindqvist
  • 19,221
  • 20
  • 87
  • 122
6
votes
2 answers

TFS workfold /unmap "Multiple workspaces exist with the name XYZ"

I am trying to understand how to solve the following situation. I have a TFS 2012 server with three collections, say; - http://tfs2012:8080/tfs/DefaultCollection/ - http://tfs2012:8080/tfs/CollectionOne/ - http://tfs2012:8080/tfs/CollectionTwo/ In…
Jason
  • 840
  • 11
  • 23
5
votes
1 answer

TF command-line tool: Compare local sourcecode files with shelved TFS files

I have the full name of the folder on my harddrive where my local files of a project are located. Now I need to get the latest corresponding files of this project from the TFS server. My aim is to retrieve both versions and compare them (using…
RolandK
  • 490
  • 5
  • 15
5
votes
1 answer

What are the asterisks for in the output of tf merge

tf merge /recursive /candidate $/foo/ExUI $/bar/ExUI Changeset Author Date --------- -------------------------------- ---------- 23438 Fred_Bloggs 04/05/2010 23609 Jimmy_jones …
Stephen Connolly
  • 1,639
  • 10
  • 15
4
votes
1 answer

Getting the latest source from TFS through the command line

I'm trying to grab a project from TFS from the command line. I have its location on the server (starts with $/) and a directory I want to put it in. I navigate to that directory, type tf workspace /new /s:, and enter a workspace name.…
213897
  • 1,561
  • 4
  • 15
  • 16
1
2 3 4 5 6 7 8