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:- http://msdn2.microsoft.com/en-us/library/cc31bk2e.aspx
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
4. Check-out the files you wish to edit
tf checkout MyFile.java
5. Make changes locally and test
6. Check-in the pending changes in your workspace
tf checkin MyFile.java
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.