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
2
votes
1 answer

TFS Labels Command line

I am trying to do the below using TFS command line TF.exe Create and Apply label to latest version of files and subfolders under a folder Compare 2 labels to find out difference between 2 labels, file names,changeset details etc Both I'm trying to…
Vijay
  • 21
  • 2
2
votes
1 answer

TF checkin ignore "no files to check in" error

Background: I am writing a batch files to create and check in some contract files (language agnostic representations of API files) whenever we check into an API project. I am checking in the files with the following command: tf checkin /flags…
Jonny
  • 2,509
  • 23
  • 42
2
votes
1 answer

tf.exe info /version:T does not get latest

I am using tf.exe to get the latest information of a path but tf.exe info $/Path /version:T only gives me the very first info. But I need the latest ones obviously. Using VS2013 and the build-in history I can see the latest. What could be the…
sceiler
  • 1,145
  • 2
  • 20
  • 35
2
votes
0 answers

How to get changeset after checking in with "tf checkin" command in powershell

I have am running tf checkin via powershell and this is working fine. When the command runs it is bringing up a TFS checkin window where i can set the comment, choose work items to associate etc and then click a button to confirm the check…
4imble
  • 13,979
  • 15
  • 70
  • 125
2
votes
2 answers

how can we checkIn a new folder with files and subfiles into TFS using TF commands?

i want to map and checkIn a local folder which contains files into TFS using power shell scripting.
Deeps
  • 330
  • 1
  • 5
  • 16
2
votes
1 answer

Moving files from one Team Foundation Project to Another

Our project has hit a point where we need to split off some code into a separate team foundation project. We would like to move these files so they retain their version control history. Temporarily we are copying the files back to the original…
Keith Hill
  • 194,368
  • 42
  • 353
  • 369
2
votes
1 answer

Jenkins exception : Run 'tf eula' to accept the End User License Agreement

I'm trying to build a Visual Studio Solution(.sln) using Jenkins Plugin. When I trigger the build I'm getting the below exception Error: You must accept the End User License Agreement for this product Run 'tf eula' to accept the End User License…
Gowtham
  • 252
  • 1
  • 6
  • 22
2
votes
1 answer

tf diff /recursive /format:unified - how to not include folder names in output

I want to generate the diff between two versions in TFS as a unified diff file. I do tf diff $/TFSPATH/PROJECT/FOLDER /recursive /version:C12345~C12346 /format:unified The generated output contains all the differences in files as I want to, but it…
Ben Schwehn
  • 4,505
  • 1
  • 27
  • 45
2
votes
2 answers

tf dir There is no working folder mapping for

I'm writing build script and am trying to get files from TFS through command line, but couldnt get them working. Always get message "All files up to date", while no file exists. I delete existing workspace and create new workspace and map to local…
Sudhakar
  • 71
  • 2
  • 7
2
votes
1 answer

How to determine branch name from batch file

I did a get latest from TFS. My local path is: C:\tfs\Project\Branch1\Config\Deployment\CopyInstallers.bat TFS Path is: $\Project\Branch1\Config\Deployment\CopyInstallers.bat CopyInstallers.bat gets latest of installer folder from the branch at…
1
vote
1 answer

Tf command login issue

I am trying the Tf command and found that It will popup the form to input the username and password or you have to write the username and password after the command line, such as /login:username=xxx,password=xxxx for the checkout/checkin operate. Is…
ricky
  • 291
  • 2
  • 12
1
vote
2 answers

How can I capture tf.exe stderr without stopping its dialog prompts?

I'm trying to write an application that provides my own UI for tf.exe (in TFS 2010). (yes, I know VS already does this but this app is custom). For some commands, like properties, I want to capture output from stdout. Also, when a command fails, I…
Craig
  • 1,890
  • 1
  • 26
  • 44
1
vote
1 answer

TF.exe doesn't prompt for checkin confirmation when executed directly, without using the operating system shell to start the process

I'm using TF.exe command-line for some simple TFS commands such as getting the latest version of the files (tf.exe vc get), checking out some files (tf.exe vc checkout) and then checking them in at the end of use (tf.exe vc checkin). After some…
Pedro Gaspar
  • 777
  • 8
  • 35
1
vote
1 answer

TFS commandline help

I am trying to get some information out of TFS. Specifically, for a given user, I would like to get a listing of all changesets with their date and all changed items (bonus points for inline diff). This listing will be used to run a diff for all…
leppie
  • 115,091
  • 17
  • 196
  • 297
1
vote
1 answer

Given code base hosted on TFS, which command can tell me which file has changed most?

I want to find out files under a given directory which have been updated most. Is there any command which can display this info? Or is there any way to get max version count for a given file, so I can write some script to get this info from all and…
Ankush
  • 2,454
  • 2
  • 21
  • 27