Command-Line Options

Team Foundation version control includes an ample set of command line commands. These commands share many options. These options are described in the following sections. For more information, see Tf Command-Line Utility Commands.

Option Shortcuts

Option

Option Alias

/comment

-C

/computer

-M

/delete

-D

/force

-P

/format

-F

/help

-?, -H

/lock

-K

/login

-Y

/newname

-N

/noprompt

-I

/owner

-O

/recursive

-R

/server

-S

/slotmode

-X

/template

-T

/user

-U

/version

-V

/workspace

-W

You can abbreviate and use shortcuts for Team Foundation command options.

Global Options

The following options can be applied to all Team Foundation commands:

  • /noprompt

    /noprompt is used to suppress any comments or errors that would otherwise be displayed during the completion of this operation.

    Note

    If you specify a command file switch ("@"), the Team Foundation commands that follow it are non-interactive. Therefore, you do not have to include the /noprompt option for commands that appear in a command file.

  • /login

    /login is used to specify the user name and password to authenticate the user with the Team Foundation Server. The usage is /login:username[,password]. If /login:username is supplied but /noprompt is not, the user is prompted for the password. If /login:username,password is specified, Team Foundation Server uses the supplied parameters.

Specialized Options

You can use the following option to perform command line operations:

Option

Effect

@filename.tfc

Specifies that Team Foundation should use file name.tfc for additional instructions.

See Also

Concepts

Working with Version Control Changesets

Reference

Command-Line Syntax (Team System)

Other Resources

Team Foundation Version Control Command-Line Reference

Tf Command-Line Utility Commands