We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

Stop Command (Team Foundation Build)

The stop command stops a currently running Team Foundation Build build type.

Required Permissions

To use the stop command, you must have the Team Foundation Server Administer a build security permission set to Allow. For more information, see Team Foundation Server Permissions.

TFSBuild stop Teamfoundationserver TeamProject BuildNumber [/noprompt]


Argument Description


The Team Foundation server URL.


The team project name for which this build exists.


The build which must be stopped. If the build number has spaces, the spaces must be within quotation marks, for example "myBuild 123."

Option Description


Do not prompt when stopping a build.

The following example stops running build number Nightly.025 which is in the AdventureWorks team project on server01.

>TFSBuild stop http://server01:8080 AdventureWorks Nightly.025