Support Forum

It is currently Thu Aug 21, 2014 8:02 am

Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
 Command Line Examples 
Author Message

Joined: Fri Jan 27, 2006 9:26 pm
Posts: 252
Location: Microsoft
Post Command Line Examples
When using the command line, you can find out what options are available by typing "tf help", and then "tf help command"

When creating the command line, we used Microsoft's tf.exe command syntax as a basis. The documentation for that can be found here:-

However, a few examples are useful - so here is a quick one to get people started. The following is a standard interaction with TFS Version Control through the command line.

1. Create a workspace on your local computer.

tf workspace -new -server:http://servername:8080 -login:user@DOMAIN,PASSWD MyWorkspace

2. Create a working folder mapping.

tf workfold -map -workspace:MyWorkspace $/TeamProject/trunk/path/ .
(if you want the server folder mapped to the current directory)

3. Get the latest version of code

tf get

4. Check-out the files you wish to edit

tf checkout

5. Make changes locally and test


6. Check-in the pending changes in your workspace

tf checkin

7. Repeat from step 3.

I Hope that helps. If there are any other examples folks have or want then feel free to post them here.


Tue Oct 17, 2006 2:04 am
Profile WWW

Joined: Fri Aug 17, 2007 6:49 pm
Posts: 1
Post Terrible Sticky post about Commandline examples
These examples dont work, the exception messages raised by the application are cryptic, and the Teamprise documenation for using the commandline tools is simply none existant.

Fri Aug 17, 2007 7:00 pm

Joined: Wed Sep 24, 2008 12:47 pm
Posts: 1
Post Re: Command Line Examples
They work for me. Actually, I went through painful hours and successfully installed and setup java and tf, finding the proper syntax on my own before checking this forum.
The only thing is that every command I type prompts me for my username, domainname and password.
Also, as mentionned in another post, the lack of diff capabilities is painful. Hopefully the 4.0 version is on its way.

Wed Sep 24, 2008 12:53 pm
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © phpBB Group.
Based on style by Vjacheslav Trushkin for Free Forums/DivisionCore.