You are here:
Command Line API (Managed Package)
For the managed package runtime, the command line API can also return JSON formatted output and accept some inputs as JSON.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
The primary input JSON is the manifest which can be passed in as:
vlocity packExport -manifest '["OmniScript/MACD_Move_English"]'
The tool returns JSON is sent the argument --json or --json-pretty and returns a JSON in the format of
{
"action": "Export",
"message": "VlocityUITemplate --- SelectAssetToMove.html --- Not Found",
"records": [
{
"VlocityDataPackDisplayLabel": "MACD Move English",
"VlocityDataPackKey": "OmniScript/MACD_Move_English",
"VlocityDataPackStatus": "Success",
"VlocityDataPackType": "OmniScript"
}
],
"status": "error"
}
Where each record contains the Vlocity data pack key that was exported or deployed, and the export or deploy process is limited to only Vlocity data pack keys passed in as part of the manifest if it is supplied.
A deployment always includes only the -manifest keys, however for an export it includes dependencies unless -maxDepth 0 is used as an argument.

