<commit_before>// Module included in the following assemblies:
//
// * cli_reference/osdk/cli-osdk-install.adoc
// * operators/operator_sdk/osdk-installing-cli.adoc

:ocp_ver: latest
:osdk_ver: v1.3.0

[id="osdk-installing-cli-linux-macos_{context}"]
= Installing the Operator SDK CLI on Linux or macOS

You can install the OpenShift SDK CLI tool on Linux or macOS.

.Prerequisites

- link:https://golang.org/dl/[Go] v1.13+
ifdef::openshift-origin[]
- link:https://docs.docker.com/install/[`docker`] v17.03+, link:https://github.com/containers/libpod/blob/master/install.md[`podman`] v1.2.0+, or link:https://github.com/containers/buildah/blob/master/install.md[`buildah`] v1.7+
endif::[]
ifndef::openshift-origin[]
- `docker` v17.03+, `podman` v1.9.3+, or `buildah` v1.7+
endif::[]

.Procedure

. Navigate to the link:https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/operator-sdk/{ocp_ver}/[OpenShift mirror site].

. From the `{ocp_ver}` directory, download the latest version of the tarball that matches your operating system. Linux tarballs have a `-linux.tar.gz` suffix, and macOS tarballs have a `-darwin.tar.gz` suffix.

. Unpack the archive:
+
[source,terminal,subs="attributes+"]
----
$ tar xvf operator-sdk-{osdk_ver}-ocp-<os_arch>.tar.gz
----

. Make the file executable:
+
[source,terminal]
----
$ chmod +x operator-sdk
----

. Move the extracted `operator-sdk` binary to a directory that is on your `PATH`.
+
[TIP]
====
To check your `PATH`:

[source,terminal]
----
$ echo $PATH
----
====
+
[source,terminal]
----
$ sudo mv ./operator-sdk /usr/local/bin/operator-sdk
----

. After you install the CLI, verify that it is available:
+
[source,terminal]
----
$ operator-sdk version
----
+
.Example output
[source,terminal,subs="attributes+"]
----
operator-sdk version: "{osdk_ver}-ocp", ...
----

:!ocp_ver:
:!osdk_ver:
<commit_msg>Rm OSDK macOS client install<commit_after>// Module included in the following assemblies:
//
// * cli_reference/osdk/cli-osdk-install.adoc
// * operators/operator_sdk/osdk-installing-cli.adoc

:ocp_ver: latest
:osdk_ver: v1.3.0

[id="osdk-installing-cli-linux-macos_{context}"]
= Installing the Operator SDK CLI

You can install the OpenShift SDK CLI tool on Linux.

.Prerequisites

- link:https://golang.org/dl/[Go] v1.13+
ifdef::openshift-origin[]
- link:https://docs.docker.com/install/[`docker`] v17.03+, link:https://github.com/containers/libpod/blob/master/install.md[`podman`] v1.2.0+, or link:https://github.com/containers/buildah/blob/master/install.md[`buildah`] v1.7+
endif::[]
ifndef::openshift-origin[]
- `docker` v17.03+, `podman` v1.9.3+, or `buildah` v1.7+
endif::[]

.Procedure

. Navigate to the link:https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/operator-sdk/{ocp_ver}/[OpenShift mirror site].

. From the `{ocp_ver}` directory, download the latest version of the tarball for Linux.

. Unpack the archive:
+
[source,terminal,subs="attributes+"]
----
$ tar xvf operator-sdk-{osdk_ver}-ocp-linux-x86_64.tar.gz
----

. Make the file executable:
+
[source,terminal]
----
$ chmod +x operator-sdk
----

. Move the extracted `operator-sdk` binary to a directory that is on your `PATH`.
+
[TIP]
====
To check your `PATH`:

[source,terminal]
----
$ echo $PATH
----
====
+
[source,terminal]
----
$ sudo mv ./operator-sdk /usr/local/bin/operator-sdk
----

.Verification

* After you install the Operator SDK CLI, verify that it is available:
+
[source,terminal]
----
$ operator-sdk version
----
+
.Example output
[source,terminal,subs="attributes+"]
----
operator-sdk version: "{osdk_ver}-ocp", ...
----

:!ocp_ver:
:!osdk_ver:

{'fraction_non_alphanumeric': 0.18363384188626908, 'fraction_numerical': 0.017198335644937588, 'mean_word_length': 3.8795669824086603, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4882544', 'n_tokens_mistral': 1408, 'n_tokens_neox': 1316, 'n_words': 293}