The syntax for this command is:
stcmd{Ex} list-views –p "Project specifier"
The -epwdfile keyword specifies the path to the file that contains the encrypted password. Like -pwdfile , -epwdfile replaces the password being used as part of the -p or -s option, preventing others from seeing the user's password on the command line. The full syntax is: -epwdfile "filePath" .
The -pwdfile is supported for backward compatibility. Un-encrypted passwords stored using older versions of stcmd are read. However, passwords cannot be stored to files using -pwdfile anymore.
In this case, the syntax of -p or -s reduces to -p "username@hostname:port/... -epwdfile "fullyQualifiedPathToPasswordFile"".
The following is the syntax of the commands that can be used to store an encrypted password.
Use the following syntax to be prompted for the password that will be encrypted and stored in a file.
stcmd store-password -epwdfile "filePath"
stcmd store-password -epwdfile "filePath" -password "password"
After an encrypted password is stored, other stcmd commands can specify -epwdfile "filePath"' as parameters. For example:
stcmd delete-local -p "JMarsh@Orion:1024/StarDraw/StarDraw/SourceCode" -epwdfile "C:\estuff\myfile.txt" -filter "N" "*"
Compresses all the data sent between the workstation and the server and decompresses it when it arrives. Without this option, no compression takes place.
Compression speeds transmission across the network, but it takes time on the front end to compress the data and at the back end to decompress the data.
This is an optional parameter. If not specified, then the platform default is not to compress.
Encrypts all data sent between the workstation and the server and decrypts it when it arrives. Without this option, no encryption takes place. Encryption protects files, data and other project information from being read by unauthorized parties over unsecured networks.
This is an optional parameter. If not specified, then the server and the command line negotiate the encryption required by the server.
The full syntax is: -encrypt encryptionType.
The types of encryption are:
These encryption types are ordered from fastest to slowest. Each of the slower encryption types is safer than the one preceding it.
stcmd list-views -p "user:password@host:port/projectName"This would return:
View,CreatedUserID,CreatedTime,StartDate,EndDate,Type,Folder Path,Description,View Path Main,James Wogulis,1999-02-12T00:24:04.000Z,1899-12-30T00:00:00.000Z,1899-12-30T00:00:00.000Z,Unknown,c:\projects\Main,JavaWorld Main View,Main StarTeam 4.2,Ron Sauers,2000-01-21T16:17:26.000Z,1899-12-30T00:00:00.000Z,1899-12-30T00:00:00.000Z,Unknown,c:\whitestar\,,Main/StarTeam 4.2 StarGate 5.0,Ron Sauers,2000-05-19T00:36:36.000Z,1899-12-30T00:00:00.000Z,1899-12-30T00:00:00.000Z,Unknown,c:\whitestar\,,Main/StarGate 5.0 StarGate 5.1,Ron Sauers,2001-03-19T17:56:56.000Z,1899-12-30T00:00:00.000Z,1899-12-30T00:00:00.000Z,Unknown,l:\whitestar\,,Main/StarGate 5.1
The stateful equivalent would be:
stcmd connect Administrator:Administrator@localhost:49201 stcmd set project = StarDraw stcmd list-views … stcmd disconnect