sws add Command Options

This command fetches a semiconductor item relationship to your design workspace. Once items have been fetched into the workspace, you can then create or remove relationships between the items using the using sws insert/sws detach commands.

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

See Also
Adding and Removing Items in your Workspace
Understanding the sws add Command
Option Description
--url <semilogicalItemURL>, -u <semilogicalItemURL> The ‘url’ is a required argument and must specify the resource url of an item you have permissions to access. The URL of the item is obtained from the item address field in the repository information. You must also have ‘read’ access to the item it is associated with.

All items within the structure are also fetched into the design workspace in item workspace root folders that are peers of each other and subfolders of the Design Workspace root folder.

--url can be abbreviated as -u.

--force , -f The --force option specifies overwriting any modified objects in the local workspace.
Notes: The --force option never overwrites unmanaged files. These files must be manually moved, renamed, or deleted. Unmanaged files that are identical in content from the managed version in the item are not considered conflicting. The unmanaged file in the workspace becomes managed.

--force can be abbreviated as -f.

Note: When the force option is specified with an item connected to an external repository, the option is passed to the commands run on the repository.

--dir <directorypath>,-d <directorypath>

The directory path for the new workspace. If the directory does not exist, the command creates the directory and places the workspace within it. If the directory path is not writeable, the command fails and the error informs you about the permissions issue. The specified directory does not need to be empty. Any files in the directory remain as unmanaged files or folders.

When the workspace is created, the files from the repository are fetched into the workspace. If any unmanaged files or folders in the directory conflict with files that are part of the workspace, the command fails and the workspace is created, but the files are not placed in the workspace. The error includes a list of the conflicting files and folders. Resolve the issues, by removing the local files or folders that caused the conflict. Then you can run the sws update command to bring the files into the workspace.

--dir can be abbreviated as -d. If --dir is not specified, the default value is the current working directory.
--verbose, -v Display verbose output. When not specified, the command returns a success message that includes the number of files placed in the workspace. When specified, the output also includes: the amount of data transferred, the commitID of the latest commit on the branch, the absolute path to the newly created workspace, and information about the semiconductor logical item version and branch.--verbose can be abbreviated as -v.
Note: When the verbose option is specified with an item connected to an external repository, the verbose option is passed to the commands run on the repository and displayed as part of the command output.
--help, -h Displays simplified help focused on the most useful information.--help can be abbreviated as -h.