Package Service

Create a package from a directory of .json and .xml definition files (described in Code Reference). This package, a .zip archive, can be deployed, run, or built by these respective services.

This functionality is supported only through the CLI, and cannot be called through a REST API command.

CLI Syntax

Copy
ctm package <zipOutputFilename> <deploymentFilesDirectory>

Parameter

Description

<zipOutputFilename>

The filename of package.

<deploymentFilesDirectory>

The directory where the source files reside.

Valid file formats are:

  • .json

  • Control-M import/export .xml.

The C:\deploy directory contains two JSON files, Folder1.json and Folder2.json. The following command zips this directory into a zip package named folderDeploy.zip.

ctm package folderDeploy.zip C:\deploy

After the zip package is created, you can deploy it using the Deploy Service.