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
1
vote
1 answer

using the command line TFS client

I'm trying to use the TFS command line client (tf.exe). When I run 'tf get someProject' it hangs, and then says 'All files are up to date'. Nothing is downloaded. How can I get files from TFS using the command line client? Thanks, 213897
213897
  • 1,561
  • 4
  • 15
  • 16
1
vote
1 answer

How to handle tf.exe errors in PowerShell script

I have a PowerShell script that run tf.exe commands. $tfExe = {C:\path\to\tf.exe} & $tfExe checkout / checkin etc. If I try to run checkin command to file that not changed I got an error: The following changes were not checked in because the item…
Shayki Abramczyk
  • 36,824
  • 16
  • 89
  • 114
1
vote
2 answers

RegEx to match field values in a block (tf.exe perm) TFS 2008

I am trying to write a regex to extract the blocks of information below, as well as the fields within each block. I am using Powershell. I want to capture all "Server Item" blocks, and the following information for each one: Server Item (1 **or…
Banoona
  • 1,470
  • 3
  • 18
  • 32
1
vote
0 answers

Checkin to VSTS using TF.EXE without interactive login service account

I am using TF.exe command line utility to check-in to TFS once my build finishes on TeamCity. Build step is using command line. TeamCity build is running under service account from domain. service account's interactive login is disabled. When I…
1
vote
2 answers

What does /nodetect flag do, when using the tf status?

When interacting with TFS from the command line, the tf status command has an undocumented flag named /nodetect. What is it for? What does it do? My best guess is that it prevents it from trying to be smart about detecting changed files, but I can't…
cskwrd
  • 2,803
  • 8
  • 38
  • 51
1
vote
1 answer

Update all local workspaces with changes to a folder in my project collection

I have a folder with name "OutputBinaries" inside my project collection. I have local workspaces mapped to this folder on multiple machines. I want to automatically update all these local workspaces whenever there are any modification to…
Naresh
  • 35
  • 4
1
vote
2 answers

Get single workspace without prompt TFS command line

What I'm trying to do should be simple - I want to get information for a single TFS workspace (in this case named the same as the computer name), and have that information returned via text - not via prompt window (it's my understanding this is what…
ryanwebjackson
  • 1,017
  • 6
  • 22
  • 36
1
vote
1 answer

What does the command tf vc scorch do?

In the build logs of TFS builds I have seen the use of the command tf vc scorch. This looks rather interesting and seems to be something like git clean and could be quite helpful but for some strange reason scorch is not documented. Is this some…
bitbonk
  • 48,890
  • 37
  • 186
  • 278
1
vote
1 answer

Tf Command Line utility - Determine previous file path after a rename

Is there any way to do this? I know that I can do tf changeset xxx and it will tell me which files were "delete, source rename" for the old file paths but if there are multiple renames, there is no way to be sure which file goes with which. Also if…
Jacob Alley
  • 767
  • 8
  • 34
1
vote
2 answers

TFS: How do I get a list of managed files in my enlistment?

In tfs, how do I get a list of files in my working directory that are being managed by tfs? I don't care if I've checked them out or not (if I did, tf status would be the obvious choice). I just care whether or not tfs is tracking changes for them…
Omnifarious
  • 54,333
  • 19
  • 131
  • 194
1
vote
2 answers

TFS checkin without workspace

I've done some research, but I can't seem to find the answer in the Microsoft docs. I was wondering if someone with TFS experience could let me know if it's possible to checkin a file without creating a workspace through the TF command line.
Juliuszc
  • 377
  • 2
  • 4
  • 16
1
vote
1 answer

How do I delete a workspace using tf.exe that starts with a dash/hyphen?

I have a specific command that I use to delete a Team Foundation Server workspace: tf workspace /delete "packages sacred";domain\user /server:http://domain:8080/tfs We've recently had someone leave who prefixed about half of his workspaces with a…
James Skemp
  • 8,018
  • 9
  • 64
  • 107
1
vote
1 answer

TFS 2013 command line: Get labels for files/folders

I have a question regarding Team Foundation Server 2013. We would like to find out programmatically which label is assigned to the local version of a specific file or folder. I have read through tf.exe documentation but I could not find out how to…
Rickson
  • 1,040
  • 2
  • 16
  • 40
1
vote
2 answers

How do I view all work that a specific user has checked in?

Another user has made several changes in different places throughout a specific project. How do I see which files have been checked-in by a specific user?
GIVE-ME-CHICKEN
  • 1,239
  • 3
  • 15
  • 29
1
vote
0 answers

Why can my build not checkout files but I as a developer can?

Our build account does not seem to be able to checkout files if they are already checked out. tf.exe checkout. Heres the error: TF10151: Cannot lock item $/Scrum2012/Button.htm for check-out. This item is checked out by * in workspace…
learnerplates
  • 4,257
  • 5
  • 33
  • 42