List Views: list-views

Use the list-views command to list the set of all accessible views on a given project.

Syntax

The syntax for this command is:

stcmd{Ex} list-views –p "Project specifier"

Parameters

For information about the command parameters, refer to Operation Parameters.

Example

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