Documentation Center

Import Command Line Options

To import objects, use the wstool importObjects command. You must import the entire contents of a file to which you exported. That is, you cannot import parts of a file—for example, just its workflows. To import only the workflows, you must export only the workflows to a file, then import that file.

Command syntax:
wstool importObjects -username <username> -password <password> [-test]  -mode {primary | primary_plus | all} <input_file>
The command line utility can be invoked with the following parameters:
ParameterDescription

Import Mode (Mandatory)

 

-mode [primary|primary_plus|all]

The import mode to use:

  • primary – Imports only objects that were explicitly exported. Any other referenced objects must already exist in the system.
  • primary_plus – Imports objects that were explicitly exported, as well as any missing referenced objects. Any referenced objects that already exist will not be overwritten.
  • all – Imports all objects, both explicitly exported and referenced. Any objects that already exist will be overwritten.

Mandatory parameters

 

<input_file>

The file to get imported data from. This is the file you exported to in your exportObjects command.

-username <username>

Your user name.

-password <password>

Your password.

Optional parameters 

-test

Check that all dependencies would be satisfied, but don't actually import anything.

Getting Help

 

<no parameters>

Print a help message including a parameter overview and supported objects list. This is the equivalent of a -h or -help option.