sws list Command Options

This command displays a list of locked files and items in the workspace.

Note: Most commands options can be entered in an abbreviated format. The abbreviated form is mentioned in the description. All commands and options are case-sensitive.

Option Description

type

The type indicates what attitubte is being evaluated for inclusion in the command results.
items
The items type shows locked items in the workspace.
Important: Do not specify a path with the items type. The command uses the current working directory or the workspace specified by the --dir option.
locks
The locks type shows locked files and folders in the workspace.
Important: The locks argument type must be adjacent to the PATH argument.
mappings
The mappings argument type shows mapped items in the workspace or design area.

PATH [PATH...]

Important: (Applies to locks type only)
A relative or absolute path within the workspace.

The path specified can be any level within the workspace. If there is no path specified, and the current working directory is within a workspace, the command operates on the entire workspace.

You can specify multiple paths. If you do not specify a workspace path, the command fails.
Important: The PATH argument type must be adjacent to the type locks option. If the type is items, you do not specify any path arguments.
--all, -a
Important: (Applies to locks type only)
List all locks regardless of which workspace holds the lock and which user locked the object. When using this option, the command output includes a section called Locked elsewhere that shows the username of the locker and the locked object. It does not show the name of the workspace containing the locked object. If you also specify the --verbose option, the command shows the date and time the object was locked, the machine name and path to the workspace in which the object is locked.

By default, the command does not use this optin and only shows locks in the local workspace owned by the current user. This option is not applicable to the items type.

--all can be abbreviated as -a.

--verbose, -v Display verbose output. When --verbose is not specified, the command returns a single line per object.

--verbose can be abbreviated as -v.

--csv Generates comma-separated value output to the screen.
Tip: You can redirect the results to a file, for example this command sends a list of all the locks in workspace ROMV2.5 to a file in the current directory called locklist.csv: sws show locks /usr/home/rsmith/workspaces/ROMV2.5 --all --csv > locklist.csv

--json ,-j

Formats the output in a json list.
Tip: You can redirect the output to a file to use later.
Note: This option cannot be used with the locks type.
--help, -h Displays simplified help focused on the most useful information.--help can be abbreviated as -h.