share

Shares one or more files or directories in the local file system, adding them to a component in a repository workspace.

Usage: scm share [-r/--repository-uri <arg>] [-u/--username <arg> -P/--password <arg> | -u/--username <arg> --password-file <arg> | --certificate <arg> -P/--password <arg> | --smartCard -u/--username <arg> | --kerberos | --integratedWindows] [-j/--json] [-d/--directory <arg>] [--reshare] [-R/--remotePath <arg>] <workspace> <component> <path...> [-t/--terminate] [-x/--xchangeset]

workspace The workspace to share into. To specify the workspace, use its name[@repo], alias, or UUID[@repo].
component The component to share into. To specify the component, use its name, alias, or UUID. The component must be part of the workspace.
path The path of the files or directories to share. The directories must all have the same parent. Wildcards are allowed in file names.

Options:

-r, --repository-uri <arg> The URI that specifies the location of the repository.
-u, --username <arg> The user name for the repository.
-P, --password <arg> The password for the repository.
    --password-file <arg> File that contains the user's password.
    --certificate <arg> The file that contains the user's login certificate.
    --smartCard Use the connected smart card for authentication.
    --kerberos Authenticate with Windows user credentials using Kerberos/SPNeGO.
    --integratedWindows Authenticate with Windows user credentials using Integrated Windows Authentication.
-j, --json Enable JSON output.
-d, --directory <arg> Runs the command in the named directory.
    --reshare If a directory is already shared, specifying this option disconnects and reshares the directory.
-R, --remotePath <arg> An optional value for a folder's remote path or its UUID to share into. It must be part of the component and workspace.
-t, --terminate An option to terminate share and error out if at least one of the share was unsuccessful.
-x, --xchangeset Expands change sets to display changes. Should not be used without --verbose.


Example