1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/cli-installing-cli-brew.adoc
2026-01-21 05:14:42 +00:00

34 lines
789 B
Plaintext

// Module included in the following assemblies:
//
// * cli_reference/openshift_cli/getting-started.adoc
// * microshift_cli_ref/microshift_oc_cli_install.adoc
:_mod-docs-content-type: PROCEDURE
[id="cli-installing-cli-brew_{context}"]
= Installing the OpenShift CLI by using Homebrew
[role="_abstract"]
For macOS, you can install the OpenShift CLI (`oc`) by using the link:https://brew.sh[Homebrew] package manager.
.Prerequisites
* You must have Homebrew (`brew`) installed.
.Procedure
* Install the link:https://formulae.brew.sh/formula/openshift-cli[openshift-cli] package by running the following command:
+
[source,terminal]
----
$ brew install openshift-cli
----
.Verification
* Verify your installation by using an `oc` command:
[source,terminal]
----
$ oc <command>
----