Chapter 5. Installing the Discovery command line interface
After you have finished the procedure to install the Discovery server and database containers, you can install the Discovery command line interface (CLI) as an optional step.
The Discovery command line interface is available within the server container. Therefore, the code needed to install the command line interface is already available on the system where you installed the server and database containers, regardless of whether you used the connected or disconnected procedure for the installation.
Prerequisites
- You must install the Discovery command line interface on the same system where you installed the Discovery server and database containers.
5.1. Installing the Discovery command line interface
The installation process for the Discovery command line interface includes subscribing to the discovery content delivery network (CDN) repository and installing the discovery RPM package on your system.
Prerequisites
- You must have root privileges or their equivalent to run some of the commands in the following procedure.
Procedure
To install the Discovery command line interface, use the following steps:
To subscribe to the Discovery CDN repositories for your operating system version, enter the following command:
# subscription-manager repos --enable <repository>
NoteIn the preceding command, replace <repository> with the following values:
-
In Red Hat Enterprise Linux 8, replace <repository> with
discovery-1-for-rhel-8-x86_64-rpms
-
In Red Hat Enterprise Linux 9, replace <repository> with
discovery-1-for-rhel-9-x86_64-rpms
-
In Red Hat Enterprise Linux 8, replace <repository> with
To install the RPM package, enter the following command as the root user:
# dnf install discovery-cli
Configure the hostname by using the
hostname
command and port that the Discovery command line interface uses to communicate with the Discovery server. For theserver_port
value, enter the port that is being used for HTTPS communication.NoteIn the procedure to install the Discovery server and database containers, the value for the server_port was set by the following option in the
podman run
command:--publish 9443:443
. If you did not use9443
as the server port, enter the value that you used.$ dsc server config --host hostname --port server_port
Additional resources
- For more information about logging in to Discovery, see Accessing the Discovery user interface.