Develop > HPE Codar command line interface commands > Package commands > Get application package properties

Get application package properties

Lists the properties of the application package with the specified ID.

Command Alias Syntax
package get pkg get package –pid <packageID> [-out <output-file>]

Options

Option Description
-pid, --<packageID>

Application package ID. Use the List application packages command to obtain the package ID.

-out, --<output-file> Output file into which the JSON of the application package is exported.
-s, --server The URL of the HCM ARA instance. For example, https://localhost:8444/csa.
-u, --user The HCM ARA username.
-p, --password The password for the HCM ARA user.
-c, --config A file that contains default general option values in the format “<name>=<value>“, where <name> is “server”, “user”, or “password”. If not specified, the cliforcodar.properties file in the home directory of the current user is used if it exists.

Usage guidelines

This command must be pre-defined in a configuration file or defined in the command line. The --server(-s) option defaults to localhost value(s) if it is not pre-defined in a configuration file.

Example

C:\CODAR\clis>codarexec.bat  pkg get -pid  3c83e586-06de-4ccd-b9a8-c0ffe192d52b –out getdetail.json
name                 value                 displayName           type

vCenter Server
customizationSpec    useVmName_Linux       customizationSpec     String
vmNamePrefix         Demo                  vmNamePrefix          String
vmTemplateReference  ubuntu1204-hemant     vmTemplateReference   String