Add Project: add-project
Use add-project to add a project to a StarTeam Server configuration from the command line. When a project is created, its root view and the root folder for the root view are also created. In this command, the -rp option specifies the working folder for that root folder.
Using -is allows you to use the working folder’s child folders as the root folder’s child folders in the StarTeam folder hierarchy.
Syntax
The syntax for this command is:
stcmd{Ex} add-project [-epwdfile "filePath"] [-cmp] [-encrypt encryptionType] [-is] [-q] -s "serverName" -name "projectName" -rp "folderPath" [-d "description"] [-kw "fileMask" |-kwfile "fileName"] [-ex "excludeType"] [-exlist "fileMask" |-exfile "fileName"]
Parameters
For information about the command parameters, refer to Operation Parameters.
In addition:
Parameter | Description |
---|---|
-kw |
Specifies the file extensions with which you want to use keywords. Use a maximum of 254 characters. Enter one or more file specifications (using the standard * and ? wild cards), separated by commas, spaces, or semicolons. To include a comma, space, or semicolon as part of the specification, enclose the specification in double quotation marks. For example:
If you are using double-quotation marks in your keyword list or have a lengthy list, we recommend that you use the -kwfile option. With -kwlist, each quotation mark in the keyword list needs to be preceded by the escape character for your system or shell. For example, the caret (^) works on NT systems. With -kwfile, you do not need to use escape characters. |
-kwfile |
Specifies the path to the file containing the file extensions with which you want to use keywords. If you use -kwfile, you cannot use -kw. |
Example
The following example uses add-project to create a project named Integrations on the computer named Orion. (Orion is running an instance of the StarTeam Server with a server configuration that uses port 1024.) This command creates the project, specifies that the data sent between workstations and the server should be compressed and encrypted, and gives the project a description.
stcmd add-project -s "JMarsh:password@Orion:1024" -cmp -encrypt "RC4" -name "Integrations" -rp "C:\integrations" -d "integrations between our products and our partner’s products"