# 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](https://datalab.tuwien.ac.at/de/infrastructure/openshift/logging-in/) 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:

=== "Linux"

    ```
    unzip oc.zip
    sudo cp oc /usr/local/bin/
    ```

=== "MacOS"

    ```
    unzip oc.zip
    sudo cp oc /usr/local/bin/
    ```

=== "Windows"

    - Unpack the `oc.zip` file to a directory of your choosing
    - Press <kbd>Win</kbd>+<kbd>R</kbd> 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.