Skip to end of metadata
Go to start of metadata

Quick start

This document will cover some basic concepts for using AMPLIFY CLI (ACLI).

Installation

To install AMPLIFY CLI (ACLI), execute this command: [sudo] npm i -g @axway/amplify-cli

If you get error message, see AMPLIFY CLI Error Messages During Installation for details and troubleshooting

Finding ACLI's commands

To see a list of ACLI's commands, execute this command: amplify

From there, you can drill down to ACLI's commands and their usage.

Authentication

Logging in

amplify auth login

Managing packages

Searching for packages

To search for an AMPLIFY package, use this command: amplify pm search

You should see something like this in your terminal:

Installing a package

Now that you have some ideas on which packages that can be installed via the ACLI, let's install the Appc Daemon. Execute this command: amplify pm install appcd

Using select versions

Now let's suppose that you want to use a select version of the Appc Daemon.

  1. Execute this command to get a list of the different versions available for a package: amplify pm view <package> versions. For the Appc Daemon, let's execute this command: amplify pm view appcd versions
  2. Before using a select version of a package, we need to install it using a command like this: amplify pm install <package>@#.#.#. In this case, we want to install the 1.1.3 version of the Appc Daemon: amplify pm install appcd@1.1.3. Installing a version should automatically set it to an active version. If it doesn't, follow step #3.
  3. To active a select version, use this command: amplify pm use <package>@#.#.#. To active the Appc Daemon to version 1.1.3, use this command: amplify pm use appcd@1.1.3

Updating packages

To update a package, use this command: amplify pm update <package>

Continuing on with our Appc Daemon example, lets try to update it using this command: amplify pm update appcd

Starting a packageIn some cases, a package has a start option. The command would look something like this: amplify <product> start

In the case of the Appc Daemon, use this command to start it: amplify appcd start

Purging unused versions

To purge all unused versions of a package, use this command: amplify pm purge <package>

To purge unused versions of Appc Daemon, use this command: amplify pm purge appcd

Uninstalling a package

To remove a specific package via ACLI, use this command: amplify pm uninstall <package>

To remove the Appc Daemon, use this command: amplify pm uninstall appcd