Geeks With Blogs
Gaurav Bodar - ALM Consultant, TFS specialist ALM, TFS, Agile, Scrum, Sharepoint, IT Service

TFPT Command Line
---------------------------------

CreateTeamProject Command

Use the createteamproject command to create a team project on a TFS server. **Note: this command requires Team Foundation Server 2008 Team Explorer SP1 to be installed.

Example : tfpt /server:ServerName /teamproject:ProjectName /sitetitle:ProjectSiteTitle /sourcecontrol:New|None|BranchPath /processtemplate:templatesname

Scorch Command

Use the scorch command to ensure that source control and local disk are identical. Your local disk will be scanned for items which are not in source control. These items will be deleted from disk, just as in tfpt treeclean. Additionally, items determined to be different on disk from those in source control will be redownloaded from the server. Items with pending changes are exempted.

Workspace Command

Use the workspace command to update the computer name for a specific workspace.

Example: tfpt workspace /updatecomputername workspace

Unshelve Command

Use the unshelve command to unshelve and merge the changes in the workspace.

Example: tfpt unshelve [shelvesetname[;username]] [/nobackup] [/noprompt [/prefer:(local|shelved)] [/automerge:(all|none)] [/move] [/recursive] [itemspec...]]

Rollback Command

Use the rollback command to roll back changes that have already been committed to Team Foundation Server.

Example: tfpt rollback [/changeset:changesetnum] [/recursive]  [/noprompt [/automerge:(all|none)]] [filespec...]

Online Command

Use the online command to create pending edits on writable files that do not have pending edits.

Example: tfpt [/deletes] [/adds] [/diff] [/noprompt [/preview] [/purge]] [/exclude:filespec1,filespec2,...] [filespec...] [/recursive]

GetCS Command

Use the GetCS (Get Changeset) command to get the changes in a particular changeset.

Example: tfpt getcs /changeset:changesetnum

UU Command

Use the UU (Undo Unchanged) command to undo unchanged files, including adds, edits, and deletes.

Example: tfpt uu [/changeset:changesetnum] [/recursive] [/noget] [filespec...]

Annotate Command

Use the annotate command to download all versions of the specified files and show information about when and who changed each line in the file.

Example: tfpt annotate [/noprompt] filespec[;versionspec]

Review Command

Use the review command to optimize the code review process to avoid checking in or shelving.

Example: tfpt review [[filespec...] [/recursive] | /shelveset:shelvesetname[;username]]

History Command

Use the history command to display the revision history for one or more files and folders. The/followbranches option returns the history of the file branch’s ancestors.

Example: tfpt history [/version:versionspec] [/stopafter:number] [/recursive] [/user:username] [/followbranches] [/format:(brief|detailed)] [/slotmode] filespec

Workitem Command

Use the workitem command to create, update, or view work items.

Examples:

Creating a new Bug work item with a title of 'New' and assigned to Jason

tfpt workitem /new project1\Bug /fields:"Title=New;Assigned To=Jason"

Updating work item 123 with field values from a file

tfpt workitem /update 123 /fields:@myFieldValues.txt

Updating all work items assigned to me to be assigned to Jason (uses Query)

tfpt query /format:id "project1\public\My Work Items" | tfpt workitem

     /update @ /fields:"Assigned To=Jason"

fields:

   fieldN           The name of a field to update.

   valueN           The value to set on the fieldN.

   filename         The file that has the field/value pairs to use.

Query Command

Use the query command to run a work item query and display the results. If you do not provide a specific query, all the active work items assigned to you are displayed.

Example: tfpt query [/format:[tsv|xml|id]] [/include:header,data,count] [storedquery | /wiqfile:filename | /wiql:wiql]

Treeclean Command

Use the treeclean command to view and optionally delete files that are not under source control in the current directory and all subdirectories. This command is useful when you want to remove temporary files from your local workspace, such as files created by the compiler.

Example: tfpt treeclean -delete

DestroyWI Command

Use the destroywi command to destroy one or more work items. Currently, work items can only be deleted. Destroying a work item means the work item is physically deleted and cannot be restored.

Example: tfpt destroywi /server:tfsservername /workitemid:value1[,value2,...] [/noprompt]

DestroyWITD Command

Use the destroywitd command to destroy a work item type. Currently, work item types can only be deleted. Destroying a work item type means that work items of that type are physically deleted and cannot be restored.

Example: tfpt destroywitd /server:tfsservername /project:projname /workitemtype:witdname [/noprompt]

TweakUI Command

Use the tweakUI command to modify Team Explorer client connection values. This command enables you set various connection settings. In addition, this command enables you to define the client certificate needed to connect to a Team Foundation Server that has been configured to require client-side certificates. 

Posted on Wednesday, August 21, 2013 11:12 AM TFS , team foundation server , tfs power tool | Back to top


Comments on this post: Team foundation Server Power Tool Command line

# re: Team foundation Server Power Tool Command line
Requesting Gravatar...
Hi there,
This seemed right up your alley: http://bestreviews.com/best-cordless-drills

I had no idea how fast some of these drills batteries could re-charge, did you?

-Ashley
Left by Ashley Speer on Oct 17, 2016 10:45 PM

# re: Team foundation Server Power Tool Command line
Requesting Gravatar...
Hi,

Is it possible to create a new 'Test Case' workitem off an existing static Test Suite in a project using TFPT.exe??
If so could you illustrate a typical command line entry please?

Regards,
Chandra
Left by CHANDRA on Oct 18, 2016 12:25 AM

# re: Team foundation Server Power Tool Command line
Requesting Gravatar...
I just follow these steps and it did work well. - Marla Ahlgrimm
Left by Julie Vyrne on Nov 02, 2016 9:29 PM

comments powered by Disqus

Copyright © Gaurav Bodar | Powered by: GeeksWithBlogs.net