Command-Line Exit Codes
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Command-Line Exit Codes

The Team Foundation source control command-line utility tf provides exit codes that indicate the level of success for a command.

Exit Codes

The following command-line exit codes are defined for tf.exe.

Exit Code Definition




Partial success; this means at least something, or possibly everything, failed to succeed.


Unrecognized command.


Nothing succeeded.


In order to check out two files, you might type the following command at the command-line:

tf checkout foo.cs bar.cs

If one of the files you are trying to check out does not exist on the server, you are returned 1 for partial success.

See Also

© 2015 Microsoft