Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

[-select]

Specify the name of the Selection file that you want to use. For information about this parameter, see XML Selection File (under the -select <xml-selection file> option) in systemimport.

You must provide <xml-selection file>, <base path>, <package name> and <package version>. Example:

packageexport -select <xml-selection file> [ -overwrite ]<base path> <package name> <package version>
packageexport -select /Users/username/Downloads/export.xml /Users/username/mz10-la3-rc6/tmp myPackage 1.0
<base path>

The path to the directory where your MZP files will be saved. This parameter is compulsory.  

<package name>The name of the Workflow Package. When using [-select], <package name> is compulsory.
<package version>The version of the Workflow Package. When using [-select], <package version> is compulsory. 

[-overwrite]

Use this option to specify that the export - file or directory - should be overwritten. Example:

packageexport -packages /Users/username/Downloads/export.xml -overwrite /Users/username/mz10-la3-rc6/tmp
[-packages]

Use -packages to specify multiple packages. Specify the name of the Workflow Package and version in the XML file, or select a specific folder. Several items can be selected. See XML Selection File (under the -select <xml-selection file> option) in systemimport for how to handle configurations or Workflow Packages.


Code Block
titleExamples - packages and XML file
mzcli packageexport -packages packages.xml /tmp/PE --password <password>

Where packages.xml looks like this:

<pipeline> 
    <packages> 
        <package name="TcpBased" version="1.1"> 
            <configurations> 
                <configuration foldername="TCP_Based"/> 
            </configurations> 
        </package> 
        <package name="HttpDemo" version="1.0"> 
            <configurations> 
                <configuration foldername="HttpDemo"/> 
            </configurations> 
        </package> 
    </packages> 
</pipeline>


Note
titleNote!
The resolveDependencies attribute is always set to true for the packageexport command.


[password]

To export encrypted configurations, provide a password.

Return Codes

Listed below are the different return codes for the packageexport command:

...