Search code examples
starteam

How to get the labeled code from StarTeam(stcmd.exe)?


I want to get the code under particular label from StarTeam strictly using command line. I have come to know that I can use "stcmd.exe" for the same. But I am unable to find the particular command to get the labeled code.

Can any one please help?

Thanks.


Solution

  • Documentation for the command line tools are here (page 51 has the checkout options):

    http://techpubs.borland.com/starteam/2009/en/ST_CmdTools_Help_en.pdf

    The -cfgl switch allows you to specify the configuration label.

    Edit with updated syntax

    The full syntax to do a checkout to a specified directory based on a configuration label is:

    stcmd.exe co -p "<username>:<password>@<starteamServerAndPort>/<project>/<view>/" -rp "<workingDir>" -o -cfgl "<labelName>"
    

    So with the following parameters:

    username=test
    password=pw
    starteamServerAndPort=10.209.30.22:49201
    project=MyProject
    view=MyView
    workingDir=d:\latest
    lableName=MyLabel
    

    Our command line call would be:

    stcmd.exe co -p "test:[email protected]:49201/MyProject/MyView/" -rp "d:\latest" -o -cfgl "MyLabel"