Installing and using the management command-line interface

A management service command-line interface (CLI) is provided for you to manage processing configuration.

Before you begin

Install the command-line interface.
  1. Make sure that you have Java™ 17, Bash 3.2, curl 7, and jq 1.5, or later versions, installed.
  2. Retrieve the URL, username, and password of the management service as instructed in Accessing Business Automation Insights services.
  3. Download the archive:
    curl -k https://${MANAGEMENT_URL}/cli --header 'Authorization: Basic X' -o ${DESTINATION_DIR}/bai-command.tar.gz
  4. Unpack the archive.
    tar xvf ${DESTINATION_DIR}/bai-command.tar.gz
  5. If you want to be able to run the management-cli commands from anywhere, remember to update your PATH environment variable.

Procedure

To use the command-line interface:

  1. Log in.
    management-cli env login --management-url=${MANAGEMENT_URL}
    Important: If you choose to use the arguments --management-username and --management-password, you risk having your credentials exposed in clear-text in your shell history.
  2. Display the status and version of the service.
    management-cli env info
  3. Export the processing configuration.
    For Operational Decision Manager:
    management-cli processing-conf export --name="dba/bai-odm" --directory=<directory>
    For Decision Intelligence:
    management-cli processing-conf export --name="dba/bai-ads" --directory=<directory>
  4. Import a processing configuration.
    For Operational Decision Manager:
    management-cli processing-conf import --name="dba/bai-odm" --directory=<directory>/dba
    For Decision Intelligence:
    management-cli processing-conf import --name="dba/bai-ads" --directory=<directory>/dba
  5. Log out.
    management-cli env logout