6.2

Table Of Contents
You cannot export objects with names that contain a tab, underscore, new line, or carriage return
character.
When you export an application, service, external service, script task, or policy version, all of the secure
properties are removed by default to avoid exporting sensitive information such as passwords to another
Application Services instance.
When you run the import command, the entire package is imported to the designated server. You cannot
selectively import elements from the export package.
The export-package command
The CLI export-package command has the following format.
export-package --exportFilePath pathname --fromGroup obgname --CommandOption [[--CommandOption] ...]
[--uncompressed]
The following table describes the required components of the export-package command.
CLI Command Component Description
export-package
The export-package command name.
--exportFilePath pathname
Specifies the path name of the export package to be created. For example, --
exportFilePath /home/dev/joomla.zip specifies the location and name of the
joomla.zip export package. You must use the --uncompressed option when the
export package has a .xml file extension.
--fromGroup busgroupname
Specifies the owning business group of the object to export. Policies are excluded.
Anyone in the tenant can access a policy, so the owning business group is ignored.
--CommandOption
Specifies the type, name, and version of the object to export. For example, the
command option --applicationVersion distmaps:1.0.0 specifies an
application with the name distmaps and the version 1.0.0. An export-package
command can have multiple command options, but must have at least one
command option.
The following table describes the command options you can use when exporting one or more objects.
CLI Command Option Description
--applicationVersion Name:VersionID
Specifies the object and version to export.
n
Name is the name of the application, service, script task, external service,
policy, or artifact repository to export. A name is case-insensitive. If a name
contains a space, enclose it in double quotes.
n
VersionID is the version identifier for the object in the form major . minor . micro
{-qualifier}, for example 1.0.0-beta.
You can export multiple objects of the same type with a single export command by
separating the version names with commas. If a version name in a list of version
names contains a space, enclose the entire list in double quotes.
export-package --exportFilePath pkgname.zip --fromGroup Dev
--applicationVersion "aname1:1.0.0,aname two:1.0.0,aname3:1.0.0"
--serviceVersion Name:VersionID
--scriptTaskVersion Name:VersionID
--externalServiceVersion
Name:VersionID
--policyVersion Name:VersionID
Using Application Services
VMware, Inc. 254