CheckIn

The CheckIn command line interface enables you to perform Check in functions from command prompt or within a script. The following command line syntax is used to export the versioned elements from AB Suite Model and CheckIn versioned elements into a Source Control bank.

  1. Type Export.exe at the command prompt to export the version file elements from an AB Suite Model.

    Export.exe -m FooDev -f C:\Temp\Class2.Model -vf Class2.model

    Note: The -vf parameter indicates the version files to export when using Export.exe command.

  2. Use the Team Foundation Command line utility to check-in the file(s)

    tf checkin [/author:author name] [/comment:("comment"|@comment file)]
    [/noprompt] [/notes:("Note Name"="note text"|@notefile)]
    [/override:(reason|@reasonfile)] [/recursive] [/saved] [/validate] [itemspec] [/bypass] [/login:username,[password]]

where:

Parameter

Description

/noprompt

Suppresses any prompts for input from you.

/recursive

Checks in all elements in the specified or implied working folder and subfolders.

itemspec

Specifies a file or folder to check in.

Refer to Checkin Command in Visual Studio Online Help for more information on parameters.

For example; to CheckIn Sample model by suppressing all prompts, use the following command:

tf checkin NewSampleHB.model  /noprompt

For help on these parameters enter tf parameter /? at the command prompt.

If you want to capture and view a specific version of a file in a temporary folder for logging purposes, use the following View command as an example:

c:\temp>tf view c:\temp\input.txt > c:\temp\checkin.txt