A management service command-line interface (CLI) is provided for you to manage
processing configuration.
Before you begin
Install the command-line interface.
- Make sure that you have Java™ 17, Bash 3.2,
curl 7, and jq
1.5, or later versions, installed.
- Retrieve the URL, username, and password of the management service as instructed in Accessing
Business Automation Insights services.
- Download the archive:
curl -k https://${MANAGEMENT_URL}/cli --header 'Authorization: Basic X' -o ${DESTINATION_DIR}/bai-command.tar.gz
- Unpack the archive.
tar xvf ${DESTINATION_DIR}/bai-command.tar.gz
- 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:
- 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.
-
Display the status and version of the service.
- 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>
- 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
- Log out.
management-cli env logout