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

Equivalent to `p4 -c sync`

As a part of the process of transiting from P4 to TFS, I need to translate some automated scripts calling the p4 command into their TFS equivalents. One of my scripts executes a couple of commands: p4 -c client…
ach
  • 2,314
  • 1
  • 13
  • 23
1
vote
2 answers

tf resolve conflicting merge automated

I am trying to automate creating TFS scenarios without the use of the UI dialogs that appear during merge, rollback, resolve, etc. I have a case where I neither want to AcceptYours or AcceptTheirs. I want to accept a manual merge as if the UI…
bjjer
  • 43
  • 1
  • 7
1
vote
1 answer

TFS PendEdit results in TF14098 : Access Denied

I like to checkout a file trough C# code, but I always get a TF14098 Acess Denied Exception. The TFS Administrator reassures, that I have checkout/edit permissions and in VisualStudio and with tf.exe I do not have any problems to checkout the…
Patrik
  • 13
  • 1
  • 4
1
vote
1 answer

TFS delete folder and recursive deletes

If I delete a folder in TFS (using the GUI or TF.exe) - everything under that folder is marked as deleted. Is there any point in doing a recursive delete on a folder?? I see the benefits of using the -recursive switch if there is a need to…
mithun_daa
  • 4,334
  • 5
  • 38
  • 50
1
vote
0 answers

.pkgdef-file registry entries tfs policy

I wrote an policy add-in for tfs with a vsix project, which is writing the registry-entries through a pkgdef-file. Until now I just had the registry-entry [$RootKey$\TeamFoundation\SourceControl\Checkin Policies], but when I want to use it through…
1
vote
1 answer

How to login on tfs server on Azure with tf command line

we try to connect us on TFS with tf command line. Everything working fine when we are connected, but when we try to connect to TFS server that doesn't work. We received a message prompt who ask us credentials, if we log in the prompt, everything…
Cédric Boivin
  • 10,854
  • 13
  • 57
  • 98
0
votes
2 answers

tfpt.exe online /diff sees all of my writeable files as changes. What's going on?

I made my entire local workspace read-write then edited a couple of files. When I run tfpt.exe online with the /diff option (with /preview) tfpt reports that all my local workspace files will be pended as edits. The files are all XML but witout an…
Mark Matten
  • 381
  • 3
  • 15
0
votes
2 answers

TFS - perform a check-out + check-in of a certain file if another file is being checked-in

I have some XSD's files which I generate classes for using the XSD.exe utility from MS. I use the pre-build to check-out the generated code classes file and the post to check back in. Since there are several developers working on the same project…
0
votes
2 answers

Is there a bug in "tf add /recursive"?

I'm trying to add the following folder tree to TFS: C:\TFS\folder1 C:\TFS\folder1\folder2 C:\TFS\folder1\folder2\folder3 C:\TFS\folder1\folder2\folder3\test.txt In the above example the folder "C:\TFS" is a mapped TFS working folder. I issue the…
LeonZandman
  • 3,054
  • 6
  • 29
  • 26
0
votes
1 answer

How can I create a script that move a tfs branch?

I'm trying to create a script that will move a feature branch to an archive area. The script looks like this: mkdir C:\TempWorkspace pushd C:\TempWorkspace tf workspace /new /noprompt /s:http://rdsw02fdkserv:8080/tfs MoveToArchive tf workfold…
Michael
  • 1,081
  • 1
  • 12
  • 27
0
votes
0 answers

My TF.exe is strangely gone 0KB and not operating

I have been trying to automate some deployment and regularly used tf.exe through .bat files. I recently started getting "this app can't run on your pc" on my .bat files and upon checking I saw my tf.exe is 0KB. following is the example of a…
0
votes
0 answers

Team Foundation version control commands fails when password has double quotes in it

I am using microsoft tfs command line client. Its CLC zip is obtained from here. My zip is = TEE-CLC-14.134.0. Extracted in dir = C:\mstfscmdclient Issue - Whenever TFS user password has double quotes in them, tf commands fail. Example - call…
Haripriya
  • 822
  • 1
  • 14
  • 27
0
votes
0 answers

Enforce Git-like behavior when using TFVC

I use TFVC as a source control system and frequently have to both update existing and add new items in a folder (with many sub and subsub folders). Because this is quite tedious click work I'd like to do this in bulk. But unlike Git, TFVC or more…
DanDan
  • 1,038
  • 4
  • 15
  • 28
0
votes
1 answer

How to view a diff of a file in a changeset against its previous changeset in TFS tf.exe commandline?

In git there is the ^ caret notation to indicate the notion of what is before it. In tf.exe commandline, I have to put 2 changeset numbers in order to the a diff. I am only interested in the diff against the previous changeset so I like the below…
daparic
  • 3,794
  • 2
  • 36
  • 38
0
votes
1 answer

Unsupported pending change error when moving folder

I am trying to move a folder in TFS 2010. After coming to grips with the fact that TFS can't do this without losing the folder's history (see this question and users' responses to Microsoft), I tried the following TF.EXE command: tf rename Apps…
Jonathan Wood
  • 65,341
  • 71
  • 269
  • 466