Chapter 2. Installing the command-line assistant
Before you can start using the command-line assistant, you must install it through the official RHEL repositories.
The command-line assistant is supported in the following architectures:
-
AMD and Intel 64-bit (
x86_64) -
ARM64 (
aarch64) -
IBM Z (
s390x) -
IBM POWER systems (
ppc64)
To access the command-line assistant, install it by using RHEL repositories. Do not use pip install command-line-assistant because Red Hat does not support this installation option.
You can use goose, an open source alternative to the standard command-line interface (CLI) for the command-line assistant. For more information about command line workflow capabilities, see the Red Hat Knowledgebase article Optimize the command-line assistant tasks by using goose-redhat.
Prerequisites
- You have a subscribed RHEL system. For more information, see Getting Started with RHEL System Registration documentation.
Procedure
On your RHEL system, run the following command:
$ sudo dnf install command-line-assistant
Verification
Verify that the installation works by running the command-line assistant. For example:
$ c "How to install python?"The output looks similar to the following example:
+*+ Asking Red Hat Lightspeed To install python....Disable the color output in the command-line assistant. For example:
$ NO_COLOR=1 c "How to install python?"