Friday, September 5, 2014
I was surprised at the dearth of information on this. Here’s the whole enchilada. I did not have to enter user or password information for the TF commands. This could be because my Mac account and password is identical to the Windows AD account and password. Use TF help to get a full listing of commands and TF Help [command] for details on each command.
- Download TEE-CLC on your Mac and unzip/move the TEE-CLC-x.x.x folder under your Applications folder.
- Open the Terminal command line on you Mac (search for Terminal)
- To see the current execution path on your Mac:
- Enter the following to add the TEE-CLC to you path:
- export PATH=$PATH:/Applications/{TEE CLC folder name}
- example: export PATH=$PATH:/Applications/TEE-CLC-11.0.0
- Enter the echo command again to verify the TEE CLC folder has been added to the path
- Install the Java JDK (installing just the run time is not sufficient)
- You should be able to execute the TF command from the Terminal window once the Java JDK install has completed
- Create a folder to store your TFS source control files. I used \Documents\_s\MyCollection
- Accept the TCC license by executing:
- Create the workspace:
- tf workspace -new -collection:{url} -location:server {workspace name}
- Create the workspace mapping
- tf workfold -map -collection:{url} -workspace:{workspace name} '$/' '/Users/bob_hardister/Documents/_s/MyCollection'
- Navigate to your local workspace folder in the Terminal window to run TF Get and other workspace centric commands
- A Get command would then be
- tf get -r '$/…desried TFS server location to pull from'