Using the Command Line to Export Workspaces to an Archive
The following procedures show how to export whole Workspace objects or any particular object under a Workspace, which are Workspace-enabled, to an archive (SIF file) using siebdevcli from the command line. Note that siebdevcli is supported on both the server (Windows and UNIX platforms) and client.
To export whole Workspaces to an archive using the siebdevcli command
-
Open a command line and then navigate to the
SIEBEL_HOME\BINfolder. -
Use the following command to run the siebdevcli.exe file:
siebdevcli /c config_file /l language_code /u user_name /p password /d odbc_datasource /WorkspaceExport /Repository "Siebel Repository" /Workspacename Workspace_name /f object_export_file /ToVersion 1111The following example exports the modified objects that belong to MAIN and writes the file provided in the
/ExportFileparameter.siebdevcli /c tools.cfg /l ENU /u sadmin /p ******** /d oradev109 /WorkspaceExport /Repository "Siebel Repository" /Workspacename "MAIN" /f wsexport.sif /ToVersion 9The following table describes some of the parameters that you can use with the siebdevcli command line.
Parameter Optional Description /WorkspaceExportYes
Exports a whole Workspace.
This parameter is only required when running siebdevcli in Workspace Export Mode (that is, when doing a Workspace export). This option is not required if running Import Repository Mode.
/Repositoryor/yNo
The name of the repository.
/WorkspaceNameNo
The name of the Workspace.
/ExportFileor/fNo
The name of the SIF file.
/ToVersionYes
The end version. The default is 99999.
To export objects under a Workspace to an archive using the siebdevcli command
-
Open a command line and then navigate to the
SIEBEL_HOME\BINfolder. -
Use the following command to run the siebdevcli.exe file:
siebdevcli /c config_file /l language_code /u user_name /p password /d odbc_datasource /WSObjectExport /Repository "Siebel Repository" /Workspacename Workspace_name /i object_input_file /l log_file_nameThe following example exports the objects that the
infile.txtinput file specifies. It logs results to theexport.logfile:siebdevcli /c wsexport.cfg /l ENU /u SADMIN /p ******** /d oradev109 /WSObjectExport /y "Siebel Repository" /Workspacename "dev_sadmin_ws" /i infile.txt /l export.logThe following table describes some of the parameters that you can use with the siebdevcli command line.
Parameter Optional Description /WorkspaceExportNo
Exports whole objects.
This parameter is only required when running siebdevcli in Workspace Export Mode (that is, when doing a Workspace export). This option is not required if running Import Repository Mode at the same time.
/Repositoryor/yNo
The name of the repository.
/WorkspaceNameNo
The name of the Workspace.
/InputFileor/iNo
The name of the input file.
/LogFileor/lNo
The name of the log file.