Sign inSign up

bobswiftapps/acli

By bobswiftapps

Updated about 2 months ago

Appfire Command Line Interface (ACLI) plus a few misc tools like git, curl, nano, unzip

Image
Developer tools
8

100K+

bobswiftapps/acli repository overview

ACLI

Overview

The Appfire CLI (ACLI), formerly known as the Atlassian CLI, is an integrated family of CLI's for various Atlassian and other applications providing a consistent and reliable automation platform for advanced users, administrators, script writers, and DevOps developers. This provides a convenient way to quickly do tasks, implement business processes, or general automation with your various popular applications. The CLIs are built on remote APIs provided by the applications and deliver a higher level, client based API that is easier to use than the underlying product APIs. See ACLI for more details.

We use the term client to refer to the support specific to an application like the Jira client, Confluence client, Bitbucket client, or the Slack client for example. All clients are included in the ACLI distributions and Docker images.

The ACLI Docker image provides a convenient way to quickly install the client distribution and start using the ACLI immediately! Starting with 10.3.0, there are multiple flavors of the ACLI Docker image depending on your use case. All images contain the ACLI and work in the same way. However, there are differences in what is included in the images to make them as convenient as possible for specific DevOps and pipeline use case. Appfire uses these images internally for integration testing pipelines and related automations. Also starting with 10.3.0 and higher, images are now based on current LTS versions of Ubuntu and include a few additional tools especially helpful for pipelines and DevOps scenarios. Currently, those are: git nano unzip.

Images

Quick Start

To quickly get started running an ACLI Docker instance, use the following command:

$ docker run -ti bobswiftapps/acli:latest /bin/bash

bash-4.4# acli -a getClientInfo
Client name: cli, Client version: 10.6.0, Client build: 2023-01-25T11:20:33, Java: Substrate VM 17.0.4, OS: Linux 5.10.104-linuxkit

Alternately, you can run a CLI action directly:

$ docker run -ti bobswiftapps/acli:latest acli -a getClientInfo
Client name: cli, Client version: 10.6.0, Client build: 2023-01-25T11:20:33, Java: Substrate VM 17.0.4, OS: Linux 5.10.104-linuxkit

Pass Environment Variables

$ docker run -e examplegear='jira -s https://examplegear.atlassian.net -u anonymous' -ti bobswiftapps/acli:latest /bin/bash
bash-4.4# acli ${examplegear} -a getServerInfo
Jira version: 1001.0.0-SNAPSHOT, build: 100207, time: 10/7/22, 3:33 AM, description: Appfire Example Gear Jira, url: https://examplegear.atlassian.net

Pass Environment Variables Using An Environment File

$cat .env
examplegear=jira -s https://examplegear.atlassian.net -u anonymous
examplegear_confluence=confluence -s https://examplegear.atlassian.net/wiki -u anonymous
$ docker run --env-file=.env -ti bobswiftapps/acli:latest /bin/bash
bash-5.0# acli $examplegear -a getServerInfo
Jira version: 1001.0.0-SNAPSHOT, build: 100207, time: 10/7/22, 3:33 AM, description: Appfire Example Gear Jira, url: https://examplegear.atlassian.net
bash-5.0# acli $examplegear_confluence -a getServerInfo
Confluence version: 1000.0.0, build: d4f5af0175c86895f923fbf93e073a787e005e32, url: https://examplegear.atlassian.net/wiki

Provide Configuration Properties with a Volume

From current directory to image's ACLI installation directory

docker run -v ${PWD}/acli.properties:/opt/acli/acli.properties -ti bobswiftapps/acli:latest

or prior to version 11.0.0, use:

docker run -v ${PWD}/acli.properties:/opt/atlassian-cli/acli.properties -ti bobswiftapps/acli:latest

From current directory to another location and reference it with ACLI configuration environment variable

docker run -v ${PWD}/acli.properties:/tmp/acli.properties -e ACLI_CONFIG=/tmp/acli.properties -ti bobswiftapps/acli:latest acli -a getServerInfo --outputFormat 2

Versioning

Use a specific version of the ACLI by using a version number tag: bobswiftapps/acli:10.6.0. This will install the 10.6.0 version. This approach is recommended for production use.

Alternatively, the latest tag matches the most recent stable release of the ACLI. So bobswiftapps/acli:latest will use the latest released version of ACLI. Note that if you have previously installed using latest, you may first want to update your local image cache to a newer image using docker pull bobswiftapps/acli:latest.

For the latest EAP (early access program) release, use the eap tag: bobswiftapps/acli:eap. This will install our latest SNAPSHOT release that is currently under development. Note that if you have previously installed using eap, you should first update your local cache to the latest SNAPSHOT image available using docker pull bobswiftapps/acli:eap.

Tag summary

Content type

Image

Digest

sha256:d2d33acd4

Size

194.5 MB

Last updated

about 2 months ago

docker pull bobswiftapps/acli