cpfile

Copy a file from a branch to add it or check it in as the current version in another branch. Only the file contents are copied to the destination branch, not the file history.

sscm cpfile [-bBranch] [-pRepository] Filename [-vVersion DestinationBranch [DestinationPath] [-o] [-ccComment|-cpCommentPath|-c-] [-h] [[-sHelixALMConfigName][-iHelixALMUsername:HelixALMPassword] -aIssueNum1[:IssueNum2...] -mRequirementNum1[:RequirementNum2...] -nTestCaseNum1[:TestCaseNum2...] -eExternalID1[:ExternalID2...]] [-jStateID] [-y[Username:Password|+|=]] [-zSCMServerAddr:PortNum|zPath] [+u]

Option Description
Filename File to copy.
DestinationBranch Branch to copy file to.
DestinationPath Path to copy file to. If path specifies existing repository, file is copied to destination repository using its current name. If path specifies a file name, file is copied to destination repository using existing file name. If not specified, default source path is used.
-a Helix ALM issue number to attach the file to.
-b Branch to copy from. If not specified, default working directory branch is used.
-c Enter a comment or the comment text file path. Enter -cc to prompt for comment, -cp to prompt for the comment file path, or -c- if a comment is not needed. CommentPath can be full path of a local text file, partial path if file is in a subdirectory of current directory, or file name if file is in current directory.
-e External issue ID to attach the file to.
-h Display online help for the command.
-i Helix ALM username and password.
-m Helix ALM requirement number to attach the file to.
-n Helix ALM test case number to attach the file to.
-o Overwrite existing file in the destination branch. File will be checked in as current version. files will not be merged.
-p Source repository path. If not specified, default repository for current directory is used.
-s Helix ALM connection name. Use lsttdb to find connection name.
-v File version to copy. If not specified, default is current file version.
-y Enter a Surround SCM username and password if you do not want to use the default value. To use single sign-on, enter -y+. If you use an identity provider to authenticate, the provider web page opens if you have not yet authenticated. Authenticate with the provider and then return to the CLI.
-z Enter the Surround SCM Server host computer address and port number if you do not want to use the default value. IPv6 addresses must be in square brackets. If you received a server settings file from your Surround SCM administrator, enter the path to the XML file instead of entering the server connection information.
+u Display output in Unicode (Windows only). Output cannot be sent to a file. If output is enabled for all commands, enter +u- to disable it for this command.