1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/network-observability-netobserv-cli-install.adoc
2024-10-25 14:49:21 +00:00

55 lines
1.5 KiB
Plaintext

// Module included in the following assemblies:
// * observability/network_observability/netobserv_cli/netobserv-cli-install.adoc
:_mod-docs-content-type: PROCEDURE
[id="network-observability-cli-install_{context}"]
= Installing the Network Observability CLI
Installing the Network Observability CLI (`oc netobserv`) is a separate procedure from the Network Observability Operator installation. This means that, even if you have the Operator installed from OperatorHub, you need to install the CLI separately.
[NOTE]
====
You can optionally use Krew to install the `netobserv` CLI plugin. For more information, see "Installing a CLI plugin with Krew".
====
.Prerequisites
* You must install the {oc-first}.
* You must have a macOS or Linux operating system.
.Procedure
. Download the link:https://mirror.openshift.com/pub/cgw/netobserv/latest/[`oc netobserv` CLI tar file] that corresponds with your architecture.
. Unpack the archive. For example, for the `amd64` archive, run the following command:
+
[source,terminal]
----
$ tar xvf netobserv-cli-linux-amd64.tar.gz
----
. Make the file executable:
+
[source,terminal]
----
$ chmod +x ./oc-netobserv
----
. Move the extracted `netobserv-cli` binary to a directory that is on your `PATH`, such as `/usr/local/bin/`:
+
[source,terminal]
----
$ sudo mv ./oc-netobserv /usr/local/bin/
----
.Verification
* Verify that `oc netobserv` is available:
+
[source,terminal]
----
$ oc netobserv version
----
+
.Example output
[source,terminal]
----
Netobserv CLI version <version>
----