共用方式為


Msdn command (Team Foundation Version Control)

TFS 2018

Visual Studio 2019 | Visual Studio 2022

The tf msdn command displays documentation from learn.microsoft.com that contains detailed information about a Team Foundation Version Control (TFVC) command.

Prerequisites

See Default TFVC permissions.

Syntax

tf msdn commandname

Parameters

Argument

Argument Description
<commandname> Specifies a tf command for which to display documentation.

Remarks

When you need a command and aren't sure which one to use, enter tf msdn to see command reference articles and links to more resources. If you use the msdn command without specifying a commandname parameter, the article Use Team Foundation version control commands opens.

When you specify the commandname parameter, the documentation for that specific command opens. If the system can't find a match for the commandname, it searches for aliases and short names. If it doesn't find a matching command, alias, or short name, you get an error message.

For more information on how to use the tf command-line utility, see Use Team Foundation version control commands.

Examples

The following example displays an article that lists all the version control commands, including a brief explanation of syntax.

c:\projects>tf msdn

The following example displays an article about the workspace command.

c:\projects>tf msdn workspace