Zum Inhalt

Setting up CLI access

For most operations in OpenShift, you will need to use the command line tools. These tools are available for all popular operating systems.

Log in to OpenShift and then locate the little question mark symbol in the upper right corner of the screen, right next to your username. In the dropdown menu pick "Command Line Tools" and download the client for your operating system and architecture.

You can now set up the command line tools for easy access:

unzip oc.zip
sudo cp oc /usr/local/bin/
unzip oc.zip
sudo cp oc /usr/local/bin/
  • Unpack the oc.zip file to a directory of your choosing
  • Press Win+R and type sysdm.cpl, then press OK
  • Select the "Advanced" tab and click "Environment variables"
  • Add the location of the oc binary to your PATH variable

Authenticating

Click on you username in the upper right corner and click "Copy login command".

Follow the instructions. You will be provided with an OIDC token that you will paste into your terminal.

Tip

Your CLI login only lives for a short time. You may need to log in again if you continue your work the next day.