CLI Client installation and use - Version 10.x

CLI Client installation and use - Version 10.x

Preparation

  • If you are using a platform independent distribution, this assumes you have already have Java 8 or Java 11 installed on your system. Reference: Oracle or Adopt Open Java (recommended). Verify by running the following from your command line: java -version

  • Platform specific distributions have no need for a separate Java

Steps

Download distribution

Unzip

  • Use your favorite unzip tool on the distribution file

  • Put the resulting directory in a convenient location of your choosing

  • For our example, we use tools

Verify installation

Windows
cd c:\tools\atlassian-cli-10.3.0 acli -a getClientInfo Client name: cli, Client version: 10.3.0, Client build: 2022-01-20T19:59:31, Java: OpenJDK 64-Bit Server VM 11.0.11, OS: Windows
Linux, OSX
cd /tools/atlassian-cli-10.3.0 ./acli.sh -a getClientInfo Client name: cli, Client version: 10.3.0, Client build: 2022-01-20T19:59:31, Java: OpenJDK 64-Bit Server VM 11.0.11, OS: Mac OS X 11.5

Best practices

General

  • Best to use a larger command window at least 100 columns wide, the larger the better for output viewing

  • Best to add your installation directory to your system path so you can run acli actions more easily on a regular basis

  • Recommend using the configuration support and other option customization capabilities to make day to day use simple

    • Some examples of this follow later and there are more detailed pages as well

Linux and OSX

  • To make the most of screen width for table output, it is recommended to add the following to your bash profile: export COLUMNS=$COLUMNS

  • Recommend defining acli (on your path) as a link to acli.sh or as a customized bash script similar to acli.sh

    • Examples here and on other documentation use this shortcut for simplification

Examples

  • No configuration or licenses are required for these examples

General Help

Action: getServerInfo

This action contacts a server and retrieves base information about the server. To start, we contact a pre-configured bobswift Cloud instance using anonymous access.

Action: getProjectList

 

Action: getProject

Action: getSpace

Action: getPageList