$ tar xvf <file>
With the OpenShift CLI (oc), you can create applications and manage OKD projects from a terminal. The OpenShift CLI is ideal in the following situations:
Working directly with project source code.
Scripting OKD operations
Managing projects while restricted by bandwidth resources and the web console is unavailable.
You can install the OpenShift CLI (oc) either by downloading the binary or by using an RPM.
To manage your cluster and deploy applications from the command line, install the OpenShift CLI (oc) binary on Linux.
|
If you installed an earlier version of Download and install the new version of |
Navigate to https://mirror.openshift.com/pub/openshift-v4/clients/oc/latest/ and choose the folder for your operating system and architecture.
Download oc.tar.gz.
Unpack the archive:
$ tar xvf <file>
Place the oc binary in a directory that is on your PATH.
To check your PATH, execute the following command:
$ echo $PATH
After you install the OpenShift CLI, it is available using the oc command:
$ oc <command>
To manage your cluster and deploy applications from the command line, install OpenShift CLI (oc) binary on Windows.
|
If you installed an earlier version of Download and install the new version of |
Navigate to https://mirror.openshift.com/pub/openshift-v4/clients/oc/latest/ and choose the folder for your operating system and architecture.
Download oc.zip.
Extract the archive with a ZIP program.
Move the oc binary to a directory that is on your PATH variable.
To check your PATH variable, open the command prompt and execute the following command:
C:\> path
After you install the OpenShift CLI, it is available using the oc command:
C:\> oc <command>
To manage your cluster and deploy applications from the command line, install the OpenShift CLI (oc) binary on macOS.
|
If you installed an earlier version of Download and install the new version of |
Navigate to https://mirror.openshift.com/pub/openshift-v4/clients/oc/latest/ and choose the folder for your operating system and architecture.
Download oc.tar.gz.
Unpack and unzip the archive.
Move the oc binary to a directory on your PATH variable.
To check your PATH variable, open a terminal and execute the following command:
$ echo $PATH
Verify your installation by using an oc command:
$ oc <command>
You can install the OpenShift CLI (oc) to interact with OKD clusters from a web console. You can install oc on Linux, Windows, or macOS.
|
If you installed an earlier version of |