1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/developer-cli-odo-installing-odo-on-macos.adoc
2025-11-06 09:13:13 +00:00

62 lines
1.7 KiB
Plaintext

// Module included in the following assemblies:
//
// * cli_reference/developer_cli_odo/installing-odo.adoc
:_mod-docs-content-type: PROCEDURE
[id="installing-odo-on-macos_{context}"]
= Installing {odo-title} on macOS
The `{odo-title}` CLI for macOS is available to download as a binary and as a tarball.
[cols="2,1,1",options="header"]
|===
|Operating System|Binary|Tarball
|macOS|link:https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest/odo-darwin-amd64[odo-darwin-amd64]|link:https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest/odo-darwin-amd64.tar.gz[odo-darwin-amd64.tar.gz]
|===
.Procedure
. Navigate to the link:https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest/[content gateway] and download the appropriate file:
+
** If you download the binary, rename it to `odo`:
+
[source,terminal]
----
$ curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest/odo-darwin-amd64 -o odo
----
+
** If you download the tarball, extract the binary:
+
[source,terminal]
----
$ curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest/odo-darwin-amd64.tar.gz -o odo.tar.gz
----
+
[source,terminal]
----
$ tar xvzf odo.tar.gz
----
. Change the permissions on the binary:
+
[source,terminal]
----
# chmod +x odo
----
. Place the `{odo-title}` binary in a directory that is on your `PATH`.
+
To check your `PATH`, execute the following command:
+
[source,terminal]
----
$ echo $PATH
----
. Verify that `{odo-title}` is now available on your system:
+
[source,terminal]
----
$ odo version
----