Installing the Aptible CLI in a CI environment

We are currently trying to migrate from Dockerfile deployment to direct Docker image deployment and in order to run the aptible deploy command we need to install the Aptible CLI on Circle CI.

Does anyone have any recommendations on how to do this?

Installing the CLI consists of two parts that you’ll need to add to your CI scripts:

  1. Download the appropriate package using the URL of the link from the Aptible CLI page. wget works well for this.
  2. Install the package. Consult your OS’ documentation on how to install packages from the command line.

Debian, for example, would look something like this:

wget -O aptible-toolbelt.deb $PACKAGE_URL
dpkg -i aptible-toolbelt.deb