Installation
Requirements
Python 3.8+
An ArmoniK deployment to run the commands against.
Install from source
To install the CLI from source, first clone this repository.
$ git clone git@github.com/aneoconsulting/ArmoniK.CLI.git
Navigate in the root directory
$ cd ArmoniK.CLI
Create and activate the virtual environment
$ python -m venv ./venv
$ source ./venv/bin/activate
Install the CLI in the environment you just created.
$ pip install .
Install from PyPI
Install ArmoniK CLI
$ pip install armonik-cli
Connecting to Your ArmoniK Cluster
There are several ways to specify connection details for your ArmoniK cluster:
Using the
--endpointoption:$ armonik --endpoint <cluster-endpoint> cluster info
Using environment variables:
$ export AK_ENDPOINT=<cluster-endpoint> $ armonik cluster info
Using a configuration file (see configuration documentation for details).
When deploying ArmoniK from the official repository, you’ll receive a pre-configured file. The deployment process will prompt you to run:
$ export AKCONFIG=<path-to-generated-config>
You can then either:
$ armonik -c <path-to-generated-config> cluster info
Or export the variable as requested so the configuration is automatically loaded.
Connection Notes:
For non-TLS connections: Use just the host and port (e.g.,
172.16.17.18:5001)For TLS connections: Include the protocol and use additional TLS options as needed
$ armonik --endpoint <endpoint> --certificate-authority <ca-file> --client-certificate <cert-file> --client-key <key-file> cluster info