Working with Packs (CLI)

As a system administrator, you install Packs to enhance the AWA functionality. Use the Package Manager to manage packs integrated into AWI with CLI. For more information, see About Package Manager .

The predefined Action Packs that let you incorporate different actions into release workflows are available at https://marketplace.automic.com/.

Note: You must install the Package Manager to work with packs via CLI. For more information, see Installing the Package Manager.

Graphic depicting dependencies of Action Builder, Package Manager, Plugin Manager, content artifacts and Marketplace

This page includes the following:

Viewing Packs

  1. Update the Package Manager index to fetch new and changed packages from the local repository:

    apm update

  2. Search for a Pack in the local repository:

    apm search [<any part of package name>]

    Example

    apm search Siebel

    Notes:

    • If [<any part of package name>] is not specified, all available packages are displayed.
    • To get a full list of installed Packs, enter the following command: apm list.

Installing Packs

Use the following command to install a Pack:

apm install <pack name> -pw <password>

Alternatively, you can install a Pack from a file:

apm install --from-file <path to the pack archive or directory> -pw <password> -u user/department

Notes:

Examples

Single Pack installation:

apm install --from-file C:\Pack.Bond_PCK.AUTOMIC_BOND_1_0_0+build.164.zip -pw aepwd -u ADM/ADMINISTRATORS

Multiple Pack installation:

apm install PCK.AUTOMIC_HTTP PCK.AUTOMIC_FTP -H automicdev -S AUTOMIC -p 1234 -c 123 -u AUTOMIC/AUTOMIC -pw aepwd

Important! The installation of a Pack may be restricted to a limited number of clients. You can use the option -c <number> to change the target client of the installation or enter the following command to bypass the client check: --ignore-client-restriction.

Upgrading Packs

Use the following commands to upgrade Packs:

Command for updating the Pack index (to be run only once):

Important! Upgrading a Pack may be restricted to a reduced number of clients. You can use the option -c <number> to change the target client of the upgrade or enter the following command to bypass the client check: --ignore-client-restriction.

When updating a Pack , be aware of the following:

Deleting Packs

Use the following commands to remove Packs:

Getting Help and Further Commands

For more details on sub-commands, options and syntax, refer to the built-in help.

Command Structure

The APM CLI uses a multipart structure. Each command consists of:

All APM commands have the following syntax:

apm <command> [option] [<arguments>]

Passwords

Passwords can be specified with the following commands: -pw or --password.

Important! The values will not be displayed in the command line while typing.

Common Options

The following options are available for all APM commands:

Common Options for Automation Engine Connection Commands

Get Help for a Command

For details on commands, call apm <command> -h or apm <command> --help.

Find more Commands

For a list of available commands, call apm -h or apm --help.

Analyze and Display Current Environment Issues

apm doctor check

Fix Current Environment Issues Detected by the Doctor Check Command

apm doctor fix

Note: Extended Packs: run this command if you want to scan for and update missing hooks and VARA objects of base Packs.

Display Pack Content

apm show [option] <pack_name>

Where [option] can be one of the following:

Download Packs

Download Packs from the Automation Engine client to the working directory.

Important! A package.yml file must exist in the current working directory. If the file does not exist, call the following command to create it: apm init <pack_name>

apm download [option]

Where [option] can be one of the following:

Upload Packs

Upload Packs from the working directory to the Automation Engine client.

Important! A package.yml file must exist in the current working directory. If the file does not exist, call the following command to create it: apm init <pack_name>

apm upload [option]

Where [option] can be one of the following:

See also:

Working with Packs (GUI)